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

Last change on this file since 3814 was 3814, checked in by nikrou, 15 years ago

refactoring : remove unused stylesheet

  • 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{if $AK_THUMBNAILS_LOC == 'top' or $AK_THUMBNAILS_LOC == 'bottom'}
32<table class="ak_display_horizontal"> 
33{else}
34<table class="ak_display"> 
35{/if}
36  <tr>
37    {if $AK_THUMBNAILS_LOC == 'top'}
38    {include file=$AK_HORIZONTAL_TPL|@get_extent:'horizontal_thumbs'}
39  </tr>
40  <tr>
41    {/if}
42    {if $AK_THUMBNAILS_LOC == 'left'}
43    {include file=$AK_VERTICAL_TPL|@get_extent:'vertical_thumbs'}
44    {/if}
45    <td> {* Picture *}
46      {include file=$AK_RELOADED_IMAGE_TPL|@get_extent:'picture_reload'}
47    </td>
48    {if $AK_THUMBNAILS_LOC == 'right'}
49    {include file=$AK_VERTICAL_TPL|@get_extent:'vertical_thumbs'}
50    {/if}
51  </tr>
52  {if $AK_THUMBNAILS_LOC == 'bottom'}
53  <tr>
54    {include file=$AK_HORIZONTAL_TPL|@get_extent:'horizontal_thumbs'}
55  </tr>
56  {/if}
57</table>
58{/if}
59
60{known_script id="jquery" src=$ROOT_URL|cat:"template-common/lib/jquery.packed.js"}
61{html_head}
62<link rel="stylesheet" type="text/css" href="{$AK_PLUGIN_CSS}/ak_style.css">
63<script type="text/javascript">
64var dir_thumbnail = '{$AK_DIR_THUMBNAIL}';prefix_thumbnail = '{$AK_PREFIX_THUMBNAIL}';var ak_mouse_event = '{$AK_MOUSE_EVENT}';
65</script>
66<script type="text/javascript" src="{$AK_PLUGIN_JS}/ak_jquery-load.js"></script>
67{/html_head}
Note: See TracBrowser for help on using the repository browser.