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 | $AK_THUMBNAILS_LOC : Thumbnails location |
---|
25 | $AK_SHOW_OVER : hover or click |
---|
26 | *} |
---|
27 | |
---|
28 | {assign var=temp value=$TITLE|@strripos:'<a href='} |
---|
29 | {assign var=akUP value=$TITLE|@substr:0:$temp} |
---|
30 | {assign var=temp value=$akUP|@strripos:'<a href='} |
---|
31 | {assign var=akUP value=$akUP|@substr:$temp} |
---|
32 | {assign var=temp value=$akUP|@strripos:'">'} |
---|
33 | {assign var=akUP value=$akUP|@substr:0:$temp} |
---|
34 | {assign var=akUP value=$akUP|@substr:9} |
---|
35 | <div id="akBack"> |
---|
36 | <a id="akHome" class="navButton" href="{$SCRIPT_NAME}" |
---|
37 | title="{'home'|@translate}" |
---|
38 | rel="start"> |
---|
39 | <img src="{$ROOT_URL}{$themeconf.icon_dir}/home.png" |
---|
40 | class="button" alt="{'home'|@translate}"> |
---|
41 | </a> |
---|
42 | {if !empty($akUP)} |
---|
43 | <a id="akUp" class="navButton" href="{$akUP}" |
---|
44 | title="{'thumbnails'|@translate}" |
---|
45 | rel="up"> |
---|
46 | <img src="{$ROOT_URL}{$themeconf.icon_dir}/up.png" |
---|
47 | class="button" alt="{'thumbnails'|@translate}"> |
---|
48 | </a> |
---|
49 | {/if} |
---|
50 | </div> |
---|
51 | {if !empty($thumbnails)} |
---|
52 | {if $AK_THUMBNAILS_LOC == 'top' or $AK_THUMBNAILS_LOC == 'bottom'} |
---|
53 | <table class="ak_display_horizontal"> |
---|
54 | {else} |
---|
55 | <table class="ak_display"> |
---|
56 | {/if} |
---|
57 | <tr> |
---|
58 | {if $AK_THUMBNAILS_LOC == 'top'} |
---|
59 | {include file=$AK_HORIZONTAL_TPL|@get_extent:'horizontal_thumbs'} |
---|
60 | </tr> |
---|
61 | <tr> |
---|
62 | {/if} |
---|
63 | {if $AK_THUMBNAILS_LOC == 'left'} |
---|
64 | {include file=$AK_VERTICAL_TPL|@get_extent:'vertical_thumbs'} |
---|
65 | {/if} |
---|
66 | <td> {* Picture *} |
---|
67 | {include file=$AK_RELOADED_IMAGE_TPL|@get_extent:'picture_reload'} |
---|
68 | </td> |
---|
69 | {if $AK_THUMBNAILS_LOC == 'right'} |
---|
70 | {include file=$AK_VERTICAL_TPL|@get_extent:'vertical_thumbs'} |
---|
71 | {/if} |
---|
72 | </tr> |
---|
73 | {if $AK_THUMBNAILS_LOC == 'bottom'} |
---|
74 | <tr> |
---|
75 | {include file=$AK_HORIZONTAL_TPL|@get_extent:'horizontal_thumbs'} |
---|
76 | </tr> |
---|
77 | {/if} |
---|
78 | </table> |
---|
79 | {/if} |
---|
80 | |
---|
81 | {known_script id="jquery" src=$ROOT_URL|cat:"template-common/lib/jquery.packed.js"} |
---|
82 | {html_head} |
---|
83 | <link rel="stylesheet" type="text/css" href="{$AK_PLUGIN_CSS}/ak_style.css"> |
---|
84 | <script type="text/javascript"> |
---|
85 | var dir_thumbnail = '{$AK_DIR_THUMBNAIL}';prefix_thumbnail = '{$AK_PREFIX_THUMBNAIL}';var ak_mouse_event = '{$AK_MOUSE_EVENT}'; |
---|
86 | </script> |
---|
87 | <script type="text/javascript" src="{$AK_PLUGIN_JS}/ak_jquery-load.js"></script> |
---|
88 | {/html_head} |
---|