source: extensions/GThumb/template/gthumb.tpl

Last change on this file was 21311, checked in by mistic100, 11 years ago

display the legend at the bottom and not in the middle

File size: 2.4 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_COMMENTS) && isset($thumbnail.NB_HITS)} - {/if}
19      {if isset($thumbnail.NB_HITS)}
20      <span class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits">
21        {$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)}
22      </span>
23      {/if}
24    </span>
25  {/if}
26  <a href="{$thumbnail.URL}">
27    <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()}>
28  </a>
29</li>
30{/foreach}
31
32{combine_css path="plugins/GThumb/template/gthumb.css"}
33{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
34{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
35{combine_script id='jquery.ba-resize' path='plugins/GThumb/js/jquery.ba-resize.min.js' load="footer"}
36{combine_script id='gthumb' require='jquery,jquery.ba-resize' path='plugins/GThumb/js/gthumb.js' load="footer"}
37
38{footer_script require="gthumb"}
39GThumb.max_height = {$GThumb.height};
40GThumb.margin = {$GThumb.margin};
41GThumb.method = '{$GThumb.method}';
42
43{if isset($GThumb_big)}
44{assign var=gt_size value=$GThumb_big->get_size()}
45GThumb.big_thumb = {ldelim}id:{$GThumb_big->src_image->id},src:'{$GThumb_big->get_url()}',width:{$gt_size[0]},height:{$gt_size[1]}{rdelim};
46{/if}
47
48GThumb.build();
49jQuery(window).bind('RVTS_loaded', GThumb.build);
50jQuery('#thumbnails').resize(GThumb.process);
51{/footer_script}
52
53{html_head}
54<style type="text/css">#thumbnails .gthumb {ldelim} margin:0 0 {$GThumb.margin}px {$GThumb.margin}px !important; }</style>
55<!--[if IE 8]>
56<style type="text/css">#thumbnails .gthumb a {ldelim} right: 0px; }</style>
57<![endif]-->
58{/html_head}
59{/if}
Note: See TracBrowser for help on using the repository browser.