Simple Image Sizes - Version 3.0.3

Version Description

Download this release

Release Info

Developer Rahe
Plugin Icon wp plugin Simple Image Sizes
Version 3.0.3
Comparing to
See all releases

Code changes from version 3.0.2 to 3.0.3

assets/css/sis-style.css CHANGED
@@ -14,7 +14,7 @@ input.h, input.w {
14
  -webkit-border-radius: 3px;
15
  border-radius: 3px;
16
  }
17
- tr {
18
  -webkit-transition: all .5s ease-in-out;
19
  -moz-transition: all .5s ease-in-out;
20
  -o-transition: all .5s ease-in-out;
@@ -59,4 +59,4 @@ tr.notChangedAdding {
59
  }
60
  #post-body .sis-regenerate-one{
61
  float:left;
62
- }
14
  -webkit-border-radius: 3px;
15
  border-radius: 3px;
16
  }
17
+ table.sis tr {
18
  -webkit-transition: all .5s ease-in-out;
19
  -moz-transition: all .5s ease-in-out;
20
  -o-transition: all .5s ease-in-out;
59
  }
60
  #post-body .sis-regenerate-one{
61
  float:left;
62
+ }
assets/css/sis-style.min.css CHANGED
@@ -1 +1 @@
1
- .media-item.sis{display:none}.media-item.sis .progress{width:100%}input.h,input.w{border-color:#DFDFDF;background-color:#fff;border-width:1px;border-style:solid;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}tr{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out}table.sis tr:nth-child(even){background-color:#FCFCFC}table.sis tr:nth-child(odd){background-color:transparent}tr.addPending{background-color:#6CA1D7}tr.successAdding{background-color:#89D76A}tr.errorAdding{background-color:#C45858}tr.notChangedAdding{background-color:#F2A13A}.sis .regenerate_message,.sis .thumb,.sis .time{display:none}#ajax_thumbnail_rebuild{margin-top:40px}#sis_progress-percent{width:100%;text-align:center;font-weight:700}.sis .time .ui-state-highlight{margin-top:20px;padding:0 .7em}#post-body .sis-regenerate-one{float:left}
1
+ .media-item.sis{display:none}.media-item.sis .progress{width:100%}input.h,input.w{border-color:#DFDFDF;background-color:#fff;border-width:1px;border-style:solid;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}table.sis tr{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out}table.sis tr:nth-child(even){background-color:#FCFCFC}table.sis tr:nth-child(odd){background-color:transparent}tr.addPending{background-color:#6CA1D7}tr.successAdding{background-color:#89D76A}tr.errorAdding{background-color:#C45858}tr.notChangedAdding{background-color:#F2A13A}.sis .regenerate_message,.sis .thumb,.sis .time{display:none}#ajax_thumbnail_rebuild{margin-top:40px}#sis_progress-percent{width:100%;text-align:center;font-weight:700}.sis .time .ui-state-highlight{margin-top:20px;padding:0 .7em}#post-body .sis-regenerate-one{float:left}
assets/js/sis-attachments.min.js CHANGED
@@ -1 +1 @@
1
- var sis;if(sis){if("object"!=typeof sis)throw new Error("sis already exists and not an object")}else sis={};jQuery(function(){"use strict";var a=jQuery(document.body),b=null,c=null;jQuery('select[name="action"], select[name="action2"]').append(jQuery("<option/>").attr("value","sis-regenerate").text(sis.regenerate)),a.on("click",".sis-regenerate-one",function(a){a.preventDefault(),c=new b(this)}),jQuery("#doaction, #doaction2").on("click",function(a){if("sis-regenerate"===jQuery(this).parent().find("select").val()){var d=jQuery('#the-list .check-column input[type="checkbox"]:checked').closest("tr").find(".sis-regenerate-one");d.length>0&&(a.preventDefault(),d.each(function(){c=new b(this)}))}}),b=function(a){var b={list:{},parent:null,el:null,id:null,messageZone:"",init:function(a){this.el=a,this.parent=a.closest("tr"),this.id=this.el.data("id"),this.list={id:this.id,title:""},this.messageZone=this.parent.find(".title em"),0===this.parent.find(".title em").length&&this.parent.find(".title strong").after("<em/>"),this.messageZone=this.parent.find(".title em"),this.parent.hasClass("ajaxing")||this.regenItem()},setMessage:function(a){this.messageZone.html(" - "+a).addClass("updated").addClass("fade").show()},regenItem:function(){var a=this;jQuery.ajax({url:sis.ajaxUrl,type:"POST",dataType:"json",cache:!1,data:{action:"sis_rebuild_image",id:this.list.id,nonce:sis.regen_one},beforeSend:function(){a.parent.addClass("ajaxing").find(".sis-regenerate-one").hide().end().find(".spinner").show(),a.parent.find("a.sis-regenerate-one").closest("tr").fadeTo("fast","0.3")},success:function(b){var c="";c=b.src&&b.time&&!b.error&&"object"==typeof b?sis.soloRegenerated.replace("%s",b.time):"object"!=typeof b?c=sis.phpError:b.error,a.setMessage(c),a.parent.removeClass("ajaxing").find(".sis-regenerate-one").show().end().find(".spinner").hide(),a.parent.find("a.sis-regenerate-one").closest("tr").fadeTo("fast","1")}})}};b.init(jQuery(a))}});
1
+ var sis;if(sis){if("object"!=typeof sis)throw new Error("sis already exists and not an object")}else sis={};jQuery(function(){"use strict";var a=jQuery(document.body),b=null,c=null;jQuery('select[name="action"], select[name="action2"]').append(jQuery("<option/>").attr("value","sis-regenerate").text(sis.regenerate)),a.on("click",".sis-regenerate-one",function(a){a.preventDefault(),c=new b(this)}),jQuery("#doaction, #doaction2").on("click",function(a){if("sis-regenerate"===jQuery(this).parent().find("select").val()){var d=jQuery('#the-list .check-column input[type="checkbox"]:checked').closest("tr").find(".sis-regenerate-one");d.length>0&&(a.preventDefault(),d.each(function(a,d){c=new b(this)}))}}),b=function(a){var b={list:{},parent:null,el:null,id:null,messageZone:"",init:function(a){this.el=a,this.parent=a.closest("tr"),this.id=this.el.data("id"),this.list={id:this.id,title:""},this.messageZone=this.parent.find(".title em"),0===this.parent.find(".title em").length&&this.parent.find(".title strong").after("<em/>"),this.messageZone=this.parent.find(".title em"),this.parent.hasClass("ajaxing")||this.regenItem()},setMessage:function(a){this.messageZone.html(" - "+a).addClass("updated").addClass("fade").show()},regenItem:function(){var a=this;jQuery.ajax({url:sis.ajaxUrl,type:"POST",dataType:"json",cache:!1,data:{action:"sis_rebuild_image",id:this.list.id,nonce:sis.regen_one},beforeSend:function(){a.parent.addClass("ajaxing").find(".sis-regenerate-one").hide().end().find(".spinner").show(),a.parent.find("a.sis-regenerate-one").closest("tr").fadeTo("fast","0.3")},success:function(b){var c="";c=b.src&&b.time&&!b.error&&"object"==typeof b?sis.soloRegenerated.replace("%s",b.time):"object"!=typeof b?c=sis.phpError:b.error,a.setMessage(c),a.parent.removeClass("ajaxing").find(".sis-regenerate-one").show().end().find(".spinner").hide(),a.parent.find("a.sis-regenerate-one").closest("tr").fadeTo("fast","1")}})}};b.init(jQuery(a))}});
assets/js/sis.min.js CHANGED
@@ -1 +1 @@
1
- var rahe;if(rahe){if("object"!=typeof rahe)throw new Error("rahe already exists and not an object")}else rahe={};if(rahe.sis){if("object"!=typeof rahe.sis)throw new Error("rahe.sis already exists and not an object")}else rahe.sis={};rahe.sis.regenerate={post_types:[],thumbnails:[],total:0,cur:0,timeScript:[],dateScript:"",percent:"",percentText:null,progress:null,messageZone:null,sisZone:null,time:null,timeZone:null,buttonRegenerate:null,errorZone:null,errorMessages:null,thumb:null,thumbImg:null,init:function(){this.sisZone=jQuery(".sis"),this.percentText=jQuery("#sis_progress-percent"),this.progress=jQuery(".progress"),this.messageZone=this.sisZone.find(".regenerate_message"),this.time=this.sisZone.find(".time"),this.timeZone=this.time.find("p span.time_message"),this.buttonRegenerate=jQuery("#ajax_thumbnail_rebuild"),this.errorZone=jQuery("#error_messages"),this.errorMessages=this.errorZone.find("ul.messages"),this.thumb=this.sisZone.find(".thumb"),this.thumbImg=this.sisZone.find(".thumb-img")},getThumbnails:function(){var a=this,b=jQuery("input.thumbnails:checked");b.length!=jQuery('input.thumbnails[type="checkbox"]').length&&b.each(function(){a.thumbnails.push(this.value)})},getPostTypes:function(){var a=this,b=jQuery("input.post_types:checked");b.length!=jQuery('input.post_types[type="checkbox"]').length&&b.each(function(){a.post_types.push(this.value)})},setMessage:function(a){this.messageZone.html("<p>"+a+"</p>").addClass("updated").addClass("fade").show()},setTimeMessage:function(a){this.timeZone.html(a)},checkStartRegenerating:function(){if(jQuery(".notSaved").size()>0){var a=confirm(sis.notSaved);if(1!=a)return!1;this.startRegenerating()}else this.startRegenerating()},startRegenerating:function(){var a=this,b=jQuery("input.getList").val();a.getThumbnails(),a.getPostTypes(),this.dateScript=new Date,jQuery.ajax({url:sis.ajaxUrl,type:"POST",dataType:"json",data:{action:"sis_get_list",post_types:a.post_types,nonce:b},beforeSend:function(){a.buttonRegenerate.attr("disabled",!0),a.setMessage(sis.reading)},success:function(b){return"object"!=typeof b?(a.reInit(),a.setMessage(sis.phpError),!1):(a.time.show(),a.total=b.total,a.curr=0,a.progress.show().parent().show(),void a.regenItem())}})},regenItem:function(){var a=this,b=jQuery("input.regen").val();if(0==this.total||_.isUndefined(this.total))return this.reInit(),this.setMessage(sis.noMedia),!1;if(this.curr>=this.total){var c=new Date;return this.reInit(),void this.setMessage(sis.done+this.curr+" "+sis.messageRegenerated+sis.startedAt+" "+this.dateScript.getHours()+":"+this.dateScript.getMinutes()+":"+this.dateScript.getSeconds()+sis.finishedAt+" "+c.getHours()+":"+c.getMinutes()+":"+c.getSeconds())}this.setMessage(sis.regenerating+(this.curr+1)+sis.of+this.total),this.setMessage(sis.regenerating+(this.curr+1)+sis.of+this.total),jQuery.ajax({url:sis.ajaxUrl,type:"POST",dataType:"json",data:{action:"sis_rebuild_images",offset:this.curr,thumbnails:this.thumbnails,nonce:b},beforeSend:function(){a.percent=a.curr/a.total*100,a.progress.find(".bar").width(a.percent+"%").find(".percent").html(a.percent+"%"),a.percentText.removeClass("hidden").html(Math.round(a.percent)+"%")},success:function(b){if(b.src&&b.time&&!b.error&&"object"==typeof b){b.message&&a.time.find("ul.messages").prepend("<li>"+b.message+"</li>"),a.thumb.show(),a.thumbImg.attr("src",b.src);var c=new Date,d=new Date,e=0,f=0,g=0,h=0,i="";for(a.timeScript.push(parseFloat(b.time.replace(",","."),10)),e=a.timeScript.length,g;e>g;g++)f+=a.timeScript[g];h=f/e,t=Math.round(h*a.total*1e3),c.setTime(a.dateScript.getTime()+t),i=a.s2t(Math.abs(c.getTime()-d.getTime())/1e3),a.setTimeMessage(c.getHours()+":"+c.getMinutes()+":"+c.getSeconds()+sis.or+i+sis.beforeEnd)}else{var j="";j="object"!=typeof b?sis.phpError:b.error,a.errorZone.addClass("error message"),a.errorMessages.prepend("<li>"+j+"</li>")}a.curr++,a.regenItem()}})},s2t:function(a){var a=a%86400,b=new Date(1970,0,1),c=0;return b.setSeconds(a),c=b.toTimeString().substr(0,8),a>86399&&(c=Math.floor((b-Date.parse("1/1/70"))/36e5)+c.substr(2)),c},reInit:function(){this.buttonRegenerate.removeAttr("disabled"),this.thumb.hide(),this.progress.hide(),this.percentText.addClass("hidden")}},rahe.sis.sizes={i:0,add:function(a,b){a.preventDefault();var c=rahe.sis.template("new_size");c=c({size_id:this.i,validate:sis.validate}),jQuery(b).closest("tr").before(c),this.i++},register:function(a,b){a.preventDefault();var c=jQuery(b).closest("tr").children("th").find("input").val(),d=jQuery(b).closest("tr").children("th").find("input").attr("id"),e=jQuery(b).closest("tbody").find('input[value="'+c+'"]').length;if("thumbnail"==c||"medium"==c||"large"==c)return alert(sis.notOriginal),!1;if(0!=e)return alert(sis.alreadyPresent),!1;var f=rahe.sis.template("new_size_row");f=f({size:sis.size,size_name:c,maximumWidth:sis.maximumWidth,maximumHeight:sis.maximumHeight,customName:sis.customName,crop:sis.crop,crop_positions:sis.crop_positions,show:sis.show,deleteImage:sis.deleteImage,validateButton:sis.validateButton}),jQuery("#"+d).closest("tr").html(f)},deleteSize:function(a,b){a.preventDefault();var c=confirm(sis.confirmDelete);1==c&&(jQuery(b).closest("tr").remove(),this.ajaxUnregister(b))},getPhp:function(a,b){a.preventDefault();var c=jQuery(b).closest("tr");jQuery.ajax({url:sis.ajaxUrl,type:"POST",data:{action:"sis_get_sizes"},beforeSend:function(){c.removeClass("addPending"),c.addClass("addPending")},success:function(a){jQuery("#get_php").nextAll("code").html("<br />"+a).show().css({display:"block"}),c.removeClass("addPending")}})},ajaxRegister:function(a,b){a.preventDefault();var c,d=this,e=jQuery(b).closest("table"),f=jQuery(".addSize").val(),g=jQuery(b).closest("tr"),h=g.find('input[name="image_name"]').val(),i=g.find("select.crop").val(),j=g.find("input.show").val(),k=g.find("input.n").val(),l=0,m=0;j=0==j||void 0==j?!1:!0,m=parseInt(g.find("input.w").val()),l=parseInt(g.find("input.h").val()),e.hasClass("ajaxing")||jQuery.ajax({url:sis.ajaxUrl,type:"POST",dataType:"json",data:{action:"sis_add_size",width:m,height:l,crop:i,name:h,show:j,customName:k,nonce:f},beforeSend:function(){g.removeClass(),g.addClass("addPending"),e.addClass("ajaxing")},success:function(a){var b="";g.removeClass(),e.removeClass("ajaxing"),0==a?b="errorAdding":2==a?(b="notChangedAdding",d.addToArray(h,m,l,i,b)):(b="successAdding",d.addToArray(h,m,l,i,b)),g.find("input.h").attr({base_h:l}),g.find("input.w").attr({base_w:m}),g.find("select.c").attr({base_c:i}),g.find("input.s").attr({base_s:j}),g.addClass(b),g.find("td").removeClass("notSaved"),g.find(".add_size").removeClass("validate_size").hide().children(".ui-button-text").text(sis.update),clearTimeout(c),c=setTimeout(function(){g.removeClass("errorAdding notChangedAdding successAdding")},2e3)}})},ajaxUnregister:function(a){var b=this,c=jQuery(a).closest("tr").find('input[name="image_name"]').val(),d=jQuery(a).closest("tr").find("input.deleteSize").val();jQuery.ajax({url:sis.ajaxUrl,type:"POST",data:{action:"sis_remove_size",name:c,nonce:d},success:function(){b.removeFromArray(a)}})},addToArray:function(a,b,c,d,e){var f,g=jQuery("#sis-"+a),h="";h=0!=g.length?g.closest("tr"):jQuery("#sis-regen .wrapper > table#sis_sizes > tbody > tr:first").clone().attr("id","sis-"+a),d=_.isUndefined(sis.crop_positions[d])?sis.fl:sis.crop_positions[d],h.find("th > label").attr("for",a).end().find("input.thumbnails").val(a).attr("id",a).end().find("th:nth-child(2) > label").text(a).end().find("th:nth-child(3) > label").text(b+"px").end().find("th:nth-child(4) > label").text(c+"px").end().find("th:nth-child(5) > label").text(d),0==g.length&&h.appendTo("#sis-regen .wrapper > table#sis_sizes > tbody"),h.removeClass("errorAdding notChangedAdding successAdding").addClass(e),clearTimeout(f),f=setTimeout(function(){h.removeClass("errorAdding notChangedAdding successAdding")},3e3)},removeFromArray:function(a){var b=jQuery(a).closest("tr").find("input[name=image_name]").val();jQuery("#sis-"+b).remove()},displayChange:function(a){var a=jQuery(a),b=a.closest("tr");if(b.hasClass("new_size"))return!1;var c=b.find("input.h"),d=b.find("input.w"),e=b.find("select.c"),f=b.find("input.s"),g=b.find("input.n"),h=c.val(),i=d.val(),j=e.val(),k=f.val(),l=g.val(),m=c.attr("base_h"),n=d.attr("base_w"),o=e.attr("base_c"),p=f.attr("base_s"),q=g.attr("base_n");o="0"==o?!1:!0,p="0"==p?!1:!0,h!=m||i!=n||j!=o||k!=p||l!=q?a.closest("td").addClass("notSaved").find(".add_size").css("display","inline-block"):a.closest("td").removeClass("notSaved").find(".add_size").css("display","none")}},rahe.sis.template=_.memoize(function(a){var b,c={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(d){return(b=b||_.template(jQuery("#sis-"+a).html(),null,c))(d)}}),jQuery(function(){rahe.sis.regenerate.init();var a=jQuery("#wpbody-content");jQuery("#ajax_thumbnail_rebuild").click(function(){rahe.sis.regenerate.checkStartRegenerating()}),a.on("click","#add_size",function(a){rahe.sis.sizes.add(a,this)}).on("click",".add_size_name",function(a){rahe.sis.sizes.register(a,this)}).on("click",".delete_size",function(a){rahe.sis.sizes.deleteSize(a,this)}).on("click",".add_size",function(a){rahe.sis.sizes.ajaxRegister(a,this)}).on("click keyup change",".h,.w,.c,.s,.n",function(){rahe.sis.sizes.displayChange(this)}).on("click","#get_php",function(a){rahe.sis.sizes.getPhp(a,this)}),jQuery("#get_php").nextAll("code").hide(),jQuery(".add_size").hide()});
1
+ var rahe;if(rahe){if("object"!=typeof rahe)throw new Error("rahe already exists and not an object")}else rahe={};if(rahe.sis){if("object"!=typeof rahe.sis)throw new Error("rahe.sis already exists and not an object")}else rahe.sis={};rahe.sis.regenerate={post_types:[],thumbnails:[],total:0,cur:0,timeScript:[],dateScript:"",percent:"",percentText:null,progress:null,messageZone:null,sisZone:null,time:null,timeZone:null,buttonRegenerate:null,errorZone:null,errorMessages:null,thumb:null,thumbImg:null,init:function(){this.sisZone=jQuery(".sis"),this.percentText=jQuery("#sis_progress-percent"),this.progress=jQuery(".progress"),this.messageZone=this.sisZone.find(".regenerate_message"),this.time=this.sisZone.find(".time"),this.timeZone=this.time.find("p span.time_message"),this.buttonRegenerate=jQuery("#ajax_thumbnail_rebuild"),this.errorZone=jQuery("#error_messages"),this.errorMessages=this.errorZone.find("ul.messages"),this.thumb=this.sisZone.find(".thumb"),this.thumbImg=this.sisZone.find(".thumb-img")},getThumbnails:function(){var a=this,b=jQuery("input.thumbnails:checked");b.length!=jQuery('input.thumbnails[type="checkbox"]').length&&b.each(function(b){a.thumbnails.push(this.value)})},getPostTypes:function(){var a=this,b=jQuery("input.post_types:checked");b.length!=jQuery('input.post_types[type="checkbox"]').length&&b.each(function(){a.post_types.push(this.value)})},setMessage:function(a){this.messageZone.html("<p>"+a+"</p>").addClass("updated").addClass("fade").show()},setTimeMessage:function(a){this.timeZone.html(a)},checkStartRegenerating:function(){if(jQuery(".notSaved").size()>0){var a=confirm(sis.notSaved);if(1!=a)return!1;this.startRegenerating()}else this.startRegenerating()},startRegenerating:function(){var a=this,b=jQuery("input.getList").val();a.getThumbnails(),a.getPostTypes(),this.dateScript=new Date,jQuery.ajax({url:sis.ajaxUrl,type:"POST",dataType:"json",data:{action:"sis_get_list",post_types:a.post_types,nonce:b},beforeSend:function(){a.buttonRegenerate.attr("disabled",!0),a.setMessage(sis.reading)},success:function(b){return"object"!=typeof b?(a.reInit(),a.setMessage(sis.phpError),!1):(a.time.show(),a.total=b.total,a.curr=0,a.progress.show().parent().show(),void a.regenItem())}})},regenItem:function(){var a=this,b=jQuery("input.regen").val();if(0==this.total||_.isUndefined(this.total))return this.reInit(),this.setMessage(sis.noMedia),!1;if(this.curr>=this.total){var c=new Date;return this.reInit(),void this.setMessage(sis.done+this.curr+" "+sis.messageRegenerated+sis.startedAt+" "+this.dateScript.getHours()+":"+this.dateScript.getMinutes()+":"+this.dateScript.getSeconds()+sis.finishedAt+" "+c.getHours()+":"+c.getMinutes()+":"+c.getSeconds())}this.setMessage(sis.regenerating+(this.curr+1)+sis.of+this.total),this.setMessage(sis.regenerating+(this.curr+1)+sis.of+this.total),jQuery.ajax({url:sis.ajaxUrl,type:"POST",dataType:"json",data:{action:"sis_rebuild_images",offset:this.curr,thumbnails:this.thumbnails,nonce:b},beforeSend:function(){a.percent=a.curr/a.total*100,a.progress.find(".bar").width(a.percent+"%").find(".percent").html(a.percent+"%"),a.percentText.removeClass("hidden").html(Math.round(a.percent)+"%")},success:function(b){if(b.src&&b.time&&!b.error&&"object"==typeof b){b.message&&a.time.find("ul.messages").prepend("<li>"+b.message+"</li>"),a.thumb.show(),a.thumbImg.attr("src",b.src);var c=new Date,d=new Date,e=0,f=0,g=0,h=0,i="";for(a.timeScript.push(parseFloat(b.time.replace(",","."),10)),e=a.timeScript.length,g;e>g;g++)f+=a.timeScript[g];h=f/e,t=Math.round(h*a.total*1e3),c.setTime(a.dateScript.getTime()+t),i=a.s2t(Math.abs(c.getTime()-d.getTime())/1e3),a.setTimeMessage(c.getHours()+":"+c.getMinutes()+":"+c.getSeconds()+sis.or+i+sis.beforeEnd)}else{var j="";j="object"!=typeof b?sis.phpError:b.error,a.errorZone.addClass("error message"),a.errorMessages.prepend("<li>"+j+"</li>")}a.curr++,a.regenItem()}})},s2t:function(a){var a=a%86400,b=new Date(1970,0,1),c=0;return b.setSeconds(a),c=b.toTimeString().substr(0,8),a>86399&&(c=Math.floor((b-Date.parse("1/1/70"))/36e5)+c.substr(2)),c},reInit:function(){this.buttonRegenerate.removeAttr("disabled"),this.thumb.hide(),this.progress.hide(),this.percentText.addClass("hidden")}},rahe.sis.sizes={i:0,add:function(a,b){a.preventDefault();var c=rahe.sis.template("new_size");c=c({size_id:this.i,validate:sis.validate}),jQuery(b).closest("tr").before(c),this.i++},register:function(a,b){a.preventDefault();var c=jQuery(b).closest("tr").children("th").find("input").val(),d=jQuery(b).closest("tr").children("th").find("input").attr("id"),e=jQuery(b).closest("tbody").find('input[value="'+c+'"]').length;if("thumbnail"==c||"medium"==c||"large"==c)return alert(sis.notOriginal),!1;if(0!=e)return alert(sis.alreadyPresent),!1;var f=rahe.sis.template("new_size_row");f=f({size:sis.size,size_name:c,maximumWidth:sis.maximumWidth,maximumHeight:sis.maximumHeight,customName:sis.customName,crop:sis.crop,crop_positions:sis.crop_positions,show:sis.show,deleteImage:sis.deleteImage,validateButton:sis.validateButton}),jQuery("#"+d).closest("tr").html(f)},deleteSize:function(a,b){a.preventDefault();var c=confirm(sis.confirmDelete);1==c&&(jQuery(b).closest("tr").remove(),this.ajaxUnregister(b))},getPhp:function(a,b){a.preventDefault();var c=jQuery(b).closest("tr");jQuery.ajax({url:sis.ajaxUrl,type:"POST",data:{action:"sis_get_sizes"},beforeSend:function(){c.removeClass("addPending"),c.addClass("addPending")},success:function(a){jQuery("#get_php").nextAll("code").html("<br />"+a).show().css({display:"block"}),c.removeClass("addPending")}})},ajaxRegister:function(a,b){a.preventDefault();var c,d=this,e=jQuery(b).closest("table"),f=jQuery(".addSize").val(),g=jQuery(b).closest("tr"),h=g.find('input[name="image_name"]').val(),i=g.find("select.crop").val(),j=g.find("input.show").val(),k=g.find("input.n").val(),l=0,m=0;j=0==j||void 0==j?!1:!0,m=parseInt(g.find("input.w").val()),l=parseInt(g.find("input.h").val()),e.hasClass("ajaxing")||jQuery.ajax({url:sis.ajaxUrl,type:"POST",dataType:"json",data:{action:"sis_add_size",width:m,height:l,crop:i,name:h,show:j,customName:k,nonce:f},beforeSend:function(){g.removeClass(),g.addClass("addPending"),e.addClass("ajaxing")},success:function(a){var b="";g.removeClass(),e.removeClass("ajaxing"),0==a?b="errorAdding":2==a?(b="notChangedAdding",d.addToArray(h,m,l,i,b)):(b="successAdding",d.addToArray(h,m,l,i,b)),g.find("input.h").attr({base_h:l}),g.find("input.w").attr({base_w:m}),g.find("select.c").attr({base_c:i}),g.find("input.s").attr({base_s:j}),g.addClass(b),g.find("td").removeClass("notSaved"),g.find(".add_size").removeClass("validate_size").hide().children(".ui-button-text").text(sis.update),clearTimeout(c),c=setTimeout(function(){g.removeClass("errorAdding notChangedAdding successAdding")},2e3)}})},ajaxUnregister:function(a){var b=this,c=jQuery(a).closest("tr").find('input[name="image_name"]').val(),d=jQuery(a).closest("tr").find("input.deleteSize").val();jQuery.ajax({url:sis.ajaxUrl,type:"POST",data:{action:"sis_remove_size",name:c,nonce:d},success:function(c){b.removeFromArray(a)}})},addToArray:function(a,b,c,d,e){var f,g=jQuery("#sis-"+a),h="";h=0!=g.length?g.closest("tr"):jQuery("#sis-regen .wrapper > table#sis_sizes > tbody > tr:first").clone().attr("id","sis-"+a),d=_.isUndefined(sis.crop_positions[d])?sis.fl:sis.crop_positions[d],h.find("th > label").attr("for",a).end().find("input.thumbnails").val(a).attr("id",a).end().find("th:nth-child(2) > label").text(a).end().find("th:nth-child(3) > label").text(b+"px").end().find("th:nth-child(4) > label").text(c+"px").end().find("th:nth-child(5) > label").text(d),0==g.length&&h.appendTo("#sis-regen .wrapper > table#sis_sizes > tbody"),h.removeClass("errorAdding notChangedAdding successAdding").addClass(e),clearTimeout(f),f=setTimeout(function(){h.removeClass("errorAdding notChangedAdding successAdding")},3e3)},removeFromArray:function(a){var b=jQuery(a).closest("tr").find("input[name=image_name]").val();jQuery("#sis-"+b).remove()},displayChange:function(a){var a=jQuery(a),b=a.closest("tr");if(b.hasClass("new_size"))return!1;var c=b.find("input.h"),d=b.find("input.w"),e=b.find("select.c"),f=b.find("input.s"),g=b.find("input.n"),h=c.val(),i=d.val(),j=e.val(),k=f.val(),l=g.val(),m=c.attr("base_h"),n=d.attr("base_w"),o=e.attr("base_c"),p=f.attr("base_s"),q=g.attr("base_n");o="0"==o?!1:!0,p="0"==p?!1:!0,h!=m||i!=n||j!=o||k!=p||l!=q?a.closest("td").addClass("notSaved").find(".add_size").css("display","inline-block"):a.closest("td").removeClass("notSaved").find(".add_size").css("display","none")}},rahe.sis.template=_.memoize(function(a){var b,c={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(d){return(b=b||_.template(jQuery("#sis-"+a).html(),null,c))(d)}}),jQuery(function(){rahe.sis.regenerate.init();var a=jQuery("#wpbody-content");jQuery("#ajax_thumbnail_rebuild").click(function(){rahe.sis.regenerate.checkStartRegenerating()}),a.on("click","#add_size",function(a){rahe.sis.sizes.add(a,this)}).on("click",".add_size_name",function(a){rahe.sis.sizes.register(a,this)}).on("click",".delete_size",function(a){rahe.sis.sizes.deleteSize(a,this)}).on("click",".add_size",function(a){rahe.sis.sizes.ajaxRegister(a,this)}).on("click keyup change",".h,.w,.c,.s,.n",function(a){rahe.sis.sizes.displayChange(this)}).on("click","#get_php",function(a){rahe.sis.sizes.getPhp(a,this)}),jQuery("#get_php").nextAll("code").hide(),jQuery(".add_size").hide()});
languages/simple-image-sizes-he_IL.mo ADDED
Binary file
languages/simple-image-sizes-he_IL.po ADDED
@@ -0,0 +1,471 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file was generated by WPML
2
+ # WPML is a WordPress plugin that can turn any WordPress or WordPressMU site into a full featured multilingual content management system.
3
+ # http://wpml.org
4
+ msgid ""
5
+ msgstr ""
6
+ "Content-Type: text/plain; charset=UTF-8\n"
7
+ "Content-Transfer-Encoding: 8bit\n"
8
+ "Project-Id-Version: simple-image-sizes\n"
9
+ "POT-Creation-Date: \n"
10
+ "PO-Revision-Date: \n"
11
+ "Last-Translator: Ahrale <contact@atar4u.com>\n"
12
+ "Language-Team: Ahrale, Atar4U.com <contact@atar4u.com>\n"
13
+ "MIME-Version: 1.0\n"
14
+ "Language: he_IL\n"
15
+ "X-Generator: Poedit 1.7.3\n"
16
+ "X-Poedit-SourceCharset: UTF-8\n"
17
+
18
+ # 'center' => __( 'center', 'simple-image-sizes' ),
19
+ # 'bottom' => __( 'bottom', 'simple-image-sizes' ),
20
+ # );
21
+ # wpml-name: 71f262d796bed1ab30e8a2d5a8ddee6f
22
+ msgid "bottom"
23
+ msgstr "למטה"
24
+
25
+ # 'center' => __( 'center', 'simple-image-sizes' ),
26
+ # 'bottom' => __( 'bottom', 'simple-image-sizes' ),
27
+ # );
28
+ # wpml-name: adb115059e28d960fa8badfac5516667
29
+ msgid "center"
30
+ msgstr "מרכז"
31
+
32
+ # $y = array(
33
+ # 'top' => __( 'top', 'simple-image-sizes' ),
34
+ # 'center' => __( 'center', 'simple-image-sizes' ),
35
+ # wpml-name: b28354b543375bfa94dabaeda722927f
36
+ msgid "top"
37
+ msgstr "למעלה"
38
+
39
+ # 'center' => __( 'Center', 'simple-image-sizes' ),
40
+ # 'right' => __( 'Right', 'simple-image-sizes' ),
41
+ # );
42
+ # wpml-name: 92b09c7c48c520c3c55e497875da437c
43
+ msgid "Right"
44
+ msgstr "ימין"
45
+
46
+ # 'top' => __( 'top', 'simple-image-sizes' ),
47
+ # 'center' => __( 'center', 'simple-image-sizes' ),
48
+ # 'bottom' => __( 'bottom', 'simple-image-sizes' ),
49
+ # wpml-name: 4f1f6016fc9f3f2353c0cc7c67b292bd
50
+ msgid "Center"
51
+ msgstr "אמצע"
52
+
53
+ # $x = array(
54
+ # 'left' => __( 'Left', 'simple-image-sizes' ),
55
+ # 'center' => __( 'Center', 'simple-image-sizes' ),
56
+ # wpml-name: 945d5e233cf7d6240f6b783b36a374ff
57
+ msgid "Left"
58
+ msgstr "שמאל"
59
+
60
+ # 'time' => timer_stop( false, 4 ),
61
+ # 'error' => sprintf( __( 'This file does not exists and have not been regenerated :<br/><a target="_blank" href="%1$s" >%2$s</a>', 'simple-image-sizes'), get_edit_post_link( $att_id ), get_the_title( $att_id ) )
62
+ # );
63
+ # wpml-name: a97ca0c87f209ef404682709c928fb77
64
+ msgid "This file does not exists and have not been regenerated :<br/><a target=\"_blank\" href=\"%1$s\" >%2$s</a>"
65
+ msgstr "קובץ זה אינו קיים ולא נוצר מחדש :<br/><a target=\"_blank\" href=\"%1$s\" >%2$s</a>"
66
+
67
+ # 'time' => timer_stop( false, 4 ),
68
+ # 'message' => sprintf( __( 'This file already exists in this size and have not been regenerated :<br/><a target="_blank" href="%1$s" >%2$s</a>', 'simple-image-sizes'), get_edit_post_link( $att_id ), get_the_title( $att_id ) )
69
+ # );
70
+ # wpml-name: 5aa7d495ab0ac8335d6c1019be44de71
71
+ msgid "This file already exists in this size and have not been regenerated :<br/><a target=\"_blank\" href=\"%1$s\" >%2$s</a>"
72
+ msgstr "קובץ זה כבר קיים בגודל זה ולא נוצר מחדש :<br/><a target=\"_blank\" href=\"%1$s\" >%2$s</a>"
73
+
74
+ # 'time' => timer_stop( false, 4 ),
75
+ # 'error' => __( 'No id given in POST datas.', 'simple-image-sizes' )
76
+ # );
77
+ # wpml-name: 31644e7c5c9ebc483f0e6e3497caf08e
78
+ msgid "No id given in POST datas."
79
+ msgstr "אין מזהה בנתוני הפוסט."
80
+
81
+ # 'notSaved' => __( 'All the sizes you have modifed are not saved, continue anyway ?', 'simple-image-sizes' ),
82
+ # 'soloRegenerated' => __( 'This image has been regenerated in %s seconds', 'simple-image-sizes' ),
83
+ # 'crop_positions' => self::get_available_crop(),
84
+ # wpml-name: 368cc8aa10b0843efcd7d24789f8f6b7
85
+ msgid "This image has been regenerated in %s seconds"
86
+ msgstr "תמונה זו נוצרה מחדש ב %s שניות"
87
+
88
+ # 'phpError' => __( 'Error during the php treatment, be sure to not have php errors in your page', 'simple-image-sizes' ),
89
+ # 'notSaved' => __( 'All the sizes you have modifed are not saved, continue anyway ?', 'simple-image-sizes' ),
90
+ # 'soloRegenerated' => __( 'This image has been regenerated in %s seconds', 'simple-image-sizes' ),
91
+ # wpml-name: 63b1eca818d85423d99421224064c83f
92
+ msgid "All the sizes you have modifed are not saved, continue anyway ?"
93
+ msgstr "כל המידות ששינית לא נשמרו, להמשיך בכל זאת ?"
94
+
95
+ # 'finishedAt' => __( ' finished at :', 'simple-image-sizes' ),
96
+ # 'phpError' => __( 'Error during the php treatment, be sure to not have php errors in your page', 'simple-image-sizes' ),
97
+ # 'notSaved' => __( 'All the sizes you have modifed are not saved, continue anyway ?', 'simple-image-sizes' ),
98
+ # wpml-name: 2e2e3b980040e2e5ff60122457a2d94e
99
+ msgid "Error during the php treatment, be sure to not have php errors in your page"
100
+ msgstr "שגיאה במהלך טיפול ה php, וודא שאין שגיאות php בעמוד שלך"
101
+
102
+ # 'customName' => __( 'Public name', 'simple-image-sizes' ),
103
+ # 'finishedAt' => __( ' finished at :', 'simple-image-sizes' ),
104
+ # 'phpError' => __( 'Error during the php treatment, be sure to not have php errors in your page', 'simple-image-sizes' ),
105
+ # wpml-name: 250efec0f456647c37b218d66fbf1cd1
106
+ msgid " finished at :"
107
+ msgstr " הסתיים ב :"
108
+
109
+ # 'validateButton' => __( 'Validate', 'simple-image-sizes' ),
110
+ # 'startedAt' => __( ' started at', 'simple-image-sizes' ),
111
+ # 'customName' => __( 'Public name', 'simple-image-sizes' ),
112
+ # wpml-name: a8a392d1e0802a5f793863ae847d8d1a
113
+ msgid " started at"
114
+ msgstr "התחיל ב"
115
+
116
+ # 'messageRegenerated' => __( 'images have been regenerated !', 'simple-image-sizes' ),
117
+ # 'validateButton' => __( 'Validate', 'simple-image-sizes' ),
118
+ # 'startedAt' => __( ' started at', 'simple-image-sizes' ),
119
+ # wpml-name: ad3d06d03d94223fa652babc913de686
120
+ msgid "Validate"
121
+ msgstr "אמת"
122
+
123
+ # 'ajaxErrorHandler' => __( 'Error requesting page', 'simple-image-sizes' ),
124
+ # 'messageRegenerated' => __( 'images have been regenerated !', 'simple-image-sizes' ),
125
+ # 'validateButton' => __( 'Validate', 'simple-image-sizes' ),
126
+ # wpml-name: 2be848adf7d74af67397cd8d7afe649f
127
+ msgid "images have been regenerated !"
128
+ msgstr "תמונות נוצרו מחדש !"
129
+
130
+ # 'update' => __( 'Update', 'simple-image-sizes' ),
131
+ # 'ajaxErrorHandler' => __( 'Error requesting page', 'simple-image-sizes' ),
132
+ # 'messageRegenerated' => __( 'images have been regenerated !', 'simple-image-sizes' ),
133
+ # wpml-name: fe0bfb1709b1de3ce5b316f877845254
134
+ msgid "Error requesting page"
135
+ msgstr "שגיאה בבקשת העמוד"
136
+
137
+ # 'alreadyPresent' => __( 'This size is already registered, edit it instead of recreating it.', 'simple-image-sizes' ),
138
+ # 'confirmDelete' => __( 'Do you really want to delete these size ?', 'simple-image-sizes' ),
139
+ # 'update' => __( 'Update', 'simple-image-sizes' ),
140
+ # wpml-name: aa795e0c2898239890d9a04b3225b71d
141
+ msgid "Do you really want to delete these size ?"
142
+ msgstr "האם אתה באמת רוצה למחוק את הגודל הזה ?"
143
+
144
+ # 'notOriginal' => __( 'Don\'t use the basic Wordpress thumbnail size name, use the form above to edit them', 'simple-image-sizes' ),
145
+ # 'alreadyPresent' => __( 'This size is already registered, edit it instead of recreating it.', 'simple-image-sizes' ),
146
+ # 'confirmDelete' => __( 'Do you really want to delete these size ?', 'simple-image-sizes' ),
147
+ # wpml-name: 580c280158be3a37af3f1a396fa8fa48
148
+ msgid "This size is already registered, edit it instead of recreating it."
149
+ msgstr "גודל זה כבר רשום, ערוך אותו במקום ליצור אותו מחדש."
150
+
151
+ # 'size' => __( 'Size', 'simple-image-sizes' ),
152
+ # 'notOriginal' => __( 'Don\'t use the basic Wordpress thumbnail size name, use the form above to edit them', 'simple-image-sizes' ),
153
+ # 'alreadyPresent' => __( 'This size is already registered, edit it instead of recreating it.', 'simple-image-sizes' ),
154
+ # wpml-name: 09ec5b94f6e7373427b84771c2ec9fda
155
+ msgid "Don't use the basic Wordpress thumbnail size name, use the form above to edit them"
156
+ msgstr "אל תשתמש בשם התמונה הממוזערת של הוורדפרס הבסיסי, השתמש בטופס לעיל כדי לערוך אותם"
157
+
158
+ # 'done' => __( 'Done.', 'simple-image-sizes' ),
159
+ # 'size' => __( 'Size', 'simple-image-sizes' ),
160
+ # 'notOriginal' => __( 'Don\'t use the basic Wordpress thumbnail size name, use the form above to edit them', 'simple-image-sizes' ),
161
+ # wpml-name: 6f6cb72d544962fa333e2e34ce64f719
162
+ msgid "Size"
163
+ msgstr "גודל"
164
+
165
+ # 'validate' => __( 'Validate image size name', 'simple-image-sizes' ),
166
+ # 'done' => __( 'Done.', 'simple-image-sizes' ),
167
+ # 'size' => __( 'Size', 'simple-image-sizes' ),
168
+ # wpml-name: f5940523060652e3a7d9c269ce48de50
169
+ msgid "Done."
170
+ msgstr "בוצע."
171
+
172
+ # 'regenerate' => __( 'Regenerate ', 'simple-image-sizes'),
173
+ # 'validate' => __( 'Validate image size name', 'simple-image-sizes' ),
174
+ # 'done' => __( 'Done.', 'simple-image-sizes' ),
175
+ # wpml-name: 7a50a2d7840041d6668f889ea35fa548
176
+ msgid "Validate image size name"
177
+ msgstr "אמת את שם הגודל"
178
+
179
+ # 'regenerating' => __( 'Regenerating ', 'simple-image-sizes'),
180
+ # 'regenerate' => __( 'Regenerate ', 'simple-image-sizes'),
181
+ # 'validate' => __( 'Validate image size name', 'simple-image-sizes' ),
182
+ # wpml-name: 69314e19325b39027d107d0c79a9897d
183
+ msgid "Regenerate "
184
+ msgstr "צור מחדש "
185
+
186
+ # 'noMedia' => __( 'No media in your site to regenerate !', 'simple-image-sizes' ),
187
+ # 'regenerating' => __( 'Regenerating ', 'simple-image-sizes'),
188
+ # 'regenerate' => __( 'Regenerate ', 'simple-image-sizes'),
189
+ # wpml-name: 2d2ed670c4cb53daf32909b501fa4620
190
+ msgid "Regenerating "
191
+ msgstr "יוצר מחדש"
192
+
193
+ # 'deleteImage' => __( 'Delete', 'simple-image-sizes' ),
194
+ # 'noMedia' => __( 'No media in your site to regenerate !', 'simple-image-sizes' ),
195
+ # 'regenerating' => __( 'Regenerating ', 'simple-image-sizes'),
196
+ # wpml-name: 37b1d0785260f44322eb6aa55ef3b1ad
197
+ msgid "No media in your site to regenerate !"
198
+ msgstr "אין מדיה באתר שלך ליצור מחדש !"
199
+
200
+ # 'or' => __( ' or ', 'simple-image-sizes' ),
201
+ # 'beforeEnd' => __( ' before the end.', 'simple-image-sizes' ),
202
+ # 'deleteImage' => __( 'Delete', 'simple-image-sizes' ),
203
+ # wpml-name: b08355a64e809c27c91ee20706e66d1b
204
+ msgid " before the end."
205
+ msgstr "לפני הסוף."
206
+
207
+ # 'of' => __( ' of ', 'simple-image-sizes' ),
208
+ # 'or' => __( ' or ', 'simple-image-sizes' ),
209
+ # 'beforeEnd' => __( ' before the end.', 'simple-image-sizes' ),
210
+ # wpml-name: 8e0c4e984dbb4b30a86c232b15df8490
211
+ msgid " or "
212
+ msgstr "או "
213
+
214
+ # 'show' => __( 'Show in post insertion ?', 'simple-image-sizes' ),
215
+ # 'of' => __( ' of ', 'simple-image-sizes' ),
216
+ # 'or' => __( ' or ', 'simple-image-sizes' ),
217
+ # wpml-name: 7e7e076a81fa5dc64f44b8ff14199cbf
218
+ msgid " of "
219
+ msgstr " של "
220
+
221
+ # <select id="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][c]' ); ?>" class="c crop" base_c='<?php echo esc_attr( $crop ); ?>' name="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][c]' ); ?>" >
222
+ # <option value="0" <?php selected( 0, $crop ); ?>><?php esc_html_e( 'No', 'simple-image-sizes' ); ?></option>
223
+ # <option value="1" <?php selected( 1, $crop ); ?>><?php esc_html_e( 'Yes', 'simple-image-sizes' ); ?></option>
224
+ # wpml-name: 7fa3b767c460b54a2be4d49030b349c7
225
+ msgid "no"
226
+ msgstr "לא"
227
+
228
+ # <select id="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][c]' ); ?>" class="c crop" base_c='<?php echo esc_attr( $crop ); ?>' name="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][c]' ); ?>" >
229
+ # <option value="0" <?php selected( 0, $crop ); ?>><?php esc_html_e( 'No', 'simple-image-sizes' ); ?></option>
230
+ # <option value="1" <?php selected( 1, $crop ); ?>><?php esc_html_e( 'Yes', 'simple-image-sizes' ); ?></option>
231
+ # wpml-name: a6105c0a611b41b08f1209506350279e
232
+ msgid "yes"
233
+ msgstr "כן"
234
+
235
+ # 'maximumHeight' => __( 'Maximum height', 'simple-image-sizes' ),
236
+ # 'crop' => __( 'Crop', 'simple-image-sizes' ),
237
+ # 'tr' => __( 'yes', 'simple-image-sizes' ),
238
+ # wpml-name: d388632d05e8826abe4b95de0b110529
239
+ msgid "Crop"
240
+ msgstr "חתוך"
241
+
242
+ # 'ajaxUrl' => admin_url( '/admin-ajax.php' ),
243
+ # 'reading' => __( 'Reading attachments...', 'simple-image-sizes' ),
244
+ # 'maximumWidth' => __( 'Maximum width', 'simple-image-sizes' ),
245
+ # wpml-name: 6a98035cbc4c133b74c77491ce876940
246
+ msgid "Reading attachments..."
247
+ msgstr "קורא קבצים מצורפים..."
248
+
249
+ # 'html' => '
250
+ # <input type="button" data-id="'.$post->ID.'" class="button title sis-regenerate-one" value="'.__( 'Regenerate Thumbnails', 'simple-image-sizes' ).'" />
251
+ # <span class="spinner"></span>
252
+ # wpml-name: 258606ef5a3ed5cd7e39da08435adec0
253
+ msgid "Regenerate thumbnails"
254
+ msgstr "יוצר מחדש תמונות ממוזערות"
255
+
256
+ # } else {
257
+ # esc_html_e( 'Admin option-media template missing', 'simple-image-sizes' );
258
+ # }
259
+ # wpml-name: f528f9b0d97ba7592b85a85f0c9f9c13
260
+ msgid "Admin option-media template missing"
261
+ msgstr "חסרה תבנית ניהול אפשרות-מדיה"
262
+
263
+ # public static function getPhpButton() { ?>
264
+ # <input type="button" class="button-secondary action" id="get_php" value="<?php esc_attr_e( 'Get the PHP for the theme', 'simple-image-sizes'); ?>" />
265
+ # <p> <?php _e( 'Copy and paste the code below into your Wordpress theme function file if you wanted to save them and deactivate the plugin.', 'simple-image-sizes'); ?> </p>
266
+ # wpml-name: bb3db310d06bffcbddaf06323583e91d
267
+ msgid "Get the PHP for the theme"
268
+ msgstr "קבל את ה PHP עבור ערכת הנושא"
269
+
270
+ # public static function addSizeButton() { ?>
271
+ # <input type="button" class="button-secondary action" id="add_size" value="<?php esc_attr_e( 'Add a new size of thumbnail', 'simple-image-sizes'); ?>" />
272
+ # <?php
273
+ # wpml-name: 786741aec3b7c066357245ef98dc9fde
274
+ msgid "Add a new size of thumbnail"
275
+ msgstr "הוסף גודל חדש של תמונה ממוזערת"
276
+
277
+ # if( !wp_verify_nonce( $nonce , 'regen' ) ) {
278
+ # SIS_Admin_Main::displayJson( array( 'error' => __( 'Trying to cheat ?', 'simple-image-sizes' ) ) );
279
+ # }
280
+ # wpml-name: b57077974e73b05d05c5ab21a7bb35fe
281
+ msgid "Trying to cheat ?"
282
+ msgstr "מנסה לרמות ?"
283
+
284
+ # <input type="button" class="button-secondary action" id="get_php" value="<?php esc_attr_e( 'Get the PHP for the theme', 'simple-image-sizes'); ?>" />
285
+ # <p> <?php _e( 'Copy and paste the code below into your Wordpress theme function file if you wanted to save them and deactivate the plugin.', 'simple-image-sizes'); ?> </p>
286
+ # <code></code>
287
+ # wpml-name: 265103d3ca486243e0f00a62d6dfd2b7
288
+ msgid "Copy and paste the code below into your Wordpress theme function file if you wanted to save them and deactivate the plugin."
289
+ msgstr "העתק והדבק את הקוד שלהלן אל קובץ function.php בערכת הנושא של הוורדפרס שלך אם אתה רוצה לשמור אותם ולכבות את התוסף."
290
+
291
+ # 'confirmDelete' => __( 'Do you really want to delete these size ?', 'simple-image-sizes' ),
292
+ # 'update' => __( 'Update', 'simple-image-sizes' ),
293
+ # 'ajaxErrorHandler' => __( 'Error requesting page', 'simple-image-sizes' ),
294
+ # wpml-name: 06933067aafd48425d67bcb01bba5cb6
295
+ msgid "Update"
296
+ msgstr "עדכן"
297
+
298
+ # 'beforeEnd' => __( ' before the end.', 'simple-image-sizes' ),
299
+ # 'deleteImage' => __( 'Delete', 'simple-image-sizes' ),
300
+ # 'noMedia' => __( 'No media in your site to regenerate !', 'simple-image-sizes' ),
301
+ # wpml-name: f2a6c498fb90ee345d997f888fce3b18
302
+ msgid "Delete"
303
+ msgstr "מחיקה"
304
+
305
+ # 'fl' => __( 'no', 'simple-image-sizes' ),
306
+ # 'show' => __( 'Show in post insertion ?', 'simple-image-sizes' ),
307
+ # 'of' => __( ' of ', 'simple-image-sizes' ),
308
+ # wpml-name: b223790b250471a6cae35deb5a4b0aa4
309
+ msgid "Show in post insertion ?"
310
+ msgstr "להציג בהוספה לפוסט ?"
311
+
312
+ # <span class="size_options">
313
+ # <label class="c" for="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][c]' ); ?>"><?php _e( 'Cropping', 'simple-image-sizes'); ?></label>
314
+ # <select id="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][c]' ); ?>" class="c crop" base_c='<?php echo esc_attr( $crop ); ?>' name="<?php echo esc_attr( 'custom_image_sizes['.$args['name'].'][c]' ); ?>" >
315
+ # wpml-name: 57bb299f73bf5946a8d4790cc4bbd8fb
316
+ msgid "Cropping"
317
+ msgstr "חיתוך"
318
+
319
+ # 'startedAt' => __( ' started at', 'simple-image-sizes' ),
320
+ # 'customName' => __( 'Public name', 'simple-image-sizes' ),
321
+ # 'finishedAt' => __( ' finished at :', 'simple-image-sizes' ),
322
+ # wpml-name: d274013ea65428454962a59b7b373a41
323
+ msgid "Public name"
324
+ msgstr "שם ציבורי"
325
+
326
+ # 'maximumWidth' => __( 'Maximum width', 'simple-image-sizes' ),
327
+ # 'maximumHeight' => __( 'Maximum height', 'simple-image-sizes' ),
328
+ # 'crop' => __( 'Crop', 'simple-image-sizes' ),
329
+ # wpml-name: d3c7d075cfb70ed08d062facb1a056e8
330
+ msgid "Maximum height"
331
+ msgstr "גובה מירבי"
332
+
333
+ # 'reading' => __( 'Reading attachments...', 'simple-image-sizes' ),
334
+ # 'maximumWidth' => __( 'Maximum width', 'simple-image-sizes' ),
335
+ # 'maximumHeight' => __( 'Maximum height', 'simple-image-sizes' ),
336
+ # wpml-name: 614a998c745fcc3009bf6c6daf18562e
337
+ msgid "Maximum width"
338
+ msgstr "רוחב מירבי"
339
+
340
+ # return array(
341
+ # 'message' => __( 'Regeneration ended', 'simple-image-sizes')
342
+ # );
343
+ # wpml-name: cd4e39700ffd7ae49e430859c97834c2
344
+ msgid "Regeneration ended"
345
+ msgstr "היצירה מחדש הסתיימה"
346
+
347
+ # // Add section for the thumbnail regeneration
348
+ # add_settings_section( 'thumbnail_regenerate', __( 'Thumbnail regeneration', 'simple-image-sizes' ), array( __CLASS__, 'thumbnailRegenerate' ), 'media' );
349
+ # }
350
+ # wpml-name: 99e4f0028f10ce4b38eb35c5488c1bba
351
+ msgid "Thumbnail regeneration"
352
+ msgstr "יצירה מחדש של תמונה ממוזערת"
353
+
354
+ # // Add php button
355
+ # add_settings_field( 'get_php_button', __( 'Get php for theme', 'simple-image-sizes' ), array( __CLASS__, 'getPhpButton' ), 'media' );
356
+ #
357
+ # wpml-name: fea30a43d377bbead8aace51d915477a
358
+ msgid "Get php for theme"
359
+ msgstr "קבל php עבור ערכת הנושא"
360
+
361
+ # // Add the button
362
+ # add_settings_field( 'add_size_button', __( 'Add a new size', 'simple-image-sizes' ), array( __CLASS__, 'addSizeButton' ), 'media' );
363
+ #
364
+ # wpml-name: a2da7c2e28e5e69b7daaa13377ee29e4
365
+ msgid "Add a new size"
366
+ msgstr "הוספת גודל חדש"
367
+
368
+ # // Add the setting field for this size
369
+ # add_settings_field( 'image_size_'.$s, sprintf( __( '%s size', 'simple-image-sizes' ), $s ), array( __CLASS__, 'image_sizes' ), 'media' , 'default', array( 'name' => $s , 'width' => $width , 'height' => $height, 'c' => $crop ) );
370
+ # }
371
+ # wpml-name: be74017300bae51721e39b611652ee22
372
+ msgid "%s size"
373
+ msgstr "גודל %s"
374
+
375
+ #
376
+ # $settings_link = '<a href="'.admin_url('options-media.php').'"> '.__( 'Settings', 'simple-image-sizes' ).' </a>';
377
+ # array_unshift( $links, $settings_link );
378
+ # wpml-name: f4f70727dc34561dfde1a3c529b6205c
379
+ msgid "Settings"
380
+ msgstr "הגדרות"
381
+
382
+ # 'html' => '
383
+ # <input type="button" data-id="'.$post->ID.'" class="button title sis-regenerate-one" value="'.__( 'Regenerate Thumbnails', 'simple-image-sizes' ).'" />
384
+ # <span class="spinner"></span>
385
+ # wpml-name: 6f8330b0bc479531022cb9002cffde14
386
+ msgid "Regenerate Thumbnails"
387
+ msgstr "צור מחדש תמונות ממוזערות"
388
+
389
+ # </div>
390
+ # <div class="thumb"><h4><?php _e( 'Last image:', 'simple-image-sizes'); ?></h4><img class="thumb-img" /></div>
391
+ # <input type="button" class="button" name="ajax_thumbnail_rebuild" id="ajax_thumbnail_rebuild" value="<?php _e( 'Regenerate Thumbnails', 'simple-image-sizes' ) ?>" />
392
+ # wpml-name: c9d4436607c99b571f4d84ff0e1a8fb5
393
+ msgid "Last image:"
394
+ msgstr "תמונה אחרונה:"
395
+
396
+ # <span class="ui-icon ui-icon-info"></span>
397
+ # <span><strong><?php _e( 'End time calculated :', 'simple-image-sizes' ); ?></strong> <span class='time_message'><?php _e( 'Calculating...', 'simple-image-sizes' ) ?></span> </span>
398
+ # </p>
399
+ # wpml-name: 0582cd2fd62743a89db5f715fd51e532
400
+ msgid "Calculating..."
401
+ msgstr "מחשב..."
402
+
403
+ # <span class="ui-icon ui-icon-info"></span>
404
+ # <span><strong><?php _e( 'End time calculated :', 'simple-image-sizes' ); ?></strong> <span class='time_message'><?php _e( 'Calculating...', 'simple-image-sizes' ) ?></span> </span>
405
+ # </p>
406
+ # wpml-name: fe5a9d159a95ad346f9443464115edfc
407
+ msgid "End time calculated :"
408
+ msgstr "חישוב זמן סיום :"
409
+
410
+ # <th scope="col" id="cb" class="manage-column column-cb check-column"><input checked="checked" type="checkbox"></th>
411
+ # <th class="manage-column" scope="col"><?php _e( 'Post type', 'simple-image-sizes'); ?></th>
412
+ # </tr>
413
+ # wpml-name: 363c969ebde35c09236f5355c6dff165
414
+ msgid "Post type"
415
+ msgstr "סוג מאמר"
416
+
417
+ #
418
+ # <h4><?php _e( 'Select which post type source thumbnails you want to rebuild:', 'simple-image-sizes'); ?></h4>
419
+ # <table cellspacing="0" class="widefat page fixed sis">
420
+ # wpml-name: 4f02f535b1a39a2fc34c244b5fe5c828
421
+ msgid "Select which post type source thumbnails you want to rebuild:"
422
+ msgstr "בחר אילו תמונות ממוזערות של אילו סוגי פוסט אתה רוצה לבנות מחדש:"
423
+
424
+ # <th class="manage-column" scope="col"><?php _e( 'Height', 'simple-image-sizes'); ?></th>
425
+ # <th class="manage-column" scope="col"><?php _e( 'Crop ?', 'simple-image-sizes'); ?></th>
426
+ # </tr>
427
+ # wpml-name: 8ae8aaf1c06d7eeee38c66ba6f6c4f00
428
+ msgid "Crop ?"
429
+ msgstr "לחתוך ?"
430
+
431
+ # <th class="manage-column" scope="col"><?php _e( 'Width', 'simple-image-sizes'); ?></th>
432
+ # <th class="manage-column" scope="col"><?php _e( 'Height', 'simple-image-sizes'); ?></th>
433
+ # <th class="manage-column" scope="col"><?php _e( 'Crop ?', 'simple-image-sizes'); ?></th>
434
+ # wpml-name: eec6c4bdbd339edf8cbea68becb85244
435
+ msgid "Height"
436
+ msgstr "גובה"
437
+
438
+ # <th class="manage-column" scope="col"><?php _e( 'Size name', 'simple-image-sizes'); ?></th>
439
+ # <th class="manage-column" scope="col"><?php _e( 'Width', 'simple-image-sizes'); ?></th>
440
+ # <th class="manage-column" scope="col"><?php _e( 'Height', 'simple-image-sizes'); ?></th>
441
+ # wpml-name: 32954654ac8fe66a1d09be19001de2d4
442
+ msgid "Width"
443
+ msgstr "רוחב"
444
+
445
+ # <th scope="col" id="cb" class="manage-column column-cb check-column" style=""><input checked="checked" type="checkbox"></th>
446
+ # <th class="manage-column" scope="col"><?php _e( 'Size name', 'simple-image-sizes'); ?></th>
447
+ # <th class="manage-column" scope="col"><?php _e( 'Width', 'simple-image-sizes'); ?></th>
448
+ # wpml-name: 3e6a625faef0050601371de85af0630d
449
+ msgid "Size name"
450
+ msgstr "שם המידה"
451
+
452
+ # <div class="wrapper" style="">
453
+ # <h4> <?php _e( 'Select which thumbnails you want to rebuild:', 'simple-image-sizes'); ?> </h4>
454
+ # <table cellspacing="0" id="sis_sizes" class="widefat page fixed sis">
455
+ # wpml-name: d3108e30b8046e29dd3baa9b3c455d35
456
+ msgid "Select which thumbnails you want to rebuild:"
457
+ msgstr "בחר אילו תמונות ממוזערות אתה רוצה לבנות מחדש:"
458
+
459
+ # 'tr' => __( 'yes', 'simple-image-sizes' ),
460
+ # 'fl' => __( 'no', 'simple-image-sizes' ),
461
+ # 'show' => __( 'Show in post insertion ?', 'simple-image-sizes' ),
462
+ # wpml-name: bafd7322c6e97d25b6299b5d6fe8920b
463
+ msgid "No"
464
+ msgstr "לא"
465
+
466
+ # 'crop' => __( 'Crop', 'simple-image-sizes' ),
467
+ # 'tr' => __( 'yes', 'simple-image-sizes' ),
468
+ # 'fl' => __( 'no', 'simple-image-sizes' ),
469
+ # wpml-name: 93cba07454f06a4a960172bbd6e2a435
470
+ msgid "Yes"
471
+ msgstr "כן"
package.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "simple-image-sizes",
3
- "version": "2.4.3",
4
  "description": "Simple image sizes for WordPress",
5
  "author": "Nicolas Juen",
6
  "devDependencies": {
1
  {
2
  "name": "simple-image-sizes",
3
+ "version": "3.0.3",
4
  "description": "Simple image sizes for WordPress",
5
  "author": "Nicolas Juen",
6
  "devDependencies": {
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Rahe
3
  Donate link: http://www.beapi.fr/donate/
4
  Tags: images, image, custom sizes, custom images, thumbnail regenerate, thumbnail, regenerate
5
  Requires at least: 3.5
6
- Tested up to: 4.0
7
- Stable tag: 3.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -48,6 +48,8 @@ And then you can choose if the image is displayed on the media insertion or not
48
  3. Choose the sizes to regenerate and regenerate them
49
 
50
  == Changelog ==
 
 
51
  * 3.0.2
52
  * Fix version check for the image crop positions
53
  * 3.0.1
3
  Donate link: http://www.beapi.fr/donate/
4
  Tags: images, image, custom sizes, custom images, thumbnail regenerate, thumbnail, regenerate
5
  Requires at least: 3.5
6
+ Tested up to: 4.1
7
+ Stable tag: 3.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
48
  3. Choose the sizes to regenerate and regenerate them
49
 
50
  == Changelog ==
51
+ * 3.0.3
52
+ * Add Hebrew translations thanks to Atar4U
53
  * 3.0.2
54
  * Fix version check for the image crop positions
55
  * 3.0.1
simple_image_sizes.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Simple Image Sizes
4
  Plugin URI: https://github.com/Rahe/'simple-image-sizes'
5
  Description: Add options in media setting page for images sizes
6
- Version: 3.0.2
7
  Author: Rahe
8
  Author URI: http://nicolas-juen.fr
9
  Text Domain: 'simple-image-sizes'
@@ -30,7 +30,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30
 
31
  define( 'SIS_URL', plugin_dir_url ( __FILE__ ) );
32
  define( 'SIS_DIR', plugin_dir_path( __FILE__ ) );
33
- define( 'SIS_VERSION', '3.0.2' );
34
  define( 'SIS_OPTION', 'custom_image_sizes' );
35
 
36
  // Function for easy load files
3
  Plugin Name: Simple Image Sizes
4
  Plugin URI: https://github.com/Rahe/'simple-image-sizes'
5
  Description: Add options in media setting page for images sizes
6
+ Version: 3.0.3
7
  Author: Rahe
8
  Author URI: http://nicolas-juen.fr
9
  Text Domain: 'simple-image-sizes'
30
 
31
  define( 'SIS_URL', plugin_dir_url ( __FILE__ ) );
32
  define( 'SIS_DIR', plugin_dir_path( __FILE__ ) );
33
+ define( 'SIS_VERSION', '3.0.3' );
34
  define( 'SIS_OPTION', 'custom_image_sizes' );
35
 
36
  // Function for easy load files