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

Revision 13652, 1.6 KB checked in by patdenice, 8 years ago (diff)

Compatible with Piwigo 2.4

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    <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()}>
7  </a>
8</li>
9{/foreach}
10
11{combine_css path="plugins/GThumb/template/gthumb.css"}
12{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
13{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
14{combine_script id='jquery.ba-resize' path='plugins/GThumb/js/jquery.ba-resize.min.js' load="footer"}
15{combine_script id='gthumb' require='jquery,jquery.ba-resize' path='plugins/GThumb/js/gthumb.js' load="footer"}
16
17{footer_script require="gthumb"}
18GThumb.max_height = {$GThumb.height};
19GThumb.margin = {$GThumb.margin};
20GThumb.method = '{$GThumb.method}';
21
22{if isset($GThumb_big)}
23{assign var=gt_size value=$GThumb_big->get_size()}
24GThumb.big_thumb = {ldelim}id:{$GThumb_big->src_image->id},src:'{$GThumb_big->get_url()}',width:{$gt_size[0]},height:{$gt_size[1]}{rdelim};
25{/if}
26
27GThumb.build();
28jQuery(window).bind('RVTS_loaded', GThumb.build);
29jQuery('#thumbnails').resize(GThumb.process);
30{/footer_script}
31
32{html_head}
33<style type="text/css">#thumbnails .gthumb {ldelim} margin:0 0 {$GThumb.margin}px {$GThumb.margin}px !important; }</style>
34<!--[if IE 8]>
35<style type="text/css">#thumbnails .gthumb a {ldelim} right: 0px; }</style>
36<![endif]-->
37{/html_head}
38{/if}
Note: See TracBrowser for help on using the repository browser.