Last change
on this file since 12691 was
12691,
checked in by patdenice, 12 years ago
|
Display cache informations on admin page.
Add possibility to clear the cache.
Resize method is now applied on big images.
|
File size:
1.4 KB
|
Rev | Line | |
---|
[12678] | 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"} |
---|
| 17 | GThumb.max_height = {$GThumb.height}; |
---|
| 18 | GThumb.margin = {$GThumb.margin}; |
---|
| 19 | GThumb.method = '{$GThumb.method}'; |
---|
[12691] | 20 | GThumb.small_thumb = {ldelim}id:{$small_thumb.id},src:'{$small_thumb.src}',width:{$small_thumb.width},height:{$small_thumb.height}{rdelim}; |
---|
[12678] | 21 | {if isset($big_thumb)} |
---|
| 22 | GThumb.big_thumb = {ldelim}id:{$big_thumb.id},src:'{$big_thumb.src}',width:{$big_thumb.width},height:{$big_thumb.height}{rdelim}; |
---|
| 23 | {/if} |
---|
| 24 | |
---|
| 25 | GThumb.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.