{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 *}