[3756] | 1 | {* variables to be set |
---|
| 2 | => by plugin: |
---|
| 3 | $AK_BY_LINE : thumbnails columns |
---|
| 4 | $thumbnails[*]['AK_URL']): additional url to reloader ./picloader.php?cat=xx/yyy |
---|
| 5 | $AK_NAV_PREV (explode($NAV_BAR)): url to previous index (save it in session) |
---|
| 6 | $AK_NAV_NEXT (explode($NAV_BAR)): url to next index (save it in session) |
---|
| 7 | Save all current image ids in session to reduce the reloader workload. |
---|
| 8 | |
---|
| 9 | => by plugin and reloader: |
---|
| 10 | $AK_PIC_SRC : src of new current pic |
---|
| 11 | $AK_PIC_ALT : alt of new current pic |
---|
| 12 | $AK_PIC_TITLE : title of new current pic |
---|
| 13 | |
---|
| 14 | $AK_PREVIOUS['U_PIC'] : additional url to reloader of previous pic |
---|
| 15 | (or url to previous index, taken from session) |
---|
| 16 | $AK_PREVIOUS['load'] = if reloadable 'load ' else '' |
---|
| 17 | $AK_PREVIOUS['TITLE'] : title of previous pic |
---|
| 18 | |
---|
| 19 | $AK_NEXT['U_PIC'] : additional url to reloader of next pic |
---|
| 20 | (or url to next index, taken from session) |
---|
| 21 | $AK_NEXT['load'] = if reloadable 'load ' else '' |
---|
| 22 | $AK_NEXT['TITLE'] : title of next pic |
---|
| 23 | *} |
---|
| 24 | |
---|
| 25 | {* all the following code will be splitted in different includes *} |
---|
| 26 | |
---|
[3770] | 27 | {if !empty($thumbnails)} |
---|
[3773] | 28 | <table class="ak_display"> |
---|
[3764] | 29 | <tr> |
---|
| 30 | <td> |
---|
| 31 | <table class="thumbnails"> |
---|
[3773] | 32 | {foreach from=$thumbnails item=thumbnail name=tn} |
---|
| 33 | {if $smarty.foreach.tn.index % $AK_BY_LINE == 0} |
---|
| 34 | <tr class="nline"> |
---|
| 35 | {/if} |
---|
| 36 | <td class="ncol"> |
---|
[3792] | 37 | <div style="position:relative;width:{$AK_THUMBNAIL_SIZE}px;height:{$AK_THUMBNAIL_SIZE}px"> |
---|
| 38 | <div style="position:absolute;clip:rect({$thumbnail.CLIP_TOP}px {$thumbnail.CLIP_RIGHT}px {$thumbnail.CLIP_BOTTOM}px {$thumbnail.CLIP_LEFT}px);top:-{$thumbnail.CLIP_TOP}px;left:-{$thumbnail.CLIP_LEFT}px"> |
---|
| 39 | <a href="{$thumbnail.AK_URL}" class="load"> |
---|
| 40 | <img class="thumbnail" src="{$thumbnail.TN_SRC}" |
---|
| 41 | alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}"> |
---|
| 42 | </a> |
---|
| 43 | </div> |
---|
| 44 | </div> |
---|
[3773] | 45 | </td> |
---|
| 46 | {if ($smarty.foreach.tn.iteration % $AK_BY_LINE == 0) or $smarty.foreach.tn.last } |
---|
| 47 | </tr> |
---|
| 48 | {/if} |
---|
| 49 | {/foreach} |
---|
| 50 | |
---|
| 51 | {if !empty($NAV_BAR) } {* thumbnails navigation bar *} |
---|
| 52 | <tr class="nline"> |
---|
| 53 | <td class="left"> |
---|
| 54 | {if isset($AK_NAV_PREV)} |
---|
| 55 | <a class="navButton" href="{$AK_NAV_PREV}" |
---|
| 56 | title="{'previous_page'|@translate}"> |
---|
| 57 | <img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" |
---|
| 58 | class="button" alt="{'previous_page'|@translate}"> |
---|
| 59 | </a> |
---|
| 60 | {/if} |
---|
| 61 | </td> |
---|
| 62 | <td class="right"> |
---|
| 63 | {if isset($AK_NAV_NEXT)} |
---|
| 64 | <a class="navButton" href="{$AK_NAV_NEXT}" |
---|
| 65 | title="{'next_page'|@translate}"> |
---|
| 66 | <img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" |
---|
| 67 | class="button" alt="{'next_page'|@translate}"> |
---|
| 68 | </a> |
---|
| 69 | {/if} |
---|
| 70 | </td> |
---|
| 71 | </tr> |
---|
| 72 | {/if} |
---|
| 73 | </table> {* end of Thumbnails *} |
---|
[3770] | 74 | |
---|
[3764] | 75 | </td> |
---|
| 76 | |
---|
[3791] | 77 | <td> {* Picture *} |
---|
[3770] | 78 | {include file=$AK_RELOADED_IMAGE_TPL|@get_extent:'picture_reload'} |
---|
[3764] | 79 | </td> |
---|
| 80 | </tr> |
---|
[3756] | 81 | </table> |
---|
| 82 | {/if} |
---|
[3791] | 83 | |
---|
[3788] | 84 | {known_script id="jquery" src=$ROOT_URL|cat:"template-common/lib/jquery.packed.js"} |
---|
| 85 | {html_head} |
---|
| 86 | <link rel="stylesheet" type="text/css" href="{$AK_PLUGIN_CSS}/ak_style.css"> |
---|
[3791] | 87 | <script type="text/javascript"> |
---|
| 88 | var dir_thumbnail = '{$AK_DIR_THUMBNAIL}';prefix_thumbnail = '{$AK_PREFIX_THUMBNAIL}'; |
---|
| 89 | </script> |
---|
[3788] | 90 | <script type="text/javascript" src="{$AK_PLUGIN_JS}/ak_jquery-load.js"></script> |
---|
| 91 | {/html_head} |
---|