source: extensions/akBookStyle/trunk/template/ak_thumbnails.tpl @ 3807

Last change on this file since 3807 was 3807, checked in by vdigital, 15 years ago

Horizontal thumbnails location

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
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{* all the following code will be splitted in different includes *}
29
30{if !empty($thumbnails)}
31<table class="ak_display"> 
32  <tr>
33        {if $AK_THUMBNAILS_LOC == 'top'}
34    {include file=$AK_HORIZONTAL_TPL|@get_extent:'horizontal_thumbs'}
35        </tr>
36        <tr>
37  {/if}
38        {if $AK_THUMBNAILS_LOC == 'left'}
39    {include file=$AK_VERTICAL_TPL|@get_extent:'vertical_thumbs'}
40  {/if}
41    <td> {* Picture *}
42      {include file=$AK_RELOADED_IMAGE_TPL|@get_extent:'picture_reload'}
43    </td>
44        {if $AK_THUMBNAILS_LOC == 'right'}
45    {include file=$AK_VERTICAL_TPL|@get_extent:'vertical_thumbs'}
46  {/if}
47  </tr>
48        {if $AK_THUMBNAILS_LOC == 'bottom'}
49        <tr>
50    {include file=$AK_HORIZONTAL_TPL|@get_extent:'horizontal_thumbs'}
51        </tr>
52  {/if}
53</table>
54{/if}
55
56{known_script id="jquery" src=$ROOT_URL|cat:"template-common/lib/jquery.packed.js"}
57{html_head}
58<link rel="stylesheet" type="text/css" href="{$AK_PLUGIN_CSS}/ak_style.css">
59{if $AK_THUMBNAILS_LOC == 'top' or $AK_THUMBNAILS_LOC == 'bottom'}
60<link rel="stylesheet" type="text/css" href="{$AK_PLUGIN_CSS}/ak_style_h.css">
61{/if}
62<script type="text/javascript">
63var dir_thumbnail = '{$AK_DIR_THUMBNAIL}';prefix_thumbnail = '{$AK_PREFIX_THUMBNAIL}';var ak_mouse_event = '{$AK_MOUSE_EVENT}';
64</script>
65<script type="text/javascript" src="{$AK_PLUGIN_JS}/ak_jquery-load.js"></script>
66{/html_head}
Note: See TracBrowser for help on using the repository browser.