Ignore:
Timestamp:
Dec 3, 2011, 6:11:54 PM (12 years ago)
Author:
patdenice
Message:

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

Location:
extensions/GThumb/template
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/GThumb/template/admin.tpl

    r12678 r12691  
    5050</form>
    5151
     52<fieldset id="cacheinfo">
     53<legend>{'Cache Informations'|@translate}</legend>
     54<p>
     55{$NB_ELEMENTS}, {$ELEMENTS_SIZE}<br>
     56<a href="admin.php?page=plugin-GThumb&amp;pwg_token={$PWG_TOKEN}&amp;deletecache=true" onclick="return confirm('{'Are you sure?'|@translate}');">{'Clear the cache'|@translate}</a>
     57</p>
     58</fieldset>
     59
    5260{html_head}{literal}
    53 <style type="text/css">#GThumb td { padding-bottom: 12px; }</style>
     61<style type="text/css">
     62#GThumb td { padding-bottom: 12px; }
     63#cacheinfo p { text-align:left; line-height:20px; margin:20px }
     64</style>
    5465{/literal}{/html_head}
  • extensions/GThumb/template/gthumb.css

    r12678 r12691  
    1616  position: absolute;
    1717}
     18
     19.thumbnail, .thumbnail:hover {
     20  border: 0 none;
     21}
  • extensions/GThumb/template/gthumb.tpl

    r12678 r12691  
    1818GThumb.margin = {$GThumb.margin};
    1919GThumb.method = '{$GThumb.method}';
    20 
     20GThumb.small_thumb = {ldelim}id:{$small_thumb.id},src:'{$small_thumb.src}',width:{$small_thumb.width},height:{$small_thumb.height}{rdelim};
    2121{if isset($big_thumb)}
    2222GThumb.big_thumb = {ldelim}id:{$big_thumb.id},src:'{$big_thumb.src}',width:{$big_thumb.width},height:{$big_thumb.height}{rdelim};
    23 GThumb.small_thumb = {ldelim}id:{$small_thumb.id},src:'{$small_thumb.src}',width:{$small_thumb.width},height:{$small_thumb.height}{rdelim};
    2423{/if}
    2524
Note: See TracChangeset for help on using the changeset viewer.