WP jQuery Lightbox - Version 1.3.4

Version Description

Lots of fixes, translations and support for the Admin Bar and Twentyeleven theme.

Download this release

Release Info

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

Code changes from version 1.3.3 to 1.3.4

about.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if(!defined('ULFBEN_DONATE_URL')){
3
+ define('ULFBEN_DONATE_URL', 'http://www.amazon.com/gp/registry/wishlist/2QB6SQ5XX2U0N/105-3209188-5640446?reveal=unpurchased&filter=all&sort=priority&layout=standard&x=21&y=17');
4
+ }
5
+ $plugin_title = 'WP jQuery Lightbox';
6
+ $plugin_changelog = 'http://wordpress.org/extend/plugins/wp-jquery-lightbox/changelog/';
7
+ $plugin_forum = 'http://wordpress.org/tags/wp-jquery-lightbox?forum_id=10';
8
+ $flattr_profile = 'http://flattr.com/thing/367557/Support-my-plugins';
9
+ $flattr_api = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
10
+ $wishlist = ULFBEN_DONATE_URL;
11
+ $author_site = 'http://www.ulfben.com/';
12
+ $author_profile = 'http://profiles.wordpress.org/users/ulfben/';
13
+ ?>
14
+ <script type="text/javascript">
15
+ /* <![CDATA[ */
16
+ (function() {
17
+ var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
18
+ s.type = 'text/javascript';
19
+ s.async = true;
20
+ s.src = '<?php echo $flattr_api; ?>';
21
+ t.parentNode.insertBefore(s, t);
22
+ })();
23
+ /* ]]> */
24
+ </script>
25
+ <style type="text/css">
26
+ #about{ float: right; width:350px; background: #ffc; border: 1px solid #333; padding: 5px; text-align: justify; }
27
+ #about p, li, ol{ font-family:verdana; font-size:11px; }
28
+ #about h3 {text-align:center;}
29
+ .field_info {text-align:right;};
30
+ </style>
31
+ <?php echo "<div id='about'>
32
+ <h3>From the author</h3>
33
+ <p>My name is <a href='{$author_site}'>Ulf Benjaminsson</a> and I've developed WP jQuery Lightbox <a href='{$plugin_changelog}'>since 2010</a>. Nice to meet you! :)<p>
34
+ <p>If you value <a href='{$author_profile}'>my plugins</a>, please <strong>help me out</strong> by <a href='{$flattr_profile}' target='_blank'>Flattr-ing them</a>!</p>
35
+ <p style='text-align:center;'>
36
+ <a class='FlattrButton' style='display:none;' rev='flattr;button:compact;' href='{$author_profile}'></a>
37
+ <noscript><a href='{$flattr_profile}' target='_blank'>
38
+ <img src='http://api.flattr.com/button/flattr-badge-large.png' alt='Flattr this' title='Flattr this' border='0' /></a></noscript></span></p>
39
+ <p>Or perhaps <a href='{$wishlist}' title='Amazon whishlist'>send me a book</a>? Used ones are fine! :)</p>
40
+ <p>//<a href='$author_site'>Ulf Benjaminsson</a></p>
41
+ <hr />
42
+ <h3>Need Help?</h3>
43
+ <ol>
44
+ <li><a href='{$plugin_forum}'>Support Forum</a></li>
45
+ </ol>
46
+ </div>";
47
+ ?>
jquery.lightbox.js CHANGED
@@ -1,11 +1,12 @@
1
  /**
2
  * WP jQuery Lightbox
3
- * Version 1.3.3 - 2011-06-21
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-
7
  * plugin (http://wordpress.org/extend/plugins/wp-jquery-lightbox/)
8
  * Modifications include:
 
9
  * . improved the resizing code to respect aspect ratio
10
  * . improved scaling routines to maximize images while taking captions into account
11
  * . added support for browser resizing and orientation changes
@@ -31,9 +32,7 @@
31
  * Based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
32
  * Originally written to make use of the Prototype framework, and Script.acalo.us, now altered to use jQuery.
33
  **/
34
-
35
- /** toyNN: davidtg@comtrya.com: fixed IE7-8 incompatabilities in 1.3.* branch **/
36
-
37
  (function($){
38
  $.fn.lightbox = function(options) {
39
  var opts = $.extend({}, $.fn.lightbox.defaults, options);
@@ -91,14 +90,13 @@
91
  opts.resizeTimeout = setTimeout(function () { doScale(false); }, 50); //a delay to avoid duplicate event calls.
92
  }
93
  function getPageSize(){
94
- var pgDocHeight;
95
- pgDocHeight = $(document).height();
96
  if (opts.isIE8 && pgDocHeight > 4096) {
97
  pgDocHeight = 4096;
98
  }
99
- //$(window).width() returns width of browser viewport
100
  //$(document).width() returns width of HTML document
101
- return new Array($(document).width(), pgDocHeight, $(window).width(), $(window).height(), $(document).height());
102
  };
103
  //code for IE8 check provided by http://kangax.github.com/cft/
104
  function isIE8() {
@@ -114,7 +112,7 @@
114
  return isBuggy;
115
  };
116
  function getPageScroll() {
117
- var xScroll, yScroll;
118
  if (self.pageYOffset) {
119
  yScroll = self.pageYOffset;
120
  xScroll = self.pageXOffset;
@@ -125,6 +123,9 @@
125
  yScroll = document.body.scrollTop;
126
  xScroll = document.body.scrollLeft;
127
  }
 
 
 
128
  return new Array(xScroll, yScroll);
129
  };
130
 
@@ -184,14 +185,16 @@
184
  title = caption; //to keep linked captions
185
  caption = ''; //but not duplicate the text
186
  }
187
- var s = '';
188
- if (title != '' && caption != '') {
189
- s = title + '<br />' + caption;
190
- } else if (title != '') {
191
- s = title;
192
- } else if (caption != '') {
193
- s = caption;
194
- }
 
 
195
  opts.imageArray.push(new Array(this.href, opts.displayTitle ? s : ''));
196
  }
197
  });
@@ -438,6 +441,7 @@
438
  return imageArray;
439
  };
440
  $.fn.lightbox.defaults = {
 
441
  overlayOpacity: 0.8,
442
  borderSize: 10,
443
  imageArray: new Array,
@@ -476,6 +480,7 @@
476
  download: 'Download'
477
  };
478
  $('a[rel^="lightbox"]').lightbox({
 
479
  linkTarget: (haveConf && JQLBSettings.linkTarget.length) ? JQLBSettings.linkTarget : '_self',
480
  displayHelp: (haveConf && JQLBSettings.help.length) ? true : false,
481
  marginSize: (haveConf && JQLBSettings.marginSize) ? JQLBSettings.marginSize : 0,
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-
7
  * plugin (http://wordpress.org/extend/plugins/wp-jquery-lightbox/)
8
  * Modifications include:
9
+ * . added "support" for WordPress admin bar.
10
  * . improved the resizing code to respect aspect ratio
11
  * . improved scaling routines to maximize images while taking captions into account
12
  * . added support for browser resizing and orientation changes
32
  * Based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
33
  * Originally written to make use of the Prototype framework, and Script.acalo.us, now altered to use jQuery.
34
  **/
35
+ /** toyNN: davidtg@comtrya.com: fixed IE7-8 incompatabilities in 1.3.* branch **/
 
 
36
  (function($){
37
  $.fn.lightbox = function(options) {
38
  var opts = $.extend({}, $.fn.lightbox.defaults, options);
90
  opts.resizeTimeout = setTimeout(function () { doScale(false); }, 50); //a delay to avoid duplicate event calls.
91
  }
92
  function getPageSize(){
93
+ var pgDocHeight = $(document).height();
 
94
  if (opts.isIE8 && pgDocHeight > 4096) {
95
  pgDocHeight = 4096;
96
  }
97
+ var viewportHeight = $(window).height() - opts.adminBarHeight;
98
  //$(document).width() returns width of HTML document
99
+ return new Array($(document).width(), pgDocHeight, $(window).width(), viewportHeight, $(document).height());
100
  };
101
  //code for IE8 check provided by http://kangax.github.com/cft/
102
  function isIE8() {
112
  return isBuggy;
113
  };
114
  function getPageScroll() {
115
+ var xScroll = 0; var yScroll = 0;
116
  if (self.pageYOffset) {
117
  yScroll = self.pageYOffset;
118
  xScroll = self.pageXOffset;
123
  yScroll = document.body.scrollTop;
124
  xScroll = document.body.scrollLeft;
125
  }
126
+ if(opts.adminBarHeight && parseInt($('#wpadminbar').css('top'), 10) === 0){
127
+ yScroll += opts.adminBarHeight;
128
+ }
129
  return new Array(xScroll, yScroll);
130
  };
131
 
185
  title = caption; //to keep linked captions
186
  caption = ''; //but not duplicate the text
187
  }
188
+ var s = '';
189
+ if (title != '') {
190
+ s = '<span id="titleText">' + title + '</span>';
191
+ }
192
+ if (caption != '') {
193
+ if (title != ''){
194
+ s += '<br />';
195
+ }
196
+ s += '<span id="captionText">' + caption +'</span>';
197
+ }
198
  opts.imageArray.push(new Array(this.href, opts.displayTitle ? s : ''));
199
  }
200
  });
441
  return imageArray;
442
  };
443
  $.fn.lightbox.defaults = {
444
+ adminBarHeight:28,
445
  overlayOpacity: 0.8,
446
  borderSize: 10,
447
  imageArray: new Array,
480
  download: 'Download'
481
  };
482
  $('a[rel^="lightbox"]').lightbox({
483
+ adminBarHeight: $('#wpadminbar').height() || 0,
484
  linkTarget: (haveConf && JQLBSettings.linkTarget.length) ? JQLBSettings.linkTarget : '_self',
485
  displayHelp: (haveConf && JQLBSettings.help.length) ? true : false,
486
  marginSize: (haveConf && JQLBSettings.marginSize) ? JQLBSettings.marginSize : 0,
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 y;y=a(document).height();if(t.isIE8&&y>4096){y=4096;}return new Array(a(document).width(),y,a(window).width(),a(window).height(),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,y;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;}}}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!=""&&E!=""){F=G+"<br />"+E;}else{if(G!=""){F=G;}else{if(E!=""){F=E;}}}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={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({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).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);
languages/howtouse-en_US.html CHANGED
@@ -6,10 +6,11 @@
6
  <em>Optional:</em> Use the <code>title</code> attribute if you want to show a caption.
7
  </li>
8
  <li>If you have a set of related images that you would like to group, simply include a group name in the rel attribute. For example:
9
- <pre><code> &lt;a href=&quot;images/image-1.jpg&quot; rel=&quot;lightbox[roadtrip]&quot;&gt;image #1&lt;/a&gt;
10
  &lt;a href=&quot;images/image-2.jpg&quot; rel=&quot;lightbox[roadtrip]&quot;&gt;image #2&lt;/a&gt;
11
  &lt;a href=&quot;images/image-3.jpg&quot; rel=&quot;lightbox[roadtrip]&quot;&gt;image #3&lt;/a&gt;</code></pre>
12
- No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!</li>
 
13
  </ol>
14
  <h2>For developers:</h2>
15
  <ol>
@@ -34,7 +35,8 @@
34
  <li>Japanese localization <a href="http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-japanese-translation?replies=3">by redcocker</a></li>
35
  </ul>
36
 
37
- <h2>Changes to Lightbox-script:</h2><p style="margin-left: 24px;">
 
38
  Resizing code manages <strong>both</strong> height and width and never destroy aspect ratio.<br />
39
  Scaling routines now maximize images fully while taking captions into account.<br />
40
  Added support for browser resizing and orientation changes - allowing images to <em>remain</em> optimally scaled and centered.<br />
6
  <em>Optional:</em> Use the <code>title</code> attribute if you want to show a caption.
7
  </li>
8
  <li>If you have a set of related images that you would like to group, simply include a group name in the rel attribute. For example:
9
+ <pre><code> &lt;a href=&quot;images/image-1.jpg&quot; rel=&quot;lightbox[roadtrip]&quot;&gt;image #1&lt;/a&gt;
10
  &lt;a href=&quot;images/image-2.jpg&quot; rel=&quot;lightbox[roadtrip]&quot;&gt;image #2&lt;/a&gt;
11
  &lt;a href=&quot;images/image-3.jpg&quot; rel=&quot;lightbox[roadtrip]&quot;&gt;image #3&lt;/a&gt;</code></pre>
12
+ No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!</li>
13
+ <li>To <strong>disable</strong> lightboxing of an image link, just set any other rel-attribute: <code>rel="nobox"</code></li>
14
  </ol>
15
  <h2>For developers:</h2>
16
  <ol>
35
  <li>Japanese localization <a href="http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-japanese-translation?replies=3">by redcocker</a></li>
36
  </ul>
37
 
38
+ <h2>Changes to Lightbox-script:</h2><p style="margin-left: 24px;">
39
+ Takes the WordPress admin bar into consideration.<br />
40
  Resizing code manages <strong>both</strong> height and width and never destroy aspect ratio.<br />
41
  Scaling routines now maximize images fully while taking captions into account.<br />
42
  Added support for browser resizing and orientation changes - allowing images to <em>remain</em> optimally scaled and centered.<br />
languages/howtouse.html CHANGED
@@ -6,10 +6,11 @@
6
  <em>Optional:</em> Use the <code>title</code> attribute if you want to show a caption.
7
  </li>
8
  <li>If you have a set of related images that you would like to group, simply include a group name in the rel attribute. For example:
9
- <pre><code> &lt;a href=&quot;images/image-1.jpg&quot; rel=&quot;lightbox[roadtrip]&quot;&gt;image #1&lt;/a&gt;
10
  &lt;a href=&quot;images/image-2.jpg&quot; rel=&quot;lightbox[roadtrip]&quot;&gt;image #2&lt;/a&gt;
11
  &lt;a href=&quot;images/image-3.jpg&quot; rel=&quot;lightbox[roadtrip]&quot;&gt;image #3&lt;/a&gt;</code></pre>
12
- No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!</li>
 
13
  </ol>
14
  <h2>For developers:</h2>
15
  <ol>
@@ -34,7 +35,8 @@
34
  <li>Japanese localization <a href="http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-japanese-translation?replies=3">by redcocker</a></li>
35
  </ul>
36
 
37
- <h2>Changes to Lightbox-script:</h2><p style="margin-left: 24px;">
 
38
  Resizing code manages <strong>both</strong> height and width and never destroy aspect ratio.<br />
39
  Scaling routines now maximize images fully while taking captions into account.<br />
40
  Added support for browser resizing and orientation changes - allowing images to <em>remain</em> optimally scaled and centered.<br />
6
  <em>Optional:</em> Use the <code>title</code> attribute if you want to show a caption.
7
  </li>
8
  <li>If you have a set of related images that you would like to group, simply include a group name in the rel attribute. For example:
9
+ <pre><code> &lt;a href=&quot;images/image-1.jpg&quot; rel=&quot;lightbox[roadtrip]&quot;&gt;image #1&lt;/a&gt;
10
  &lt;a href=&quot;images/image-2.jpg&quot; rel=&quot;lightbox[roadtrip]&quot;&gt;image #2&lt;/a&gt;
11
  &lt;a href=&quot;images/image-3.jpg&quot; rel=&quot;lightbox[roadtrip]&quot;&gt;image #3&lt;/a&gt;</code></pre>
12
+ No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!</li>
13
+ <li>To <strong>disable</strong> lightboxing of an image link, just set any other rel-attribute: <code>rel="nobox"</code></li>
14
  </ol>
15
  <h2>For developers:</h2>
16
  <ol>
35
  <li>Japanese localization <a href="http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-japanese-translation?replies=3">by redcocker</a></li>
36
  </ul>
37
 
38
+ <h2>Changes to Lightbox-script:</h2><p style="margin-left: 24px;">
39
+ Takes the WordPress admin bar into consideration.<br />
40
  Resizing code manages <strong>both</strong> height and width and never destroy aspect ratio.<br />
41
  Scaling routines now maximize images fully while taking captions into account.<br />
42
  Added support for browser resizing and orientation changes - allowing images to <em>remain</em> optimally scaled and centered.<br />
languages/jqlb-fr_FR.mo ADDED
Binary file
languages/jqlb-fr_FR.po ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP JQuery Lightbox\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-06-26 20:31+0100\n"
6
+ "PO-Revision-Date: 2011-06-26 20:51+0100\n"
7
+ "Last-Translator: Olivier Grasset <grogcw@gmail.com>\n"
8
+ "Language-Team: grogcw <grogcw@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: French\n"
15
+ "X-Poedit-Country: FRANCE\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-SearchPath-0: G:\\@WINNEEDS\\Desktop\\wp-jquery-lightbox.1.3.3\\wp-jquery-lightbox\n"
18
+
19
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:42
20
+ msgid "Settings"
21
+ msgstr "Réglages"
22
+
23
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:113
24
+ msgid "previous image"
25
+ msgstr "Image précédente"
26
+
27
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:114
28
+ msgid "next image"
29
+ msgstr "Image suivante"
30
+
31
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:115
32
+ msgid "&laquo; Previous"
33
+ msgstr "&laquo; Précédent"
34
+
35
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:116
36
+ msgid "Next &raquo;"
37
+ msgstr "Suivant &raquo;"
38
+
39
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:117
40
+ msgid "close image gallery"
41
+ msgstr "fermer la galerie"
42
+
43
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:118
44
+ msgid "Image "
45
+ msgstr "Image "
46
+
47
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:119
48
+ msgid " of "
49
+ msgstr " sur "
50
+
51
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:120
52
+ msgid "Download"
53
+ msgstr "Télécharger"
54
+
55
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:166
56
+ msgid "Cheatin&#8217; uh?"
57
+ msgstr "Vous trichez, hein ?"
58
+
59
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:179
60
+ msgid "Let the plugin add necessary html to image links"
61
+ msgstr "Laisser le plugin ajouter les liens html nécessaires aux images"
62
+
63
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:179
64
+ msgid "Auto-lightbox image links"
65
+ msgstr "Ajouter les liens Lightbox automatiquement"
66
+
67
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:186
68
+ msgid "Note: this will disable the nofollow-attribute of comment links, that otherwise interfere with the lightbox."
69
+ msgstr "Désactive l'attribut nofollow sur les liens en commentaire, ceci peut interférer avec Lightbox."
70
+
71
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:186
72
+ msgid "Enable lightbox in comments (disables <a href=\"http://codex.wordpress.org/Nofollow\">the nofollow attribute!</a>)"
73
+ msgstr "Activer les commentaires dans Lightbox (désactive <a href=\"http://codex.wordpress.org/Nofollow\">l'attribut nofollow !</a>)"
74
+
75
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:193
76
+ msgid "Show download link"
77
+ msgstr "Afficher le lien de téléchargement"
78
+
79
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:197
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: ouvre l'image dans une nouvelle fenêtre ou un nouvel onglet\n"
87
+ "_self: ouvre l'image dans la meme fenêtre qu'utilisée (default)\n"
88
+ "_parent: ouvre l'image dans une fenêtre parente\n"
89
+ "_top: ouvre l'image en plein dans la fenêtre"
90
+
91
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:200
92
+ msgid "Target for download link:"
93
+ msgstr "Cible pour le lien de téléchargement :"
94
+
95
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:214
96
+ msgid "Show image info on top"
97
+ msgstr "Montrer les informations d'image au dessus"
98
+
99
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:222
100
+ msgid "Shrink large images to fit smaller screens"
101
+ msgstr "Réduire les grandes images pour s'adapter aux petits écrans"
102
+
103
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:227
104
+ msgid "Keep a distance between the image and the screen edges."
105
+ msgstr "Garder une distance entre l'image et les bords de l'écran."
106
+
107
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:227
108
+ msgid "Minimum margin to screen edge (default: 0)"
109
+ msgstr "Marge minimale aux bords de l'écran (par défaut: 0)"
110
+
111
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:234
112
+ msgid "Animation duration (in milliseconds) "
113
+ msgstr "Vitesse d'animation (en millisecondes)"
114
+
115
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:240
116
+ msgid "Help text (default: none) "
117
+ msgstr "Texte d'aide (par défaut : aucun)"
118
+
119
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:244
120
+ msgid "Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close."
121
+ msgstr "Naviguez avec les flèches du clavier, (P)récédent / Suiva(N)t ; X / C / échap pour fermer."
122
+
123
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:246
124
+ msgid "Save Changes"
125
+ msgstr "Sauver les changements"
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 "
languages/jqlb-he_IL.mo ADDED
Binary file
languages/jqlb-he_IL.po ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP JQuery Lightbox Hebrew\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-05-17 16:35+0900\n"
6
+ "PO-Revision-Date: 2011-10-16 00:49+0200\n"
7
+ "Last-Translator: שגיב SEO <info@sagive.co.il>\n"
8
+ "Language-Team: Sagive SEO <info@sagive.co.il>\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: Hebrew\n"
15
+ "X-Poedit-Country: ISRAEL\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-SearchPath-0: C:\\_work\\svn\\artprima\\trunk\\wp-content\\plugins\\wp-jquery-lightbox\n"
18
+
19
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:42
20
+ msgid "Settings"
21
+ msgstr "הגדרות"
22
+
23
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:98
24
+ msgid " \\u2190 / P - previous image\\u00a0\\u00a0\\u00a0\\u00a0\\u2192 / N - next image\\u00a0\\u00a0\\u00a0\\u00a0ESC / X - close image gallery"
25
+ msgstr " \\u2190 / P - תמונה קודמת\\u00a0\\u00a0\\u00a0\\u00a0\\u2192 / N - תמונה הבאה\\u00a0\\u00a0\\u00a0\\u00a0ESC / X - סגור את גלריית התמונות"
26
+
27
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:99
28
+ msgid "previous image"
29
+ msgstr "לתמונה הקודמת"
30
+
31
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:100
32
+ msgid "next image"
33
+ msgstr "לתמונה הבאה"
34
+
35
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:101
36
+ msgid "&laquo; Previous"
37
+ msgstr "&laquo;קודם"
38
+
39
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:102
40
+ msgid "Next &raquo;"
41
+ msgstr " הבא &raquo;"
42
+
43
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:103
44
+ msgid "close image gallery"
45
+ msgstr "סגור גלריית תמונות"
46
+
47
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:104
48
+ msgid "Image "
49
+ msgstr "תמונה"
50
+
51
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:105
52
+ msgid " of "
53
+ msgstr "של"
54
+
55
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:106
56
+ msgid "Download"
57
+ msgstr "הורדה"
58
+
59
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:152
60
+ msgid "Cheatin&#8217; uh?"
61
+ msgstr "מרמה&#8217; אה?"
62
+
63
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:165
64
+ msgid "Let the plugin add necessary html to image links"
65
+ msgstr "תן לתוסף להוסיף את הקוד HTML עבור קישורי התמונות"
66
+
67
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:165
68
+ msgid "Auto-lightbox image links"
69
+ msgstr "Auto-lightbox קישורי תמונה"
70
+
71
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:172
72
+ msgid "Disables the nofollow-attribute of comment links, that otherwise interfere with the lightbox."
73
+ msgstr "בטל את הגדרת No-Follow של קישורי תגובות, אחרת זה עשוי להפריע לLightBox"
74
+
75
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:172
76
+ msgid "Enable lightbox in comments (disables <a href=\"http://codex.wordpress.org/Nofollow\">the nofollow attribute!</a>)"
77
+ msgstr "הפעל lightbox בתגובות (מכבה את <a href=\"http://codex.wordpress.org/Nofollow\">את התכונה No-Follow</a>)"
78
+
79
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:179
80
+ msgid "Show download link"
81
+ msgstr "הצג קישור הורדה"
82
+
83
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:186
84
+ msgid "Shrink large images to fit smaller screens"
85
+ msgstr "כווץ תמונות גדולות כדי שיתאימו למסכים קטנים יותר"
86
+
87
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:192
88
+ msgid "Animation duration (in milliseconds)"
89
+ msgstr "אורך האנימציה (במילי-שניות)"
90
+
91
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:197
92
+ msgid "Save Changes"
93
+ msgstr "שמור שינויים"
94
+
languages/jqlb-ro_RO.mo ADDED
Binary file
languages/jqlb-ro_RO.po ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP JQuery Lightbox\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-02-20 15:12+0100\n"
6
+ "PO-Revision-Date: 2011-06-28 20:17+0200\n"
7
+ "Last-Translator: Jibo <contact@jibo.ro>\n"
8
+ "Language-Team: Anunturi <contact@jibo.ro>\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: Romanian\n"
15
+ "X-Poedit-Country: ROMANIA\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2\n"
18
+ "X-Poedit-SearchPath-0: C:\\_work\\svn\\artprima\\trunk\\wp-content\\plugins\\wp-jquery-lightbox\n"
19
+
20
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:44
21
+ msgid "Settings"
22
+ msgstr "Setări"
23
+
24
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:80
25
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:81
26
+ msgid "previous image"
27
+ msgstr "imaginea anterioară"
28
+
29
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:80
30
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:82
31
+ msgid "next image"
32
+ msgstr "următoarea imagine"
33
+
34
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:80
35
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:85
36
+ msgid "close image gallery"
37
+ msgstr "închide galeria de imagini"
38
+
39
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:83
40
+ msgid "&laquo; Previous"
41
+ msgstr "&laquo; Anterioara"
42
+
43
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:84
44
+ msgid "Next &raquo;"
45
+ msgstr "Urmatoarea &raquo;"
46
+
47
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:86
48
+ msgid "Image "
49
+ msgstr "Imagine"
50
+
51
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:87
52
+ msgid " of "
53
+ msgstr " din "
54
+
55
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:107
56
+ msgid "Cheatin&#8217; uh?"
57
+ msgstr "Vrei să trişezi, aşa-i?"
58
+
59
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:117
60
+ msgid "Auto-lightbox image links"
61
+ msgstr "Link-uri automate către imagini"
62
+
63
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:121
64
+ msgid "Let the plugin add necessary html to image links"
65
+ msgstr "Permite plugin-ului să adauge codul HTML necesar pentru link-uri către imagini"
66
+
67
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:125
68
+ msgid "Shrink large images to fit smaller screens"
69
+ msgstr "Redimensionează imaginile mari pentru a încape pe ecrane mai mici"
70
+
71
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:129
72
+ msgid "Note: <u>Excessively large images</u> waste bandwidth!"
73
+ msgstr "Notă: <u>Imagini excesiv de mari</u> iroseşti banda de internet!"
74
+
75
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:133
76
+ msgid "Animation speed (in milliseconds)"
77
+ msgstr "Viteza de animaţie (în milisecunde)"
78
+
79
+ #: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:140
80
+ msgid "Save Changes"
81
+ msgstr "Salvează modificările"
82
+
83
+ #~ msgid "(more...)"
84
+ #~ msgstr "(dále...)"
85
+
86
+ #~ msgid "Contacts"
87
+ #~ msgstr "Kontakty"
88
+
89
+ #~ msgid "Contact Us"
90
+ #~ msgstr "Kontaktujte nás"
91
+
92
+ #~ msgid "Read more..."
93
+ #~ msgstr "Číst dále..."
94
+
95
+ #~ msgid "Contact Us..."
96
+ #~ msgstr "Kontaktujte nás..."
97
+
98
+ #~ msgid "Order..."
99
+ #~ msgstr "Objednat..."
100
+
101
+ #~ msgid "Search..."
102
+ #~ msgstr "Hledat..."
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: 2.9.2
6
- Tested up to: 3.1.3
7
- Stable tag: 1.3.3
8
 
9
  A drop-in replacement for Lightbox 2 and similar plugins, shedding the bulk of Prototype and Scriptaculous. Improved for mobile devices.
10
 
@@ -14,7 +14,7 @@ This plugin lets you keep [the awesome Lightbox 2](http://www.huddletogether.com
14
 
15
  Warren Krewenki [ported Lightbox to jQuery](http://warren.mesozen.com/jquery-lightbox/) and this plugin is mostly a wrapper to his work: providing localization support, an admin panel for configuration, (optional) auto-boxing of your image links and support for [WordPress galleries](http://codex.wordpress.org/Gallery_Shortcode), *including* [media library](http://codex.wordpress.org/Media_Library_SubPanel) titles and captions.
16
 
17
- This version is also [great for mobile devices](http://wordpress.org/extend/plugins/wp-jquery-lightbox/screenshots/);
18
 
19
  * Improved scaling *maximizes* use of screen space
20
  * Live adjustment to the browser window and orientation of your phone
@@ -24,13 +24,25 @@ See the plugin in action here: [http://game.hgo.se/blog/motion-capture/](http://
24
 
25
  You can browse images with your keyboard: Arrows, P(revious)/N(ext) and X/C/ESC for close.
26
 
27
- *If you value [my plugins](http://profiles.wordpress.org/users/ulfben/) please consider [sending me a book](http://amzn.com/w/2QB6SQ5XX2U0N)!*
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
  = 1.3.3 (2011-06-12) =
30
- * Fixes [for Internet Explorer](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-jquery-version-and-ie-issues)? (A million thanks to [David Grayston](http://www.grayston.net/2011/internet-explorer-v8-and-opacity-issues/#more-342)!).
31
  * Fix for [mixed HTTP/HTTPS installations](http://wordpress.org/support/topic/mixed-http-and-https-installation-problems).
32
- * Added setting for margins to screen edge.
33
- * Added setting for target attribute of download link
34
  * Added setting to put info & navigation on top.
35
  * Added setting for help text.
36
  * Added Japanese translation ([Thanks redcocker](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-japanese-translation)).
@@ -74,6 +86,8 @@ You can browse images with your keyboard: Arrows, P(revious)/N(ext) and X/C/ESC
74
  `<a href="image-2.jpg" rel="lightbox[roadtrip]">image #2</a>`
75
 
76
  `<a href="image-3.jpg" rel="lightbox[roadtrip]">image #3</a>`
 
 
77
 
78
  1. Keyboard support: Arrows, P(revious)/N(ext) and X/C/ESC for close.
79
 
@@ -88,11 +102,20 @@ You can browse images with your keyboard: Arrows, P(revious)/N(ext) and X/C/ESC
88
 
89
  == Changelog ==
90
 
 
 
 
 
 
 
 
 
 
 
91
  = 1.3.3 (2011-06-12) =
92
- * Fixes [for Internet Explorer](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-jquery-version-and-ie-issues)? (A million thanks to [David Grayston](http://www.grayston.net/2011/internet-explorer-v8-and-opacity-issues/#more-342)!).
93
  * Fix for [mixed HTTP/HTTPS installations](http://wordpress.org/support/topic/mixed-http-and-https-installation-problems).
94
  * Added setting to have margins to screen edge.
95
- * Added setting for target attribute of download link
96
  * Added setting to put info & navigation on top.
97
  * Added setting for help text.
98
  * Added Japanese translation ([Thanks redcocker](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-japanese-translation)).
@@ -139,8 +162,11 @@ You can browse images with your keyboard: Arrows, P(revious)/N(ext) and X/C/ESC
139
 
140
  == Upgrade Notice ==
141
 
 
 
 
142
  = 1.3.3 =
143
- Fixes for Internet Explorer? Support mixed HTTP/HTTPS. Added Japanese translation.
144
 
145
  = 1.3.2 =
146
  Support for auto-lightboxing comments. Added Polish, Russian and Czech languages.
@@ -174,14 +200,6 @@ First release.
174
 
175
  == Frequently Asked Questions ==
176
 
177
- = Settings have no effect / lightbox isn't working =
178
-
179
- Many JavaScript optimizers, combiners, minifiers, etc. conflict with [`wp_localize_script`](http://codex.wordpress.org/Function_Reference/wp_localize_script2), used to configure this plugin and many others.
180
-
181
- * If you have problems with jQuery Lightbox; first disable all JavaScript-optimizing plugins. (Optimize Scripts, W3 Total Cache, WP Minify etc)
182
- * If you develop JavaScript optimizers for WordPress, please play nice with the default API...
183
- * [More info about this issue](http://wordpress.org/support/topic/122-worked-13-does-not-work-for-me?replies=19)
184
-
185
  = I can see elements of my site through the overlay =
186
 
187
  It's a problem of [z-index](http://www.w3schools.com/Css/pr_pos_z-index.asp). Check [the z-index property](http://www.w3schools.com/Css/pr_pos_z-index.asp) for the problematic elements, and force them to be less than 100. (Thanks [dway](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-title-captions-bug-found-solved-and-fix-proposed?replies=20#post-2052340)!)
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
 
14
 
15
  Warren Krewenki [ported Lightbox to jQuery](http://warren.mesozen.com/jquery-lightbox/) and this plugin is mostly a wrapper to his work: providing localization support, an admin panel for configuration, (optional) auto-boxing of your image links and support for [WordPress galleries](http://codex.wordpress.org/Gallery_Shortcode), *including* [media library](http://codex.wordpress.org/Media_Library_SubPanel) titles and captions.
16
 
17
+ This version is also [adjusted for mobile devices](http://wordpress.org/extend/plugins/wp-jquery-lightbox/screenshots/);
18
 
19
  * Improved scaling *maximizes* use of screen space
20
  * Live adjustment to the browser window and orientation of your phone
24
 
25
  You can browse images with your keyboard: Arrows, P(revious)/N(ext) and X/C/ESC for close.
26
 
27
+ If you value [my plugins](http://profiles.wordpress.org/users/ulfben/), please help me out by [Flattr-ing them](http://flattr.com/thing/367557/Support-my-WordPress-plugins)! Or perhaps [send me a book](http://www.amazon.com/gp/registry/wishlist/2QB6SQ5XX2U0N/105-3209188-5640446?reveal=unpurchased&filter=all&sort=priority&layout=standard&x=11&y=10)? Used ones are fine! :)
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)
34
+ * [Fixed button messup in Firefox](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-broken-in-firefox?replies=9)
35
+ * Fixed depth fight with the default twentyeleven theme header
36
+ * [Fixed admin bar covering the lightbox](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-show-download-link-not-working?replies=4#post-2400784)
37
+ * Added info on how to disable lightbox for specific links (bogus rel-attribute)
38
+ * Added translations: [Romanian](http://wordpress.org/support/topic/wp-jquery-lightbox-romanian-translation?replies=1), [French](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-french-translation?replies=2#post-2187626) and [Hebrew](www.sagive.co.il)
39
+ * Updated: Russian language icons (thanks; Ilya Gorenburg), [Japanese translation](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-japanese-translation-for-133?replies=1)
40
+
41
 
42
  = 1.3.3 (2011-06-12) =
43
+ * Fixes [for Internet Explorer](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-jquery-version-and-ie-issues) (A million thanks to [David Grayston](http://www.grayston.net/2011/internet-explorer-v8-and-opacity-issues/#more-342)!).
44
  * Fix for [mixed HTTP/HTTPS installations](http://wordpress.org/support/topic/mixed-http-and-https-installation-problems).
45
+ * Added setting to have margins to screen edge.
 
46
  * Added setting to put info & navigation on top.
47
  * Added setting for help text.
48
  * Added Japanese translation ([Thanks redcocker](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-japanese-translation)).
86
  `<a href="image-2.jpg" rel="lightbox[roadtrip]">image #2</a>`
87
 
88
  `<a href="image-3.jpg" rel="lightbox[roadtrip]">image #3</a>`
89
+
90
+ 1. To *disable* lightboxing of an image link, just set any other rel-attribute: `rel="nobox"`
91
 
92
  1. Keyboard support: Arrows, P(revious)/N(ext) and X/C/ESC for close.
93
 
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)
107
+ * [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)
108
+ * [Fixed button messup in Firefox](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-broken-in-firefox?replies=9)
109
+ * Fixed depth fight with the default twentyeleven theme header
110
+ * [Fixed admin bar covering the lightbox](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-show-download-link-not-working?replies=4#post-2400784)
111
+ * Added info on how to disable lightbox for specific links (bogus rel-attribute)
112
+ * Added translations: [Romanian](http://wordpress.org/support/topic/wp-jquery-lightbox-romanian-translation?replies=1), [French](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-french-translation?replies=2#post-2187626) and [Hebrew](www.sagive.co.il)
113
+ * Updated: Russian language icons (thanks; Ilya Gorenburg), [Japanese translation](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-japanese-translation-for-133?replies=1)
114
+
115
  = 1.3.3 (2011-06-12) =
116
+ * Fixes [for Internet Explorer](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-jquery-version-and-ie-issues) (A million thanks to [David Grayston](http://www.grayston.net/2011/internet-explorer-v8-and-opacity-issues/#more-342)!).
117
  * Fix for [mixed HTTP/HTTPS installations](http://wordpress.org/support/topic/mixed-http-and-https-installation-problems).
118
  * Added setting to have margins to screen edge.
 
119
  * Added setting to put info & navigation on top.
120
  * Added setting for help text.
121
  * Added Japanese translation ([Thanks redcocker](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-japanese-translation)).
162
 
163
  == Upgrade Notice ==
164
 
165
+ = 1.3.4 =
166
+ Lots of fixes, translations and support for the Admin Bar and Twentyeleven theme.
167
+
168
  = 1.3.3 =
169
+ Fixes for Internet Explorer. Added Japanese translation.
170
 
171
  = 1.3.2 =
172
  Support for auto-lightboxing comments. Added Polish, Russian and Czech languages.
200
 
201
  == Frequently Asked Questions ==
202
 
 
 
 
 
 
 
 
 
203
  = I can see elements of my site through the overlay =
204
 
205
  It's a problem of [z-index](http://www.w3schools.com/Css/pr_pos_z-index.asp). Check [the z-index property](http://www.w3schools.com/Css/pr_pos_z-index.asp) for the problematic elements, and force them to be less than 100. (Thanks [dway](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-title-captions-bug-found-solved-and-fix-proposed?replies=20#post-2052340)!)
styles/images/he_IL/blank.gif ADDED
Binary file
styles/images/he_IL/close.gif ADDED
Binary file
styles/images/he_IL/closelabel.gif ADDED
Binary file
styles/images/he_IL/loading.gif ADDED
Binary file
styles/images/he_IL/next.gif ADDED
Binary file
styles/images/he_IL/nextlabel.gif ADDED
Binary file
styles/images/he_IL/prev.gif ADDED
Binary file
styles/images/he_IL/prevlabel.gif ADDED
Binary file
styles/images/pl_PL/closelabel.gif ADDED
Binary file
styles/lightbox.css CHANGED
@@ -1,8 +1,13 @@
 
 
 
 
 
1
  #lightbox{
2
  position: absolute;
3
  left: 0;
4
  width: 100%;
5
- z-index: 100;
6
  text-align: center;
7
  line-height: 0;
8
  }
@@ -55,7 +60,7 @@
55
  #hoverNav a{ outline: none;}
56
 
57
  #prevLink, #nextLink{
58
- width: 49%;
59
  height: 100%;
60
  background: transparent url('./images/blank.gif') no-repeat; /* Trick IE into showing hover */
61
  display: block;
@@ -109,7 +114,7 @@ margin-left: 10px;
109
  position: absolute;
110
  top: 0;
111
  left: 0;
112
- z-index: 90;
113
  width: 100%;
114
  height: 500px;
115
  background-color: #000;
1
+ /**
2
+ * WP jQuery Lightbox
3
+ * Version 1.3.4 - 2011-12-29
4
+ * http://wordpress.org/extend/plugins/wp-jquery-lightbox/
5
+ */
6
  #lightbox{
7
  position: absolute;
8
  left: 0;
9
  width: 100%;
10
+ z-index: 10100;/*twentyeleven keeps the header at 999...*/
11
  text-align: center;
12
  line-height: 0;
13
  }
60
  #hoverNav a{ outline: none;}
61
 
62
  #prevLink, #nextLink{
63
+ width: 45%;
64
  height: 100%;
65
  background: transparent url('./images/blank.gif') no-repeat; /* Trick IE into showing hover */
66
  display: block;
114
  position: absolute;
115
  top: 0;
116
  left: 0;
117
+ z-index: 10090;
118
  width: 100%;
119
  height: 500px;
120
  background-color: #000;
styles/lightbox.min.cs_CZ.css CHANGED
@@ -1 +1 @@
1
- #lightbox{position:absolute;left:0;width:100%;z-index:100;text-align:center;line-height:0}#jqlb_loading{height:32px;background-image:url('./images/cs_CZ/loading.gif');background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;background-image:url('./images/cs_CZ/closelabel.gif');background-repeat:no-repeat;background-position:center center}#lightbox a img{border:none}#outerImageContainer{position:relative;background-color:#fff;width:250px;height:250px;margin:0 auto}#imageContainer{padding:10px}#loading{position:absolute;top:40%;left:0;height:25%;width:100%;text-align:center;line-height:0}#hoverNav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}#imageContainer>#hoverNav{left:0}#hoverNav a{outline:none}#prevLink,#nextLink{width:49%;height:100%;background:transparent url('./images/cs_CZ/blank.gif') no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url('./images/cs_CZ/prev.gif') left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url('./images/cs_CZ/next.gif') right 50% no-repeat}#nextLinkText,#prevLinkText{color:#ff9834;font-weight:bold;text-decoration:none}#nextLinkText{padding-left:20px}#prevLinkText{padding-right:20px}.ontop #imageData{padding-top:5px}#imageDataContainer{font:10px Verdana,Helvetica,sans-serif;background-color:#fff;margin:0 auto;line-height:1.4em}#imageData{padding:0 10px}#imageData #imageDetails{width:70%;float:left;text-align:left}#imageData #caption{font-weight:bold}#imageData #numberDisplay{display:block;clear:left;padding-bottom:1.0em}#imageData #bottomNavClose{width:86px;float:right;padding-bottom:.7em}#imageData #helpDisplay{clear:left;float:left;display:block}#overlay{position:absolute;top:0;left:0;z-index:90;width:100%;height:500px;background-color:#000;filter:alpha(opacity=60);-moz-opacity:.6;opacity:.6;display:none}.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}* html>body .clearfix{display:inline-block;width:100%}* html .clearfix{/*\*/height:1%;/**/}#lightboxIframe{display:none}
1
+ #lightbox{position:absolute;left:0;width:100%;z-index:10100;text-align:center;line-height:0}#jqlb_loading{height:32px;background-image:url('./images/cs_CZ/loading.gif');background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;background-image:url('./images/cs_CZ/closelabel.gif');background-repeat:no-repeat;background-position:center center}#lightbox a img{border:none}#outerImageContainer{position:relative;background-color:#fff;width:250px;height:250px;margin:0 auto}#imageContainer{padding:10px}#loading{position:absolute;top:40%;left:0;height:25%;width:100%;text-align:center;line-height:0}#hoverNav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}#imageContainer>#hoverNav{left:0}#hoverNav a{outline:none}#prevLink,#nextLink{width:45%;height:100%;background:transparent url('./images/cs_CZ/blank.gif') no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url('./images/cs_CZ/prev.gif') left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url('./images/cs_CZ/next.gif') right 50% no-repeat}#nextLinkText,#prevLinkText{color:#ff9834;font-weight:bold;text-decoration:none}#nextLinkText{padding-left:20px}#prevLinkText{padding-right:20px}.ontop #imageData{padding-top:5px}#imageDataContainer{font:10px Verdana,Helvetica,sans-serif;background-color:#fff;margin:0 auto;line-height:1.4em}#imageData{padding:0 10px}#imageData #imageDetails{width:70%;float:left;text-align:left}#imageData #caption{font-weight:bold}#imageData #numberDisplay{display:block;clear:left;padding-bottom:1.0em}#imageData #bottomNavClose{width:86px;float:right;padding-bottom:.7em}#imageData #helpDisplay{clear:left;float:left;display:block}#overlay{position:absolute;top:0;left:0;z-index:10090;width:100%;height:500px;background-color:#000;filter:alpha(opacity=60);-moz-opacity:.6;opacity:.6;display:none}.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}* html>body .clearfix{display:inline-block;width:100%}* html .clearfix{/*\*/height:1%;/**/}#lightboxIframe{display:none}
styles/lightbox.min.css CHANGED
@@ -1 +1 @@
1
- #lightbox{position:absolute;left:0;width:100%;z-index:100;text-align:center;line-height:0}#jqlb_loading{height:32px;background-image:url('./images/loading.gif');background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;background-image:url('./images/closelabel.gif');background-repeat:no-repeat;background-position:center center}#lightbox a img{border:none}#outerImageContainer{position:relative;background-color:#fff;width:250px;height:250px;margin:0 auto}#imageContainer{padding:10px}#loading{position:absolute;top:40%;left:0;height:25%;width:100%;text-align:center;line-height:0}#hoverNav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}#imageContainer>#hoverNav{left:0}#hoverNav a{outline:none}#prevLink,#nextLink{width:49%;height:100%;background:transparent url('./images/blank.gif') no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url('./images/prev.gif') left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url('./images/next.gif') right 50% no-repeat}#nextLinkText,#prevLinkText{color:#ff9834;font-weight:bold;text-decoration:none}#nextLinkText{padding-left:20px}#prevLinkText{padding-right:20px}#downloadLink{margin-left:10px}.ontop #imageData{padding-top:5px}#imageDataContainer{font:10px Verdana,Helvetica,sans-serif;background-color:#fff;margin:0 auto;line-height:1.4em}#imageData{padding:0 10px}#imageData #imageDetails{width:70%;float:left;text-align:left}#imageData #caption{font-weight:bold}#imageData #numberDisplay{display:block;clear:left;padding-bottom:1.0em}#imageData #bottomNavClose{width:66px;float:right;padding-bottom:.7em}#imageData #helpDisplay{clear:left;float:left;display:block}#overlay{position:absolute;top:0;left:0;z-index:90;width:100%;height:500px;background-color:#000;filter:alpha(opacity=60);-moz-opacity:.6;opacity:.6;display:none}.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}* html>body .clearfix{display:inline-block;width:100%}* html .clearfix{/*\*/height:1%;/**/}#lightboxIframe{display:none}
1
+ #lightbox{position:absolute;left:0;width:100%;z-index:10100;text-align:center;line-height:0}#jqlb_loading{height:32px;background-image:url('./images/loading.gif');background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;background-image:url('./images/closelabel.gif');background-repeat:no-repeat;background-position:center center}#lightbox a img{border:0}#outerImageContainer{position:relative;background-color:#fff;width:250px;height:250px;margin:0 auto}#imageContainer{padding:10px}#loading{position:absolute;top:40%;left:0;height:25%;width:100%;text-align:center;line-height:0}#hoverNav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}#imageContainer>#hoverNav{left:0}#hoverNav a{outline:0}#prevLink,#nextLink{width:45%;height:100%;background:transparent url('./images/blank.gif') no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url('./images/prev.gif') left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url('./images/next.gif') right 50% no-repeat}#nextLinkText,#prevLinkText{color:#ff9834;font-weight:bold;text-decoration:none}#nextLinkText{padding-left:20px}#prevLinkText{padding-right:20px}#downloadLink{margin-left:10px}.ontop #imageData{padding-top:5px}#imageDataContainer{font:10px Verdana,Helvetica,sans-serif;background-color:#fff;margin:0 auto;line-height:1.4em}#imageData{padding:0 10px}#imageData #imageDetails{width:70%;float:left;text-align:left}#imageData #caption{font-weight:bold}#imageData #numberDisplay{display:block;clear:left;padding-bottom:1.0em}#imageData #bottomNavClose{width:66px;float:right;padding-bottom:.7em}#imageData #helpDisplay{clear:left;float:left;display:block}#overlay{position:absolute;top:0;left:0;z-index:10090;width:100%;height:500px;background-color:#000;filter:alpha(opacity=60);-moz-opacity:.6;opacity:.6;display:none}.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}* html>body .clearfix{display:inline-block;width:100%}* html .clearfix{/*\*/height:1%;/**/}#lightboxIframe{display:none}
styles/lightbox.min.pl_PL.css ADDED
@@ -0,0 +1,2 @@
 
 
1
+ #lightbox{position:absolute;left:0;width:100%;z-index:100;text-align:center;line-height:0}#jqlb_loading{height:32px;background-image:url('./images/loading.gif');background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;background-image:url('./images/closelabel.gif');background-repeat:no-repeat;background-position:center center}#lightbox a img{border:none}#outerImageContainer{position:relative;background-color:#fff;width:250px;height:250px;margin:0 auto}#imageContainer{padding:10px}#loading{position:absolute;top:40%;left:0;height:25%;width:100%;text-align:center;line-height:0}#hoverNav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}#imageContainer>#hoverNav{left:0}#hoverNav a{outline:none}#prevLink,#nextLink{width:49%;height:100%;background:transparent url('./images/blank.gif') no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url('./images/prev.gif') left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url('./images/next.gif') right 50% no-repeat}#nextLinkText,#prevLinkText{color:#ff9834;font-weight:bold;text-decoration:none}#nextLinkText{padding-left:20px}#prevLinkText{padding-right:20px}#downloadLink{margin-left:10px}.ontop #imageData{padding-top:5px}#imageDataContainer{font:10px Verdana,Helvetica,sans-serif;background-color:#fff;margin:0 auto;line-height:1.4em}#imageData{padding:0 10px}#imageData #imageDetails{width:70%;float:left;text-align:left}#imageData #caption{font-weight:bold}#imageData #numberDisplay{display:block;clear:left;padding-bottom:1.0em}#imageData #bottomNavClose{width:66px;float:right;padding-bottom:.7em}#imageData #helpDisplay{clear:left;float:left;display:block}#overlay{position:absolute;top:0;left:0;z-index:90;width:100%;height:500px;background-color:#000;filter:alpha(opacity=60);-moz-opacity:.6;opacity:.6;display:none}.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}* html>body .clearfix{display:inline-block;width:100%}* html .clearfix{/*\*/height:1%;/**/}#lightboxIframe{display:none}
2
+ #jqlb_closelabel{background-image:url('./images/pl_PL/closelabel.gif');}
styles/lightbox.min.ru_RU.css CHANGED
@@ -1 +1 @@
1
- #lightbox{position:absolute;left:0;width:100%;z-index:100;text-align:center;line-height:0}#jqlb_loading{height:32px;background-image:url('./images/ru_RU/loading.gif');background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;background-image:url('./images/ru_RU/closelabel.gif');background-repeat:no-repeat;background-position:center center}#lightbox a img{border:none}#outerImageContainer{position:relative;background-color:#fff;width:250px;height:250px;margin:0 auto}#imageContainer{padding:10px}#loading{position:absolute;top:40%;left:0;height:25%;width:100%;text-align:center;line-height:0}#hoverNav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}#imageContainer>#hoverNav{left:0}#hoverNav a{outline:none}#prevLink,#nextLink{width:49%;height:100%;background:transparent url('./images/ru_RU/blank.gif') no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url('./images/ru_RU/prev.gif') left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url('./images/ru_RU/next.gif') right 50% no-repeat}#nextLinkText,#prevLinkText{color:#ff9834;font-weight:bold;text-decoration:none}#nextLinkText{padding-left:20px}#prevLinkText{padding-right:20px}.ontop #imageData{padding-top:5px}#imageDataContainer{font:10px Verdana,Helvetica,sans-serif;background-color:#fff;margin:0 auto;line-height:1.4em}#imageData{padding:0 10px}#imageData #imageDetails{width:70%;float:left;text-align:left}#imageData #caption{font-weight:bold}#imageData #numberDisplay{display:block;clear:left;padding-bottom:1.0em}#imageData #bottomNavClose{width:86px;float:right;padding-bottom:.7em}#imageData #helpDisplay{clear:left;float:left;display:block}#overlay{position:absolute;top:0;left:0;z-index:90;width:100%;height:500px;background-color:#000;filter:alpha(opacity=60);-moz-opacity:.6;opacity:.6;display:none}.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}* html>body .clearfix{display:inline-block;width:100%}* html .clearfix{/*\*/height:1%;/**/}#lightboxIframe{display:none}
1
+ #lightbox{position:absolute;left:0;width:100%;z-index:10100;text-align:center;line-height:0}#jqlb_loading{height:32px;background-image:url('./images/ru_RU/loading.gif');background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;background-image:url('./images/ru_RU/closelabel.gif');background-repeat:no-repeat;background-position:center center}#lightbox a img{border:none}#outerImageContainer{position:relative;background-color:#fff;width:250px;height:250px;margin:0 auto}#imageContainer{padding:10px}#loading{position:absolute;top:40%;left:0;height:25%;width:100%;text-align:center;line-height:0}#hoverNav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}#imageContainer>#hoverNav{left:0}#hoverNav a{outline:none}#prevLink,#nextLink{width:45%;height:100%;background:transparent url('./images/ru_RU/blank.gif') no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url('./images/ru_RU/prev.gif') left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url('./images/ru_RU/next.gif') right 50% no-repeat}#nextLinkText,#prevLinkText{color:#ff9834;font-weight:bold;text-decoration:none}#nextLinkText{padding-left:20px}#prevLinkText{padding-right:20px}.ontop #imageData{padding-top:5px}#imageDataContainer{font:10px Verdana,Helvetica,sans-serif;background-color:#fff;margin:0 auto;line-height:1.4em}#imageData{padding:0 10px}#imageData #imageDetails{width:70%;float:left;text-align:left}#imageData #caption{font-weight:bold}#imageData #numberDisplay{display:block;clear:left;padding-bottom:1.0em}#imageData #bottomNavClose{width:86px;float:right;padding-bottom:.7em}#imageData #helpDisplay{clear:left;float:left;display:block}#overlay{position:absolute;top:0;left:0;z-index:10090;width:100%;height:500px;background-color:#000;filter:alpha(opacity=60);-moz-opacity:.6;opacity:.6;display:none}.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}* html>body .clearfix{display:inline-block;width:100%}* html .clearfix{/*\*/height:1%;/**/}#lightboxIframe{display:none}
wp-jquery-lightbox.php CHANGED
@@ -3,26 +3,22 @@
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.3
7
  Author: Ulf Benjaminsson
8
  Author URI: http://www.ulfben.com
9
  */
10
  add_action( 'plugins_loaded', 'jqlb_init' );
11
  function jqlb_init() {
12
- if(!defined('WP_CONTENT_URL')){
13
- define('WP_CONTENT_URL', site_url('/wp-content'));
14
  }
15
- if(!defined('WP_PLUGIN_URL')){
16
- define('WP_PLUGIN_URL', WP_CONTENT_URL.'/plugins');
17
- }
18
- define('JQLB_PLUGIN_DIR', dirname( __FILE__ ) . '/');
19
- define('JQLB_DONATE_URL', 'http://www.amazon.com/gp/registry/wishlist/2QB6SQ5XX2U0N/105-3209188-5640446?reveal=unpurchased&filter=all&sort=priority&layout=standard&x=21&y=17');
20
- define('JQLB_BASENAME', plugin_basename(__FILE__));
21
- define('JQLB_URL', WP_PLUGIN_URL.'/wp-jquery-lightbox/');
22
- define('JQLB_SCRIPT_URL', JQLB_URL.'jquery.lightbox.min.js');
23
- define('JQLB_STYLES_URL', JQLB_URL.'styles/');
24
- define('JQLB_LANGUAGES_DIR', JQLB_PLUGIN_DIR . 'languages/');
25
- load_plugin_textdomain('jqlb', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/');
26
  add_action('admin_init', 'jqlb_register_settings');
27
  add_action('admin_menu', 'jqlb_register_menu_item');
28
  add_action('wp_print_styles', 'jqlb_css');
@@ -46,7 +42,7 @@ function jqlb_set_plugin_meta( $links, $file ) { // Add a link to this plugin's
46
  }
47
  function jqlb_add_admin_footer(){ //shows some plugin info in the footer of the config screen.
48
  $plugin_data = get_plugin_data(__FILE__);
49
- printf('%1$s by %2$s (who <a href="'.JQLB_DONATE_URL.'">appreciates books</a>) :)<br />', $plugin_data['Title'].' '.$plugin_data['Version'], $plugin_data['Author']);
50
  }
51
  function jqlb_register_settings(){
52
  register_setting( 'jqlb-settings-group', 'jqlb_automate', 'jqlb_bool_intval');
@@ -83,21 +79,20 @@ function jqlb_get_locale(){
83
  }
84
  return $locale;
85
  }
86
- function jqlb_css(){
87
  if(is_admin() || is_feed()){return;}
88
  $locale = jqlb_get_locale();
89
- $cssfile = JQLB_STYLES_URL.'lightbox.min.' . $locale . '.css';
90
- if(is_readable($cssfile)){
91
- wp_enqueue_style('jquery.lightbox.min.css', $cssfile, false, '1.3');
92
- }else{
93
- $default = 'lightbox.min.css';
94
- wp_enqueue_style('jquery.lightbox.min.css', JQLB_STYLES_URL.$default, false, '1.3');
95
- }
96
  }
97
  function jqlb_js() {
98
  if(is_admin() || is_feed()){return;}
99
  wp_enqueue_script('jquery', '', array(), false, true);
100
- wp_enqueue_script('wp-jquery-lightbox', JQLB_SCRIPT_URL, Array('jquery'), '1.3.3', true);
101
  wp_localize_script('wp-jquery-lightbox', 'JQLBSettings', array(
102
  'fitToScreen' => get_option('jqlb_resize_on_demand'),
103
  'resizeSpeed' => get_option('jqlb_resize_speed'),
@@ -149,7 +144,7 @@ function jqlb_apply_lightbox($content, $id = -1){
149
  Michael Tyson, you are a regular expressions god! - http://atastypixel.com */
150
  function jqlb_do_regexp($content, $id){
151
  $id = esc_attr($id);
152
- $pattern = "/(<a(?![^>]*?rel=['\"]lightbox.*)[^>]*?href=['\"][^'\"]+?\.(?:bmp|gif|jpg|jpeg|png)['\"][^\>]*)>/i";
153
  $replacement = '$1 rel="lightbox['.$id.']">';
154
  return preg_replace($pattern, $replacement, $content);
155
  }
@@ -166,14 +161,16 @@ function jqlb_options_panel(){
166
  die(__('Cheatin&#8217; uh?', 'jqlb'));
167
  }
168
  add_action('in_admin_footer', 'jqlb_add_admin_footer');
169
- ?>
 
170
  <div class="wrap">
171
- <h2>jQuery Lightbox</h2>
 
172
  <form method="post" action="options.php">
173
  <table>
174
  <?php settings_fields('jqlb-settings-group'); ?>
175
  <tr valign="baseline" colspan="2">
176
- <td colspan="2">
177
  <?php $check = get_option('jqlb_automate') ? ' checked="yes" ' : ''; ?>
178
  <input type="checkbox" id="jqlb_automate" name="jqlb_automate" value="1" <?php echo $check; ?>/>
179
  <label for="jqlb_automate" title="<?php _e('Let the plugin add necessary html to image links', 'jqlb') ?>"> <?php _e('Auto-lightbox image links', 'jqlb') ?></label>
@@ -248,9 +245,9 @@ _top: open the image in the full body of the window', 'jqlb') ?>"><?php _e('Targ
248
  </form>
249
  <?php
250
  $locale = jqlb_get_locale();
251
- $diskfile = JQLB_LANGUAGES_DIR . "howtouse-" . $locale . ".html";
252
  if (!file_exists($diskfile)){
253
- $diskfile = JQLB_LANGUAGES_DIR . "howtouse.html";
254
  }
255
  $text = false;
256
  if(function_exists('file_get_contents')){
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
  */
10
  add_action( 'plugins_loaded', 'jqlb_init' );
11
  function jqlb_init() {
12
+ if(!defined('ULFBEN_DONATE_URL')){
13
+ define('ULFBEN_DONATE_URL', 'http://www.amazon.com/gp/registry/wishlist/2QB6SQ5XX2U0N/105-3209188-5640446?reveal=unpurchased&filter=all&sort=priority&layout=standard&x=21&y=17');
14
  }
15
+ //JQLB_PLUGIN_DIR == plugin_dir_path(__FILE__);
16
+ //JQLB_URL = plugin_dir_url(__FILE__);
17
+ //JQLB_STYLES_URL = plugin_dir_url(__FILE__).'styles/'
18
+ //JQLB_LANGUAGES_DIR = plugin_dir_path(__FILE__) . 'languages/'
19
+ define('JQLB_SCRIPT', 'jquery.lightbox.min.js');
20
+ load_plugin_textdomain('jqlb', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/');
21
+ //load_plugin_textdomain('jqlb', false, plugin_dir_path(__FILE__).'languages/');
 
 
 
 
22
  add_action('admin_init', 'jqlb_register_settings');
23
  add_action('admin_menu', 'jqlb_register_menu_item');
24
  add_action('wp_print_styles', 'jqlb_css');
42
  }
43
  function jqlb_add_admin_footer(){ //shows some plugin info in the footer of the config screen.
44
  $plugin_data = get_plugin_data(__FILE__);
45
+ printf('%1$s by %2$s (who <a href="'.ULFBEN_DONATE_URL.'">appreciates books</a>) :)<br />', $plugin_data['Title'].' '.$plugin_data['Version'], $plugin_data['Author']);
46
  }
47
  function jqlb_register_settings(){
48
  register_setting( 'jqlb-settings-group', 'jqlb_automate', 'jqlb_bool_intval');
79
  }
80
  return $locale;
81
  }
82
+ function jqlb_css(){
83
  if(is_admin() || is_feed()){return;}
84
  $locale = jqlb_get_locale();
85
+ $fileName = "lightbox.min.{$locale}.css";
86
+ $path = plugin_dir_path(__FILE__)."styles/{$fileName}";
87
+ if(!is_readable($path)){
88
+ $fileName = 'lightbox.min.css';
89
+ }
90
+ wp_enqueue_style('jquery.lightbox.min.css', plugin_dir_url(__FILE__).'styles/'.$fileName, false, '1.3.4');
 
91
  }
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'),
144
  Michael Tyson, you are a regular expressions god! - http://atastypixel.com */
145
  function jqlb_do_regexp($content, $id){
146
  $id = esc_attr($id);
147
+ $pattern = "/(<a(?![^>]*?rel=['\"]lightbox.*)[^>]*?href=['\"][^'\"]+?\.(?:bmp|gif|jpg|jpeg|png)\?{0,1}\S{0,}['\"][^\>]*)>/i";
148
  $replacement = '$1 rel="lightbox['.$id.']">';
149
  return preg_replace($pattern, $replacement, $content);
150
  }
161
  die(__('Cheatin&#8217; uh?', 'jqlb'));
162
  }
163
  add_action('in_admin_footer', 'jqlb_add_admin_footer');
164
+ ?>
165
+
166
  <div class="wrap">
167
+ <h2>jQuery Lightbox</h2>
168
+ <?php include_once(plugin_dir_path(__FILE__).'about.php'); ?>
169
  <form method="post" action="options.php">
170
  <table>
171
  <?php settings_fields('jqlb-settings-group'); ?>
172
  <tr valign="baseline" colspan="2">
173
+ <td colspan="">
174
  <?php $check = get_option('jqlb_automate') ? ' checked="yes" ' : ''; ?>
175
  <input type="checkbox" id="jqlb_automate" name="jqlb_automate" value="1" <?php echo $check; ?>/>
176
  <label for="jqlb_automate" title="<?php _e('Let the plugin add necessary html to image links', 'jqlb') ?>"> <?php _e('Auto-lightbox image links', 'jqlb') ?></label>
245
  </form>
246
  <?php
247
  $locale = jqlb_get_locale();
248
+ $diskfile = plugin_dir_path(__FILE__)."languages/howtouse-{$locale}.html";
249
  if (!file_exists($diskfile)){
250
+ $diskfile = plugin_dir_path(__FILE__).'languages/howtouse.html';
251
  }
252
  $text = false;
253
  if(function_exists('file_get_contents')){