Version Description
Support for auto-lightboxing comments. Added Polish, Russian and Czech languages.
Download this release
Release Info
Developer | ulfben |
Plugin | WP jQuery Lightbox |
Version | 1.3.2 |
Comparing to | |
See all releases |
Code changes from version 1.3.1 to 1.3.2
- images/cs_CZ/blank.gif +0 -0
- images/cs_CZ/close.gif +0 -0
- images/cs_CZ/closelabel.gif +0 -0
- images/cs_CZ/loading.gif +0 -0
- images/cs_CZ/next.gif +0 -0
- images/cs_CZ/nextlabel.gif +0 -0
- images/cs_CZ/prev.gif +0 -0
- images/cs_CZ/prevlabel.gif +0 -0
- images/ru_RU/blank.gif +0 -0
- images/ru_RU/close.gif +0 -0
- images/ru_RU/closelabel.gif +0 -0
- images/ru_RU/loading.gif +0 -0
- images/ru_RU/next.gif +0 -0
- images/ru_RU/nextlabel.gif +0 -0
- images/ru_RU/prev.gif +0 -0
- images/ru_RU/prevlabel.gif +0 -0
- jquery.lightbox.js +39 -42
- jquery.lightbox.min.js +1 -1
- languages/howtouse-en_US.html +8 -0
- languages/howtouse.html +8 -0
- languages/jqlb-pl_PL.mo +0 -0
- languages/jqlb-pl_PL.po +80 -0
- lightbox.min.cs_CZ.css +1 -0
- lightbox.min.ru_RU.css +1 -0
- readme.txt +30 -5
- screenshot-1.jpg +0 -0
- screenshot-2.jpg +0 -0
- screenshot-3.jpg +0 -0
- wp-jquery-lightbox.php +27 -4
images/cs_CZ/blank.gif
ADDED
Binary file
|
images/cs_CZ/close.gif
ADDED
Binary file
|
images/cs_CZ/closelabel.gif
ADDED
Binary file
|
images/cs_CZ/loading.gif
ADDED
Binary file
|
images/cs_CZ/next.gif
ADDED
Binary file
|
images/cs_CZ/nextlabel.gif
ADDED
Binary file
|
images/cs_CZ/prev.gif
ADDED
Binary file
|
images/cs_CZ/prevlabel.gif
ADDED
Binary file
|
images/ru_RU/blank.gif
ADDED
Binary file
|
images/ru_RU/close.gif
ADDED
Binary file
|
images/ru_RU/closelabel.gif
ADDED
Binary file
|
images/ru_RU/loading.gif
ADDED
Binary file
|
images/ru_RU/next.gif
ADDED
Binary file
|
images/ru_RU/nextlabel.gif
ADDED
Binary file
|
images/ru_RU/prev.gif
ADDED
Binary file
|
images/ru_RU/prevlabel.gif
ADDED
Binary file
|
jquery.lightbox.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* WP jQuery Lightbox
|
3 |
-
* Version 1.3 - 2011-05-
|
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-
|
@@ -121,7 +121,7 @@
|
|
121 |
function start(imageLink) {
|
122 |
jQuery("select, embed, object").hide();
|
123 |
var arrayPageSize = getPageSize();
|
124 |
-
|
125 |
imageNum = 0;
|
126 |
// if data is not provided by jsonData parameter
|
127 |
if(!opts.jsonData) {
|
@@ -342,25 +342,24 @@
|
|
342 |
jQuery('#caption').html('').hide();
|
343 |
if(opts.imageArray[opts.activeImage][1]){
|
344 |
jQuery('#caption').html(opts.imageArray[opts.activeImage][1]).show();
|
345 |
-
}
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
}
|
364 |
jQuery("#imageData").show();
|
365 |
updateNav();
|
366 |
};
|
@@ -442,7 +441,6 @@
|
|
442 |
imageArray : new Array,
|
443 |
activeImage : null,
|
444 |
inprogress : false, //this is an internal state variable. don't touch.
|
445 |
-
resizeSpeed : 250,
|
446 |
widthCurrent: 250,
|
447 |
heightCurrent: 250,
|
448 |
xScale : 1,
|
@@ -450,39 +448,38 @@
|
|
450 |
displayTitle: true,
|
451 |
navbarOnTop: false,
|
452 |
displayHelp: false,
|
453 |
-
displayDownloadLink: true,
|
454 |
-
strings : {
|
455 |
-
help: ' \u2190 / P - previous image\u00a0\u00a0\u00a0\u00a0\u2192 / N - next image\u00a0\u00a0\u00a0\u00a0ESC / X - close image gallery',
|
456 |
-
prevLinkTitle: 'previous image',
|
457 |
-
nextLinkTitle: 'next image',
|
458 |
-
prevLinkText: '« Previous',
|
459 |
-
nextLinkText: 'Next »',
|
460 |
-
closeTitle: 'close image gallery',
|
461 |
-
image: 'Image ',
|
462 |
-
of: ' of ',
|
463 |
-
download: 'Download'
|
464 |
-
},
|
465 |
-
fitToScreen: true, // resize images if they are bigger than window
|
466 |
disableNavbarLinks: true,
|
467 |
loopImages: true,
|
468 |
imageClickClose: true,
|
469 |
jsonData: null,
|
470 |
jsonDataParser: null,
|
471 |
-
animate: true,
|
472 |
followScroll: false
|
473 |
-
};
|
474 |
-
|
475 |
})(jQuery);
|
476 |
|
|
|
|
|
|
|
|
|
477 |
jQuery(document).ready(function(){
|
478 |
if(typeof JQLBSettings == 'object' && JQLBSettings.resizeSpeed){JQLBSettings.resizeSpeed = parseInt(JQLBSettings.resizeSpeed);}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
479 |
jQuery('a[rel^="lightbox"]').lightbox({
|
480 |
fitToScreen: (typeof JQLBSettings == 'object' && JQLBSettings.fitToScreen == '1') ? true : false,
|
481 |
-
resizeSpeed: (typeof JQLBSettings == 'object' && JQLBSettings.resizeSpeed >= 0) ? JQLBSettings.resizeSpeed :
|
482 |
animate: (typeof JQLBSettings == 'object' && JQLBSettings.resizeSpeed == 0) ? false : true,
|
483 |
displayDownloadLink: (typeof JQLBSettings == 'object' && JQLBSettings.displayDownloadLink == '0') ? false : true,
|
484 |
//followScroll: (typeof JQLBSettings == 'object' && JQLBSettings.followScroll == '0') ? false : true,
|
485 |
-
strings: JQLBSettings
|
486 |
-
});
|
487 |
-
|
488 |
});
|
1 |
/**
|
2 |
* WP jQuery Lightbox
|
3 |
+
* Version 1.3.2 - 2011-05-17
|
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-
|
121 |
function start(imageLink) {
|
122 |
jQuery("select, embed, object").hide();
|
123 |
var arrayPageSize = getPageSize();
|
124 |
+
jQuery("#overlay").hide().css({width: arrayPageSize[0]+"px", height: arrayPageSize[1]+'px', opacity : opts.overlayOpacity}).fadeIn(400);
|
125 |
imageNum = 0;
|
126 |
// if data is not provided by jsonData parameter
|
127 |
if(!opts.jsonData) {
|
342 |
jQuery('#caption').html('').hide();
|
343 |
if(opts.imageArray[opts.activeImage][1]){
|
344 |
jQuery('#caption').html(opts.imageArray[opts.activeImage][1]).show();
|
345 |
+
}
|
346 |
+
var nav_html = '';
|
347 |
+
var prev = '';
|
348 |
+
var pos = (opts.imageArray.length > 1) ? opts.strings.image + (opts.activeImage + 1) + opts.strings.of + opts.imageArray.length : '';
|
349 |
+
var link = (opts.displayDownloadLink) ? '<a href="' + opts.imageArray[opts.activeImage][0] + '" id="downloadLink">' + opts.strings.download + '</a>' : '';
|
350 |
+
var next = '';
|
351 |
+
if(opts.imageArray.length > 1 && !opts.disableNavbarLinks){ // display previous / next text links
|
352 |
+
if((opts.activeImage) > 0 || opts.loopImages) {
|
353 |
+
prev = '<a title="' + opts.strings.prevLinkTitle + '" href="#" id="prevLinkText">' + opts.strings.prevLinkText + "</a>";
|
354 |
+
}
|
355 |
+
if(((opts.activeImage + 1) < opts.imageArray.length) || opts.loopImages) {
|
356 |
+
next += '<a title="' + opts.strings.nextLinkTitle + '" href="#" id="nextLinkText">' + opts.strings.nextLinkText + "</a>";
|
357 |
+
}
|
358 |
+
}
|
359 |
+
nav_html = prev + nav_html + pos + link + next;
|
360 |
+
if(nav_html != ''){
|
361 |
+
jQuery('#numberDisplay').html(nav_html).show();
|
362 |
+
}
|
|
|
363 |
jQuery("#imageData").show();
|
364 |
updateNav();
|
365 |
};
|
441 |
imageArray : new Array,
|
442 |
activeImage : null,
|
443 |
inprogress : false, //this is an internal state variable. don't touch.
|
|
|
444 |
widthCurrent: 250,
|
445 |
heightCurrent: 250,
|
446 |
xScale : 1,
|
448 |
displayTitle: true,
|
449 |
navbarOnTop: false,
|
450 |
displayHelp: false,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
451 |
disableNavbarLinks: true,
|
452 |
loopImages: true,
|
453 |
imageClickClose: true,
|
454 |
jsonData: null,
|
455 |
jsonDataParser: null,
|
|
|
456 |
followScroll: false
|
457 |
+
};
|
|
|
458 |
})(jQuery);
|
459 |
|
460 |
+
/*
|
461 |
+
Se till att all initiering sker p� ett st�lle och att JQLBSettings �r optional
|
462 |
+
Se till Download-l�nken l�ggs till �ven om bilden inte �r i ett sett.
|
463 |
+
*/
|
464 |
jQuery(document).ready(function(){
|
465 |
if(typeof JQLBSettings == 'object' && JQLBSettings.resizeSpeed){JQLBSettings.resizeSpeed = parseInt(JQLBSettings.resizeSpeed);}
|
466 |
+
var default_strings = {
|
467 |
+
help: ' \u2190 / P - previous image\u00a0\u00a0\u00a0\u00a0\u2192 / N - next image\u00a0\u00a0\u00a0\u00a0ESC / X - close image gallery',
|
468 |
+
prevLinkTitle: 'previous image',
|
469 |
+
nextLinkTitle: 'next image',
|
470 |
+
prevLinkText: '« Previous',
|
471 |
+
nextLinkText: 'Next »',
|
472 |
+
closeTitle: 'close image gallery',
|
473 |
+
image: 'Image ',
|
474 |
+
of: ' of ',
|
475 |
+
download: 'Bajs'
|
476 |
+
};
|
477 |
jQuery('a[rel^="lightbox"]').lightbox({
|
478 |
fitToScreen: (typeof JQLBSettings == 'object' && JQLBSettings.fitToScreen == '1') ? true : false,
|
479 |
+
resizeSpeed: (typeof JQLBSettings == 'object' && JQLBSettings.resizeSpeed >= 0) ? JQLBSettings.resizeSpeed : 400,
|
480 |
animate: (typeof JQLBSettings == 'object' && JQLBSettings.resizeSpeed == 0) ? false : true,
|
481 |
displayDownloadLink: (typeof JQLBSettings == 'object' && JQLBSettings.displayDownloadLink == '0') ? false : true,
|
482 |
//followScroll: (typeof JQLBSettings == 'object' && JQLBSettings.followScroll == '0') ? false : true,
|
483 |
+
strings: (typeof JQLBSettings == 'object' && typeof JQLBSettings.help == 'string') ? JQLBSettings : default_strings
|
484 |
+
});
|
|
|
485 |
});
|
jquery.lightbox.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(a){a.fn.lightbox=function(h){var t=a.extend({},a.fn.lightbox.defaults,h);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.inprogress=false;if(t.jsonData&&t.jsonData.length>0){var A=t.jsonDataParser?t.jsonDataParser:a.fn.lightbox.parseJsonData;t.imageArray=[];t.imageArray=A(t.jsonData);}var x='<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 z='<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){z+='<span id="helpDisplay">'+t.strings.help+"</span>";}z+='<a href="javascript://" id="bottomNavClose" title="'+t.strings.closeTitle+'"><div id="jqlb_closelabel"></div></a></div></div></div>';var y;if(t.navbarOnTop){y='<div id="overlay"></div><div id="lightbox">'+z+x+"</div>";a("body").append(y);a("#imageDataContainer").addClass("ontop");}else{y='<div id="overlay"></div><div id="lightbox">'+x+z+"</div>";a("body").append(y);}a("#overlay").click(function(){l();}).hide();a("#lightbox").click(function(){l();}).hide();a("#loadingLink").click(function(){l();return false;});a("#bottomNavClose").click(function(){l();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(x){if(t.resizeTimeout){clearTimeout(t.resizeTimeout);t.resizeTimeout=false;}t.resizeTimeout=setTimeout(function(){w(false);},15);}function v(){return new Array(a(document).width(),a(document).height(),a(window).width(),a(window).height());}function g(){var y,x;if(self.pageYOffset){x=self.pageYOffset;y=self.pageXOffset;}else{if(document.documentElement&&document.documentElement.scrollTop){x=document.documentElement.scrollTop;y=document.documentElement.scrollLeft;}else{if(document.body){x=document.body.scrollTop;y=document.body.scrollLeft;}}}return new Array(y,x);}function o(B){a("select, embed, object").hide();var z=v();var y=a("#overlay").hide().css({width:z[0]+"px",height:z[1]+"px",opacity:t.overlayOpacity}).fadeIn(400);imageNum=0;if(!t.jsonData){t.imageArray=[];if(!B.rel||(B.rel=="")){var A="";if(B.title){A=B.title;}else{if(a(this).children(":first-child").attr("title")){A=a(this).children(":first-child").attr("title");}}t.imageArray.push(new Array(B.href,t.displayTitle?A:""));}else{a("a").each(function(){if(this.href&&(this.rel==B.rel)){var F="";var D="";var H="";var C=a(this);if(this.title){F=this.title;}else{if(C.children("img:first-child").attr("title")){F=C.children("img:first-child").attr("title");}}if(C.parent().next(".gallery-caption").html()){var G=C.parent().next(".gallery-caption");D=G.html();H=G.text();}else{if(C.next(".wp-caption-text").html()){D=C.next(".wp-caption-text").html();H=C.next(".wp-caption-text").text();}}F=a.trim(F);H=a.trim(H);if(F.toLowerCase()==H.toLowerCase()){F=D;D="";}var E="";if(F!=""&&D!=""){E=F+"<br />"+D;}else{if(F!=""){E=F;}else{if(D!=""){E=D;}}}t.imageArray.push(new Array(this.href,t.displayTitle?E:""));}});}}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]!=B.href){imageNum++;}}var x=g();m(x[1],x[0]).show();u(imageNum);}function u(x){if(t.inprogress==false){t.inprogress=true;t.activeImage=x;a("#loading").show();a("#lightboxImage").hide();a("#hoverNav").hide();a("#prevLink").hide();a("#nextLink").hide();k();}}function k(){t.imgPreloader=new Image();t.imgPreloader.onload=function(){f();a("#lightboxImage").attr("src",t.imageArray[t.activeImage][0]);w();};t.imgPreloader.src=t.imageArray[t.activeImage][0];}function w(y){if(!t.imgPreloader){return;}if(y==undefined){y=t.animate;}var A=t.imgPreloader.width;var x=t.imgPreloader.height;var B=v();c();var F=B[2]-2*t.borderSize;var G=B[3]-(a("#imageDataContainer").height()+(2*t.borderSize));if(t.fitToScreen){var D=1;if(x>G){D=G/x;}A=A*D;x=x*D;D=1;if(A>F){D=F/A;}A=parseInt(A*D);x=parseInt(x*D);}var C=g();var z=C[1]+(G*0.5);var E=z-x*0.5;a("#lightboxImage").width(A).height(x);n(A,x,E,y);}function n(B,y,C,A){if(A==undefined){A=t.animate;}t.widthCurrent=a("#outerImageContainer").outerWidth();t.heightCurrent=a("#outerImageContainer").outerHeight();var x=Math.max(350,B+(t.borderSize*2));var z=(y+(t.borderSize*2));t.xScale=(x/t.widthCurrent)*100;t.yScale=(z/t.heightCurrent)*100;wDiff=t.widthCurrent-x;hDiff=t.heightCurrent-z;m(C,null,A);if(A&&(hDiff!=0&&wDiff!=0)){a("#imageDataContainer").animate({width:x},t.resizeSpeed,"linear");a("#outerImageContainer").animate({width:x},t.resizeSpeed,"linear",function(){a("#outerImageContainer").animate({height:z},t.resizeSpeed,"linear",function(){d();});});}else{a("#imageDataContainer").width(x);a("#outerImageContainer").width(x);a("#outerImageContainer").height(z);d();}a("#prevLink").height(y);a("#nextLink").height(y);}function m(A,z,y){if(y==undefined){y=t.animate;}if(z==undefined||z==null){var x=g();z=x[0];}if(y){a("#lightbox").animate({top:A},250,"linear");return a("#lightbox").animate({left:z},250,"linear");}return a("#lightbox").css({top:A+"px",left:z+"px"});}function l(){q();a("#lightbox").hide();a("#overlay").fadeOut();a("select, object, embed").show();}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 d(){a("#imageData").show();a("#caption").show();a("#loading").hide();if(t.animate){a("#lightboxImage").fadeIn("fast");}else{a("#lightboxImage").show();}t.inprogress=false;var x=v();a("#overlay").css({width:x[0]+"px",height:x[1]+"px"});r();}function c(){a("#numberDisplay").html("");a("#caption").html("").hide();if(t.imageArray[t.activeImage][1]){a("#caption").html(t.imageArray[t.activeImage][1]).show();}if(t.imageArray.length>1){var x;x=t.strings.image+(t.activeImage+1)+t.strings.of+t.imageArray.length;if(t.displayDownloadLink){x+='<a href="'+t.imageArray[t.activeImage][0]+'" id="downloadLink">'+t.strings.download+"</a>";}if(!t.disableNavbarLinks){if((t.activeImage)>0||t.loopImages){x='<a title="'+t.strings.prevLinkTitle+'" href="#" id="prevLinkText">'+t.strings.prevLinkText+"</a>"+x;}if(((t.activeImage+1)<t.imageArray.length)||t.loopImages){x+='<a title="'+t.strings.nextLinkTitle+'" href="#" id="nextLinkText">'+t.strings.nextLinkText+"</a>";}}a("#numberDisplay").html(x).show();}a("#imageData").show();r();}function r(){if(t.imageArray.length>1){a("#hoverNav").show();if(t.loopImages){a("#prevLink,#prevLinkText").show().click(function(){u((t.activeImage==0)?(t.imageArray.length-1):t.activeImage-1);return false;});a("#nextLink,#nextLinkText").show().click(function(){u((t.activeImage==(t.imageArray.length-1))?0:t.activeImage+1);return false;});}else{if(t.activeImage!=0){a("#prevLink,#prevLinkText").show().click(function(){u(t.activeImage-1);return false;});}if(t.activeImage!=(t.imageArray.length-1)){a("#nextLink,#nextLinkText").show().click(function(){u(t.activeImage+1);return false;});}}b();}}function s(A){var B=A.data.opts;var x=A.keyCode;var y=27;var z=String.fromCharCode(x).toLowerCase();if((z=="x")||(z=="o")||(z=="c")||(x==y)){l();}else{if((z=="p")||(x==37)){if(B.loopImages){q();u((B.activeImage==0)?(B.imageArray.length-1):B.activeImage-1);}else{if(B.activeImage!=0){q();u(B.activeImage-1);}}}else{if((z=="n")||(x==39)){if(t.loopImages){q();u((B.activeImage==(B.imageArray.length-1))?0:B.activeImage+1);}else{if(B.activeImage!=(B.imageArray.length-1)){q();u(B.activeImage+1);}}}}}}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,resizeSpeed:250,widthCurrent:250,heightCurrent:250,xScale:1,yScale:1,displayTitle:true,navbarOnTop:false,displayHelp:false,displayDownloadLink:true,strings:{help:" \u2190 / P - previous image\u00a0\u00a0\u00a0\u00a0\u2192 / N - next image\u00a0\u00a0\u00a0\u00a0ESC / X - close image gallery",prevLinkTitle:"previous image",nextLinkTitle:"next image",prevLinkText:"« Previous",nextLinkText:"Next »",closeTitle:"close image gallery",image:"Image ",of:" of ",download:"Download"},fitToScreen:true,disableNavbarLinks:true,loopImages:true,imageClickClose:true,jsonData:null,jsonDataParser:null,animate:true,followScroll:false};})(jQuery);jQuery(document).ready(function(){if(typeof JQLBSettings=="object"&&JQLBSettings.resizeSpeed){JQLBSettings.resizeSpeed=parseInt(JQLBSettings.resizeSpeed);}jQuery('a[rel^="lightbox"]').lightbox({fitToScreen:(typeof JQLBSettings=="object"&&JQLBSettings.fitToScreen=="1")?true:false,resizeSpeed:(typeof JQLBSettings=="object"&&JQLBSettings.resizeSpeed>=0)?JQLBSettings.resizeSpeed:250,animate:(typeof JQLBSettings=="object"&&JQLBSettings.resizeSpeed==0)?false:true,displayDownloadLink:(typeof JQLBSettings=="object"&&JQLBSettings.displayDownloadLink=="0")?false:true,strings:JQLBSettings});});
|
1 |
+
(function(a){a.fn.lightbox=function(h){var t=a.extend({},a.fn.lightbox.defaults,h);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.inprogress=false;if(t.jsonData&&t.jsonData.length>0){var A=t.jsonDataParser?t.jsonDataParser:a.fn.lightbox.parseJsonData;t.imageArray=[];t.imageArray=A(t.jsonData)}var x='<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 z='<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){z+='<span id="helpDisplay">'+t.strings.help+"</span>"}z+='<a href="javascript://" id="bottomNavClose" title="'+t.strings.closeTitle+'"><div id="jqlb_closelabel"></div></a></div></div></div>';var y;if(t.navbarOnTop){y='<div id="overlay"></div><div id="lightbox">'+z+x+"</div>";a("body").append(y);a("#imageDataContainer").addClass("ontop")}else{y='<div id="overlay"></div><div id="lightbox">'+x+z+"</div>";a("body").append(y)}a("#overlay").click(function(){l()}).hide();a("#lightbox").click(function(){l()}).hide();a("#loadingLink").click(function(){l();return false});a("#bottomNavClose").click(function(){l();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(x){if(t.resizeTimeout){clearTimeout(t.resizeTimeout);t.resizeTimeout=false}t.resizeTimeout=setTimeout(function(){w(false)},15)}function v(){return new Array(a(document).width(),a(document).height(),a(window).width(),a(window).height())}function g(){var y,x;if(self.pageYOffset){x=self.pageYOffset;y=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){x=document.documentElement.scrollTop;y=document.documentElement.scrollLeft}else{if(document.body){x=document.body.scrollTop;y=document.body.scrollLeft}}}return new Array(y,x)}function o(A){a("select, embed, object").hide();var y=v();a("#overlay").hide().css({width:y[0]+"px",height:y[1]+"px",opacity:t.overlayOpacity}).fadeIn(400);imageNum=0;if(!t.jsonData){t.imageArray=[];if(!A.rel||(A.rel=="")){var z="";if(A.title){z=A.title}else{if(a(this).children(":first-child").attr("title")){z=a(this).children(":first-child").attr("title")}}t.imageArray.push(new Array(A.href,t.displayTitle?z:""))}else{a("a").each(function(){if(this.href&&(this.rel==A.rel)){var E="";var C="";var G="";var B=a(this);if(this.title){E=this.title}else{if(B.children("img:first-child").attr("title")){E=B.children("img:first-child").attr("title")}}if(B.parent().next(".gallery-caption").html()){var F=B.parent().next(".gallery-caption");C=F.html();G=F.text()}else{if(B.next(".wp-caption-text").html()){C=B.next(".wp-caption-text").html();G=B.next(".wp-caption-text").text()}}E=a.trim(E);G=a.trim(G);if(E.toLowerCase()==G.toLowerCase()){E=C;C=""}var D="";if(E!=""&&C!=""){D=E+"<br />"+C}else{if(E!=""){D=E}else{if(C!=""){D=C}}}t.imageArray.push(new Array(this.href,t.displayTitle?D:""))}})}}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]!=A.href){imageNum++}}var x=g();m(x[1],x[0]).show();u(imageNum)}function u(x){if(t.inprogress==false){t.inprogress=true;t.activeImage=x;a("#loading").show();a("#lightboxImage").hide();a("#hoverNav").hide();a("#prevLink").hide();a("#nextLink").hide();k()}}function k(){t.imgPreloader=new Image();t.imgPreloader.onload=function(){f();a("#lightboxImage").attr("src",t.imageArray[t.activeImage][0]);w()};t.imgPreloader.src=t.imageArray[t.activeImage][0]}function w(y){if(!t.imgPreloader){return}if(y==undefined){y=t.animate}var A=t.imgPreloader.width;var x=t.imgPreloader.height;var B=v();c();var F=B[2]-2*t.borderSize;var G=B[3]-(a("#imageDataContainer").height()+(2*t.borderSize));if(t.fitToScreen){var D=1;if(x>G){D=G/x}A=A*D;x=x*D;D=1;if(A>F){D=F/A}A=parseInt(A*D);x=parseInt(x*D)}var C=g();var z=C[1]+(G*0.5);var E=z-x*0.5;a("#lightboxImage").width(A).height(x);n(A,x,E,y)}function n(B,y,C,A){if(A==undefined){A=t.animate}t.widthCurrent=a("#outerImageContainer").outerWidth();t.heightCurrent=a("#outerImageContainer").outerHeight();var x=Math.max(350,B+(t.borderSize*2));var z=(y+(t.borderSize*2));t.xScale=(x/t.widthCurrent)*100;t.yScale=(z/t.heightCurrent)*100;wDiff=t.widthCurrent-x;hDiff=t.heightCurrent-z;m(C,null,A);if(A&&(hDiff!=0&&wDiff!=0)){a("#imageDataContainer").animate({width:x},t.resizeSpeed,"linear");a("#outerImageContainer").animate({width:x},t.resizeSpeed,"linear",function(){a("#outerImageContainer").animate({height:z},t.resizeSpeed,"linear",function(){d()})})}else{a("#imageDataContainer").width(x);a("#outerImageContainer").width(x);a("#outerImageContainer").height(z);d()}a("#prevLink").height(y);a("#nextLink").height(y)}function m(A,z,y){if(y==undefined){y=t.animate}if(z==undefined||z==null){var x=g();z=x[0]}if(y){a("#lightbox").animate({top:A},250,"linear");return a("#lightbox").animate({left:z},250,"linear")}return a("#lightbox").css({top:A+"px",left:z+"px"})}function l(){q();a("#lightbox").hide();a("#overlay").fadeOut();a("select, object, embed").show()}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 d(){a("#imageData").show();a("#caption").show();a("#loading").hide();if(t.animate){a("#lightboxImage").fadeIn("fast")}else{a("#lightboxImage").show()}t.inprogress=false;var x=v();a("#overlay").css({width:x[0]+"px",height:x[1]+"px"});r()}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 A="";var z="";var B=(t.imageArray.length>1)?t.strings.image+(t.activeImage+1)+t.strings.of+t.imageArray.length:"";var y=(t.displayDownloadLink)?'<a href="'+t.imageArray[t.activeImage][0]+'" id="downloadLink">'+t.strings.download+"</a>":"";var x="";if(t.imageArray.length>1&&!t.disableNavbarLinks){if((t.activeImage)>0||t.loopImages){z='<a title="'+t.strings.prevLinkTitle+'" href="#" id="prevLinkText">'+t.strings.prevLinkText+"</a>"}if(((t.activeImage+1)<t.imageArray.length)||t.loopImages){x+='<a title="'+t.strings.nextLinkTitle+'" href="#" id="nextLinkText">'+t.strings.nextLinkText+"</a>"}}A=z+A+B+y+x;if(A!=""){a("#numberDisplay").html(A).show()}a("#imageData").show();r()}function r(){if(t.imageArray.length>1){a("#hoverNav").show();if(t.loopImages){a("#prevLink,#prevLinkText").show().click(function(){u((t.activeImage==0)?(t.imageArray.length-1):t.activeImage-1);return false});a("#nextLink,#nextLinkText").show().click(function(){u((t.activeImage==(t.imageArray.length-1))?0:t.activeImage+1);return false})}else{if(t.activeImage!=0){a("#prevLink,#prevLinkText").show().click(function(){u(t.activeImage-1);return false})}if(t.activeImage!=(t.imageArray.length-1)){a("#nextLink,#nextLinkText").show().click(function(){u(t.activeImage+1);return false})}}b()}}function s(A){var B=A.data.opts;var x=A.keyCode;var y=27;var z=String.fromCharCode(x).toLowerCase();if((z=="x")||(z=="o")||(z=="c")||(x==y)){l()}else{if((z=="p")||(x==37)){if(B.loopImages){q();u((B.activeImage==0)?(B.imageArray.length-1):B.activeImage-1)}else{if(B.activeImage!=0){q();u(B.activeImage-1)}}}else{if((z=="n")||(x==39)){if(t.loopImages){q();u((B.activeImage==(B.imageArray.length-1))?0:B.activeImage+1)}else{if(B.activeImage!=(B.imageArray.length-1)){q();u(B.activeImage+1)}}}}}}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,navbarOnTop:false,displayHelp:false,disableNavbarLinks:true,loopImages:true,imageClickClose:true,jsonData:null,jsonDataParser:null,followScroll:false}})(jQuery);jQuery(document).ready(function(){if(typeof JQLBSettings=="object"&&JQLBSettings.resizeSpeed){JQLBSettings.resizeSpeed=parseInt(JQLBSettings.resizeSpeed)}var a={help:" \u2190 / P - previous image\u00a0\u00a0\u00a0\u00a0\u2192 / N - next image\u00a0\u00a0\u00a0\u00a0ESC / X - close image gallery",prevLinkTitle:"previous image",nextLinkTitle:"next image",prevLinkText:"« Previous",nextLinkText:"Next »",closeTitle:"close image gallery",image:"Image ",of:" of ",download:"Bajs"};jQuery('a[rel^="lightbox"]').lightbox({fitToScreen:(typeof JQLBSettings=="object"&&JQLBSettings.fitToScreen=="1")?true:false,resizeSpeed:(typeof JQLBSettings=="object"&&JQLBSettings.resizeSpeed>=0)?JQLBSettings.resizeSpeed:400,animate:(typeof JQLBSettings=="object"&&JQLBSettings.resizeSpeed==0)?false:true,displayDownloadLink:(typeof JQLBSettings=="object"&&JQLBSettings.displayDownloadLink=="0")?false:true,strings:(typeof JQLBSettings=="object"&&typeof JQLBSettings.help=="string")?JQLBSettings:a})});
|
languages/howtouse-en_US.html
CHANGED
@@ -15,6 +15,13 @@
|
|
15 |
<ol>
|
16 |
<li>Always have <code>wp_footer();</code> just before the closing </body> tag of your theme, or you will break many plugins, which generally use this hook to reference JavaScript files</li>
|
17 |
<li>Apply lightbox to any content by running <code>jqlb_apply_lightbox($your_content, "any ID");</code> It returns a string with all image links lightboxed, grouped by "any id"</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
</ol>
|
19 |
<h2>Credits</h2><ul style="list-style-type: circle;margin-left: 24px;">
|
20 |
<li>wp-jquery-lightbox was created by <a href="http://www.ulfben.com">Ulf Benjaminsson</a> (who <a href="http://amzn.com/w/2QB6SQ5XX2U0N">appreciates books</a>). :)</li>
|
@@ -23,6 +30,7 @@
|
|
23 |
<li><a href="http://github.com/krewenki/jquery-lightbox/">jQuery Lightbox</a> is based on <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox 2 by Lokesh Dhakar</a></li>
|
24 |
<li>Translation support (and german language files) added by <a href="http://sukimashita.com/">Martin S</a></li>
|
25 |
<li>Translation for admin pages (and Russian and Czech languages) added by Denis N. Voituk</li>
|
|
|
26 |
</ul>
|
27 |
|
28 |
<h2>Changes to Lightbox-script:</h2><p style="margin-left: 24px;">
|
15 |
<ol>
|
16 |
<li>Always have <code>wp_footer();</code> just before the closing </body> tag of your theme, or you will break many plugins, which generally use this hook to reference JavaScript files</li>
|
17 |
<li>Apply lightbox to any content by running <code>jqlb_apply_lightbox($your_content, "any ID");</code> It returns a string with all image links lightboxed, grouped by "any id"</li>
|
18 |
+
<li>Many JavaScript optimizers, combiners, minifiers, etc. conflict with <a href="http://codex.wordpress.org/Function_Reference/wp_localize_script2"><code>wp_localize_script()</code></a>, used to configure this plugin and many others.
|
19 |
+
<ul style="list-style-type: circle;margin-left: 24px;">
|
20 |
+
<li>If you experience problems with jQuery Lightbox, please disable all JavaScript-optimizing plugins. (Optimize Scripts, W3 Total Cache, WP Minify etc)</li>
|
21 |
+
<li>If you develop JavaScript optimizers for WordPress, please play nice with the default API...</li>
|
22 |
+
<li><a href="http://wordpress.org/support/topic/122-worked-13-does-not-work-for-me?replies=19">More info about this issue</a></li>
|
23 |
+
</ul>
|
24 |
+
</li>
|
25 |
</ol>
|
26 |
<h2>Credits</h2><ul style="list-style-type: circle;margin-left: 24px;">
|
27 |
<li>wp-jquery-lightbox was created by <a href="http://www.ulfben.com">Ulf Benjaminsson</a> (who <a href="http://amzn.com/w/2QB6SQ5XX2U0N">appreciates books</a>). :)</li>
|
30 |
<li><a href="http://github.com/krewenki/jquery-lightbox/">jQuery Lightbox</a> is based on <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox 2 by Lokesh Dhakar</a></li>
|
31 |
<li>Translation support (and german language files) added by <a href="http://sukimashita.com/">Martin S</a></li>
|
32 |
<li>Translation for admin pages (and Russian and Czech languages) added by Denis N. Voituk</li>
|
33 |
+
<li>Polish localization <a href="http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-polish-localization?replies=1">by Fisiu</a></li>
|
34 |
</ul>
|
35 |
|
36 |
<h2>Changes to Lightbox-script:</h2><p style="margin-left: 24px;">
|
languages/howtouse.html
CHANGED
@@ -15,6 +15,13 @@
|
|
15 |
<ol>
|
16 |
<li>Always have <code>wp_footer();</code> just before the closing </body> tag of your theme, or you will break many plugins, which generally use this hook to reference JavaScript files</li>
|
17 |
<li>Apply lightbox to any content by running <code>jqlb_apply_lightbox($your_content, "any ID");</code> It returns a string with all image links lightboxed, grouped by "any id"</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
</ol>
|
19 |
<h2>Credits</h2><ul style="list-style-type: circle;margin-left: 24px;">
|
20 |
<li>wp-jquery-lightbox was created by <a href="http://www.ulfben.com">Ulf Benjaminsson</a> (who <a href="http://amzn.com/w/2QB6SQ5XX2U0N">appreciates books</a>). :)</li>
|
@@ -23,6 +30,7 @@
|
|
23 |
<li><a href="http://github.com/krewenki/jquery-lightbox/">jQuery Lightbox</a> is based on <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox 2 by Lokesh Dhakar</a></li>
|
24 |
<li>Translation support (and german language files) added by <a href="http://sukimashita.com/">Martin S</a></li>
|
25 |
<li>Translation for admin pages (and Russian and Czech languages) added by Denis N. Voituk</li>
|
|
|
26 |
</ul>
|
27 |
|
28 |
<h2>Changes to Lightbox-script:</h2><p style="margin-left: 24px;">
|
15 |
<ol>
|
16 |
<li>Always have <code>wp_footer();</code> just before the closing </body> tag of your theme, or you will break many plugins, which generally use this hook to reference JavaScript files</li>
|
17 |
<li>Apply lightbox to any content by running <code>jqlb_apply_lightbox($your_content, "any ID");</code> It returns a string with all image links lightboxed, grouped by "any id"</li>
|
18 |
+
<li>Many JavaScript optimizers, combiners, minifiers, etc. conflict with <a href="http://codex.wordpress.org/Function_Reference/wp_localize_script2"><code>wp_localize_script()</code></a>, used to configure this plugin and many others.
|
19 |
+
<ul style="list-style-type: circle;margin-left: 24px;">
|
20 |
+
<li>If you experience problems with jQuery Lightbox, please disable all JavaScript-optimizing plugins. (Optimize Scripts, W3 Total Cache, WP Minify etc)</li>
|
21 |
+
<li>If you develop JavaScript optimizers for WordPress, please play nice with the default API...</li>
|
22 |
+
<li><a href="http://wordpress.org/support/topic/122-worked-13-does-not-work-for-me?replies=19">More info about this issue</a></li>
|
23 |
+
</ul>
|
24 |
+
</li>
|
25 |
</ol>
|
26 |
<h2>Credits</h2><ul style="list-style-type: circle;margin-left: 24px;">
|
27 |
<li>wp-jquery-lightbox was created by <a href="http://www.ulfben.com">Ulf Benjaminsson</a> (who <a href="http://amzn.com/w/2QB6SQ5XX2U0N">appreciates books</a>). :)</li>
|
30 |
<li><a href="http://github.com/krewenki/jquery-lightbox/">jQuery Lightbox</a> is based on <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox 2 by Lokesh Dhakar</a></li>
|
31 |
<li>Translation support (and german language files) added by <a href="http://sukimashita.com/">Martin S</a></li>
|
32 |
<li>Translation for admin pages (and Russian and Czech languages) added by Denis N. Voituk</li>
|
33 |
+
<li>Polish localization <a href="http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-polish-localization?replies=1">by Fisiu</a></li>
|
34 |
</ul>
|
35 |
|
36 |
<h2>Changes to Lightbox-script:</h2><p style="margin-left: 24px;">
|
languages/jqlb-pl_PL.mo
ADDED
Binary file
|
languages/jqlb-pl_PL.po
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Last-Translator: Mariusz Fik <fisiu@opensuse.org>, 2011.
|
2 |
+
msgid ""
|
3 |
+
msgstr ""
|
4 |
+
"Project-Id-Version: WP JQuery Lightbox\n"
|
5 |
+
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2011-02-20 15:12+0100\n"
|
7 |
+
"PO-Revision-Date: 2011-05-12 01:44+0200\n"
|
8 |
+
"Last-Translator: Mariusz Fik <fisiu@opensuse.org>\n"
|
9 |
+
"Language-Team: opensuse\n"
|
10 |
+
"Language: pl\n"
|
11 |
+
"MIME-Version: 1.0\n"
|
12 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
+
"Content-Transfer-Encoding: 8bit\n"
|
14 |
+
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
|
15 |
+
"|| n%100>=20) ? 1 : 2);\n"
|
16 |
+
"X-Generator: Virtaal 0.6.1\n"
|
17 |
+
"jquery-lightbox\n"
|
18 |
+
|
19 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:44
|
20 |
+
msgid "Settings"
|
21 |
+
msgstr "Ustawienia"
|
22 |
+
|
23 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:80
|
24 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:81
|
25 |
+
msgid "previous image"
|
26 |
+
msgstr "poprzedni obraz"
|
27 |
+
|
28 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:80
|
29 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:82
|
30 |
+
msgid "next image"
|
31 |
+
msgstr "następny obraz"
|
32 |
+
|
33 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:80
|
34 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:85
|
35 |
+
msgid "close image gallery"
|
36 |
+
msgstr "zamknij galerię"
|
37 |
+
|
38 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:83
|
39 |
+
msgid "« Previous"
|
40 |
+
msgstr "« Poprzedni"
|
41 |
+
|
42 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:84
|
43 |
+
msgid "Next »"
|
44 |
+
msgstr "Następny »"
|
45 |
+
|
46 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:86
|
47 |
+
msgid "Image "
|
48 |
+
msgstr "Obraz "
|
49 |
+
|
50 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:87
|
51 |
+
msgid " of "
|
52 |
+
msgstr " z "
|
53 |
+
|
54 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:107
|
55 |
+
msgid "Cheatin’ uh?"
|
56 |
+
msgstr "Oszukujesz?"
|
57 |
+
|
58 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:117
|
59 |
+
msgid "Auto-lightbox image links"
|
60 |
+
msgstr "Aktywuj automatycznie lightbox dla łącz z obrazami"
|
61 |
+
|
62 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:121
|
63 |
+
msgid "Let the plugin add necessary html to image links"
|
64 |
+
msgstr "Pozwól wtyczce dodać niezbędny kod html do łącz z obrazami"
|
65 |
+
|
66 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:125
|
67 |
+
msgid "Shrink large images to fit smaller screens"
|
68 |
+
msgstr "Przytnij duże obrazy dla mniejszych ekranów"
|
69 |
+
|
70 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:129
|
71 |
+
msgid "Note: <u>Excessively large images</u> waste bandwidth!"
|
72 |
+
msgstr "Uwaga: <u>Nadmiernie duże obrazy</u> marnują transfer!"
|
73 |
+
|
74 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:133
|
75 |
+
msgid "Animation speed (in milliseconds)"
|
76 |
+
msgstr "Szybkość animacji (w milisekundach)"
|
77 |
+
|
78 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:140
|
79 |
+
msgid "Save Changes"
|
80 |
+
msgstr "Zapisz zmiany"
|
lightbox.min.cs_CZ.css
ADDED
@@ -0,0 +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}
|
lightbox.min.ru_RU.css
ADDED
@@ -0,0 +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}
|
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: 2.9.2
|
6 |
Tested up to: 3.1.2
|
7 |
-
Stable tag: 1.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 |
|
@@ -12,9 +12,9 @@ A drop-in replacement for Lightbox 2 and similar plugins, shedding the bulk of P
|
|
12 |
|
13 |
This plugin lets you keep [the awesome Lightbox 2](http://www.huddletogether.com/projects/lightbox2/)-functionality, but sheds the bulk of the Prototype Framework **and** Scriptaculous Effects Library.
|
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 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
|
18 |
|
19 |
* Improved scaling *maximizes* use of screen space
|
20 |
* Live adjustment to the browser window and orientation of your phone
|
@@ -27,8 +27,12 @@ You can navigate the images with your keyboard: Arrows, P(revious)/N(ext) and X/
|
|
27 |
|
28 |
*If you value [my plugins](http://profiles.wordpress.org/users/ulfben/) please consider [sending me a book](http://amzn.com/w/2QB6SQ5XX2U0N)!*
|
29 |
|
30 |
-
= 1.3.
|
31 |
-
*
|
|
|
|
|
|
|
|
|
32 |
|
33 |
= 1.3 (2011-05-01) =
|
34 |
* Improved scaling to *maximize* display area.
|
@@ -68,9 +72,21 @@ You can navigate the images with your keyboard: Arrows, P(revious)/N(ext) and X/
|
|
68 |
= For developers: =
|
69 |
1. Always have `wp_footer();` just before the closing `</body>` tag of your theme, or you will break many plugins, which generally use this hook to reference JavaScript files.
|
70 |
1. Apply lightbox to any content by running `jqlb_apply_lightbox($your_content, "any ID");` It returns a string with all image links lightboxed, grouped by `"any id"`.
|
|
|
|
|
|
|
|
|
|
|
71 |
|
72 |
== Changelog ==
|
73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
= 1.3.1 (2011-05-02) =
|
75 |
* Forgot to include languages files! :)
|
76 |
|
@@ -106,6 +122,9 @@ You can navigate the images with your keyboard: Arrows, P(revious)/N(ext) and X/
|
|
106 |
|
107 |
== Upgrade Notice ==
|
108 |
|
|
|
|
|
|
|
109 |
= 1.3.1 =
|
110 |
Added missing files from previous release... Also: mobile support, larger display area.
|
111 |
|
@@ -127,6 +146,12 @@ Honors empty captions and fixes some typos.
|
|
127 |
= 1.0 =
|
128 |
First release.
|
129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
== Frequently Asked Questions ==
|
131 |
|
132 |
= I can see elements of my site through the overlay =
|
4 |
Tags: lightbox, jquery, nodal, image, display, ulfben
|
5 |
Requires at least: 2.9.2
|
6 |
Tested up to: 3.1.2
|
7 |
+
Stable tag: 1.3.2
|
8 |
|
9 |
A drop-in replacement for Lightbox 2 and similar plugins, shedding the bulk of Prototype and Scriptaculous. Improved for mobile devices.
|
10 |
|
12 |
|
13 |
This plugin lets you keep [the awesome Lightbox 2](http://www.huddletogether.com/projects/lightbox2/)-functionality, but sheds the bulk of the Prototype Framework **and** Scriptaculous Effects Library.
|
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
|
27 |
|
28 |
*If you value [my plugins](http://profiles.wordpress.org/users/ulfben/) please consider [sending me a book](http://amzn.com/w/2QB6SQ5XX2U0N)!*
|
29 |
|
30 |
+
= 1.3.2 (2011-05-16) =
|
31 |
+
* Added support for auto-lightboxing comments too.
|
32 |
+
* Added Russian and Czech translations (incl. images). Thanks again Denis!
|
33 |
+
* Added Polish translation ([Thanks Fisiu](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-polish-localization?replies=1)).
|
34 |
+
* Fixed fallbacks to avoid [breakage over JavaScript optimizers](http://wordpress.org/support/topic/122-worked-13-does-not-work-for-me?replies=19#post-2091734).
|
35 |
+
* Known issues: [1.3.x is garbage on IE7 and IE8](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-jquery-version-and-ie-issues?replies=3). I've got no clue and no time - **help appreciated!**
|
36 |
|
37 |
= 1.3 (2011-05-01) =
|
38 |
* Improved scaling to *maximize* display area.
|
72 |
= For developers: =
|
73 |
1. Always have `wp_footer();` just before the closing `</body>` tag of your theme, or you will break many plugins, which generally use this hook to reference JavaScript files.
|
74 |
1. Apply lightbox to any content by running `jqlb_apply_lightbox($your_content, "any ID");` It returns a string with all image links lightboxed, grouped by `"any id"`.
|
75 |
+
1. 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.
|
76 |
+
|
77 |
+
* If you have problems with jQuery Lightbox; first disable all JavaScript-optimizing plugins. (Optimize Scripts, W3 Total Cache, WP Minify etc)
|
78 |
+
* If you develop JavaScript optimizers for WordPress, please play nice with the default API...
|
79 |
+
* [More info about this issue](http://wordpress.org/support/topic/122-worked-13-does-not-work-for-me?replies=19)
|
80 |
|
81 |
== Changelog ==
|
82 |
|
83 |
+
= 1.3.2 (2011-05-16) =
|
84 |
+
* Added support for auto-lightboxing comments too
|
85 |
+
* Added Russian and Czech translations (incl. images). Thanks again Denis!
|
86 |
+
* Added Polish translation ([thanks Fisiu](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-polish-localization?replies=1))
|
87 |
+
* Fixed fallbacks to avoid [breakage over JavaScript optimizers](http://wordpress.org/support/topic/122-worked-13-does-not-work-for-me?replies=19#post-2091734).
|
88 |
+
* Known issues: [1.3.x is garbage on IE7 and IE8](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-jquery-version-and-ie-issues?replies=3). I've got no clue and no time - **help appreciated!**
|
89 |
+
|
90 |
= 1.3.1 (2011-05-02) =
|
91 |
* Forgot to include languages files! :)
|
92 |
|
122 |
|
123 |
== Upgrade Notice ==
|
124 |
|
125 |
+
= 1.3.2 =
|
126 |
+
Support for auto-lightboxing comments. Added Polish, Russian and Czech languages.
|
127 |
+
|
128 |
= 1.3.1 =
|
129 |
Added missing files from previous release... Also: mobile support, larger display area.
|
130 |
|
146 |
= 1.0 =
|
147 |
First release.
|
148 |
|
149 |
+
== Screenshots ==
|
150 |
+
|
151 |
+
1. A post gallery on Android.
|
152 |
+
2. Lightbox displayed in landscape mode. Image info and 'close' is always visible, download link is optional. Click left/right side of image to navigate the set.
|
153 |
+
3. Lightbox, with device rotated. Image remains centered and as wide as possible.
|
154 |
+
|
155 |
== Frequently Asked Questions ==
|
156 |
|
157 |
= I can see elements of my site through the overlay =
|
screenshot-1.jpg
ADDED
Binary file
|
screenshot-2.jpg
ADDED
Binary file
|
screenshot-3.jpg
ADDED
Binary file
|
wp-jquery-lightbox.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: wp-jquery-lightbox
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/wp-jquery-lightbox/
|
5 |
Description: A drop in replacement for LightBox-2 and similar plugins. Uses jQuery to save you from the JS-library mess in your header. :)
|
6 |
-
Version: 1.3.
|
7 |
Author: Ulf Benjaminsson
|
8 |
Author URI: http://www.ulfben.com
|
9 |
*/
|
@@ -29,7 +29,12 @@ function jqlb_init() {
|
|
29 |
add_action('wp_print_scripts', 'jqlb_js');
|
30 |
add_filter('plugin_row_meta', 'jqlb_set_plugin_meta', 2, 10);
|
31 |
add_filter('the_content', 'jqlb_autoexpand_rel_wlightbox', 99);
|
|
|
|
|
|
|
|
|
32 |
}
|
|
|
33 |
function jqlb_set_plugin_meta( $links, $file ) { // Add a link to this plugin's settings page
|
34 |
static $this_plugin;
|
35 |
if(!$this_plugin) $this_plugin = plugin_basename(__FILE__);
|
@@ -45,11 +50,13 @@ function jqlb_add_admin_footer(){ //shows some plugin info in the footer of the
|
|
45 |
}
|
46 |
function jqlb_register_settings(){
|
47 |
register_setting( 'jqlb-settings-group', 'jqlb_automate', 'jqlb_bool_intval');
|
|
|
48 |
register_setting( 'jqlb-settings-group', 'jqlb_resize_on_demand', 'jqlb_bool_intval');
|
49 |
register_setting( 'jqlb-settings-group', 'jqlb_show_download', 'jqlb_bool_intval');
|
50 |
register_setting( 'jqlb-settings-group', 'jqlb_resize_speed', 'jqlb_pos_intval');
|
51 |
//register_setting( 'jqlb-settings-group', 'jqlb_follow_scroll', 'jqlb_bool_intval');
|
52 |
add_option('jqlb_automate', 1); //default is to auto-lightbox.
|
|
|
53 |
add_option('jqlb_resize_on_demand', 1); //default is to resize
|
54 |
add_option('jqlb_show_download', 0);
|
55 |
add_option('jqlb_resize_speed', 400);
|
@@ -81,7 +88,7 @@ function jqlb_css(){
|
|
81 |
function jqlb_js() {
|
82 |
if(is_admin() || is_feed()){return;}
|
83 |
wp_enqueue_script('jquery', '', array(), false, true);
|
84 |
-
wp_enqueue_script('wp-jquery-lightbox', JQLB_SCRIPT_URL, Array('jquery'), '1.3', true);
|
85 |
wp_localize_script('wp-jquery-lightbox', 'JQLBSettings', array(
|
86 |
'fitToScreen' => get_option('jqlb_resize_on_demand'),
|
87 |
'resizeSpeed' => get_option('jqlb_resize_speed'),
|
@@ -100,15 +107,24 @@ function jqlb_js() {
|
|
100 |
));
|
101 |
}
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
function jqlb_autoexpand_rel_wlightbox($content) {
|
104 |
if(get_option('jqlb_automate') == 1){
|
105 |
global $post;
|
106 |
-
$
|
|
|
107 |
}
|
108 |
return $content;
|
109 |
}
|
110 |
function jqlb_apply_lightbox($content, $id = -1){
|
111 |
-
if($id === -1){
|
112 |
$id = time().rand(0, 32768);
|
113 |
}
|
114 |
return jqlb_do_regexp($content, $id);
|
@@ -149,6 +165,13 @@ function jqlb_options_panel(){
|
|
149 |
<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>
|
150 |
</td>
|
151 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
<tr valign="baseline">
|
153 |
<td>
|
154 |
<?php $check = get_option('jqlb_show_download') ? ' checked="yes" ' : ''; ?>
|
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.2
|
7 |
Author: Ulf Benjaminsson
|
8 |
Author URI: http://www.ulfben.com
|
9 |
*/
|
29 |
add_action('wp_print_scripts', 'jqlb_js');
|
30 |
add_filter('plugin_row_meta', 'jqlb_set_plugin_meta', 2, 10);
|
31 |
add_filter('the_content', 'jqlb_autoexpand_rel_wlightbox', 99);
|
32 |
+
if(get_option('jqlb_comments') == 1){
|
33 |
+
remove_filter('pre_comment_content', 'wp_rel_nofollow');
|
34 |
+
add_filter('comment_text', 'jqlb_lightbox_comment', 99);
|
35 |
+
}
|
36 |
}
|
37 |
+
|
38 |
function jqlb_set_plugin_meta( $links, $file ) { // Add a link to this plugin's settings page
|
39 |
static $this_plugin;
|
40 |
if(!$this_plugin) $this_plugin = plugin_basename(__FILE__);
|
50 |
}
|
51 |
function jqlb_register_settings(){
|
52 |
register_setting( 'jqlb-settings-group', 'jqlb_automate', 'jqlb_bool_intval');
|
53 |
+
register_setting( 'jqlb-settings-group', 'jqlb_comments', 'jqlb_bool_intval');
|
54 |
register_setting( 'jqlb-settings-group', 'jqlb_resize_on_demand', 'jqlb_bool_intval');
|
55 |
register_setting( 'jqlb-settings-group', 'jqlb_show_download', 'jqlb_bool_intval');
|
56 |
register_setting( 'jqlb-settings-group', 'jqlb_resize_speed', 'jqlb_pos_intval');
|
57 |
//register_setting( 'jqlb-settings-group', 'jqlb_follow_scroll', 'jqlb_bool_intval');
|
58 |
add_option('jqlb_automate', 1); //default is to auto-lightbox.
|
59 |
+
add_option('jqlb_comments', 1);
|
60 |
add_option('jqlb_resize_on_demand', 1); //default is to resize
|
61 |
add_option('jqlb_show_download', 0);
|
62 |
add_option('jqlb_resize_speed', 400);
|
88 |
function jqlb_js() {
|
89 |
if(is_admin() || is_feed()){return;}
|
90 |
wp_enqueue_script('jquery', '', array(), false, true);
|
91 |
+
wp_enqueue_script('wp-jquery-lightbox', JQLB_SCRIPT_URL, Array('jquery'), '1.3.2', true);
|
92 |
wp_localize_script('wp-jquery-lightbox', 'JQLBSettings', array(
|
93 |
'fitToScreen' => get_option('jqlb_resize_on_demand'),
|
94 |
'resizeSpeed' => get_option('jqlb_resize_speed'),
|
107 |
));
|
108 |
}
|
109 |
|
110 |
+
function jqlb_lightbox_comment($comment){
|
111 |
+
$comment = str_replace('rel=\'external nofollow\'','', $comment);
|
112 |
+
$comment = str_replace('rel=\'nofollow\'','', $comment);
|
113 |
+
$comment = str_replace('rel="external nofollow"','', $comment);
|
114 |
+
$comment = str_replace('rel="nofollow"','', $comment);
|
115 |
+
return jqlb_autoexpand_rel_wlightbox($comment);
|
116 |
+
}
|
117 |
+
|
118 |
function jqlb_autoexpand_rel_wlightbox($content) {
|
119 |
if(get_option('jqlb_automate') == 1){
|
120 |
global $post;
|
121 |
+
$id = ($post->ID) ? $post->ID : -1;
|
122 |
+
$content = jqlb_do_regexp($content, $id);
|
123 |
}
|
124 |
return $content;
|
125 |
}
|
126 |
function jqlb_apply_lightbox($content, $id = -1){
|
127 |
+
if(!isset($id) || $id === -1){
|
128 |
$id = time().rand(0, 32768);
|
129 |
}
|
130 |
return jqlb_do_regexp($content, $id);
|
165 |
<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>
|
166 |
</td>
|
167 |
</tr>
|
168 |
+
<tr valign="baseline">
|
169 |
+
<td>
|
170 |
+
<?php $check = get_option('jqlb_comments') ? ' checked="yes" ' : ''; ?>
|
171 |
+
<input type="checkbox" id="jqlb_comments" name="jqlb_comments" value="1" <?php echo $check; ?>/>
|
172 |
+
<label for="jqlb_comments" title="<?php _e('Disables the nofollow-attribute of comment links, that otherwise interfere with the lightbox.', 'jqlb') ?>"> <?php _e('Enable lightbox in comments (disables <a href="http://codex.wordpress.org/Nofollow">the nofollow attribute!</a>)', 'jqlb') ?></label>
|
173 |
+
</td>
|
174 |
+
</tr>
|
175 |
<tr valign="baseline">
|
176 |
<td>
|
177 |
<?php $check = get_option('jqlb_show_download') ? ' checked="yes" ' : ''; ?>
|