{if !empty($thumbnails)} {* variables to be set => by plugin: $AK_BY_LINE : thumbnails columns $thumbnails[*]['AK_URL']): additional url to reloader ./picloader.php?cat=xx/yyy $AK_NAV_PREV (explode($NAV_BAR)): url to previous index (save it in session) $AK_NAV_NEXT (explode($NAV_BAR)): url to next index (save it in session) Save all current image ids in session to reduce the reloader workload. => by plugin and reloader: $AK_PIC_SRC : src of new current pic $AK_PIC_ALT : alt of new current pic $AK_PIC_TITLE : title of new current pic $AK_PREVIOUS['U_PIC'] : additional url to reloader of previous pic (or url to previous index, taken from session) $AK_PREVIOUS['load'] = if reloadable 'load ' else '' $AK_PREVIOUS['TITLE'] : title of previous pic $AK_NEXT['U_PIC'] : additional url to reloader of next pic (or url to next index, taken from session) $AK_NEXT['load'] = if reloadable 'load ' else '' $AK_NEXT['TITLE'] : title of next pic *} {* all the following code will be splitted in different includes *}
{* thumbnails in table versus *} {foreach from=$thumbnails item=thumbnail name=tn} {if $smarty.foreach.tn.index % $AK_BY_LINE == 0} {/if} {if $smarty.foreach.tn.index % $AK_BY_LINE == 0} {/if} {/foreach} {if !empty($NAV_BAR) } {* thumbnails navigation bar *} {/if}
{$thumbnail.TN_ALT}
{if isset($AK_NAV_PREV)} {'previous_page'|@translate} {/if} {if isset($AK_NAV_NEXT)} {'next_page'|@translate} {/if}
{/if}
{include file='ak_reloaded_image.tpl'|@get_extent:'picture_reload'}
{/if} {known_script id="jquery" src=$ROOT_URL|cat:"template-common/lib/jquery.packed.js"} {html_head} {literal} {/literal} {/html_head}