GThumb+

{'Configuration'|@translate}
{'Thumbnails max height'|@translate} :     px
{'Margin between thumbnails'|@translate} :     px
{'Number of photos per page'|@translate} :   
{'Double the size of the first thumbnail'|@translate} :    {'Yes'|@translate}   {'No'|@translate}
{'Cache the big thumbnails (recommended)'|@translate} :    {'Yes'|@translate}   {'No'|@translate}
{'Scale thumbnails'|@translate} :    {'Crop'|@translate}   {'Resize'|@translate}

{'Cache Informations'|@translate}

 

{html_head}{literal} {/literal}{/html_head} {combine_script id='jquery.ui.progressbar' load='footer'} {combine_script id='jquery.ajaxmanager' load='footer' path='themes/default/js/plugins/jquery.ajaxmanager.js'} {footer_script} var pwg_token = '{$PWG_TOKEN}'; var confirm_message = '{'Are you sure?'|@translate}'; var nb_files_str = '{'%d file'|@translate}'; var nb_files_str_plur = '{'%d files'|@translate}'; var lang_info_zero_plural = {if $lang_info.zero_plural}true{else}false{/if}; var cache_size = {$CACHE_SIZE}; var nb_files = {$NB_FILES}; {literal} var GThumb = { total: 0, done: 0, queue: jQuery.manageAjax.create('queued', { queue: true, cacheResponse: false, maxRequests: 3 }), deletecache: function() { if (confirm(confirm_message)) { window.location = 'admin.php?page=plugin-GThumb&deletecache=true&pwg_token='+pwg_token; } }, generatecache: function() { GThumb.total = nb_files; GThumb.done = nb_files; jQuery("#progressbar").progressbar({value: 1}); jQuery.ajax({ url: 'admin.php?page=plugin-GThumb&generatecache=request', dataType: 'json', success: function(data) { if (data.length > 0) { jQuery("#GThumbProgressbar, #GThumbAction").toggle(); GThumb.total = data.length + GThumb.done; jQuery("#progressbar").progressbar({value: Math.ceil(GThumb.done * 100 / GThumb.total)}); for (i=0;i 1 || (nb_files == 0 && lang_info_zero_plural)) { nbstr = nb_files_str_plur; } else { nbstr = nb_files_str; } ret = nbstr.replace('%d', nb_files) + ', '; if (cache_size > 1024 * 1024) ret += Math.round((cache_size / (1024 * 1024))*100)/100 + ' MB'; else ret += Math.round((cache_size / 1024)*100)/100 + ' KB'; jQuery("#cache_data").html(ret); } updateCacheSizeAndFiles(); jQuery('#GThumbAction button').tipTip({'delay' : 0, 'fadeIn' : 200, 'fadeOut' : 200}); {/literal}{/footer_script}