WP jQuery Lightbox - Version 1.3.4.1

Version Description

(2011-01-31) = * Updated deprecated jQuery calls (thanks; David Naber)

Download this release

Release Info

Developer ulfben
Plugin Icon wp plugin WP jQuery Lightbox
Version 1.3.4.1
Comparing to
See all releases

Code changes from version 1.3.4 to 1.3.4.1

jquery.lightbox.js CHANGED
@@ -1,6 +1,6 @@
1
  /**
2
  * WP jQuery Lightbox
3
- * Version 1.3.4 - 2011-12-29
4
  * @author Ulf Benjaminsson (http://www.ulfben.com)
5
  *
6
  * This is a modified version of Warren Krevenkis Lightbox-port (see notice below) for use in the WP jQuery Lightbox-
@@ -36,7 +36,7 @@
36
  (function($){
37
  $.fn.lightbox = function(options) {
38
  var opts = $.extend({}, $.fn.lightbox.defaults, options);
39
- return $(this).live("click", function () {
40
  initialize();
41
  start(this);
42
  return false;
1
  /**
2
  * WP jQuery Lightbox
3
+ * Version 1.3.4.1 - 2011-01-31
4
  * @author Ulf Benjaminsson (http://www.ulfben.com)
5
  *
6
  * This is a modified version of Warren Krevenkis Lightbox-port (see notice below) for use in the WP jQuery Lightbox-
36
  (function($){
37
  $.fn.lightbox = function(options) {
38
  var opts = $.extend({}, $.fn.lightbox.defaults, options);
39
+ return $(this).on("click", function () {
40
  initialize();
41
  start(this);
42
  return false;
jquery.lightbox.min.js CHANGED
@@ -1 +1 @@
1
- (function(a){a.fn.lightbox=function(k){var t=a.extend({},a.fn.lightbox.defaults,k);return a(this).live("click",function(){e();o(this);return false});function e(){a(window).bind("orientationchange",p);a(window).bind("resize",p);a("#overlay").remove();a("#lightbox").remove();t.isIE8=u();t.inprogress=false;if(t.jsonData&&t.jsonData.length>0){var B=t.jsonDataParser?t.jsonDataParser:a.fn.lightbox.parseJsonData;t.imageArray=[];t.imageArray=B(t.jsonData)}var y='<div id="outerImageContainer"><div id="imageContainer"><iframe id="lightboxIframe" /><img id="lightboxImage"><div id="hoverNav"><a href="javascript://" title="'+t.strings.prevLinkTitle+'" id="prevLink"></a><a href="javascript://" id="nextLink" title="'+t.strings.nextLinkTitle+'"></a></div><div id="loading"><a href="javascript://" id="loadingLink"><div id="jqlb_loading"></div></a></div></div></div>';var A='<div id="imageDataContainer" class="clearfix"><div id="imageData"><div id="imageDetails"><span id="caption"></span><span id="numberDisplay"></span></div><div id="bottomNav">';if(t.displayHelp){A+='<span id="helpDisplay">'+t.strings.help+"</span>"}A+='<a href="javascript://" id="bottomNavClose" title="'+t.strings.closeTitle+'"><div id="jqlb_closelabel"></div></a></div></div></div>';var z;if(t.navbarOnTop){z='<div id="overlay"></div><div id="lightbox">'+A+y+"</div>";a("body").append(z);a("#imageDataContainer").addClass("ontop")}else{z='<div id="overlay"></div><div id="lightbox">'+y+A+"</div>";a("body").append(z)}a("#overlay").click(function(){h()}).hide();a("#lightbox").click(function(){h()}).hide();a("#loadingLink").click(function(){h();return false});a("#bottomNavClose").click(function(){h();return false});a("#outerImageContainer").width(t.widthCurrent).height(t.heightCurrent);a("#imageDataContainer").width(t.widthCurrent);if(!t.imageClickClose){a("#lightboxImage").click(function(){return false});a("#hoverNav").click(function(){return false})}}function p(y){if(t.resizeTimeout){clearTimeout(t.resizeTimeout);t.resizeTimeout=false}t.resizeTimeout=setTimeout(function(){x(false)},50)}function w(){var z=a(document).height();if(t.isIE8&&z>4096){z=4096}var y=a(window).height()-t.adminBarHeight;return new Array(a(document).width(),z,a(window).width(),y,a(document).height())}function u(){var z=false;if(document.createElement){var y=document.createElement("div");if(y&&y.querySelectorAll){y.innerHTML='<object><param name=""></object>';z=y.querySelectorAll("param").length!=1}y=null}return z}function g(){var z=0;var y=0;if(self.pageYOffset){y=self.pageYOffset;z=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){y=document.documentElement.scrollTop;z=document.documentElement.scrollLeft}else{if(document.body){y=document.body.scrollTop;z=document.body.scrollLeft}}}if(t.adminBarHeight&&parseInt(a("#wpadminbar").css("top"),10)===0){y+=t.adminBarHeight}return new Array(z,y)}function o(C){a("select, embed, object").hide();var A=w();var y=g();var z=0;a("#overlay").hide().css({width:A[0]+"px",height:A[1]+"px",opacity:t.overlayOpacity}).fadeIn(400);if(t.isIE8&&A[1]==4096){if(y[1]>=1000){z=y[1]-1000;if((A[4]-(y[1]+3096))<0){z-=(y[1]+3096)-A[4]}a("#overlay").css({top:z+"px"})}}imageNum=0;if(!t.jsonData){t.imageArray=[];if(!C.rel||(C.rel=="")){var B="";if(C.title){B=C.title}else{if(a(this).children(":first-child").attr("title")){B=a(this).children(":first-child").attr("title")}}t.imageArray.push(new Array(C.href,t.displayTitle?B:""))}else{a("a").each(function(){if(this.href&&(this.rel==C.rel)){var G="";var E="";var I="";var D=a(this);if(this.title){G=this.title}else{if(D.children("img:first-child").attr("title")){G=D.children("img:first-child").attr("title")}}if(D.parent().next(".gallery-caption").html()){var H=D.parent().next(".gallery-caption");E=H.html();I=H.text()}else{if(D.next(".wp-caption-text").html()){E=D.next(".wp-caption-text").html();I=D.next(".wp-caption-text").text()}}G=a.trim(G);I=a.trim(I);if(G.toLowerCase()==I.toLowerCase()){G=E;E=""}var F="";if(G!=""){F='<span id="titleText">'+G+"</span>"}if(E!=""){if(G!=""){F+="<br />"}F+='<span id="captionText">'+E+"</span>"}t.imageArray.push(new Array(this.href,t.displayTitle?F:""))}})}}if(t.imageArray.length>1){for(i=0;i<t.imageArray.length;i++){for(j=t.imageArray.length-1;j>i;j--){if(t.imageArray[i][0]==t.imageArray[j][0]){t.imageArray.splice(j,1)}}}while(t.imageArray[imageNum][0]!=C.href){imageNum++}}m(y[1],y[0]).show();v(imageNum)}function m(y,z){if(t.resizeSpeed>0){a("#lightbox").animate({top:y},250,"linear");return a("#lightbox").animate({left:z},250,"linear")}return a("#lightbox").css({top:y+"px",left:z+"px"})}function v(y){if(t.inprogress==false){t.inprogress=true;t.activeImage=y;a("#loading").show();a("#lightboxImage").hide();a("#hoverNav").hide();a("#prevLink").hide();a("#nextLink").hide();l()}}function l(){t.imgPreloader=new Image();t.imgPreloader.onload=function(){a("#lightboxImage").attr("src",t.imageArray[t.activeImage][0]);x();f()};t.imgPreloader.src=t.imageArray[t.activeImage][0]}function x(){if(!t.imgPreloader){return}var B=t.imgPreloader.width;var y=t.imgPreloader.height;var D=w();var J=(D[2]<D[0])?D[0]:D[2];a("#overlay").css({width:J+"px",height:D[1]+"px"});var H=(D[3])-(a("#imageDataContainer").height()+(2*t.borderSize));var I=(D[2])-(2*t.borderSize);if(t.fitToScreen){var z=H-t.marginSize;var K=I-t.marginSize;var E=1;if(y>z){E=z/y}B=B*E;y=y*E;E=1;if(B>K){E=K/B}B=Math.round(B*E);y=Math.round(y*E)}var C=g();var A=C[1]+(H*0.5);var F=A-y*0.5;var G=C[0];a("#lightboxImage").width(B).height(y);n(B,y,F,G)}function n(B,z,D,C){t.widthCurrent=a("#outerImageContainer").outerWidth();t.heightCurrent=a("#outerImageContainer").outerHeight();var y=Math.max(350,B+(t.borderSize*2));var A=(z+(t.borderSize*2));t.xScale=(y/t.widthCurrent)*100;t.yScale=(A/t.heightCurrent)*100;m(D,C);c();a("#imageDataContainer").animate({width:y},t.resizeSpeed,"linear");a("#outerImageContainer").animate({width:y},t.resizeSpeed,"linear",function(){a("#outerImageContainer").animate({height:A},t.resizeSpeed,"linear",function(){d()})});r();a("#prevLink").height(z);a("#nextLink").height(z)}function d(){a("#imageData").show();a("#caption").show();a("#loading").hide();if(t.resizeSpeed>0){a("#lightboxImage").fadeIn("fast")}else{a("#lightboxImage").show()}t.inprogress=false}function f(){if(t.loopImages&&t.imageArray.length>1){preloadNextImage=new Image();preloadNextImage.src=t.imageArray[(t.activeImage==(t.imageArray.length-1))?0:t.activeImage+1][0];preloadPrevImage=new Image();preloadPrevImage.src=t.imageArray[(t.activeImage==0)?(t.imageArray.length-1):t.activeImage-1][0]}else{if((t.imageArray.length-1)>t.activeImage){preloadNextImage=new Image();preloadNextImage.src=t.imageArray[t.activeImage+1][0]}if(t.activeImage>0){preloadPrevImage=new Image();preloadPrevImage.src=t.imageArray[t.activeImage-1][0]}}}function c(){a("#numberDisplay").html("");a("#caption").html("").hide();if(t.imageArray[t.activeImage][1]){a("#caption").html(t.imageArray[t.activeImage][1]).show()}var B="";var A="";var C=(t.imageArray.length>1)?t.strings.image+(t.activeImage+1)+t.strings.of+t.imageArray.length:"";var z=(t.displayDownloadLink)?'<a href="'+t.imageArray[t.activeImage][0]+'" id="downloadLink" target="'+t.linkTarget+'">'+t.strings.download+"</a>":"";var y="";if(t.imageArray.length>1&&!t.disableNavbarLinks){if((t.activeImage)>0||t.loopImages){A='<a title="'+t.strings.prevLinkTitle+'" href="#" id="prevLinkText">'+t.strings.prevLinkText+"</a>"}if(((t.activeImage+1)<t.imageArray.length)||t.loopImages){y+='<a title="'+t.strings.nextLinkTitle+'" href="#" id="nextLinkText">'+t.strings.nextLinkText+"</a>"}}B=A+B+C+z+y;if(B!=""){a("#numberDisplay").html(B).show()}}function r(){if(t.imageArray.length>1){a("#hoverNav").show();if(t.loopImages){a("#prevLink,#prevLinkText").show().click(function(){v((t.activeImage==0)?(t.imageArray.length-1):t.activeImage-1);return false});a("#nextLink,#nextLinkText").show().click(function(){v((t.activeImage==(t.imageArray.length-1))?0:t.activeImage+1);return false})}else{if(t.activeImage!=0){a("#prevLink,#prevLinkText").show().click(function(){v(t.activeImage-1);return false})}if(t.activeImage!=(t.imageArray.length-1)){a("#nextLink,#nextLinkText").show().click(function(){v(t.activeImage+1);return false})}}b()}}function h(){q();a("#lightbox").hide();a("#overlay").fadeOut();a("select, object, embed").show()}function s(B){var C=B.data.opts;var y=B.keyCode;var z=27;var A=String.fromCharCode(y).toLowerCase();if((A=="x")||(A=="o")||(A=="c")||(y==z)){h()}else{if((A=="p")||(y==37)){if(C.loopImages){q();v((C.activeImage==0)?(C.imageArray.length-1):C.activeImage-1)}else{if(C.activeImage!=0){q();v(C.activeImage-1)}}}else{if((A=="n")||(y==39)){if(t.loopImages){q();v((C.activeImage==(C.imageArray.length-1))?0:C.activeImage+1)}else{if(C.activeImage!=(C.imageArray.length-1)){q();v(C.activeImage+1)}}}}}return false}function b(){a(document).bind("keydown",{opts:t},s)}function q(){a(document).unbind("keydown")}};a.fn.lightbox.parseJsonData=function(c){var b=[];a.each(c,function(){b.push(new Array(this.url,this.title))});return b};a.fn.lightbox.defaults={adminBarHeight:28,overlayOpacity:0.8,borderSize:10,imageArray:new Array,activeImage:null,inprogress:false,widthCurrent:250,heightCurrent:250,xScale:1,yScale:1,displayTitle:true,disableNavbarLinks:true,loopImages:true,imageClickClose:true,jsonData:null,jsonDataParser:null,followScroll:false,isIE8:false};a(document).ready(function(d){var b=(typeof JQLBSettings=="object");if(b&&JQLBSettings.resizeSpeed){JQLBSettings.resizeSpeed=parseInt(JQLBSettings.resizeSpeed)}if(b&&JQLBSettings.marginSize){JQLBSettings.marginSize=parseInt(JQLBSettings.marginSize)}var c={help:" Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close.",prevLinkTitle:"previous image",nextLinkTitle:"next image",prevLinkText:"&laquo; Previous",nextLinkText:"Next &raquo;",closeTitle:"close image gallery",image:"Image ",of:" of ",download:"Download"};d('a[rel^="lightbox"]').lightbox({adminBarHeight:d("#wpadminbar").height()||0,linkTarget:(b&&JQLBSettings.linkTarget.length)?JQLBSettings.linkTarget:"_self",displayHelp:(b&&JQLBSettings.help.length)?true:false,marginSize:(b&&JQLBSettings.marginSize)?JQLBSettings.marginSize:0,fitToScreen:(b&&JQLBSettings.fitToScreen=="1")?true:false,resizeSpeed:(b&&JQLBSettings.resizeSpeed>=0)?JQLBSettings.resizeSpeed:400,displayDownloadLink:(b&&JQLBSettings.displayDownloadLink=="0")?false:true,navbarOnTop:(b&&JQLBSettings.navbarOnTop=="0")?false:true,strings:(b&&typeof JQLBSettings.help=="string")?JQLBSettings:c})})})(jQuery);
1
+ (function(a){a.fn.lightbox=function(k){var t=a.extend({},a.fn.lightbox.defaults,k);return a(this).on("click",function(){e();o(this);return false});function e(){a(window).bind("orientationchange",p);a(window).bind("resize",p);a("#overlay").remove();a("#lightbox").remove();t.isIE8=u();t.inprogress=false;if(t.jsonData&&t.jsonData.length>0){var B=t.jsonDataParser?t.jsonDataParser:a.fn.lightbox.parseJsonData;t.imageArray=[];t.imageArray=B(t.jsonData)}var y='<div id="outerImageContainer"><div id="imageContainer"><iframe id="lightboxIframe" /><img id="lightboxImage"><div id="hoverNav"><a href="javascript://" title="'+t.strings.prevLinkTitle+'" id="prevLink"></a><a href="javascript://" id="nextLink" title="'+t.strings.nextLinkTitle+'"></a></div><div id="loading"><a href="javascript://" id="loadingLink"><div id="jqlb_loading"></div></a></div></div></div>';var A='<div id="imageDataContainer" class="clearfix"><div id="imageData"><div id="imageDetails"><span id="caption"></span><span id="numberDisplay"></span></div><div id="bottomNav">';if(t.displayHelp){A+='<span id="helpDisplay">'+t.strings.help+"</span>"}A+='<a href="javascript://" id="bottomNavClose" title="'+t.strings.closeTitle+'"><div id="jqlb_closelabel"></div></a></div></div></div>';var z;if(t.navbarOnTop){z='<div id="overlay"></div><div id="lightbox">'+A+y+"</div>";a("body").append(z);a("#imageDataContainer").addClass("ontop")}else{z='<div id="overlay"></div><div id="lightbox">'+y+A+"</div>";a("body").append(z)}a("#overlay").click(function(){h()}).hide();a("#lightbox").click(function(){h()}).hide();a("#loadingLink").click(function(){h();return false});a("#bottomNavClose").click(function(){h();return false});a("#outerImageContainer").width(t.widthCurrent).height(t.heightCurrent);a("#imageDataContainer").width(t.widthCurrent);if(!t.imageClickClose){a("#lightboxImage").click(function(){return false});a("#hoverNav").click(function(){return false})}}function p(y){if(t.resizeTimeout){clearTimeout(t.resizeTimeout);t.resizeTimeout=false}t.resizeTimeout=setTimeout(function(){x(false)},50)}function w(){var z=a(document).height();if(t.isIE8&&z>4096){z=4096}var y=a(window).height()-t.adminBarHeight;return new Array(a(document).width(),z,a(window).width(),y,a(document).height())}function u(){var z=false;if(document.createElement){var y=document.createElement("div");if(y&&y.querySelectorAll){y.innerHTML='<object><param name=""></object>';z=y.querySelectorAll("param").length!=1}y=null}return z}function g(){var z=0;var y=0;if(self.pageYOffset){y=self.pageYOffset;z=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){y=document.documentElement.scrollTop;z=document.documentElement.scrollLeft}else{if(document.body){y=document.body.scrollTop;z=document.body.scrollLeft}}}if(t.adminBarHeight&&parseInt(a("#wpadminbar").css("top"),10)===0){y+=t.adminBarHeight}return new Array(z,y)}function o(C){a("select, embed, object").hide();var A=w();var y=g();var z=0;a("#overlay").hide().css({width:A[0]+"px",height:A[1]+"px",opacity:t.overlayOpacity}).fadeIn(400);if(t.isIE8&&A[1]==4096){if(y[1]>=1000){z=y[1]-1000;if((A[4]-(y[1]+3096))<0){z-=(y[1]+3096)-A[4]}a("#overlay").css({top:z+"px"})}}imageNum=0;if(!t.jsonData){t.imageArray=[];if(!C.rel||(C.rel=="")){var B="";if(C.title){B=C.title}else{if(a(this).children(":first-child").attr("title")){B=a(this).children(":first-child").attr("title")}}t.imageArray.push(new Array(C.href,t.displayTitle?B:""))}else{a("a").each(function(){if(this.href&&(this.rel==C.rel)){var G="";var E="";var I="";var D=a(this);if(this.title){G=this.title}else{if(D.children("img:first-child").attr("title")){G=D.children("img:first-child").attr("title")}}if(D.parent().next(".gallery-caption").html()){var H=D.parent().next(".gallery-caption");E=H.html();I=H.text()}else{if(D.next(".wp-caption-text").html()){E=D.next(".wp-caption-text").html();I=D.next(".wp-caption-text").text()}}G=a.trim(G);I=a.trim(I);if(G.toLowerCase()==I.toLowerCase()){G=E;E=""}var F="";if(G!=""){F='<span id="titleText">'+G+"</span>"}if(E!=""){if(G!=""){F+="<br />"}F+='<span id="captionText">'+E+"</span>"}t.imageArray.push(new Array(this.href,t.displayTitle?F:""))}})}}if(t.imageArray.length>1){for(i=0;i<t.imageArray.length;i++){for(j=t.imageArray.length-1;j>i;j--){if(t.imageArray[i][0]==t.imageArray[j][0]){t.imageArray.splice(j,1)}}}while(t.imageArray[imageNum][0]!=C.href){imageNum++}}m(y[1],y[0]).show();v(imageNum)}function m(y,z){if(t.resizeSpeed>0){a("#lightbox").animate({top:y},250,"linear");return a("#lightbox").animate({left:z},250,"linear")}return a("#lightbox").css({top:y+"px",left:z+"px"})}function v(y){if(t.inprogress==false){t.inprogress=true;t.activeImage=y;a("#loading").show();a("#lightboxImage").hide();a("#hoverNav").hide();a("#prevLink").hide();a("#nextLink").hide();l()}}function l(){t.imgPreloader=new Image();t.imgPreloader.onload=function(){a("#lightboxImage").attr("src",t.imageArray[t.activeImage][0]);x();f()};t.imgPreloader.src=t.imageArray[t.activeImage][0]}function x(){if(!t.imgPreloader){return}var B=t.imgPreloader.width;var y=t.imgPreloader.height;var D=w();var J=(D[2]<D[0])?D[0]:D[2];a("#overlay").css({width:J+"px",height:D[1]+"px"});var H=(D[3])-(a("#imageDataContainer").height()+(2*t.borderSize));var I=(D[2])-(2*t.borderSize);if(t.fitToScreen){var z=H-t.marginSize;var K=I-t.marginSize;var E=1;if(y>z){E=z/y}B=B*E;y=y*E;E=1;if(B>K){E=K/B}B=Math.round(B*E);y=Math.round(y*E)}var C=g();var A=C[1]+(H*0.5);var F=A-y*0.5;var G=C[0];a("#lightboxImage").width(B).height(y);n(B,y,F,G)}function n(B,z,D,C){t.widthCurrent=a("#outerImageContainer").outerWidth();t.heightCurrent=a("#outerImageContainer").outerHeight();var y=Math.max(350,B+(t.borderSize*2));var A=(z+(t.borderSize*2));t.xScale=(y/t.widthCurrent)*100;t.yScale=(A/t.heightCurrent)*100;m(D,C);c();a("#imageDataContainer").animate({width:y},t.resizeSpeed,"linear");a("#outerImageContainer").animate({width:y},t.resizeSpeed,"linear",function(){a("#outerImageContainer").animate({height:A},t.resizeSpeed,"linear",function(){d()})});r();a("#prevLink").height(z);a("#nextLink").height(z)}function d(){a("#imageData").show();a("#caption").show();a("#loading").hide();if(t.resizeSpeed>0){a("#lightboxImage").fadeIn("fast")}else{a("#lightboxImage").show()}t.inprogress=false}function f(){if(t.loopImages&&t.imageArray.length>1){preloadNextImage=new Image();preloadNextImage.src=t.imageArray[(t.activeImage==(t.imageArray.length-1))?0:t.activeImage+1][0];preloadPrevImage=new Image();preloadPrevImage.src=t.imageArray[(t.activeImage==0)?(t.imageArray.length-1):t.activeImage-1][0]}else{if((t.imageArray.length-1)>t.activeImage){preloadNextImage=new Image();preloadNextImage.src=t.imageArray[t.activeImage+1][0]}if(t.activeImage>0){preloadPrevImage=new Image();preloadPrevImage.src=t.imageArray[t.activeImage-1][0]}}}function c(){a("#numberDisplay").html("");a("#caption").html("").hide();if(t.imageArray[t.activeImage][1]){a("#caption").html(t.imageArray[t.activeImage][1]).show()}var B="";var A="";var C=(t.imageArray.length>1)?t.strings.image+(t.activeImage+1)+t.strings.of+t.imageArray.length:"";var z=(t.displayDownloadLink)?'<a href="'+t.imageArray[t.activeImage][0]+'" id="downloadLink" target="'+t.linkTarget+'">'+t.strings.download+"</a>":"";var y="";if(t.imageArray.length>1&&!t.disableNavbarLinks){if((t.activeImage)>0||t.loopImages){A='<a title="'+t.strings.prevLinkTitle+'" href="#" id="prevLinkText">'+t.strings.prevLinkText+"</a>"}if(((t.activeImage+1)<t.imageArray.length)||t.loopImages){y+='<a title="'+t.strings.nextLinkTitle+'" href="#" id="nextLinkText">'+t.strings.nextLinkText+"</a>"}}B=A+B+C+z+y;if(B!=""){a("#numberDisplay").html(B).show()}}function r(){if(t.imageArray.length>1){a("#hoverNav").show();if(t.loopImages){a("#prevLink,#prevLinkText").show().click(function(){v((t.activeImage==0)?(t.imageArray.length-1):t.activeImage-1);return false});a("#nextLink,#nextLinkText").show().click(function(){v((t.activeImage==(t.imageArray.length-1))?0:t.activeImage+1);return false})}else{if(t.activeImage!=0){a("#prevLink,#prevLinkText").show().click(function(){v(t.activeImage-1);return false})}if(t.activeImage!=(t.imageArray.length-1)){a("#nextLink,#nextLinkText").show().click(function(){v(t.activeImage+1);return false})}}b()}}function h(){q();a("#lightbox").hide();a("#overlay").fadeOut();a("select, object, embed").show()}function s(B){var C=B.data.opts;var y=B.keyCode;var z=27;var A=String.fromCharCode(y).toLowerCase();if((A=="x")||(A=="o")||(A=="c")||(y==z)){h()}else{if((A=="p")||(y==37)){if(C.loopImages){q();v((C.activeImage==0)?(C.imageArray.length-1):C.activeImage-1)}else{if(C.activeImage!=0){q();v(C.activeImage-1)}}}else{if((A=="n")||(y==39)){if(t.loopImages){q();v((C.activeImage==(C.imageArray.length-1))?0:C.activeImage+1)}else{if(C.activeImage!=(C.imageArray.length-1)){q();v(C.activeImage+1)}}}}}return false}function b(){a(document).bind("keydown",{opts:t},s)}function q(){a(document).unbind("keydown")}};a.fn.lightbox.parseJsonData=function(c){var b=[];a.each(c,function(){b.push(new Array(this.url,this.title))});return b};a.fn.lightbox.defaults={adminBarHeight:28,overlayOpacity:0.8,borderSize:10,imageArray:new Array,activeImage:null,inprogress:false,widthCurrent:250,heightCurrent:250,xScale:1,yScale:1,displayTitle:true,disableNavbarLinks:true,loopImages:true,imageClickClose:true,jsonData:null,jsonDataParser:null,followScroll:false,isIE8:false};a(document).ready(function(d){var b=(typeof JQLBSettings=="object");if(b&&JQLBSettings.resizeSpeed){JQLBSettings.resizeSpeed=parseInt(JQLBSettings.resizeSpeed)}if(b&&JQLBSettings.marginSize){JQLBSettings.marginSize=parseInt(JQLBSettings.marginSize)}var c={help:" Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close.",prevLinkTitle:"previous image",nextLinkTitle:"next image",prevLinkText:"&laquo; Previous",nextLinkText:"Next &raquo;",closeTitle:"close image gallery",image:"Image ",of:" of ",download:"Download"};d('a[rel^="lightbox"]').lightbox({adminBarHeight:d("#wpadminbar").height()||0,linkTarget:(b&&JQLBSettings.linkTarget.length)?JQLBSettings.linkTarget:"_self",displayHelp:(b&&JQLBSettings.help.length)?true:false,marginSize:(b&&JQLBSettings.marginSize)?JQLBSettings.marginSize:0,fitToScreen:(b&&JQLBSettings.fitToScreen=="1")?true:false,resizeSpeed:(b&&JQLBSettings.resizeSpeed>=0)?JQLBSettings.resizeSpeed:400,displayDownloadLink:(b&&JQLBSettings.displayDownloadLink=="0")?false:true,navbarOnTop:(b&&JQLBSettings.navbarOnTop=="0")?false:true,strings:(b&&typeof JQLBSettings.help=="string")?JQLBSettings:c})})})(jQuery);
languages/jqlb-pl_PL.mo CHANGED
Binary file
languages/jqlb-pl_PL.po CHANGED
@@ -1,80 +1,132 @@
1
- # Last-Translator: Mariusz Fik <fisiu@opensuse.org>, 2011.
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: WP JQuery Lightbox\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2011-02-20 15:12+0100\n"
7
- "PO-Revision-Date: 2011-05-12 01:44+0200\n"
8
- "Last-Translator: Mariusz Fik <fisiu@opensuse.org>\n"
9
- "Language-Team: opensuse\n"
10
- "Language: pl\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
- "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
15
- "|| n%100>=20) ? 1 : 2);\n"
16
- "X-Generator: Virtaal 0.6.1\n"
17
- "jquery-lightbox\n"
 
 
18
 
19
- #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:44
20
  msgid "Settings"
21
  msgstr "Ustawienia"
22
 
23
- #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:80
24
- #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:81
25
  msgid "previous image"
26
  msgstr "poprzedni obraz"
27
 
28
- #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:80
29
- #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:82
30
  msgid "next image"
31
  msgstr "następny obraz"
32
 
33
- #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:80
34
- #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:85
35
- msgid "close image gallery"
36
- msgstr "zamknij galerię"
37
-
38
- #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:83
39
  msgid "&laquo; Previous"
40
  msgstr "&laquo; Poprzedni"
41
 
42
- #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:84
43
  msgid "Next &raquo;"
44
  msgstr "Następny &raquo;"
45
 
46
- #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:86
 
 
 
 
47
  msgid "Image "
48
  msgstr "Obraz "
49
 
50
- #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:87
51
  msgid " of "
52
- msgstr " z "
53
 
54
- #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:107
 
 
 
 
55
  msgid "Cheatin&#8217; uh?"
56
  msgstr "Oszukujesz?"
57
 
58
- #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:117
 
 
 
 
59
  msgid "Auto-lightbox image links"
60
  msgstr "Aktywuj automatycznie lightbox dla łącz z obrazami"
61
 
62
- #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:121
63
- msgid "Let the plugin add necessary html to image links"
64
- msgstr "Pozwól wtyczce dodać niezbędny kod html do łącz z obrazami"
65
 
66
- #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:125
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  msgid "Shrink large images to fit smaller screens"
68
  msgstr "Przytnij duże obrazy dla mniejszych ekranów"
69
 
70
- #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:129
71
- msgid "Note: <u>Excessively large images</u> waste bandwidth!"
72
- msgstr "Uwaga: <u>Nadmiernie duże obrazy</u> marnują transfer!"
 
 
 
 
73
 
74
- #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:133
75
- msgid "Animation speed (in milliseconds)"
76
  msgstr "Szybkość animacji (w milisekundach)"
77
 
78
- #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:140
 
 
 
 
 
 
 
 
79
  msgid "Save Changes"
80
- msgstr "Zapisz zmiany"
 
 
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP JQuery Lightbox\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-12-30 10:38+0100\n"
6
+ "PO-Revision-Date: 2011-12-30 10:39+0100\n"
7
+ "Last-Translator: Jacek <mechlab@gmail.com>\n"
8
+ "Language-Team: jacek <mechlab@gmail.com>\n"
 
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e;_c;__ngettext:1,2\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-Language: Polish\n"
15
+ "X-Poedit-Country: POLAND\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-SearchPath-0: ..\n"
18
 
19
+ #: ../wp-jquery-lightbox.php:38
20
  msgid "Settings"
21
  msgstr "Ustawienia"
22
 
23
+ #: ../wp-jquery-lightbox.php:108
 
24
  msgid "previous image"
25
  msgstr "poprzedni obraz"
26
 
27
+ #: ../wp-jquery-lightbox.php:109
 
28
  msgid "next image"
29
  msgstr "następny obraz"
30
 
31
+ #: ../wp-jquery-lightbox.php:110
 
 
 
 
 
32
  msgid "&laquo; Previous"
33
  msgstr "&laquo; Poprzedni"
34
 
35
+ #: ../wp-jquery-lightbox.php:111
36
  msgid "Next &raquo;"
37
  msgstr "Następny &raquo;"
38
 
39
+ #: ../wp-jquery-lightbox.php:112
40
+ msgid "close image gallery"
41
+ msgstr "zamknij galerię"
42
+
43
+ #: ../wp-jquery-lightbox.php:113
44
  msgid "Image "
45
  msgstr "Obraz "
46
 
47
+ #: ../wp-jquery-lightbox.php:114
48
  msgid " of "
49
+ msgstr "z"
50
 
51
+ #: ../wp-jquery-lightbox.php:115
52
+ msgid "Download"
53
+ msgstr "Pobierz"
54
+
55
+ #: ../wp-jquery-lightbox.php:161
56
  msgid "Cheatin&#8217; uh?"
57
  msgstr "Oszukujesz?"
58
 
59
+ #: ../wp-jquery-lightbox.php:176
60
+ msgid "Let the plugin add necessary html to image links"
61
+ msgstr "Pozwól wtyczce dodać niezbędny kod html do łącz z obrazami"
62
+
63
+ #: ../wp-jquery-lightbox.php:176
64
  msgid "Auto-lightbox image links"
65
  msgstr "Aktywuj automatycznie lightbox dla łącz z obrazami"
66
 
67
+ #: ../wp-jquery-lightbox.php:183
68
+ msgid "Note: this will disable the nofollow-attribute of comment links, that otherwise interfere with the lightbox."
69
+ msgstr "Uwaga: to wyłączy atrybut nofollow z linków do komentarzy, które inaczej zaburzyłyby działanie lightbox"
70
 
71
+ #: ../wp-jquery-lightbox.php:183
72
+ msgid "Enable lightbox in comments (disables <a href=\"http://codex.wordpress.org/Nofollow\">the nofollow attribute!</a>)"
73
+ msgstr "Włącz lightbox w komentarzach (wyłącza atrybut <a href=\"http://codex.wordpress.org/Nofollow\">nofollow!</a>)"
74
+
75
+ #: ../wp-jquery-lightbox.php:190
76
+ msgid "Show download link"
77
+ msgstr "Pokaż link do pobierania"
78
+
79
+ #: ../wp-jquery-lightbox.php:194
80
+ msgid ""
81
+ "_blank: open the image in a new window or tab\n"
82
+ "_self: open the image in the same frame as it was clicked (default)\n"
83
+ "_parent: open the image in the parent frameset\n"
84
+ "_top: open the image in the full body of the window"
85
+ msgstr ""
86
+ "_blank:otwiera obraz w nowym oknie lub karcie\n"
87
+ "_self: otwiera obraz w tym samym oknie lub karcie (domyślnie)\n"
88
+ "_parent: otwiera obraz w oknie lub karcie nadrzędnym\n"
89
+ "_top: otwiera obraz w głównym oknie"
90
+
91
+ #: ../wp-jquery-lightbox.php:197
92
+ msgid "Target for download link:"
93
+ msgstr "Cel linku pobierania:"
94
+
95
+ #: ../wp-jquery-lightbox.php:211
96
+ msgid "Show image info on top"
97
+ msgstr "Pokaż informacje na górze"
98
+
99
+ #: ../wp-jquery-lightbox.php:219
100
  msgid "Shrink large images to fit smaller screens"
101
  msgstr "Przytnij duże obrazy dla mniejszych ekranów"
102
 
103
+ #: ../wp-jquery-lightbox.php:224
104
+ msgid "Keep a distance between the image and the screen edges."
105
+ msgstr "Margines pomiędzy obrazem a krawędziami ekranu"
106
+
107
+ #: ../wp-jquery-lightbox.php:224
108
+ msgid "Minimum margin to screen edge (default: 0)"
109
+ msgstr "Minimalny margines od krawędzi ekranu (domyślnie: 0)"
110
 
111
+ #: ../wp-jquery-lightbox.php:231
112
+ msgid "Animation duration (in milliseconds) "
113
  msgstr "Szybkość animacji (w milisekundach)"
114
 
115
+ #: ../wp-jquery-lightbox.php:237
116
+ msgid "Help text (default: none) "
117
+ msgstr "Tekst pomocy (domyślnie: brak)"
118
+
119
+ #: ../wp-jquery-lightbox.php:241
120
+ msgid "Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close."
121
+ msgstr "Przeglądaj obrazki przy pomocy klawiatury: strzałki lub P(poprzedni) / N(następny) oraz X/C/Esc żeby zamknąć."
122
+
123
+ #: ../wp-jquery-lightbox.php:243
124
  msgid "Save Changes"
125
+ msgstr "Zapisz zmiany"
126
+
127
+ #~ msgid ""
128
+ #~ " \\u2190 / P - previous image\\u00a0\\u00a0\\u00a0\\u00a0\\u2192 / N - "
129
+ #~ "next image\\u00a0\\u00a0\\u00a0\\u00a0ESC / X - close image gallery"
130
+ #~ msgstr ""
131
+ #~ " \\u2190 / P - Image précédente\\u00a0\\u00a0\\u00a0\\u00a0\\u2192 / N - "
132
+ #~ "Image suivante\\u00a0\\u00a0\\u00a0\\u00a0ESC / X - fermer la galerie "
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: ulfben
3
  Donate link: http://amzn.com/w/2QB6SQ5XX2U0N
4
  Tags: lightbox, jquery, nodal, image, display, ulfben
5
- Requires at least: 3.0
6
- Tested up to: 3.3
7
- Stable tag: 1.3.4
8
 
9
  A drop-in replacement for Lightbox 2 and similar plugins, shedding the bulk of Prototype and Scriptaculous. Improved for mobile devices.
10
 
@@ -28,6 +28,9 @@ If you value [my plugins](http://profiles.wordpress.org/users/ulfben/), please h
28
 
29
  *[//Ulf Benjaminsson](http://profiles.wordpress.org/users/ulfben/)*
30
 
 
 
 
31
  = 1.3.4 (2011-12-29) =
32
  * Maybe fix for [mixed HTTP/HTTPS sites](http://wordpress.org/support/topic/mixed-http-and-https-installation-problems)
33
  * [Support for query params in image links](http://wordpress.org/support/topic/automatic-lightbox-functionarity-failes-to-work-with-image-links?replies=2#post-2302997)
@@ -101,6 +104,8 @@ If you value [my plugins](http://profiles.wordpress.org/users/ulfben/), please h
101
  * [More info about this issue](http://wordpress.org/support/topic/122-worked-13-does-not-work-for-me?replies=19)
102
 
103
  == Changelog ==
 
 
104
 
105
  = 1.3.4 (2011-12-29) =
106
  * Maybe fix for [mixed HTTP/HTTPS sites](http://wordpress.org/support/topic/mixed-http-and-https-installation-problems)
@@ -161,6 +166,8 @@ If you value [my plugins](http://profiles.wordpress.org/users/ulfben/), please h
161
  * Release.
162
 
163
  == Upgrade Notice ==
 
 
164
 
165
  = 1.3.4 =
166
  Lots of fixes, translations and support for the Admin Bar and Twentyeleven theme.
2
  Contributors: ulfben
3
  Donate link: http://amzn.com/w/2QB6SQ5XX2U0N
4
  Tags: lightbox, jquery, nodal, image, display, ulfben
5
+ Requires at least: 3.3
6
+ Tested up to: 3.3.1
7
+ Stable tag: 1.3.4.1
8
 
9
  A drop-in replacement for Lightbox 2 and similar plugins, shedding the bulk of Prototype and Scriptaculous. Improved for mobile devices.
10
 
28
 
29
  *[//Ulf Benjaminsson](http://profiles.wordpress.org/users/ulfben/)*
30
 
31
+ = 1.3.4.1 (2011-01-31) =
32
+ * Updated deprecated jQuery calls (thanks; David Naber)
33
+
34
  = 1.3.4 (2011-12-29) =
35
  * Maybe fix for [mixed HTTP/HTTPS sites](http://wordpress.org/support/topic/mixed-http-and-https-installation-problems)
36
  * [Support for query params in image links](http://wordpress.org/support/topic/automatic-lightbox-functionarity-failes-to-work-with-image-links?replies=2#post-2302997)
104
  * [More info about this issue](http://wordpress.org/support/topic/122-worked-13-does-not-work-for-me?replies=19)
105
 
106
  == Changelog ==
107
+ = 1.3.4.1 (2011-01-31) =
108
+ * Updated deprecated jQuery calls (thanks; David Naber)
109
 
110
  = 1.3.4 (2011-12-29) =
111
  * Maybe fix for [mixed HTTP/HTTPS sites](http://wordpress.org/support/topic/mixed-http-and-https-installation-problems)
166
  * Release.
167
 
168
  == Upgrade Notice ==
169
+ = 1.3.4.1 (2011-01-31) =
170
+ Updated deprecated jQuery calls (thanks; David Naber)
171
 
172
  = 1.3.4 =
173
  Lots of fixes, translations and support for the Admin Bar and Twentyeleven theme.
wp-jquery-lightbox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: wp-jquery-lightbox
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-jquery-lightbox/
5
  Description: A drop in replacement for LightBox-2 and similar plugins. Uses jQuery to save you from the JS-library mess in your header. :)
6
- Version: 1.3.4
7
  Author: Ulf Benjaminsson
8
  Author URI: http://www.ulfben.com
9
  */
@@ -92,7 +92,7 @@ function jqlb_css(){
92
  function jqlb_js() {
93
  if(is_admin() || is_feed()){return;}
94
  wp_enqueue_script('jquery', '', array(), false, true);
95
- wp_enqueue_script('wp-jquery-lightbox', plugins_url(JQLB_SCRIPT, __FILE__ ), Array('jquery'), '1.3.4', true);
96
  wp_localize_script('wp-jquery-lightbox', 'JQLBSettings', array(
97
  'fitToScreen' => get_option('jqlb_resize_on_demand'),
98
  'resizeSpeed' => get_option('jqlb_resize_speed'),
3
  Plugin Name: wp-jquery-lightbox
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-jquery-lightbox/
5
  Description: A drop in replacement for LightBox-2 and similar plugins. Uses jQuery to save you from the JS-library mess in your header. :)
6
+ Version: 1.3.4.1
7
  Author: Ulf Benjaminsson
8
  Author URI: http://www.ulfben.com
9
  */
92
  function jqlb_js() {
93
  if(is_admin() || is_feed()){return;}
94
  wp_enqueue_script('jquery', '', array(), false, true);
95
+ wp_enqueue_script('wp-jquery-lightbox', plugins_url(JQLB_SCRIPT, __FILE__ ), Array('jquery'), '1.3.4.1', true);
96
  wp_localize_script('wp-jquery-lightbox', 'JQLBSettings', array(
97
  'fitToScreen' => get_option('jqlb_resize_on_demand'),
98
  'resizeSpeed' => get_option('jqlb_resize_speed'),