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

Revision 12691, 1.4 KB checked in by patdenice, 8 years ago (diff)

Display cache informations on admin page.
Add possibility to clear the cache.
Resize method is now applied on big images.

Line 
1{if !empty($thumbnails)}
2{strip}{foreach from=$thumbnails item=thumbnail}
3<li>
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'}
13{combine_script id='jquery.ba-resize' path='plugins/GThumb/js/jquery.ba-resize.min.js'}
14{combine_script id='gthumb' require='jquery,jquery.ajaxmanager,jquery.ba-resize' path='plugins/GThumb/js/gthumb.js'}
15
16{footer_script require="gthumb"}
17GThumb.max_height = {$GThumb.height};
18GThumb.margin = {$GThumb.margin};
19GThumb.method = '{$GThumb.method}';
20GThumb.small_thumb = {ldelim}id:{$small_thumb.id},src:'{$small_thumb.src}',width:{$small_thumb.width},height:{$small_thumb.height}{rdelim};
21{if isset($big_thumb)}
22GThumb.big_thumb = {ldelim}id:{$big_thumb.id},src:'{$big_thumb.src}',width:{$big_thumb.width},height:{$big_thumb.height}{rdelim};
23{/if}
24
25GThumb.build('#thumbnails');
26{/footer_script}
27
28{html_head}
29<style type="text/css">#thumbnails li {ldelim} margin:0 0 {$GThumb.margin}px {$GThumb.margin}px !important; }</style>
30{/html_head}
31{/if}
Note: See TracBrowser for help on using the repository browser.