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

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

the link includes thumbLegend

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  <a href="{$thumbnail.URL}">
6  {if $SHOW_THUMBNAIL_CAPTION }
7    <span class="thumbLegend">
8      <span class="thumbName">
9        {$thumbnail.NAME}
10        {if !empty($thumbnail.icon_ts)}
11        <img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" alt="(!)">
12        {/if}
13      </span>
14      {if isset($thumbnail.NB_COMMENTS)}
15      <span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments">
16        {$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)}
17      </span>
18      {/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    <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.