WP jQuery Lightbox - Version 1.4.1

Version Description

Swipe gestures, slideshow, sets and lots of fixes. Check your config screen after update!

Download this release

Release Info

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

Code changes from version 1.4 to 1.4.1

jquery.lightbox.js CHANGED
@@ -132,7 +132,7 @@
132
  return new Array(xScroll, yScroll);
133
  };
134
  function start(imageLink) {
135
- $("select, embed, object").hide();
136
  var arrayPageSize = getPageSize();
137
  var arrayPagePos = getPageScroll();
138
  var newTop = 0;
@@ -344,7 +344,7 @@
344
  $('#numberDisplay').html(pos).show();
345
  }
346
  if(opts.slidehowSpeed){
347
- $("#numberDisplay").off('click').click(function() {
348
  if(opts.auto != -1){
349
  $(this).children("a").text(txt.play);
350
  clearInterval(opts.auto);
@@ -383,7 +383,7 @@
383
  opts.auto = -1;
384
  $('#lightbox').hide();
385
  $('#overlay').fadeOut();
386
- $('select, object, embed').show();
387
  };
388
  function keyboardAction(e) {
389
  var o = e.data.opts;
132
  return new Array(xScroll, yScroll);
133
  };
134
  function start(imageLink) {
135
+ // $("select, embed, object").hide();
136
  var arrayPageSize = getPageSize();
137
  var arrayPagePos = getPageScroll();
138
  var newTop = 0;
344
  $('#numberDisplay').html(pos).show();
345
  }
346
  if(opts.slidehowSpeed){
347
+ $("#numberDisplay").unbind('click').click(function() {
348
  if(opts.auto != -1){
349
  $(this).children("a").text(txt.play);
350
  clearInterval(opts.auto);
383
  opts.auto = -1;
384
  $('#lightbox').hide();
385
  $('#overlay').fadeOut();
386
+ // $('select, object, embed').show();
387
  };
388
  function keyboardAction(e) {
389
  var o = e.data.opts;
jquery.lightbox.min.js CHANGED
@@ -1 +1 @@
1
- (function(a){a.fn.lightbox=function(k){var u=a.extend({},a.fn.lightbox.defaults,k);if(a("#overlay").is(":visible")){a(window).trigger("resize")}function p(){e();o(this);return false}if(parseFloat(a().jquery)>=1.7){return a(this).on("click",p)}else{return a(this).live("click",p)}function e(){a(window).bind("orientationchange",q);a(window).bind("resize",q);a("#overlay").remove();a("#lightbox").remove();u.isIE8=v();u.inprogress=false;u.auto=-1;var A=u.strings;var z='<div id="outerImageContainer"><div id="imageContainer"><iframe id="lightboxIframe" /><img id="lightboxImage"><div id="hoverNav"><a href="javascript://" title="'+A.prevLinkTitle+'" id="prevLink"></a><a href="javascript://" id="nextLink" title="'+A.nextLinkTitle+'"></a></div><div id="jqlb_loading"><a href="javascript://" id="loadingLink"><div id="jqlb_spinner"></div></a></div></div></div>';var C='<div id="imageDataContainer" class="clearfix"><div id="imageData"><div id="imageDetails"><span id="caption"></span><p id="controls"><span id="numberDisplay"></span> <span id="downloadLink"><a href="" target="'+u.linkTarget+'">'+A.download+'</a></span></p></div><div id="bottomNav">';if(u.displayHelp){C+='<span id="helpDisplay">'+A.help+"</span>"}C+='<a href="javascript://" id="bottomNavClose" title="'+A.closeTitle+'"><div id="jqlb_closelabel"></div></a></div></div></div>';var B;if(u.navbarOnTop){B='<div id="overlay"></div><div id="lightbox">'+C+z+"</div>";a("body").append(B);a("#imageDataContainer").addClass("ontop")}else{B='<div id="overlay"></div><div id="lightbox">'+z+C+"</div>";a("body").append(B)}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(u.widthCurrent).height(u.heightCurrent);a("#imageDataContainer").width(u.widthCurrent);if(!u.imageClickClose){a("#lightboxImage").click(function(){return false});a("#hoverNav").click(function(){return false})}}function q(z){if(u.resizeTimeout){clearTimeout(u.resizeTimeout);u.resizeTimeout=false}u.resizeTimeout=setTimeout(function(){y()},50)}function x(){var A=a(document).height();if(u.isIE8&&A>4096){A=4096}var z=a(window).height()-u.adminBarHeight;return new Array(a(document).width(),A,a(window).width(),z,a(document).height())}function v(){var A=false;if(document.createElement){var z=document.createElement("div");if(z&&z.querySelectorAll){z.innerHTML='<object><param name=""></object>';A=z.querySelectorAll("param").length!=1}z=null}return A}function g(){var A=0;var z=0;if(self.pageYOffset){z=self.pageYOffset;A=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){z=document.documentElement.scrollTop;A=document.documentElement.scrollLeft}else{if(document.body){z=document.body.scrollTop;A=document.body.scrollLeft}}}if(u.adminBarHeight&&parseInt(a("#wpadminbar").css("top"),10)===0){z+=u.adminBarHeight}return new Array(A,z)}function o(E){a("select, embed, object").hide();var D=x();var A=g();var B=0;a("#overlay").hide().css({width:D[0]+"px",height:D[1]+"px",opacity:u.overlayOpacity}).fadeIn(400);if(u.isIE8&&D[1]==4096){if(A[1]>=1000){B=A[1]-1000;if((D[4]-(A[1]+3096))<0){B-=(A[1]+3096)-D[4]}a("#overlay").css({top:B+"px"})}}var C=0;var z=[];u.downloads={};a("a").each(function(){if(!this.href||(this.rel!=E.rel)){return}var J="";var G="";var L="";var F=a(this);var I=F.children("img:first-child");if(this.title){J=this.title}else{if(I.attr("title")){J=I.attr("title")}else{if(I.attr("alt")){J=I.attr("alt")}}}if(F.parent().next(".gallery-caption").html()){var K=F.parent().next(".gallery-caption");G=K.html();L=K.text()}else{if(F.next(".wp-caption-text").html()){G=F.next(".wp-caption-text").html();L=F.next(".wp-caption-text").text()}}J=a.trim(J);L=a.trim(L);if(J.toLowerCase()==L.toLowerCase()){J=G;G=""}var H="";if(J!=""){H='<span id="titleText">'+J+"</span>"}if(G!=""){if(J!=""){H+="<br />"}H+='<span id="captionText">'+G+"</span>"}if(u.displayDownloadLink||F.attr("data-download")){u.downloads[z.length]=F.attr("data-download")}z.push(new Array(this.href,u.displayTitle?H:"",z.length))});if(z.length>1){for(i=0;i<z.length;i++){for(j=z.length-1;j>i;j--){if(z[i][0]==z[j][0]){z.splice(j,1)}}}while(z[C][0]!=E.href){C++}}u.imageArray=z;m(A[1],A[0]).show();w(C)}function m(z,A){if(u.resizeSpeed>0){return a("#lightbox").animate({top:z+"px",left:A+"px"},250,"linear")}return a("#lightbox").css({top:z+"px",left:A+"px"})}function w(z){if(u.inprogress==false){u.inprogress=true;u.activeImage=z;a("#jqlb_loading").show();a("#lightboxImage").hide();a("#hoverNav").hide();a("#prevLink").hide();a("#nextLink").hide();l()}}function l(){u.imgPreloader=new Image();u.imgPreloader.onload=function(){a("#lightboxImage").attr("src",u.imageArray[u.activeImage][0]);y();f()};u.imgPreloader.src=u.imageArray[u.activeImage][0]}function y(){if(!u.imgPreloader){return}var C=u.imgPreloader.width;var z=u.imgPreloader.height;var E=x();var K=(E[2]<E[0])?E[0]:E[2];a("#overlay").css({width:K+"px",height:E[1]+"px"});var I=(E[3])-(a("#imageDataContainer").height()+(2*u.borderSize));var J=(E[2])-(2*u.borderSize);if(u.fitToScreen){var A=I-u.marginSize;var L=J-u.marginSize;var F=1;if(z>A){F=A/z}C=C*F;z=z*F;F=1;if(C>L){F=L/C}C=Math.round(C*F);z=Math.round(z*F)}var D=g();var B=D[1]+(I*0.5);var G=B-z*0.5;var H=D[0];a("#lightboxImage").width(C).height(z);n(C,z,G,H)}function n(C,A,E,D){u.widthCurrent=a("#outerImageContainer").outerWidth();u.heightCurrent=a("#outerImageContainer").outerHeight();var z=Math.max(350,C+(u.borderSize*2));var B=(A+(u.borderSize*2));u.xScale=(z/u.widthCurrent)*100;u.yScale=(B/u.heightCurrent)*100;m(E,D);c();a("#imageDataContainer").animate({width:z},u.resizeSpeed,"linear");a("#outerImageContainer").animate({width:z,height:B},u.resizeSpeed,"linear",function(){d()});s();a("#prevLink,#nextLink").height(A)}function d(){a("#imageData").show();a("#caption").show();a("#jqlb_loading").hide();if(u.resizeSpeed>0){a("#lightboxImage").fadeIn("fast")}else{a("#lightboxImage").show()}u.inprogress=false}function f(){if(u.imageArray.length>1){preloadNextImage=new Image();preloadNextImage.src=u.imageArray[(u.activeImage==(u.imageArray.length-1))?0:u.activeImage+1][0];preloadPrevImage=new Image();preloadPrevImage.src=u.imageArray[(u.activeImage==0)?(u.imageArray.length-1):u.activeImage-1][0]}else{if((u.imageArray.length-1)>u.activeImage){preloadNextImage=new Image();preloadNextImage.src=u.imageArray[u.activeImage+1][0]}if(u.activeImage>0){preloadPrevImage=new Image();preloadPrevImage.src=u.imageArray[u.activeImage-1][0]}}}function c(){a("#numberDisplay").html("");a("#caption").html("").hide();var A=u.imageArray;var z=u.strings;var E=u.activeImage;var D=A[E][2];if(A[E][1]){a("#caption").html(A[E][1]).show()}var F=(A.length>1)?z.image+(E+1)+z.of+A.length:"";if(u.slidehowSpeed&&A.length>1){var B=(u.auto===-1)?z.play:z.pause;F+=' <a id="playpause" href="#">'+B+"</a>"}if(u.displayDownloadLink||u.downloads[D]){var C=u.downloads[D]?u.downloads[D]:A[E][0];a("#downloadLink").show().children().attr("href",C)}else{a("#downloadLink").hide()}if(F!=""){a("#numberDisplay").html(F).show()}if(u.slidehowSpeed){a("#numberDisplay").off("click").click(function(){if(u.auto!=-1){a(this).children("a").text(z.play);clearInterval(u.auto);u.auto=-1}else{a(this).children("a").text(z.pause);u.auto=setInterval(function(){w((u.activeImage==(u.imageArray.length-1))?0:u.activeImage+1)},u.slidehowSpeed)}return false})}}function s(){if(u.imageArray.length>1){a("#hoverNav").show();a("#prevLink").show().click(function(){w((u.activeImage==0)?(u.imageArray.length-1):u.activeImage-1);return false});a("#nextLink").show().click(function(){w((u.activeImage==(u.imageArray.length-1))?0:u.activeImage+1);return false});if(a.fn.touchwipe){a("#imageContainer").touchwipe({wipeLeft:function(){w((u.activeImage==0)?(u.imageArray.length-1):u.activeImage-1)},wipeRight:function(){w((u.activeImage==(u.imageArray.length-1))?0:u.activeImage+1)},min_move_x:20,preventDefaultEvents:true})}b()}}function h(){r();clearInterval(u.auto);u.auto=-1;a("#lightbox").hide();a("#overlay").fadeOut();a("select, object, embed").show()}function t(C){var D=C.data.opts;var z=C.keyCode;var A=27;var B=String.fromCharCode(z).toLowerCase();if((B=="x")||(B=="o")||(B=="c")||(z==A)){h()}else{if((B=="p")||(z==37)){r();w((D.activeImage==0)?(D.imageArray.length-1):D.activeImage-1)}else{if((B=="n")||(z==39)){r();w((D.activeImage==(D.imageArray.length-1))?0:D.activeImage+1)}}}return false}function b(){a(document).bind("keydown",{opts:u},t)}function r(){a(document).unbind("keydown")}};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,imageClickClose:true,followScroll:false,isIE8:false};a(document).ready(doLightBox)})(jQuery);function doLightBox(){var a=(typeof JQLBSettings=="object");var d,b,c=0;if(a&&JQLBSettings.slideshowSpeed){d=parseInt(JQLBSettings.slideshowSpeed)}if(a&&JQLBSettings.resizeSpeed){b=parseInt(JQLBSettings.resizeSpeed)}if(a&&JQLBSettings.marginSize){c=parseInt(JQLBSettings.marginSize)}var e={help:" Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close.",prevLinkTitle:"previous image",nextLinkTitle:"next image",closeTitle:"close image gallery",image:"Image ",of:" of ",download:"Download",pause:"(pause slideshow)",play:"(play slideshow)"};jQuery('a[rel^="lightbox"]').lightbox({adminBarHeight:jQuery("#wpadminbar").height()||0,linkTarget:(a&&JQLBSettings.linkTarget.length)?JQLBSettings.linkTarget:"_self",displayHelp:(a&&JQLBSettings.help.length)?true:false,marginSize:(a&&c)?c:0,fitToScreen:(a&&JQLBSettings.fitToScreen=="1")?true:false,resizeSpeed:(a&&b>=0)?b:400,slidehowSpeed:(a&&d>=0)?d:4000,displayDownloadLink:(a&&JQLBSettings.displayDownloadLink=="0")?false:true,navbarOnTop:(a&&JQLBSettings.navbarOnTop=="0")?false:true,strings:(a&&typeof JQLBSettings.help=="string")?JQLBSettings:e})};
1
+ (function(a){a.fn.lightbox=function(k){var u=a.extend({},a.fn.lightbox.defaults,k);if(a("#overlay").is(":visible")){a(window).trigger("resize")}function p(){e();o(this);return false}if(parseFloat(a().jquery)>=1.7){return a(this).on("click",p)}else{return a(this).live("click",p)}function e(){a(window).bind("orientationchange",q);a(window).bind("resize",q);a("#overlay").remove();a("#lightbox").remove();u.isIE8=v();u.inprogress=false;u.auto=-1;var A=u.strings;var z='<div id="outerImageContainer"><div id="imageContainer"><iframe id="lightboxIframe" /><img id="lightboxImage"><div id="hoverNav"><a href="javascript://" title="'+A.prevLinkTitle+'" id="prevLink"></a><a href="javascript://" id="nextLink" title="'+A.nextLinkTitle+'"></a></div><div id="jqlb_loading"><a href="javascript://" id="loadingLink"><div id="jqlb_spinner"></div></a></div></div></div>';var C='<div id="imageDataContainer" class="clearfix"><div id="imageData"><div id="imageDetails"><span id="caption"></span><p id="controls"><span id="numberDisplay"></span> <span id="downloadLink"><a href="" target="'+u.linkTarget+'">'+A.download+'</a></span></p></div><div id="bottomNav">';if(u.displayHelp){C+='<span id="helpDisplay">'+A.help+"</span>"}C+='<a href="javascript://" id="bottomNavClose" title="'+A.closeTitle+'"><div id="jqlb_closelabel"></div></a></div></div></div>';var B;if(u.navbarOnTop){B='<div id="overlay"></div><div id="lightbox">'+C+z+"</div>";a("body").append(B);a("#imageDataContainer").addClass("ontop")}else{B='<div id="overlay"></div><div id="lightbox">'+z+C+"</div>";a("body").append(B)}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(u.widthCurrent).height(u.heightCurrent);a("#imageDataContainer").width(u.widthCurrent);if(!u.imageClickClose){a("#lightboxImage").click(function(){return false});a("#hoverNav").click(function(){return false})}}function q(z){if(u.resizeTimeout){clearTimeout(u.resizeTimeout);u.resizeTimeout=false}u.resizeTimeout=setTimeout(function(){y()},50)}function x(){var A=a(document).height();if(u.isIE8&&A>4096){A=4096}var z=a(window).height()-u.adminBarHeight;return new Array(a(document).width(),A,a(window).width(),z,a(document).height())}function v(){var A=false;if(document.createElement){var z=document.createElement("div");if(z&&z.querySelectorAll){z.innerHTML='<object><param name=""></object>';A=z.querySelectorAll("param").length!=1}z=null}return A}function g(){var A=0;var z=0;if(self.pageYOffset){z=self.pageYOffset;A=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){z=document.documentElement.scrollTop;A=document.documentElement.scrollLeft}else{if(document.body){z=document.body.scrollTop;A=document.body.scrollLeft}}}if(u.adminBarHeight&&parseInt(a("#wpadminbar").css("top"),10)===0){z+=u.adminBarHeight}return new Array(A,z)}function o(E){var D=x();var A=g();var B=0;a("#overlay").hide().css({width:D[0]+"px",height:D[1]+"px",opacity:u.overlayOpacity}).fadeIn(400);if(u.isIE8&&D[1]==4096){if(A[1]>=1000){B=A[1]-1000;if((D[4]-(A[1]+3096))<0){B-=(A[1]+3096)-D[4]}a("#overlay").css({top:B+"px"})}}var C=0;var z=[];u.downloads={};a("a").each(function(){if(!this.href||(this.rel!=E.rel)){return}var J="";var G="";var L="";var F=a(this);var I=F.children("img:first-child");if(this.title){J=this.title}else{if(I.attr("title")){J=I.attr("title")}else{if(I.attr("alt")){J=I.attr("alt")}}}if(F.parent().next(".gallery-caption").html()){var K=F.parent().next(".gallery-caption");G=K.html();L=K.text()}else{if(F.next(".wp-caption-text").html()){G=F.next(".wp-caption-text").html();L=F.next(".wp-caption-text").text()}}J=a.trim(J);L=a.trim(L);if(J.toLowerCase()==L.toLowerCase()){J=G;G=""}var H="";if(J!=""){H='<span id="titleText">'+J+"</span>"}if(G!=""){if(J!=""){H+="<br />"}H+='<span id="captionText">'+G+"</span>"}if(u.displayDownloadLink||F.attr("data-download")){u.downloads[z.length]=F.attr("data-download")}z.push(new Array(this.href,u.displayTitle?H:"",z.length))});if(z.length>1){for(i=0;i<z.length;i++){for(j=z.length-1;j>i;j--){if(z[i][0]==z[j][0]){z.splice(j,1)}}}while(z[C][0]!=E.href){C++}}u.imageArray=z;m(A[1],A[0]).show();w(C)}function m(z,A){if(u.resizeSpeed>0){return a("#lightbox").animate({top:z+"px",left:A+"px"},250,"linear")}return a("#lightbox").css({top:z+"px",left:A+"px"})}function w(z){if(u.inprogress==false){u.inprogress=true;u.activeImage=z;a("#jqlb_loading").show();a("#lightboxImage").hide();a("#hoverNav").hide();a("#prevLink").hide();a("#nextLink").hide();l()}}function l(){u.imgPreloader=new Image();u.imgPreloader.onload=function(){a("#lightboxImage").attr("src",u.imageArray[u.activeImage][0]);y();f()};u.imgPreloader.src=u.imageArray[u.activeImage][0]}function y(){if(!u.imgPreloader){return}var C=u.imgPreloader.width;var z=u.imgPreloader.height;var E=x();var K=(E[2]<E[0])?E[0]:E[2];a("#overlay").css({width:K+"px",height:E[1]+"px"});var I=(E[3])-(a("#imageDataContainer").height()+(2*u.borderSize));var J=(E[2])-(2*u.borderSize);if(u.fitToScreen){var A=I-u.marginSize;var L=J-u.marginSize;var F=1;if(z>A){F=A/z}C=C*F;z=z*F;F=1;if(C>L){F=L/C}C=Math.round(C*F);z=Math.round(z*F)}var D=g();var B=D[1]+(I*0.5);var G=B-z*0.5;var H=D[0];a("#lightboxImage").width(C).height(z);n(C,z,G,H)}function n(C,A,E,D){u.widthCurrent=a("#outerImageContainer").outerWidth();u.heightCurrent=a("#outerImageContainer").outerHeight();var z=Math.max(350,C+(u.borderSize*2));var B=(A+(u.borderSize*2));u.xScale=(z/u.widthCurrent)*100;u.yScale=(B/u.heightCurrent)*100;m(E,D);c();a("#imageDataContainer").animate({width:z},u.resizeSpeed,"linear");a("#outerImageContainer").animate({width:z,height:B},u.resizeSpeed,"linear",function(){d()});s();a("#prevLink,#nextLink").height(A)}function d(){a("#imageData").show();a("#caption").show();a("#jqlb_loading").hide();if(u.resizeSpeed>0){a("#lightboxImage").fadeIn("fast")}else{a("#lightboxImage").show()}u.inprogress=false}function f(){if(u.imageArray.length>1){preloadNextImage=new Image();preloadNextImage.src=u.imageArray[(u.activeImage==(u.imageArray.length-1))?0:u.activeImage+1][0];preloadPrevImage=new Image();preloadPrevImage.src=u.imageArray[(u.activeImage==0)?(u.imageArray.length-1):u.activeImage-1][0]}else{if((u.imageArray.length-1)>u.activeImage){preloadNextImage=new Image();preloadNextImage.src=u.imageArray[u.activeImage+1][0]}if(u.activeImage>0){preloadPrevImage=new Image();preloadPrevImage.src=u.imageArray[u.activeImage-1][0]}}}function c(){a("#numberDisplay").html("");a("#caption").html("").hide();var A=u.imageArray;var z=u.strings;var E=u.activeImage;var D=A[E][2];if(A[E][1]){a("#caption").html(A[E][1]).show()}var F=(A.length>1)?z.image+(E+1)+z.of+A.length:"";if(u.slidehowSpeed&&A.length>1){var B=(u.auto===-1)?z.play:z.pause;F+=' <a id="playpause" href="#">'+B+"</a>"}if(u.displayDownloadLink||u.downloads[D]){var C=u.downloads[D]?u.downloads[D]:A[E][0];a("#downloadLink").show().children().attr("href",C)}else{a("#downloadLink").hide()}if(F!=""){a("#numberDisplay").html(F).show()}if(u.slidehowSpeed){a("#numberDisplay").unbind("click").click(function(){if(u.auto!=-1){a(this).children("a").text(z.play);clearInterval(u.auto);u.auto=-1}else{a(this).children("a").text(z.pause);u.auto=setInterval(function(){w((u.activeImage==(u.imageArray.length-1))?0:u.activeImage+1)},u.slidehowSpeed)}return false})}}function s(){if(u.imageArray.length>1){a("#hoverNav").show();a("#prevLink").show().click(function(){w((u.activeImage==0)?(u.imageArray.length-1):u.activeImage-1);return false});a("#nextLink").show().click(function(){w((u.activeImage==(u.imageArray.length-1))?0:u.activeImage+1);return false});if(a.fn.touchwipe){a("#imageContainer").touchwipe({wipeLeft:function(){w((u.activeImage==0)?(u.imageArray.length-1):u.activeImage-1)},wipeRight:function(){w((u.activeImage==(u.imageArray.length-1))?0:u.activeImage+1)},min_move_x:20,preventDefaultEvents:true})}b()}}function h(){r();clearInterval(u.auto);u.auto=-1;a("#lightbox").hide();a("#overlay").fadeOut()}function t(C){var D=C.data.opts;var z=C.keyCode;var A=27;var B=String.fromCharCode(z).toLowerCase();if((B=="x")||(B=="o")||(B=="c")||(z==A)){h()}else{if((B=="p")||(z==37)){r();w((D.activeImage==0)?(D.imageArray.length-1):D.activeImage-1)}else{if((B=="n")||(z==39)){r();w((D.activeImage==(D.imageArray.length-1))?0:D.activeImage+1)}}}return false}function b(){a(document).bind("keydown",{opts:u},t)}function r(){a(document).unbind("keydown")}};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,imageClickClose:true,followScroll:false,isIE8:false};a(document).ready(doLightBox)})(jQuery);function doLightBox(){var a=(typeof JQLBSettings=="object");var d,b,c=0;if(a&&JQLBSettings.slideshowSpeed){d=parseInt(JQLBSettings.slideshowSpeed)}if(a&&JQLBSettings.resizeSpeed){b=parseInt(JQLBSettings.resizeSpeed)}if(a&&JQLBSettings.marginSize){c=parseInt(JQLBSettings.marginSize)}var e={help:" Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close.",prevLinkTitle:"previous image",nextLinkTitle:"next image",closeTitle:"close image gallery",image:"Image ",of:" of ",download:"Download",pause:"(pause slideshow)",play:"(play slideshow)"};jQuery('a[rel^="lightbox"]').lightbox({adminBarHeight:jQuery("#wpadminbar").height()||0,linkTarget:(a&&JQLBSettings.linkTarget.length)?JQLBSettings.linkTarget:"_self",displayHelp:(a&&JQLBSettings.help.length)?true:false,marginSize:(a&&c)?c:0,fitToScreen:(a&&JQLBSettings.fitToScreen=="1")?true:false,resizeSpeed:(a&&b>=0)?b:400,slidehowSpeed:(a&&d>=0)?d:4000,displayDownloadLink:(a&&JQLBSettings.displayDownloadLink=="0")?false:true,navbarOnTop:(a&&JQLBSettings.navbarOnTop=="0")?false:true,strings:(a&&typeof JQLBSettings.help=="string")?JQLBSettings:e})};
languages/jqlb-nl_NL.mo ADDED
Binary file
languages/jqlb-nl_NL.po ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: wp-jquery-lightbox v1.3.4.2\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-02-04 15:30+0100\n"
6
+ "PO-Revision-Date: 2013-02-04 15:32+0100\n"
7
+ "Last-Translator: Carl Rozema <carl.rozema@axcint.nl>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
15
+ "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
16
+ "X-Textdomain-Support: yes\n"
17
+ "X-Generator: Poedit 1.5.4\n"
18
+ "X-Poedit-SearchPath-0: .\n"
19
+
20
+ # @ jqlb
21
+ #: wp-jquery-lightbox.php:42
22
+ msgid "Settings"
23
+ msgstr "Instellingen"
24
+
25
+ # @ jqlb
26
+ #: wp-jquery-lightbox.php:112
27
+ msgid "previous image"
28
+ msgstr "vorige afbeelding"
29
+
30
+ # @ jqlb
31
+ #: wp-jquery-lightbox.php:113
32
+ msgid "next image"
33
+ msgstr "volgende afbeelding"
34
+
35
+ # @ jqlb
36
+ #: wp-jquery-lightbox.php:114
37
+ msgid "close image gallery"
38
+ msgstr "gallerij sluiten"
39
+
40
+ # @ jqlb
41
+ #: wp-jquery-lightbox.php:115
42
+ msgid "Image "
43
+ msgstr "Afbeelding "
44
+
45
+ # @ jqlb
46
+ #: wp-jquery-lightbox.php:116
47
+ msgid " of "
48
+ msgstr " van "
49
+
50
+ # @ jqlb
51
+ #: wp-jquery-lightbox.php:117
52
+ msgid "Download"
53
+ msgstr "Download"
54
+
55
+ #: wp-jquery-lightbox.php:118
56
+ msgid "(pause slideshow)"
57
+ msgstr "(pauzeer diashow)"
58
+
59
+ #: wp-jquery-lightbox.php:119
60
+ msgid "(play slideshow)"
61
+ msgstr "(diashow)"
62
+
63
+ # @ jqlb
64
+ #: wp-jquery-lightbox.php:182
65
+ msgid "Cheatin&#8217; uh?"
66
+ msgstr "Valsspelen&#8217; hm?"
67
+
68
+ # @ jqlb
69
+ #: wp-jquery-lightbox.php:197
70
+ msgid "Let the plugin add necessary html to image links"
71
+ msgstr "Laat de plugin zelf benodigde HTML in afbeedlingslinks invoegen"
72
+
73
+ # @ jqlb
74
+ #: wp-jquery-lightbox.php:197
75
+ msgid "Auto-lightbox image links"
76
+ msgstr "Auto-Lightbox Afbeelding links"
77
+
78
+ # @ jqlb
79
+ #: wp-jquery-lightbox.php:204
80
+ msgid ""
81
+ "Note: this will disable the nofollow-attribute of comment links, that "
82
+ "otherwise interfere with the lightbox."
83
+ msgstr ""
84
+ "Let op: Dit zal het nofollow atribuut van reacties deactiveren, die anders "
85
+ "interfereren met de lightbox."
86
+
87
+ # @ jqlb
88
+ #: wp-jquery-lightbox.php:204
89
+ msgid ""
90
+ "Enable lightbox in comments (disables <a href=\"http://codex.wordpress.org/"
91
+ "Nofollow\">the nofollow attribute!</a>)"
92
+ msgstr ""
93
+ "Aktiveer lightbox in reacties (deactiveert <a href=\"http://codex.wordpress."
94
+ "org/Nofollow\">het nofollow attribuut!</a>)"
95
+
96
+ # @ jqlb
97
+ #: wp-jquery-lightbox.php:211
98
+ msgid "Show download link"
99
+ msgstr "Toon download link"
100
+
101
+ # @ jqlb
102
+ #: wp-jquery-lightbox.php:215
103
+ msgid ""
104
+ "_blank: open the image in a new window or tab\n"
105
+ "_self: open the image in the same frame as it was clicked (default)\n"
106
+ "_parent: open the image in the parent frameset\n"
107
+ "_top: open the image in the full body of the window"
108
+ msgstr ""
109
+ "_blank: open de afbeelding in een nieuw window of tab\n"
110
+ "_self: open de afbeelding in het zelfde window (standaard)\n"
111
+ "_parent: open de afbeelding in de parent frameset\n"
112
+ "_top: open de afbeelding in het volledige window"
113
+
114
+ # @ jqlb
115
+ #: wp-jquery-lightbox.php:218
116
+ msgid "Target for download link:"
117
+ msgstr "Download link doel:"
118
+
119
+ # @ jqlb
120
+ #: wp-jquery-lightbox.php:232
121
+ msgid "Show image info on top"
122
+ msgstr "Toon afbeelding info over de afbeelding"
123
+
124
+ # @ jqlb
125
+ #: wp-jquery-lightbox.php:240
126
+ msgid "Shrink large images to fit smaller screens"
127
+ msgstr "Maak grote afbeeldingen passend in kleinere schermen"
128
+
129
+ # @ jqlb
130
+ #: wp-jquery-lightbox.php:245
131
+ msgid "Keep a distance between the image and the screen edges."
132
+ msgstr "Hou een afstand tussen de afbeelding en de schermranden."
133
+
134
+ # @ jqlb
135
+ #: wp-jquery-lightbox.php:245
136
+ msgid "Minimum margin to screen edge (default: 0)"
137
+ msgstr "Minimum marge tot de schermrand (standaard: 0)"
138
+
139
+ # @ jqlb
140
+ #: wp-jquery-lightbox.php:252
141
+ msgid "Animation duration (in milliseconds) "
142
+ msgstr "Animatieduur (in milliseconden) "
143
+
144
+ #: wp-jquery-lightbox.php:258
145
+ msgid "Slideshow speed (in milliseconds). 0 to disable."
146
+ msgstr "Diashow snelheid (in milliseconden). 0 om te deactiveren"
147
+
148
+ # @ jqlb
149
+ #: wp-jquery-lightbox.php:264
150
+ msgid "Help text (default: none) "
151
+ msgstr "Help tekst (standaard: geen) "
152
+
153
+ # @ jqlb
154
+ #: wp-jquery-lightbox.php:268
155
+ msgid ""
156
+ "Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC "
157
+ "for close."
158
+ msgstr ""
159
+ "Wissel de afbeeldingen met je toetsenbord: Cursortoetsen of P(revious voor "
160
+ "vorige)/N(ext voor volgende) en X/C/Esc om te sluiten."
161
+
162
+ # @ jqlb
163
+ #: wp-jquery-lightbox.php:270
164
+ msgid "Save Changes"
165
+ msgstr "Wijzigingen opslaan"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://amzn.com/w/2QB6SQ5XX2U0N
4
  Tags: lightbox, jquery, nodal, image, display, ulfben
5
  Requires at least: 3.5.1
6
  Tested up to: 3.5.1
7
- Stable tag: 1.4
8
  License: GPLv2 or later
9
 
10
  A drop-in replacement for Lightbox 2 and similar plugins, shedding the bulk of Prototype and Scriptaculous. Improved for mobile devices.
@@ -30,16 +30,17 @@ If you value [my plugins](http://profiles.wordpress.org/users/ulfben/), please h
30
 
31
  *[//Ulf Benjaminsson](http://profiles.wordpress.org/users/ulfben/)*
32
 
33
- = 1.4 (2013-02-02) =
34
  * Added swipe gestures on touch devices
35
  * Added slideshow
36
  * Added support for multiple sets in one post (use: [`group`](http://wordpress.org/extend/plugins/wp-jquery-lightbox/installation/) with the gallery-shortcode)
37
  * Added support for arbitrary Download links via the [`data-download`-attribute](http://wordpress.org/extend/plugins/wp-jquery-lightbox/installation/)
38
  * Added support to pick text from the image ALT-attribute (if title is not available)
39
  * Added translations: Norwegian Bokm&aring;l (thanks [Ole Martin Kristiansen](http://hvorerole.com/)!)
40
- * Updated regexp to deal with urls like www.gif.org. (Thanks Yannick Berker!)
41
- * Replaced two CSS selector names to avoid collisions. (Hat tip; Pollmann Frederic)
42
- * Fix to support Infinite Scroll and similar
 
43
  * Fix leaky CSS on admin page
44
 
45
  = 1.3 (2011-05-01) =
@@ -127,16 +128,17 @@ Lastly:
127
  Still have problems? Post a link and describe what issue you're having, and tell us what of these steps you've already tried.
128
 
129
  == Changelog ==
130
- = 1.4 (2013-02-02) =
131
  * Added swipe gestures on touch devices
132
  * Added slideshow
133
  * Added support for multiple sets in one post (use: [`group`](http://wordpress.org/extend/plugins/wp-jquery-lightbox/installation/) with the gallery-shortcode)
134
  * Added support for arbitrary Download links via the [`data-download`-attribute](http://wordpress.org/extend/plugins/wp-jquery-lightbox/installation/)
135
  * Added support to pick text from the image ALT-attribute (if title is not available)
136
  * Added translations: Norwegian Bokm&aring;l (thanks [Ole Martin Kristiansen](http://hvorerole.com/)!)
137
- * Updated regexp to deal with urls like www.gif.org. (Thanks Yannick Berker!)
138
- * Replaced two CSS selector names to avoid collisions. (Hat tip; Pollmann Frederic)
139
- * Fix to support Infinite Scroll and similar
 
140
  * Fix leaky CSS on admin page
141
 
142
  = 1.3.4.2 (2011-02-01) =
@@ -204,7 +206,7 @@ Still have problems? Post a link and describe what issue you're having, and tell
204
  * Release.
205
 
206
  == Upgrade Notice ==
207
- = 1.4 =
208
  Swipe gestures, slideshow, sets and lots of fixes. Check your config screen after update!
209
 
210
  = 1.3.4.2 (2011-02-01) =
4
  Tags: lightbox, jquery, nodal, image, display, ulfben
5
  Requires at least: 3.5.1
6
  Tested up to: 3.5.1
7
+ Stable tag: 1.4.1
8
  License: GPLv2 or later
9
 
10
  A drop-in replacement for Lightbox 2 and similar plugins, shedding the bulk of Prototype and Scriptaculous. Improved for mobile devices.
30
 
31
  *[//Ulf Benjaminsson](http://profiles.wordpress.org/users/ulfben/)*
32
 
33
+ = 1.4.1 (2013-02-03) =
34
  * Added swipe gestures on touch devices
35
  * Added slideshow
36
  * Added support for multiple sets in one post (use: [`group`](http://wordpress.org/extend/plugins/wp-jquery-lightbox/installation/) with the gallery-shortcode)
37
  * Added support for arbitrary Download links via the [`data-download`-attribute](http://wordpress.org/extend/plugins/wp-jquery-lightbox/installation/)
38
  * Added support to pick text from the image ALT-attribute (if title is not available)
39
  * Added translations: Norwegian Bokm&aring;l (thanks [Ole Martin Kristiansen](http://hvorerole.com/)!)
40
+ * Fix regexp to deal with urls like www.gif.org. (Thanks Yannick Berker!)
41
+ * Fix changed common IDs to avoid collisions. (you'll have to update your CSS now!) (Hat tip; Pollmann Frederic)
42
+ * Fix better support of Infinite Scroll and similar
43
+ * Fix toggling visible state on unrelated object, embed and select nodes. [mwolfe02](http://wordpress.org/support/topic/lightbox-shows-hidden-selectembedobject-blocks?replies=1)
44
  * Fix leaky CSS on admin page
45
 
46
  = 1.3 (2011-05-01) =
128
  Still have problems? Post a link and describe what issue you're having, and tell us what of these steps you've already tried.
129
 
130
  == Changelog ==
131
+ = 1.4.1 (2013-02-03) =
132
  * Added swipe gestures on touch devices
133
  * Added slideshow
134
  * Added support for multiple sets in one post (use: [`group`](http://wordpress.org/extend/plugins/wp-jquery-lightbox/installation/) with the gallery-shortcode)
135
  * Added support for arbitrary Download links via the [`data-download`-attribute](http://wordpress.org/extend/plugins/wp-jquery-lightbox/installation/)
136
  * Added support to pick text from the image ALT-attribute (if title is not available)
137
  * Added translations: Norwegian Bokm&aring;l (thanks [Ole Martin Kristiansen](http://hvorerole.com/)!)
138
+ * Fix regexp to deal with urls like www.gif.org. (Thanks Yannick Berker!)
139
+ * Fix changed common IDs to avoid collisions. (you'll have to update your CSS now!) (Hat tip; Pollmann Frederic)
140
+ * Fix better support of Infinite Scroll and similar
141
+ * Fix toggling visible state on unrelated object, embed and select nodes. [mwolfe02](http://wordpress.org/support/topic/lightbox-shows-hidden-selectembedobject-blocks?replies=1)
142
  * Fix leaky CSS on admin page
143
 
144
  = 1.3.4.2 (2011-02-01) =
206
  * Release.
207
 
208
  == Upgrade Notice ==
209
+ = 1.4.1 =
210
  Swipe gestures, slideshow, sets and lots of fixes. Check your config screen after update!
211
 
212
  = 1.3.4.2 (2011-02-01) =
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.4
7
  Author: Ulf Benjaminsson
8
  Author URI: http://www.ulfben.com
9
  License: GPLv2 or later
@@ -95,7 +95,7 @@ function jqlb_css(){
95
  }
96
  function jqlb_js() {
97
  if(is_admin() || is_feed()){return;}
98
- wp_enqueue_script('jquery', '', array(), null, true);
99
  wp_enqueue_script('wp-jquery-lightbox-swipe', plugins_url(JQLB_TOUCH_SCRIPT, __FILE__), Array('jquery'), '1.4', true);
100
  wp_enqueue_script('wp-jquery-lightbox', plugins_url(JQLB_SCRIPT, __FILE__), Array('jquery'), '1.4', true);
101
  wp_localize_script('wp-jquery-lightbox', 'JQLBSettings', array(
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.4.1
7
  Author: Ulf Benjaminsson
8
  Author URI: http://www.ulfben.com
9
  License: GPLv2 or later
95
  }
96
  function jqlb_js() {
97
  if(is_admin() || is_feed()){return;}
98
+ wp_enqueue_script('jquery', '', array(), false, true);
99
  wp_enqueue_script('wp-jquery-lightbox-swipe', plugins_url(JQLB_TOUCH_SCRIPT, __FILE__), Array('jquery'), '1.4', true);
100
  wp_enqueue_script('wp-jquery-lightbox', plugins_url(JQLB_SCRIPT, __FILE__), Array('jquery'), '1.4', true);
101
  wp_localize_script('wp-jquery-lightbox', 'JQLBSettings', array(