From b7fff52095e774c9e905aafe980fec251ee3eaca Mon Sep 17 00:00:00 2001 From: rvelices Date: Fri, 20 Jan 2012 05:36:58 +0000 Subject: feature 2548 multisize - comments thumbnails + no more hard coded thumbnail sizes in css - removed admin thumbnail page + language cleanup git-svn-id: http://piwigo.org/svn/trunk@12930 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/thumbnail.tpl | 162 ---------------------------- 1 file changed, 162 deletions(-) delete mode 100644 admin/themes/default/template/thumbnail.tpl (limited to 'admin/themes/default/template/thumbnail.tpl') diff --git a/admin/themes/default/template/thumbnail.tpl b/admin/themes/default/template/thumbnail.tpl deleted file mode 100644 index b02e80bfa..000000000 --- a/admin/themes/default/template/thumbnail.tpl +++ /dev/null @@ -1,162 +0,0 @@ -{combine_script id='jquery.ajaxmanager' load='footer' path='themes/default/js/plugins/jquery.ajaxmanager.js'} - -{footer_script} -var width_str = '{'Width'|@translate}'; -var height_str = '{'Height'|@translate}'; -var max_width_str = '{'Maximum Width'|@translate}'; -var max_height_str = '{'Maximum Height'|@translate}'; -var remaining = '{'photos without thumbnail (jpeg and png only)'|@translate}'; -var todo = {$TOTAL_NB_REMAINING}; -var done = 0; - -{literal} -var queuedManager = $.manageAjax.create('queued', { - queue: true, - cacheResponse: false, - maxRequests: 3, - complete: function() { - jQuery("#thumb_remaining").text(todo-(++done) + ' ' + remaining); - if (todo == done) { - jQuery('.waiting_bar, #thumb_remaining, .properties').hide(); - } - } -}); - -function processThumbs(width,height,crop,follow_orientation) { - jQuery('tr.nothumb').each(function() { - var image_path = jQuery(this).find('td.filepath').text(); - var td=this; - queuedManager.add({ - type: 'GET', - url: 'ws.php', - data: { - method: 'pwg.images.resizeThumbnail', - image_path: image_path, - maxwidth: width, - maxheight: height, - crop: crop, - follow_orientation: follow_orientation, - format:'json' - }, - dataType: 'json', - success: (function(row) { return function(data) { - if (data.stat =='ok') { - if (todo < 200) - jQuery(row).find('td.thumbpic').html(''); - jQuery(row).find('td.thumbdim').html(""+data.result.width+" x "+data.result.height); - jQuery(row).find('td.thumbgentime').html(""+data.result.time); - jQuery(row).find('td.thumbsize').html(""+data.result.size); - jQuery(row).removeClass("nothumb"); - } else { - jQuery(row).find('td.thumbdim').html('#ERR#'+data.err+"# : "+data.message); - jQuery(row).removeClass("nothumb"); - jQuery(row).addClass("error"); - } - } - })(td) - }); - }); -} - -function toggleCropFields() { - if (jQuery("#thumb_crop").is(':checked')) { - jQuery("label[for='thumb_maxwidth']").text(width_str); - jQuery("label[for='thumb_maxheight']").text(height_str); - jQuery("#thumb_follow_orientation_li").show(); - } - else { - jQuery("label[for='thumb_maxwidth']").text(max_width_str); - jQuery("label[for='thumb_maxheight']").text(max_height_str); - jQuery("#thumb_follow_orientation_li").hide(); - } -} - -jQuery(document).ready(function(){ - jQuery('input#proceed').click (function () { - var width = jQuery('input[name="thumb_maxwidth"]').val(); - var height = jQuery('input[name="thumb_maxheight"]').val(); - var crop = jQuery('#thumb_crop').is(':checked'); - var follow_orientation = jQuery('#thumb_follow_orientation').is(':checked'); - jQuery(".waiting_bar").toggle(); - if (todo < 200) - jQuery('.thumbpic').show(); - jQuery('.thumbgentime, .thumbsize, .thumbdim').show(); - processThumbs(width,height,crop,follow_orientation); - }); - - toggleCropFields(); - jQuery("#thumb_crop").click(function () {toggleCropFields()}); - - jQuery('.thumbpic, .thumbgentime, .thumbsize, .thumbdim').hide(); -}); -{/literal}{/footer_script} - -
-

{'Thumbnail creation'|@translate}

-
- -{if !empty($remainings) } -
- -
- {'Thumbnail creation'|@translate} - -
    -
  • - - -
  • -
  • - - -
  • -
  • - - {'pixels'|@translate} -
  • -
  • - - {'pixels'|@translate} -
  • -
  • - - % -
  • -
-
- -

- -
- -
{$TOTAL_NB_REMAINING} {'photos without thumbnail (jpeg and png only)'|@translate}
- - - - - - - - - - - - {foreach from=$remainings item=elt name=remain_loop} - - - - - - - - - - - {/foreach} -
 {'Path'|@translate}{'Filesize'|@translate}{'Dimensions'|@translate}{'Thumbnail'|@translate}{'generated in'|@translate}{'Filesize'|@translate}{'Dimensions'|@translate}
{$smarty.foreach.remain_loop.iteration}{$elt.PATH}{$elt.FILESIZE_IMG}{$elt.WIDTH_IMG} x {$elt.HEIGHT_IMG}   
-{else} -

-{'No missing thumbnail'|@translate}

-{'If you want to regenerate thumbnails, please go to the Batch Manager.'|@translate|@sprintf:"admin.php?page=batch_manager"} -

-{/if} \ No newline at end of file -- cgit v1.2.3