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

RevLine 
[12678]1{if !empty($thumbnails)}
[13652]2{foreach from=$thumbnails item=thumbnail}
3{assign var=derivative value=$pwg->derivative($GThumb_derivative_params, $thumbnail.src_image)}
[12712]4<li class="gthumb">
[12678]5  <a href="{$thumbnail.URL}">
[13652]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()}>
[12678]7  </a>
8</li>
[13652]9{/foreach}
[12678]10
11{combine_css path="plugins/GThumb/template/gthumb.css"}
[13652]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'}
[12710]14{combine_script id='jquery.ba-resize' path='plugins/GThumb/js/jquery.ba-resize.min.js' load="footer"}
[13652]15{combine_script id='gthumb' require='jquery,jquery.ba-resize' path='plugins/GThumb/js/gthumb.js' load="footer"}
[12678]16
17{footer_script require="gthumb"}
18GThumb.max_height = {$GThumb.height};
19GThumb.margin = {$GThumb.margin};
20GThumb.method = '{$GThumb.method}';
[12696]21
[13652]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};
[12678]25{/if}
26
[12710]27GThumb.build();
28jQuery(window).bind('RVTS_loaded', GThumb.build);
29jQuery('#thumbnails').resize(GThumb.process);
[12678]30{/footer_script}
31
32{html_head}
[12712]33<style type="text/css">#thumbnails .gthumb {ldelim} margin:0 0 {$GThumb.margin}px {$GThumb.margin}px !important; }</style>
[13579]34<!--[if IE 8]>
35<style type="text/css">#thumbnails .gthumb a {ldelim} right: 0px; }</style>
36<![endif]-->
[12678]37{/html_head}
38{/if}
Note: See TracBrowser for help on using the repository browser.