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

Last change on this file since 12857 was 12857, checked in by patdenice, 9 years ago

Bug corrected with special images (like 3d pictures).
Work with question mark in urls = false.

File size: 1.5 KB
Line 
1{if !empty($thumbnails)}
2{strip}{foreach from=$thumbnails item=thumbnail}
3<li class="gthumb">
4  <a href="{$thumbnail.URL}">
5    <img id="gt{$thumbnail.ID}" class="thumbnail" src="{$thumbnail.TN_SRC}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}"
6         width="{$thumbnail.TN_WIDTH}" height="{$thumbnail.TN_HEIGHT}" {if empty($thumbnail.TN_SRC)}style="display:none;"{/if}>
7  </a>
8</li>
9{/foreach}{/strip}
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='jquery.ba-resize' path='plugins/GThumb/js/jquery.ba-resize.min.js' load="footer"}
14{combine_script id='gthumb' require='jquery,jquery.ajaxmanager,jquery.ba-resize' path='plugins/GThumb/js/gthumb.js' load="footer"}
15
16{footer_script require="gthumb"}
17GThumb.root = '{$ROOT_URL}';
18GThumb.max_height = {$GThumb.height};
19GThumb.margin = {$GThumb.margin};
20GThumb.method = '{$GThumb.method}';
21
22{if isset($big_thumb)}
23GThumb.small_thumb = {ldelim}id:{$small_thumb.id},src:'{$small_thumb.src}',width:{$small_thumb.width},height:{$small_thumb.height}{rdelim};
24GThumb.big_thumb = {ldelim}id:{$big_thumb.id},src:'{$big_thumb.src}',width:{$big_thumb.width},height:{$big_thumb.height}{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{/html_head}
35{/if}
Note: See TracBrowser for help on using the repository browser.