source: extensions/GThumb/template/gthumb.tpl @ 18124

Last change on this file since 18124 was 18124, checked in by mistic100, 8 years ago

new option to display thumbnails caption at mouseover

File size: 2.3 KB
Line 
1{if !empty($thumbnails)}
2{foreach from=$thumbnails item=thumbnail}
3{assign var=derivative value=$pwg->derivative($GThumb_derivative_params, $thumbnail.src_image)}
4<li class="gthumb">
5  {if $SHOW_THUMBNAIL_CAPTION }
6  <span class="thumbLegend">
7    <span class="thumbName">
8      {$thumbnail.NAME}
9      {if !empty($thumbnail.icon_ts)}
10      <img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" alt="(!)">
11      {/if}
12    </span>
13    {if isset($thumbnail.NB_COMMENTS)}
14    <span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments">
15      {$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)}
16    </span>
17    {/if}
18    {if isset($thumbnail.NB_HITS)}
19    <span class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits">
20      {$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)}
21    </span>
22    {/if}
23  </span>
24  {/if}
25  <a href="{$thumbnail.URL}">
26    <img class="thumbnail" {if !$derivative->is_cached()}data-{/if}src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" {$derivative->get_size_htm()}>
27  </a>
28</li>
29{/foreach}
30
31{combine_css path="plugins/GThumb/template/gthumb.css"}
32{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
33{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
34{combine_script id='jquery.ba-resize' path='plugins/GThumb/js/jquery.ba-resize.min.js' load="footer"}
35{combine_script id='gthumb' require='jquery,jquery.ba-resize' path='plugins/GThumb/js/gthumb.js' load="footer"}
36
37{footer_script require="gthumb"}
38GThumb.max_height = {$GThumb.height};
39GThumb.margin = {$GThumb.margin};
40GThumb.method = '{$GThumb.method}';
41
42{if isset($GThumb_big)}
43{assign var=gt_size value=$GThumb_big->get_size()}
44GThumb.big_thumb = {ldelim}id:{$GThumb_big->src_image->id},src:'{$GThumb_big->get_url()}',width:{$gt_size[0]},height:{$gt_size[1]}{rdelim};
45{/if}
46
47GThumb.build();
48jQuery(window).bind('RVTS_loaded', GThumb.build);
49jQuery('#thumbnails').resize(GThumb.process);
50{/footer_script}
51
52{html_head}
53<style type="text/css">#thumbnails .gthumb {ldelim} margin:0 0 {$GThumb.margin}px {$GThumb.margin}px !important; }</style>
54<!--[if IE 8]>
55<style type="text/css">#thumbnails .gthumb a {ldelim} right: 0px; }</style>
56<![endif]-->
57{/html_head}
58{/if}
Note: See TracBrowser for help on using the repository browser.