Version Description
New Portugese translation. Support for WordPress' new translation system.
Download this release
Release Info
Developer | ulfben |
Plugin | WP jQuery Lightbox |
Version | 1.4.7 |
Comparing to | |
See all releases |
Code changes from version 1.4.5 to 1.4.7
- jquery.lightbox.js +137 -173
- jquery.lightbox.min.js +1 -1
- languages/jqlb-da_DK.mo +0 -0
- languages/jqlb-da_DK.po +144 -0
- languages/jqlb-lt_LT.mo +0 -0
- languages/jqlb-lt_LT.po +114 -37
- languages/jqlb-pt_BR.mo +0 -0
- languages/jqlb-pt_BR.po +143 -0
- languages/jqlb-pt_PT.mo +0 -0
- languages/jqlb-pt_PT.po +166 -0
- languages/jqlb-sk_SK.mo +0 -0
- languages/jqlb-sk_SK.po +103 -0
- readme.txt +54 -16
- styles/images/da_DK/blank.gif +0 -0
- styles/images/da_DK/close.gif +0 -0
- styles/images/da_DK/closelabel.gif +0 -0
- styles/images/da_DK/loading.gif +0 -0
- styles/images/da_DK/next.gif +0 -0
- styles/images/da_DK/nextlabel.gif +0 -0
- styles/images/da_DK/prev.gif +0 -0
- styles/images/da_DK/prevlabel.gif +0 -0
- styles/images/pt_PT/blank.gif +0 -0
- styles/images/pt_PT/close.gif +0 -0
- styles/images/pt_PT/closelabel.gif +0 -0
- styles/images/pt_PT/loading.gif +0 -0
- styles/images/pt_PT/next.gif +0 -0
- styles/images/pt_PT/nextlabel.gif +0 -0
- styles/images/pt_PT/prev.gif +0 -0
- styles/images/pt_PT/prevlabel.gif +0 -0
- styles/images/sk_SK/blank.gif +0 -0
- styles/images/sk_SK/close.gif +0 -0
- styles/images/sk_SK/closelabel.gif +0 -0
- styles/images/sk_SK/loading.gif +0 -0
- styles/images/sk_SK/next.gif +0 -0
- styles/images/sk_SK/nextlabel.gif +0 -0
- styles/images/sk_SK/prev.gif +0 -0
- styles/images/sk_SK/prevlabel.gif +0 -0
- styles/lightbox.css +82 -88
- styles/lightbox.min.css +1 -1
- styles/lightbox.min.da_DK.css +1 -0
- styles/lightbox.min.pt_PT.css +145 -0
- styles/lightbox.min.sk_SK.css +1 -0
- wp-jquery-lightbox.php +92 -78
jquery.lightbox.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* WP jQuery Lightbox
|
3 |
-
* Version 1.4.
|
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-
|
@@ -34,7 +34,6 @@
|
|
34 |
* Based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
|
35 |
* Originally written to make use of the Prototype framework, and Script.acalo.us, now altered to use jQuery.
|
36 |
**/
|
37 |
-
/** toyNN: davidtg@comtrya.com: fixed IE7-8 incompatabilities in 1.3.* branch **/
|
38 |
(function($){
|
39 |
//http://stackoverflow.com/a/16187766/347764
|
40 |
function versionCompare(a, b){
|
@@ -50,7 +49,6 @@
|
|
50 |
}
|
51 |
return a.length - b.length;
|
52 |
}
|
53 |
-
|
54 |
$.fn.lightbox = function(options) {
|
55 |
var opts = $.extend({}, $.fn.lightbox.defaults, options);
|
56 |
if($("#overlay").is(':visible')){//to resize the overlay whenever doLightbox is invoked
|
@@ -70,16 +68,12 @@
|
|
70 |
$(window).bind('orientationchange', resizeListener);
|
71 |
$(window).bind('resize', resizeListener);
|
72 |
$('#overlay').remove();
|
73 |
-
$('#lightbox').remove();
|
74 |
-
opts.isIE8 = isIE8(); // //http://www.grayston.net/2011/internet-explorer-v8-and-opacity-issues/
|
75 |
opts.inprogress = false;
|
76 |
opts.auto = -1;
|
77 |
var txt = opts.strings;
|
78 |
var outerImage = '<div id="outerImageContainer"><div id="imageContainer"><iframe id="lightboxIframe" /><img id="lightboxImage"><div id="hoverNav"><a href="javascript://" title="' + txt.prevLinkTitle + '" id="prevLink"></a><a href="javascript://" id="nextLink" title="' + txt.nextLinkTitle + '"></a></div><div id="jqlb_loading"><a href="javascript://" id="loadingLink"><div id="jqlb_spinner"></div></a></div></div></div>';
|
79 |
-
var imageData = '<div id="imageDataContainer" class="clearfix"><div id="imageData"><div id="imageDetails"><span id="
|
80 |
-
if (opts.displayHelp) {
|
81 |
-
imageData += '<span id="helpDisplay">' + txt.help + '</span>';
|
82 |
-
}
|
83 |
imageData += '<a href="javascript://" id="bottomNavClose" title="' + txt.closeTitle + '"><div id="jqlb_closelabel"></div></a></div></div></div>';
|
84 |
var string;
|
85 |
if (opts.navbarOnTop) {
|
@@ -109,60 +103,25 @@
|
|
109 |
}
|
110 |
opts.resizeTimeout = setTimeout(function () { doScale(); }, 50); //a delay to avoid duplicate event calls.
|
111 |
}
|
112 |
-
function getPageSize(){
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
};
|
121 |
-
//code for IE8 check provided by http://kangax.github.com/cft/
|
122 |
-
function isIE8() {
|
123 |
-
var isBuggy = false;
|
124 |
-
if (document.createElement) {
|
125 |
-
var el = document.createElement("div");
|
126 |
-
if (el && el.querySelectorAll) {
|
127 |
-
el.innerHTML = "<object><param name=\"\"></object>";
|
128 |
-
isBuggy = el.querySelectorAll("param").length != 1;
|
129 |
-
}
|
130 |
-
el = null;
|
131 |
-
}
|
132 |
-
return isBuggy;
|
133 |
-
};
|
134 |
function getPageScroll() {
|
135 |
-
var
|
136 |
-
|
137 |
-
yScroll = self.pageYOffset;
|
138 |
-
xScroll = self.pageXOffset;
|
139 |
-
} else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict
|
140 |
-
yScroll = document.documentElement.scrollTop;
|
141 |
-
xScroll = document.documentElement.scrollLeft;
|
142 |
-
} else if (document.body) {// all other Explorers
|
143 |
-
yScroll = document.body.scrollTop;
|
144 |
-
xScroll = document.body.scrollLeft;
|
145 |
-
}
|
146 |
-
if(opts.adminBarHeight && parseInt($('#wpadminbar').css('top'), 10) === 0){
|
147 |
yScroll += opts.adminBarHeight;
|
148 |
-
}
|
149 |
-
|
150 |
};
|
151 |
-
function start(imageLink) {
|
152 |
-
|
153 |
-
var arrayPageSize = getPageSize();
|
154 |
-
var arrayPagePos = getPageScroll();
|
155 |
var newTop = 0;
|
156 |
-
$("#overlay").hide().css({width:
|
157 |
-
if (opts.isIE8 && arrayPageSize[1] == 4096) {
|
158 |
-
if (arrayPagePos[1] >= 1000) {
|
159 |
-
newTop = arrayPagePos[1] - 1000;
|
160 |
-
if ((arrayPageSize[4] - (arrayPagePos[1] + 3096)) < 0) {
|
161 |
-
newTop -= (arrayPagePos[1] + 3096) - arrayPageSize[4];
|
162 |
-
}
|
163 |
-
$("#overlay").css({ top: newTop + 'px' });
|
164 |
-
}
|
165 |
-
}
|
166 |
var imageNum = 0;
|
167 |
var images = [];
|
168 |
opts.downloads = {}; //to keep track of any custom download links
|
@@ -170,46 +129,20 @@
|
|
170 |
if(!this.href || (this.rel != imageLink.rel)) {
|
171 |
return;
|
172 |
}
|
173 |
-
var title = '';
|
174 |
-
var caption = '';
|
175 |
-
var captionText = '';
|
176 |
var jqThis = $(this);
|
177 |
-
var
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
}
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
caption = jq.html();
|
188 |
-
captionText = jq.text();
|
189 |
-
} else if (jqThis.next('.wp-caption-text').html()) {
|
190 |
-
caption = jqThis.next('.wp-caption-text').html();
|
191 |
-
captionText = jqThis.next('.wp-caption-text').text();
|
192 |
-
}
|
193 |
-
title = $.trim(title);
|
194 |
-
captionText = $.trim(captionText).replace('’', ''').replace('’', '\''); //http://nickjohnson.com/b/wordpress-apostrophe-vs-right-single-quote
|
195 |
-
if (title.toLowerCase() == captionText.toLowerCase()) {
|
196 |
-
title = caption; //to keep linked captions
|
197 |
-
caption = ''; //but not duplicate the text
|
198 |
-
}
|
199 |
-
var s = '';
|
200 |
-
if (title != '') {
|
201 |
-
s = '<span id="titleText">' + title + '</span>';
|
202 |
-
}
|
203 |
-
if (caption != '') {
|
204 |
-
if (title != ''){
|
205 |
-
s += '<br />';
|
206 |
-
}
|
207 |
-
s += '<span id="captionText">' + caption +'</span>';
|
208 |
-
}
|
209 |
-
if(opts.displayDownloadLink || jqThis.attr("data-download")){
|
210 |
opts.downloads[images.length] = jqThis.attr("data-download"); //use length as an index. convenient since it will always be unique
|
211 |
}
|
212 |
-
images.push(new Array(this.href,
|
213 |
});
|
214 |
if (images.length > 1) {
|
215 |
for (i = 0; i < images.length; i++) {
|
@@ -221,17 +154,43 @@
|
|
221 |
}
|
222 |
while (images[imageNum][0] != imageLink.href) { imageNum++; }
|
223 |
}
|
224 |
-
opts.imageArray = images;
|
225 |
-
|
|
|
226 |
changeImage(imageNum);
|
227 |
setNav();
|
228 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
function setLightBoxPos(newTop, newLeft) {
|
230 |
if (opts.resizeSpeed > 0) {
|
231 |
-
return $('#lightbox').animate({ top: newTop+ 'px', left: newLeft+ 'px' },
|
232 |
}
|
233 |
return $('#lightbox').css({ top: newTop + 'px', left: newLeft + 'px' });
|
234 |
-
}
|
235 |
function changeImage(imageNum) {
|
236 |
if (opts.inprogress != false) {
|
237 |
return;
|
@@ -250,7 +209,8 @@
|
|
250 |
opts.imgPreloader = new Image();
|
251 |
opts.imgPreloader.onload = function () {
|
252 |
$('#lightboxImage').attr('src', opts.imageArray[opts.activeImage][0]);
|
253 |
-
|
|
|
254 |
preloadNeighborImages();
|
255 |
};
|
256 |
opts.imgPreloader.src = opts.imageArray[opts.activeImage][0];
|
@@ -258,21 +218,17 @@
|
|
258 |
function doScale() {
|
259 |
if (!opts.imgPreloader) {
|
260 |
return;
|
261 |
-
}
|
262 |
var newWidth = opts.imgPreloader.width;
|
263 |
var newHeight = opts.imgPreloader.height;
|
264 |
-
var
|
265 |
-
var noScrollWidth = (
|
266 |
-
$("#overlay").css({ width: noScrollWidth + 'px', height:
|
267 |
-
var maxHeight = (
|
268 |
-
var maxWidth = (
|
269 |
-
if
|
270 |
var displayHeight = maxHeight-opts.marginSize;
|
271 |
-
var displayWidth = maxWidth-opts.marginSize;
|
272 |
-
if($(window).width() > 500){ //high rez display
|
273 |
-
displayHeight -= opts.marginSize;
|
274 |
-
displayWidth -= opts.marginSize;
|
275 |
-
}
|
276 |
var ratio = 1;
|
277 |
if (newHeight > displayHeight) {
|
278 |
ratio = displayHeight / newHeight; //ex. 600/1024 = 0.58
|
@@ -286,24 +242,19 @@
|
|
286 |
newWidth = Math.round(newWidth * ratio);
|
287 |
newHeight = Math.round(newHeight * ratio);
|
288 |
}
|
289 |
-
var
|
290 |
-
var centerY =
|
291 |
-
var newTop = centerY - newHeight * 0.5;
|
292 |
-
var newLeft =
|
293 |
$('#lightboxImage').width(newWidth).height(newHeight);
|
294 |
resizeImageContainer(newWidth, newHeight, newTop, newLeft);
|
295 |
}
|
296 |
-
|
297 |
function resizeImageContainer(imgWidth, imgHeight, lightboxTop, lightboxLeft) {
|
298 |
opts.widthCurrent = $("#outerImageContainer").outerWidth();
|
299 |
opts.heightCurrent = $("#outerImageContainer").outerHeight();
|
300 |
var widthNew = Math.max(300, imgWidth + (opts.borderSize * 2)); //300 = iphone. http://wordpress.org/support/topic/image-not-resized-correctly-with-wptouch?replies=6#post-4205735
|
301 |
-
var heightNew = (imgHeight + (opts.borderSize * 2));
|
302 |
-
|
303 |
-
opts.xScale = (widthNew / opts.widthCurrent) * 100;
|
304 |
-
opts.yScale = (heightNew / opts.heightCurrent) * 100;
|
305 |
-
setLightBoxPos(lightboxTop, lightboxLeft);
|
306 |
-
updateDetails(); //toyNN: moved updateDetails() here, seems to work fine.
|
307 |
$('#imageDataContainer').animate({width:widthNew}, opts.resizeSpeed, 'linear');
|
308 |
$('#outerImageContainer').animate({width:widthNew,height:heightNew}, opts.resizeSpeed, 'linear', function () {
|
309 |
showImage();
|
@@ -315,30 +266,43 @@
|
|
315 |
}
|
316 |
$('#prevLink,#nextLink').height(imgHeight);
|
317 |
};
|
318 |
-
function showImage()
|
319 |
-
//assumes updateDetails have been called earlier!
|
320 |
-
$("#imageData").show();
|
321 |
-
$('#caption').show();
|
322 |
$('#jqlb_loading').hide();
|
323 |
-
|
|
|
324 |
$('#lightboxImage').fadeIn("fast", function(){
|
325 |
onImageVisible();
|
326 |
});
|
327 |
-
}
|
328 |
$('#lightboxImage').show();
|
329 |
onImageVisible();
|
330 |
}
|
331 |
opts.inprogress = false;
|
332 |
};
|
333 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
334 |
function onImageVisible(){
|
335 |
if(opts.auto != -1){
|
336 |
clearTimeout(opts.auto); //in case we came here after mouse/keyboard interaction
|
337 |
opts.auto = setTimeout(function(){changeImage((opts.activeImage == (opts.imageArray.length - 1)) ? 0 : opts.activeImage + 1);}, opts.slidehowSpeed);
|
338 |
}
|
339 |
enableKeyboardNav();
|
340 |
-
}
|
341 |
-
|
342 |
function preloadNeighborImages() {
|
343 |
if (opts.imageArray.length > 1) {
|
344 |
preloadNextImage = new Image();
|
@@ -356,31 +320,36 @@
|
|
356 |
}
|
357 |
}
|
358 |
};
|
359 |
-
|
360 |
-
function updateDetails() {
|
361 |
-
$('#numberDisplay').html('');
|
362 |
-
$('#caption').html('').hide();
|
363 |
var images = opts.imageArray;
|
364 |
var txt = opts.strings;
|
365 |
var i = opts.activeImage;
|
366 |
-
var downloadIndex = images[i][2];
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
371 |
if(opts.slidehowSpeed && images.length > 1){
|
372 |
var pp = (opts.auto === -1) ? txt.play : txt.pause;
|
373 |
-
|
374 |
-
}
|
375 |
-
|
|
|
|
|
376 |
var url = opts.downloads[downloadIndex] ? opts.downloads[downloadIndex] : images[i][0];
|
377 |
-
$('#downloadLink').
|
378 |
}else{
|
379 |
-
$('#downloadLink').
|
380 |
-
}
|
381 |
-
|
382 |
-
$('#numberDisplay').html(pos).show();
|
383 |
-
}
|
384 |
};
|
385 |
function setNav() {
|
386 |
if (opts.imageArray.length > 1) {
|
@@ -399,13 +368,13 @@
|
|
399 |
});
|
400 |
}
|
401 |
if(opts.slidehowSpeed){
|
402 |
-
$(
|
403 |
if(opts.auto != -1){
|
404 |
-
$(this).
|
405 |
clearTimeout(opts.auto);
|
406 |
opts.auto = -1;
|
407 |
}else{
|
408 |
-
$(this).
|
409 |
opts.auto = setTimeout(function(){changeImage((opts.activeImage == (opts.imageArray.length - 1)) ? 0 : opts.activeImage + 1);}, opts.slidehowSpeed);
|
410 |
}
|
411 |
return false;
|
@@ -419,8 +388,7 @@
|
|
419 |
clearTimeout(opts.auto);
|
420 |
opts.auto = -1;
|
421 |
$('#lightbox').hide();
|
422 |
-
$('#overlay').fadeOut();
|
423 |
-
// $('select, object, embed').show();
|
424 |
};
|
425 |
function keyboardAction(e) {
|
426 |
var o = e.data.opts;
|
@@ -447,25 +415,22 @@
|
|
447 |
};
|
448 |
};
|
449 |
$.fn.lightbox.defaults = {
|
450 |
-
|
|
|
451 |
adminBarHeight:0, //28
|
452 |
overlayOpacity: 0.8,
|
453 |
borderSize: 10,
|
454 |
imageArray: new Array,
|
455 |
activeImage: null,
|
456 |
inprogress: false, //this is an internal state variable. don't touch.
|
457 |
-
widthCurrent:
|
458 |
-
heightCurrent:
|
459 |
-
|
460 |
-
|
461 |
-
displayTitle: true,
|
462 |
-
imageClickClose: true,
|
463 |
-
followScroll: false,
|
464 |
-
isIE8: false //toyNN:internal value only
|
465 |
};
|
466 |
$(document).ready(doLightBox);
|
467 |
})(jQuery);
|
468 |
-
//you can call
|
469 |
function doLightBox(){
|
470 |
var haveConf = (typeof JQLBSettings == 'object');
|
471 |
var ss, rs, ms = 0;
|
@@ -478,8 +443,7 @@ function doLightBox(){
|
|
478 |
if(haveConf && JQLBSettings.marginSize){
|
479 |
ms = parseInt(JQLBSettings.marginSize);
|
480 |
}
|
481 |
-
var default_strings = {
|
482 |
-
help: ' Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close.',
|
483 |
prevLinkTitle: 'previous image',
|
484 |
nextLinkTitle: 'next image',
|
485 |
closeTitle: 'close image gallery',
|
@@ -491,15 +455,15 @@ function doLightBox(){
|
|
491 |
};
|
492 |
jQuery('a[rel^="lightbox"]').lightbox({
|
493 |
adminBarHeight: jQuery('#wpadminbar').height() || 0,
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
marginSize: (haveConf && ms) ? ms : 0,
|
498 |
fitToScreen: (haveConf && JQLBSettings.fitToScreen == '1') ? true : false,
|
499 |
resizeSpeed: (haveConf && rs >= 0) ? rs : 400,
|
500 |
slidehowSpeed: (haveConf && ss >= 0) ? ss : 4000,
|
501 |
-
|
502 |
navbarOnTop: (haveConf && JQLBSettings.navbarOnTop == '0') ? false : true,
|
503 |
-
strings: (haveConf && typeof JQLBSettings.
|
504 |
});
|
505 |
}
|
1 |
/**
|
2 |
* WP jQuery Lightbox
|
3 |
+
* Version 1.4.6 - 2015-03-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-
|
34 |
* Based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
|
35 |
* Originally written to make use of the Prototype framework, and Script.acalo.us, now altered to use jQuery.
|
36 |
**/
|
|
|
37 |
(function($){
|
38 |
//http://stackoverflow.com/a/16187766/347764
|
39 |
function versionCompare(a, b){
|
49 |
}
|
50 |
return a.length - b.length;
|
51 |
}
|
|
|
52 |
$.fn.lightbox = function(options) {
|
53 |
var opts = $.extend({}, $.fn.lightbox.defaults, options);
|
54 |
if($("#overlay").is(':visible')){//to resize the overlay whenever doLightbox is invoked
|
68 |
$(window).bind('orientationchange', resizeListener);
|
69 |
$(window).bind('resize', resizeListener);
|
70 |
$('#overlay').remove();
|
71 |
+
$('#lightbox').remove();
|
|
|
72 |
opts.inprogress = false;
|
73 |
opts.auto = -1;
|
74 |
var txt = opts.strings;
|
75 |
var outerImage = '<div id="outerImageContainer"><div id="imageContainer"><iframe id="lightboxIframe" /><img id="lightboxImage"><div id="hoverNav"><a href="javascript://" title="' + txt.prevLinkTitle + '" id="prevLink"></a><a href="javascript://" id="nextLink" title="' + txt.nextLinkTitle + '"></a></div><div id="jqlb_loading"><a href="javascript://" id="loadingLink"><div id="jqlb_spinner"></div></a></div></div></div>';
|
76 |
+
var imageData = '<div id="imageDataContainer" class="clearfix"><div id="imageData"><div id="imageDetails"><span id="titleAndCaption"></span><div id="controls"><span id="numberDisplay"></span> <a id="playPause" href="#"></a> <span id="downloadLink"></span></div></div><div id="bottomNav">';
|
|
|
|
|
|
|
77 |
imageData += '<a href="javascript://" id="bottomNavClose" title="' + txt.closeTitle + '"><div id="jqlb_closelabel"></div></a></div></div></div>';
|
78 |
var string;
|
79 |
if (opts.navbarOnTop) {
|
103 |
}
|
104 |
opts.resizeTimeout = setTimeout(function () { doScale(); }, 50); //a delay to avoid duplicate event calls.
|
105 |
}
|
106 |
+
function getPageSize(){
|
107 |
+
return {
|
108 |
+
pageWidth:$(document).width(), //returns width of HTML document
|
109 |
+
pageHeight:$(document).height(),
|
110 |
+
viewportWidth:$(window).width(), //width of browser viewport, minus scrollbars
|
111 |
+
viewportHeight:$(window).height()-opts.adminBarHeight,
|
112 |
+
};
|
113 |
+
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
function getPageScroll() {
|
115 |
+
var yScroll = $(document).scrollTop();
|
116 |
+
if(opts.adminBarHeight && parseInt($('#wpadminbar').css('top'), 10) === 0){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
yScroll += opts.adminBarHeight;
|
118 |
+
}
|
119 |
+
return {x:$(document).scrollLeft(), y:yScroll};
|
120 |
};
|
121 |
+
function start(imageLink) {
|
122 |
+
var pageSize = getPageSize();
|
|
|
|
|
123 |
var newTop = 0;
|
124 |
+
$("#overlay").hide().css({width: pageSize.pageWidth + 'px', height: pageSize.pageHeight + 'px', opacity: opts.overlayOpacity}).fadeIn(400);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
var imageNum = 0;
|
126 |
var images = [];
|
127 |
opts.downloads = {}; //to keep track of any custom download links
|
129 |
if(!this.href || (this.rel != imageLink.rel)) {
|
130 |
return;
|
131 |
}
|
|
|
|
|
|
|
132 |
var jqThis = $(this);
|
133 |
+
var title = opts.showTitle ? getTitle(jqThis) : '';
|
134 |
+
var caption = opts.showCaption ? getCaption(jqThis) : {html:'',text:''};
|
135 |
+
if(opts.showTitle && title.toLowerCase() == caption.text.toLowerCase()) {
|
136 |
+
title = caption.html; //to keep linked captions
|
137 |
+
caption.html = ''; //but not duplicate the text
|
138 |
+
}
|
139 |
+
var s= (title != '') ? '<span id="titleText">' + title + '</span>' : '';
|
140 |
+
s += (title != '' && caption.html)? '<br />' : '';
|
141 |
+
s += (caption.html != '') ? '<span id="captionText">' + caption.html +'</span>' : '';
|
142 |
+
if(opts.showDownload || jqThis.attr("data-download")){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
opts.downloads[images.length] = jqThis.attr("data-download"); //use length as an index. convenient since it will always be unique
|
144 |
}
|
145 |
+
images.push(new Array(this.href, s, images.length));
|
146 |
});
|
147 |
if (images.length > 1) {
|
148 |
for (i = 0; i < images.length; i++) {
|
154 |
}
|
155 |
while (images[imageNum][0] != imageLink.href) { imageNum++; }
|
156 |
}
|
157 |
+
opts.imageArray = images;
|
158 |
+
var scroll = getPageScroll();
|
159 |
+
setLightBoxPos(scroll.y, scroll.x).show();// calculate top and left offset for the lightbox
|
160 |
changeImage(imageNum);
|
161 |
setNav();
|
162 |
};
|
163 |
+
function getTitle(jqLink){
|
164 |
+
var title = jqLink.attr("title") || '';
|
165 |
+
if(!title){
|
166 |
+
var jqImg = jqLink.children('img:first-child');
|
167 |
+
if (jqImg.attr('title')) {
|
168 |
+
title = jqImg.attr('title'); //grab the title from the image if the link lacks one
|
169 |
+
} else if(jqImg.attr('alt')){
|
170 |
+
title = jqImg.attr('alt'); //if neither link nor image have a title attribute
|
171 |
+
}
|
172 |
+
}
|
173 |
+
return $.trim(title);
|
174 |
+
}
|
175 |
+
function getCaption(jqLink){
|
176 |
+
var caption = {html:'',text:''};
|
177 |
+
if (jqLink.parent().next('.gallery-caption').html()) {
|
178 |
+
var jq = jqLink.parent().next('.gallery-caption');
|
179 |
+
caption.html = jq.html(); //holds html, links etc
|
180 |
+
caption.text = jq.text(); //plain-text
|
181 |
+
} else if (jqLink.next('.wp-caption-text').html()) {
|
182 |
+
caption.html = jqLink.next('.wp-caption-text').html();
|
183 |
+
caption.text = jqLink.next('.wp-caption-text').text();
|
184 |
+
}
|
185 |
+
caption.text = $.trim(caption.text).replace('’', ''').replace('’', '\'').replace('…', '...');//http://nickjohnson.com/b/wordpress-apostrophe-vs-right-single-quote
|
186 |
+
return caption;
|
187 |
+
}
|
188 |
function setLightBoxPos(newTop, newLeft) {
|
189 |
if (opts.resizeSpeed > 0) {
|
190 |
+
return $('#lightbox').animate({ top: newTop+ 'px', left: newLeft+ 'px' }, opts.resizeSpeed, 'linear');
|
191 |
}
|
192 |
return $('#lightbox').css({ top: newTop + 'px', left: newLeft + 'px' });
|
193 |
+
};
|
194 |
function changeImage(imageNum) {
|
195 |
if (opts.inprogress != false) {
|
196 |
return;
|
209 |
opts.imgPreloader = new Image();
|
210 |
opts.imgPreloader.onload = function () {
|
211 |
$('#lightboxImage').attr('src', opts.imageArray[opts.activeImage][0]);
|
212 |
+
updateDetails();
|
213 |
+
doScale(); // once image is preloaded, resize image container
|
214 |
preloadNeighborImages();
|
215 |
};
|
216 |
opts.imgPreloader.src = opts.imageArray[opts.activeImage][0];
|
218 |
function doScale() {
|
219 |
if (!opts.imgPreloader) {
|
220 |
return;
|
221 |
+
}
|
222 |
var newWidth = opts.imgPreloader.width;
|
223 |
var newHeight = opts.imgPreloader.height;
|
224 |
+
var pageSize = getPageSize();
|
225 |
+
var noScrollWidth = (pageSize.viewportWidth < pageSize.pageWidth) ? pageSize.pageWidth : pageSize.viewportWidth; //if viewport is smaller than page, use page width.
|
226 |
+
$("#overlay").css({ width: noScrollWidth + 'px', height: pageSize.pageHeight + 'px' });
|
227 |
+
var maxHeight = (pageSize.viewportHeight) - ($("#imageDataContainer").outerHeight(true) + (2 * opts.borderSize));
|
228 |
+
var maxWidth = (pageSize.viewportWidth) - (2*opts.borderSize);
|
229 |
+
if(opts.fitToScreen){
|
230 |
var displayHeight = maxHeight-opts.marginSize;
|
231 |
+
var displayWidth = maxWidth-opts.marginSize;
|
|
|
|
|
|
|
|
|
232 |
var ratio = 1;
|
233 |
if (newHeight > displayHeight) {
|
234 |
ratio = displayHeight / newHeight; //ex. 600/1024 = 0.58
|
242 |
newWidth = Math.round(newWidth * ratio);
|
243 |
newHeight = Math.round(newHeight * ratio);
|
244 |
}
|
245 |
+
var scroll = getPageScroll();
|
246 |
+
var centerY = scroll.y + (maxHeight * 0.5);
|
247 |
+
var newTop = centerY - (newHeight * 0.5);
|
248 |
+
var newLeft = scroll.x;
|
249 |
$('#lightboxImage').width(newWidth).height(newHeight);
|
250 |
resizeImageContainer(newWidth, newHeight, newTop, newLeft);
|
251 |
}
|
|
|
252 |
function resizeImageContainer(imgWidth, imgHeight, lightboxTop, lightboxLeft) {
|
253 |
opts.widthCurrent = $("#outerImageContainer").outerWidth();
|
254 |
opts.heightCurrent = $("#outerImageContainer").outerHeight();
|
255 |
var widthNew = Math.max(300, imgWidth + (opts.borderSize * 2)); //300 = iphone. http://wordpress.org/support/topic/image-not-resized-correctly-with-wptouch?replies=6#post-4205735
|
256 |
+
var heightNew = (imgHeight + (opts.borderSize * 2));
|
257 |
+
setLightBoxPos(lightboxTop, lightboxLeft);
|
|
|
|
|
|
|
|
|
258 |
$('#imageDataContainer').animate({width:widthNew}, opts.resizeSpeed, 'linear');
|
259 |
$('#outerImageContainer').animate({width:widthNew,height:heightNew}, opts.resizeSpeed, 'linear', function () {
|
260 |
showImage();
|
266 |
}
|
267 |
$('#prevLink,#nextLink').height(imgHeight);
|
268 |
};
|
269 |
+
function showImage(){
|
|
|
|
|
|
|
270 |
$('#jqlb_loading').hide();
|
271 |
+
showDetails();
|
272 |
+
if(opts.resizeSpeed > 0){
|
273 |
$('#lightboxImage').fadeIn("fast", function(){
|
274 |
onImageVisible();
|
275 |
});
|
276 |
+
}else{
|
277 |
$('#lightboxImage').show();
|
278 |
onImageVisible();
|
279 |
}
|
280 |
opts.inprogress = false;
|
281 |
};
|
282 |
+
function showDetails(){
|
283 |
+
$('#titleAndCaption').css("opacity", 1);
|
284 |
+
if(opts.showDownload){
|
285 |
+
$('#downloadLink').css('opacity', 1);
|
286 |
+
}
|
287 |
+
if(opts.showNumbers){
|
288 |
+
$('#numberDisplay').css('opacity', 1);
|
289 |
+
}
|
290 |
+
if(opts.slidehowSpeed){
|
291 |
+
$('#playPause').css('opacity', 1);
|
292 |
+
}
|
293 |
+
if(opts.resizeSpeed > 0){
|
294 |
+
$("#imageDetails").animate({opacity: 1}, 'fast');
|
295 |
+
}else{
|
296 |
+
$("#imageDetails").css('opacity', 1);
|
297 |
+
}
|
298 |
+
}
|
299 |
function onImageVisible(){
|
300 |
if(opts.auto != -1){
|
301 |
clearTimeout(opts.auto); //in case we came here after mouse/keyboard interaction
|
302 |
opts.auto = setTimeout(function(){changeImage((opts.activeImage == (opts.imageArray.length - 1)) ? 0 : opts.activeImage + 1);}, opts.slidehowSpeed);
|
303 |
}
|
304 |
enableKeyboardNav();
|
305 |
+
}
|
|
|
306 |
function preloadNeighborImages() {
|
307 |
if (opts.imageArray.length > 1) {
|
308 |
preloadNextImage = new Image();
|
320 |
}
|
321 |
}
|
322 |
};
|
323 |
+
function updateDetails(){ //update caption, title and control, and makes them invisible while we animate into position.
|
|
|
|
|
|
|
324 |
var images = opts.imageArray;
|
325 |
var txt = opts.strings;
|
326 |
var i = opts.activeImage;
|
327 |
+
var downloadIndex = images[i][2];
|
328 |
+
var pos = (opts.showNumbers && images.length > 1) ? txt.image + (i + 1) + txt.of + images.length : '';
|
329 |
+
$("#imageDetails").css("opacity", 0);
|
330 |
+
if(images[i][1] != ''){
|
331 |
+
$('#titleAndCaption').css('opacity', 0).html(images[i][1]);
|
332 |
+
}else{
|
333 |
+
$('#titleAndCaption').empty();
|
334 |
+
}
|
335 |
+
if(opts.showNumbers){
|
336 |
+
$('#numberDisplay').css('opacity', 0).html(pos);
|
337 |
+
}else{
|
338 |
+
$('#numberDisplay').empty();
|
339 |
+
}
|
340 |
if(opts.slidehowSpeed && images.length > 1){
|
341 |
var pp = (opts.auto === -1) ? txt.play : txt.pause;
|
342 |
+
$('#playPause').css('opacity', 0).attr('href', '#').text(pp);
|
343 |
+
}else{
|
344 |
+
$('#playPause').empty();
|
345 |
+
}
|
346 |
+
if(opts.showDownload || opts.downloads[downloadIndex]){
|
347 |
var url = opts.downloads[downloadIndex] ? opts.downloads[downloadIndex] : images[i][0];
|
348 |
+
$('#downloadLink').css('opacity', 0).html($('<a>').attr('href', url).attr('target', '_blank').attr('download', '').text(txt.download));
|
349 |
}else{
|
350 |
+
$('#downloadLink').empty();
|
351 |
+
}
|
352 |
+
var position = $('#downloadLink').position();
|
|
|
|
|
353 |
};
|
354 |
function setNav() {
|
355 |
if (opts.imageArray.length > 1) {
|
368 |
});
|
369 |
}
|
370 |
if(opts.slidehowSpeed){
|
371 |
+
$('#playPause').unbind('click').click(function() {
|
372 |
if(opts.auto != -1){
|
373 |
+
$(this).text(opts.strings.play);
|
374 |
clearTimeout(opts.auto);
|
375 |
opts.auto = -1;
|
376 |
}else{
|
377 |
+
$(this).text(opts.strings.pause);
|
378 |
opts.auto = setTimeout(function(){changeImage((opts.activeImage == (opts.imageArray.length - 1)) ? 0 : opts.activeImage + 1);}, opts.slidehowSpeed);
|
379 |
}
|
380 |
return false;
|
388 |
clearTimeout(opts.auto);
|
389 |
opts.auto = -1;
|
390 |
$('#lightbox').hide();
|
391 |
+
$('#overlay').fadeOut();
|
|
|
392 |
};
|
393 |
function keyboardAction(e) {
|
394 |
var o = e.data.opts;
|
415 |
};
|
416 |
};
|
417 |
$.fn.lightbox.defaults = {
|
418 |
+
showCaption:false,
|
419 |
+
showNumbers:true,
|
420 |
adminBarHeight:0, //28
|
421 |
overlayOpacity: 0.8,
|
422 |
borderSize: 10,
|
423 |
imageArray: new Array,
|
424 |
activeImage: null,
|
425 |
inprogress: false, //this is an internal state variable. don't touch.
|
426 |
+
widthCurrent: 300,
|
427 |
+
heightCurrent: 300,
|
428 |
+
showTitle: true,
|
429 |
+
imageClickClose: true
|
|
|
|
|
|
|
|
|
430 |
};
|
431 |
$(document).ready(doLightBox);
|
432 |
})(jQuery);
|
433 |
+
//you can call doLightBox() manually at any time to activate the lightboxing. Useful for AJAX-loaded content.
|
434 |
function doLightBox(){
|
435 |
var haveConf = (typeof JQLBSettings == 'object');
|
436 |
var ss, rs, ms = 0;
|
443 |
if(haveConf && JQLBSettings.marginSize){
|
444 |
ms = parseInt(JQLBSettings.marginSize);
|
445 |
}
|
446 |
+
var default_strings = {
|
|
|
447 |
prevLinkTitle: 'previous image',
|
448 |
nextLinkTitle: 'next image',
|
449 |
closeTitle: 'close image gallery',
|
455 |
};
|
456 |
jQuery('a[rel^="lightbox"]').lightbox({
|
457 |
adminBarHeight: jQuery('#wpadminbar').height() || 0,
|
458 |
+
showNumbers: (haveConf && JQLBSettings.showNumbers == '0') ? false : true,
|
459 |
+
showCaption: (haveConf && JQLBSettings.showCaption == '0') ? false : true,
|
460 |
+
showTitle: (haveConf && JQLBSettings.showTitle == '0') ? false : true,
|
461 |
marginSize: (haveConf && ms) ? ms : 0,
|
462 |
fitToScreen: (haveConf && JQLBSettings.fitToScreen == '1') ? true : false,
|
463 |
resizeSpeed: (haveConf && rs >= 0) ? rs : 400,
|
464 |
slidehowSpeed: (haveConf && ss >= 0) ? ss : 4000,
|
465 |
+
showDownload: (haveConf && JQLBSettings.showDownload == '0') ? false : true,
|
466 |
navbarOnTop: (haveConf && JQLBSettings.navbarOnTop == '0') ? false : true,
|
467 |
+
strings: (haveConf && typeof JQLBSettings.prevLinkTitle == 'string') ? JQLBSettings : default_strings
|
468 |
});
|
469 |
}
|
jquery.lightbox.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(a){function b(f,c){var g,e,h;f=f.split(".");c=c.split(".");e=Math.min(f.length,c.length);for(g=0;g<e;g++){h=parseInt(f[g],10)-parseInt(c[g],10);if(h!==0){return h}}return f.length-c.length}a.fn.lightbox=function(l){var w=a.extend({},a.fn.lightbox.defaults,l);if(a("#overlay").is(":visible")){a(window).trigger("resize")}function r(){f();q(this);return false}if(b(a.fn.jquery,"1.7")>0){return a(this).on("click",r)}else{return a(this).live("click",r)}function f(){a(window).bind("orientationchange",s);a(window).bind("resize",s);a("#overlay").remove();a("#lightbox").remove();w.isIE8=x();w.inprogress=false;w.auto=-1;var C=w.strings;var B='<div id="outerImageContainer"><div id="imageContainer"><iframe id="lightboxIframe" /><img id="lightboxImage"><div id="hoverNav"><a href="javascript://" title="'+C.prevLinkTitle+'" id="prevLink"></a><a href="javascript://" id="nextLink" title="'+C.nextLinkTitle+'"></a></div><div id="jqlb_loading"><a href="javascript://" id="loadingLink"><div id="jqlb_spinner"></div></a></div></div></div>';var E='<div id="imageDataContainer" class="clearfix"><div id="imageData"><div id="imageDetails"><span id="caption"></span><p id="controls"><span id="numberDisplay"></span> <span id="downloadLink"><a href="" target="'+w.linkTarget+'">'+C.download+'</a></span></p></div><div id="bottomNav">';if(w.displayHelp){E+='<span id="helpDisplay">'+C.help+"</span>"}E+='<a href="javascript://" id="bottomNavClose" title="'+C.closeTitle+'"><div id="jqlb_closelabel"></div></a></div></div></div>';var D;if(w.navbarOnTop){D='<div id="overlay"></div><div id="lightbox">'+E+B+"</div>";a("body").append(D);a("#imageDataContainer").addClass("ontop")}else{D='<div id="overlay"></div><div id="lightbox">'+B+E+"</div>";a("body").append(D)}a("#overlay").click(function(){k()}).hide();a("#lightbox").click(function(){k()}).hide();a("#loadingLink").click(function(){k();return false});a("#bottomNavClose").click(function(){k();return false});a("#outerImageContainer").width(w.widthCurrent).height(w.heightCurrent);a("#imageDataContainer").width(w.widthCurrent);if(!w.imageClickClose){a("#lightboxImage").click(function(){return false});a("#hoverNav").click(function(){return false})}}function s(B){if(w.resizeTimeout){clearTimeout(w.resizeTimeout);w.resizeTimeout=false}w.resizeTimeout=setTimeout(function(){A()},50)}function z(){var C=a(document).height();if(w.isIE8&&C>4096){C=4096}var B=a(window).height()-w.adminBarHeight;return new Array(a(document).width(),C,a(window).width(),B,a(document).height())}function x(){var C=false;if(document.createElement){var B=document.createElement("div");if(B&&B.querySelectorAll){B.innerHTML='<object><param name=""></object>';C=B.querySelectorAll("param").length!=1}B=null}return C}function h(){var C=0;var B=0;if(self.pageYOffset){B=self.pageYOffset;C=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){B=document.documentElement.scrollTop;C=document.documentElement.scrollLeft}else{if(document.body){B=document.body.scrollTop;C=document.body.scrollLeft}}}if(w.adminBarHeight&&parseInt(a("#wpadminbar").css("top"),10)===0){B+=w.adminBarHeight}return new Array(C,B)}function q(G){var F=z();var C=h();var D=0;a("#overlay").hide().css({width:F[0]+"px",height:F[1]+"px",opacity:w.overlayOpacity}).fadeIn(400);if(w.isIE8&&F[1]==4096){if(C[1]>=1000){D=C[1]-1000;if((F[4]-(C[1]+3096))<0){D-=(C[1]+3096)-F[4]}a("#overlay").css({top:D+"px"})}}var E=0;var B=[];w.downloads={};a("a").each(function(){if(!this.href||(this.rel!=G.rel)){return}var L="";var I="";var N="";var H=a(this);var K=H.children("img:first-child");if(this.title){L=this.title}else{if(K.attr("title")){L=K.attr("title")}else{if(K.attr("alt")){L=K.attr("alt")}}}if(H.parent().next(".gallery-caption").html()){var M=H.parent().next(".gallery-caption");I=M.html();N=M.text()}else{if(H.next(".wp-caption-text").html()){I=H.next(".wp-caption-text").html();N=H.next(".wp-caption-text").text()}}L=a.trim(L);N=a.trim(N).replace("’","'").replace("’","'");if(L.toLowerCase()==N.toLowerCase()){L=I;I=""}var J="";if(L!=""){J='<span id="titleText">'+L+"</span>"}if(I!=""){if(L!=""){J+="<br />"}J+='<span id="captionText">'+I+"</span>"}if(w.displayDownloadLink||H.attr("data-download")){w.downloads[B.length]=H.attr("data-download")}B.push(new Array(this.href,w.displayTitle?J:"",B.length))});if(B.length>1){for(i=0;i<B.length;i++){for(j=B.length-1;j>i;j--){if(B[i][0]==B[j][0]){B.splice(j,1)}}}while(B[E][0]!=G.href){E++}}w.imageArray=B;n(C[1],C[0]).show();y(E);u()}function n(B,C){if(w.resizeSpeed>0){return a("#lightbox").animate({top:B+"px",left:C+"px"},250,"linear")}return a("#lightbox").css({top:B+"px",left:C+"px"})}function y(B){if(w.inprogress!=false){return}w.inprogress=true;w.activeImage=B;a("#jqlb_loading").show();a("#lightboxImage").hide();a("#hoverNav").hide();a("#prevLink").hide();a("#nextLink").hide();m()}function m(){w.imgPreloader=new Image();w.imgPreloader.onload=function(){a("#lightboxImage").attr("src",w.imageArray[w.activeImage][0]);A();g()};w.imgPreloader.src=w.imageArray[w.activeImage][0]}function A(){if(!w.imgPreloader){return}var E=w.imgPreloader.width;var B=w.imgPreloader.height;var G=z();var M=(G[2]<G[0])?G[0]:G[2];a("#overlay").css({width:M+"px",height:G[1]+"px"});var K=(G[3])-(a("#imageDataContainer").height()+(2*w.borderSize));var L=(G[2])-(2*w.borderSize);if(w.fitToScreen){var C=K-w.marginSize;var N=L-w.marginSize;if(a(window).width()>500){C-=w.marginSize;N-=w.marginSize}var H=1;if(B>C){H=C/B}E=E*H;B=B*H;H=1;if(E>N){H=N/E}E=Math.round(E*H);B=Math.round(B*H)}var F=h();var D=F[1]+(K*0.5);var I=D-B*0.5;var J=F[0];a("#lightboxImage").width(E).height(B);p(E,B,I,J)}function p(E,C,G,F){w.widthCurrent=a("#outerImageContainer").outerWidth();w.heightCurrent=a("#outerImageContainer").outerHeight();var B=Math.max(300,E+(w.borderSize*2));var D=(C+(w.borderSize*2));w.xScale=(B/w.widthCurrent)*100;w.yScale=(D/w.heightCurrent)*100;n(G,F);d();a("#imageDataContainer").animate({width:B},w.resizeSpeed,"linear");a("#outerImageContainer").animate({width:B,height:D},w.resizeSpeed,"linear",function(){e()});if(w.imageArray.length>1){a("#hoverNav").show();a("#prevLink").show();a("#nextLink").show()}a("#prevLink,#nextLink").height(C)}function e(){a("#imageData").show();a("#caption").show();a("#jqlb_loading").hide();if(w.resizeSpeed>0){a("#lightboxImage").fadeIn("fast",function(){o()})}else{a("#lightboxImage").show();o()}w.inprogress=false}function o(){if(w.auto!=-1){clearTimeout(w.auto);w.auto=setTimeout(function(){y((w.activeImage==(w.imageArray.length-1))?0:w.activeImage+1)},w.slidehowSpeed)}c()}function g(){if(w.imageArray.length>1){preloadNextImage=new Image();preloadNextImage.src=w.imageArray[(w.activeImage==(w.imageArray.length-1))?0:w.activeImage+1][0];preloadPrevImage=new Image();preloadPrevImage.src=w.imageArray[(w.activeImage==0)?(w.imageArray.length-1):w.activeImage-1][0]}else{if((w.imageArray.length-1)>w.activeImage){preloadNextImage=new Image();preloadNextImage.src=w.imageArray[w.activeImage+1][0]}if(w.activeImage>0){preloadPrevImage=new Image();preloadPrevImage.src=w.imageArray[w.activeImage-1][0]}}}function d(){a("#numberDisplay").html("");a("#caption").html("").hide();var C=w.imageArray;var B=w.strings;var G=w.activeImage;var F=C[G][2];if(C[G][1]&&w.showInfo){a("#caption").html(C[G][1]).show()}var H=(C.length>1&&w.showInfo)?B.image+(G+1)+B.of+C.length:"";if(w.slidehowSpeed&&C.length>1){var D=(w.auto===-1)?B.play:B.pause;H+=' <a id="playpause" href="#">'+D+"</a>"}if(w.displayDownloadLink||w.downloads[F]){var E=w.downloads[F]?w.downloads[F]:C[G][0];a("#downloadLink").show().children().attr("href",E)}else{a("#downloadLink").hide()}if(H!=""){a("#numberDisplay").html(H).show()}}function u(){if(w.imageArray.length>1){a("#prevLink").click(function(){y((w.activeImage==0)?(w.imageArray.length-1):w.activeImage-1);return false});a("#nextLink").click(function(){y((w.activeImage==(w.imageArray.length-1))?0:w.activeImage+1);return false});if(a.fn.touchwipe){a("#imageContainer").touchwipe({wipeLeft:function(){y((w.activeImage==(w.imageArray.length-1))?0:w.activeImage+1)},wipeRight:function(){y((w.activeImage==0)?(w.imageArray.length-1):w.activeImage-1)},min_move_x:20,preventDefaultEvents:true})}if(w.slidehowSpeed){a("#numberDisplay").unbind("click").click(function(){if(w.auto!=-1){a(this).children("a").text(w.strings.play);clearTimeout(w.auto);w.auto=-1}else{a(this).children("a").text(w.strings.pause);w.auto=setTimeout(function(){y((w.activeImage==(w.imageArray.length-1))?0:w.activeImage+1)},w.slidehowSpeed)}return false})}c()}}function k(){t();clearTimeout(w.auto);w.auto=-1;a("#lightbox").hide();a("#overlay").fadeOut()}function v(E){var F=E.data.opts;var B=E.keyCode;var C=27;var D=String.fromCharCode(B).toLowerCase();if((D=="x")||(D=="o")||(D=="c")||(B==C)){k()}else{if((D=="p")||(B==37)){t();y((F.activeImage==0)?(F.imageArray.length-1):F.activeImage-1)}else{if((D=="n")||(B==39)){t();y((F.activeImage==(F.imageArray.length-1))?0:F.activeImage+1)}}}return false}function c(){a(document).unbind("keydown").bind("keydown",{opts:w},v)}function t(){a(document).unbind("keydown")}};a.fn.lightbox.defaults={showInfo:false,adminBarHeight:0,overlayOpacity:0.8,borderSize:10,imageArray:new Array,activeImage:null,inprogress:false,widthCurrent:250,heightCurrent:250,xScale:1,yScale:1,displayTitle:true,imageClickClose:true,followScroll:false,isIE8:false};a(document).ready(doLightBox)})(jQuery);function doLightBox(){var a=(typeof JQLBSettings=="object");var d,b,c=0;if(a&&JQLBSettings.slideshowSpeed){d=parseInt(JQLBSettings.slideshowSpeed)}if(a&&JQLBSettings.resizeSpeed){b=parseInt(JQLBSettings.resizeSpeed)}if(a&&JQLBSettings.marginSize){c=parseInt(JQLBSettings.marginSize)}var e={help:" Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close.",prevLinkTitle:"previous image",nextLinkTitle:"next image",closeTitle:"close image gallery",image:"Image ",of:" of ",download:"Download",pause:"(pause slideshow)",play:"(play slideshow)"};jQuery('a[rel^="lightbox"]').lightbox({adminBarHeight:jQuery("#wpadminbar").height()||0,linkTarget:(a&&JQLBSettings.linkTarget.length)?JQLBSettings.linkTarget:"_self",showInfo:(a&&JQLBSettings.showInfo=="0")?false:true,displayHelp:(a&&JQLBSettings.help.length)?true:false,marginSize:(a&&c)?c:0,fitToScreen:(a&&JQLBSettings.fitToScreen=="1")?true:false,resizeSpeed:(a&&b>=0)?b:400,slidehowSpeed:(a&&d>=0)?d:4000,displayDownloadLink:(a&&JQLBSettings.displayDownloadLink=="0")?false:true,navbarOnTop:(a&&JQLBSettings.navbarOnTop=="0")?false:true,strings:(a&&typeof JQLBSettings.help=="string")?JQLBSettings:e})};
|
1 |
+
function doLightBox(){var e,i,t="object"==typeof JQLBSettings,a=0;t&&JQLBSettings.slideshowSpeed&&(e=parseInt(JQLBSettings.slideshowSpeed)),t&&JQLBSettings.resizeSpeed&&(i=parseInt(JQLBSettings.resizeSpeed)),t&&JQLBSettings.marginSize&&(a=parseInt(JQLBSettings.marginSize));var n={prevLinkTitle:"previous image",nextLinkTitle:"next image",closeTitle:"close image gallery",image:"Image ",of:" of ",download:"Download",pause:"(pause slideshow)",play:"(play slideshow)"};jQuery('a[rel^="lightbox"]').lightbox({adminBarHeight:jQuery("#wpadminbar").height()||0,showNumbers:t&&"0"==JQLBSettings.showNumbers?!1:!0,showCaption:t&&"0"==JQLBSettings.showCaption?!1:!0,showTitle:t&&"0"==JQLBSettings.showTitle?!1:!0,marginSize:t&&a?a:0,fitToScreen:t&&"1"==JQLBSettings.fitToScreen?!0:!1,resizeSpeed:t&&i>=0?i:400,slidehowSpeed:t&&e>=0?e:4e3,showDownload:t&&"0"==JQLBSettings.showDownload?!1:!0,navbarOnTop:t&&"0"==JQLBSettings.navbarOnTop?!1:!0,strings:t&&"string"==typeof JQLBSettings.prevLinkTitle?JQLBSettings:n})}!function(e){function t(e,i){var t,a,n;for(e=e.split("."),i=i.split("."),a=Math.min(e.length,i.length),t=0;a>t;t++)if(n=parseInt(e[t],10)-parseInt(i[t],10),0!==n)return n;return e.length-i.length}e.fn.lightbox=function(a){function n(){return r(),g(this),!1}function r(){e(window).bind("orientationchange",o),e(window).bind("resize",o),e("#overlay").remove(),e("#lightbox").remove(),T.inprogress=!1,T.auto=-1;var i=T.strings,t='<div id="outerImageContainer"><div id="imageContainer"><iframe id="lightboxIframe" /><img id="lightboxImage"><div id="hoverNav"><a href="javascript://" title="'+i.prevLinkTitle+'" id="prevLink"></a><a href="javascript://" id="nextLink" title="'+i.nextLinkTitle+'"></a></div><div id="jqlb_loading"><a href="javascript://" id="loadingLink"><div id="jqlb_spinner"></div></a></div></div></div>',a='<div id="imageDataContainer" class="clearfix"><div id="imageData"><div id="imageDetails"><span id="titleAndCaption"></span><div id="controls"><span id="numberDisplay"></span> <a id="playPause" href="#"></a> <span id="downloadLink"></span></div></div><div id="bottomNav">';a+='<a href="javascript://" id="bottomNavClose" title="'+i.closeTitle+'"><div id="jqlb_closelabel"></div></a></div></div></div>';var n;T.navbarOnTop?(n='<div id="overlay"></div><div id="lightbox">'+a+t+"</div>",e("body").append(n),e("#imageDataContainer").addClass("ontop")):(n='<div id="overlay"></div><div id="lightbox">'+t+a+"</div>",e("body").append(n)),e("#overlay").click(function(){S()}).hide(),e("#lightbox").click(function(){S()}).hide(),e("#loadingLink").click(function(){return S(),!1}),e("#bottomNavClose").click(function(){return S(),!1}),e("#outerImageContainer").width(T.widthCurrent).height(T.heightCurrent),e("#imageDataContainer").width(T.widthCurrent),T.imageClickClose||(e("#lightboxImage").click(function(){return!1}),e("#hoverNav").click(function(){return!1}))}function o(){T.resizeTimeout&&(clearTimeout(T.resizeTimeout),T.resizeTimeout=!1),T.resizeTimeout=setTimeout(function(){u()},50)}function l(){return{pageWidth:e(document).width(),pageHeight:e(document).height(),viewportWidth:e(window).width(),viewportHeight:e(window).height()-T.adminBarHeight}}function d(){var i=e(document).scrollTop();return T.adminBarHeight&&0===parseInt(e("#wpadminbar").css("top"),10)&&(i+=T.adminBarHeight),{x:e(document).scrollLeft(),y:i}}function g(t){var a=l();e("#overlay").hide().css({width:a.pageWidth+"px",height:a.pageHeight+"px",opacity:T.overlayOpacity}).fadeIn(400);var n=0,r=[];if(T.downloads={},e("a").each(function(){if(this.href&&this.rel==t.rel){var i=e(this),a=T.showTitle?s(i):"",n=T.showCaption?h(i):{html:"",text:""};T.showTitle&&a.toLowerCase()==n.text.toLowerCase()&&(a=n.html,n.html="");var o=""!=a?'<span id="titleText">'+a+"</span>":"";o+=""!=a&&n.html?"<br />":"",o+=""!=n.html?'<span id="captionText">'+n.html+"</span>":"",(T.showDownload||i.attr("data-download"))&&(T.downloads[r.length]=i.attr("data-download")),r.push(new Array(this.href,o,r.length))}}),r.length>1){for(i=0;i<r.length;i++)for(j=r.length-1;j>i;j--)r[i][0]==r[j][0]&&r.splice(j,1);for(;r[n][0]!=t.href;)n++}T.imageArray=r;var o=d();m(o.y,o.x).show(),c(n),b()}function s(i){var t=i.attr("title")||"";if(!t){var a=i.children("img:first-child");a.attr("title")?t=a.attr("title"):a.attr("alt")&&(t=a.attr("alt"))}return e.trim(t)}function h(i){var t={html:"",text:""};if(i.parent().next(".gallery-caption").html()){var a=i.parent().next(".gallery-caption");t.html=a.html(),t.text=a.text()}else i.next(".wp-caption-text").html()&&(t.html=i.next(".wp-caption-text").html(),t.text=i.next(".wp-caption-text").text());return t.text=e.trim(t.text).replace("’","'").replace("’","'").replace("…","..."),t}function m(i,t){return T.resizeSpeed>0?e("#lightbox").animate({top:i+"px",left:t+"px"},T.resizeSpeed,"linear"):e("#lightbox").css({top:i+"px",left:t+"px"})}function c(i){0==T.inprogress&&(T.inprogress=!0,T.activeImage=i,e("#jqlb_loading").show(),e("#lightboxImage").hide(),e("#hoverNav").hide(),e("#prevLink").hide(),e("#nextLink").hide(),p())}function p(){T.imgPreloader=new Image,T.imgPreloader.onload=function(){e("#lightboxImage").attr("src",T.imageArray[T.activeImage][0]),I(),u(),x()},T.imgPreloader.src=T.imageArray[T.activeImage][0]}function u(){if(T.imgPreloader){var i=T.imgPreloader.width,t=T.imgPreloader.height,a=l(),n=a.viewportWidth<a.pageWidth?a.pageWidth:a.viewportWidth;e("#overlay").css({width:n+"px",height:a.pageHeight+"px"});var r=a.viewportHeight-(e("#imageDataContainer").outerHeight(!0)+2*T.borderSize),o=a.viewportWidth-2*T.borderSize;if(T.fitToScreen){var g=r-T.marginSize,s=o-T.marginSize,h=1;t>g&&(h=g/t),i*=h,t*=h,h=1,i>s&&(h=s/i),i=Math.round(i*h),t=Math.round(t*h)}var m=d(),c=m.y+.5*r,p=c-.5*t,u=m.x;e("#lightboxImage").width(i).height(t),v(i,t,p,u)}}function v(i,t,a,n){T.widthCurrent=e("#outerImageContainer").outerWidth(),T.heightCurrent=e("#outerImageContainer").outerHeight();var r=Math.max(300,i+2*T.borderSize),o=t+2*T.borderSize;m(a,n),e("#imageDataContainer").animate({width:r},T.resizeSpeed,"linear"),e("#outerImageContainer").animate({width:r,height:o},T.resizeSpeed,"linear",function(){w()}),T.imageArray.length>1&&(e("#hoverNav").show(),e("#prevLink").show(),e("#nextLink").show()),e("#prevLink,#nextLink").height(t)}function w(){e("#jqlb_loading").hide(),f(),T.resizeSpeed>0?e("#lightboxImage").fadeIn("fast",function(){y()}):(e("#lightboxImage").show(),y()),T.inprogress=!1}function f(){e("#titleAndCaption").css("opacity",1),T.showDownload&&e("#downloadLink").css("opacity",1),T.showNumbers&&e("#numberDisplay").css("opacity",1),T.slidehowSpeed&&e("#playPause").css("opacity",1),T.resizeSpeed>0?e("#imageDetails").animate({opacity:1},"fast"):e("#imageDetails").css("opacity",1)}function y(){-1!=T.auto&&(clearTimeout(T.auto),T.auto=setTimeout(function(){c(T.activeImage==T.imageArray.length-1?0:T.activeImage+1)},T.slidehowSpeed)),k()}function x(){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[0==T.activeImage?T.imageArray.length-1:T.activeImage-1][0]):(T.imageArray.length-1>T.activeImage&&(preloadNextImage=new Image,preloadNextImage.src=T.imageArray[T.activeImage+1][0]),T.activeImage>0&&(preloadPrevImage=new Image,preloadPrevImage.src=T.imageArray[T.activeImage-1][0]))}function I(){var i=T.imageArray,t=T.strings,a=T.activeImage,n=i[a][2],r=T.showNumbers&&i.length>1?t.image+(a+1)+t.of+i.length:"";if(e("#imageDetails").css("opacity",0),""!=i[a][1]?e("#titleAndCaption").css("opacity",0).html(i[a][1]):e("#titleAndCaption").empty(),T.showNumbers?e("#numberDisplay").css("opacity",0).html(r):e("#numberDisplay").empty(),T.slidehowSpeed&&i.length>1){var o=-1===T.auto?t.play:t.pause;e("#playPause").css("opacity",0).attr("href","#").text(o)}else e("#playPause").empty();if(T.showDownload||T.downloads[n]){var l=T.downloads[n]?T.downloads[n]:i[a][0];e("#downloadLink").css("opacity",0).html(e("<a>").attr("href",l).attr("target","_blank").attr("download","").text(t.download))}else e("#downloadLink").empty();e("#downloadLink").position()}function b(){T.imageArray.length>1&&(e("#prevLink").click(function(){return c(0==T.activeImage?T.imageArray.length-1:T.activeImage-1),!1}),e("#nextLink").click(function(){return c(T.activeImage==T.imageArray.length-1?0:T.activeImage+1),!1}),e.fn.touchwipe&&e("#imageContainer").touchwipe({wipeLeft:function(){c(T.activeImage==T.imageArray.length-1?0:T.activeImage+1)},wipeRight:function(){c(0==T.activeImage?T.imageArray.length-1:T.activeImage-1)},min_move_x:20,preventDefaultEvents:!0}),T.slidehowSpeed&&e("#playPause").unbind("click").click(function(){return-1!=T.auto?(e(this).text(T.strings.play),clearTimeout(T.auto),T.auto=-1):(e(this).text(T.strings.pause),T.auto=setTimeout(function(){c(T.activeImage==T.imageArray.length-1?0:T.activeImage+1)},T.slidehowSpeed)),!1}),k())}function S(){C(),clearTimeout(T.auto),T.auto=-1,e("#lightbox").hide(),e("#overlay").fadeOut()}function L(e){var i=e.data.opts,t=e.keyCode,a=27,n=String.fromCharCode(t).toLowerCase();return"x"==n||"o"==n||"c"==n||t==a?S():"p"==n||37==t?(C(),c(0==i.activeImage?i.imageArray.length-1:i.activeImage-1)):("n"==n||39==t)&&(C(),c(i.activeImage==i.imageArray.length-1?0:i.activeImage+1)),!1}function k(){e(document).unbind("keydown").bind("keydown",{opts:T},L)}function C(){e(document).unbind("keydown")}var T=e.extend({},e.fn.lightbox.defaults,a);return e("#overlay").is(":visible")&&e(window).trigger("resize"),t(e.fn.jquery,"1.7")>0?e(this).on("click",n):e(this).live("click",n)},e.fn.lightbox.defaults={showCaption:!1,showNumbers:!0,adminBarHeight:0,overlayOpacity:.8,borderSize:10,imageArray:new Array,activeImage:null,inprogress:!1,widthCurrent:300,heightCurrent:300,showTitle:!0,imageClickClose:!0},e(document).ready(doLightBox)}(jQuery);
|
languages/jqlb-da_DK.mo
ADDED
Binary file
|
languages/jqlb-da_DK.po
ADDED
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: 2013-08-29 03:28+0700\n"
|
7 |
+
"Last-Translator: John Larsen <finkelstoned@yahoo.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-SourceCharset: utf-8\n"
|
15 |
+
"X-Generator: Poedit 1.5.7\n"
|
16 |
+
"X-Poedit-SearchPath-0: G:\\@WINNEEDS\\Desktop\\wp-jquery-lightbox.1.3.3\\wp-"
|
17 |
+
"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 "Innstillinger"
|
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 "forrige billede"
|
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 "næste billede"
|
30 |
+
|
31 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:115
|
32 |
+
msgid "« Previous"
|
33 |
+
msgstr "« Forrige"
|
34 |
+
|
35 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:116
|
36 |
+
msgid "Next »"
|
37 |
+
msgstr "Næste »"
|
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 "Luk slideshow"
|
42 |
+
|
43 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:118
|
44 |
+
msgid "Image "
|
45 |
+
msgstr "Billede "
|
46 |
+
|
47 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:119
|
48 |
+
msgid " of "
|
49 |
+
msgstr " af "
|
50 |
+
|
51 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:120
|
52 |
+
msgid "Download"
|
53 |
+
msgstr "download"
|
54 |
+
|
55 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:166
|
56 |
+
msgid "Cheatin’ uh?"
|
57 |
+
msgstr "Snyder, huh ?"
|
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 "Lad plugin lægge det nødvendige html i billede links"
|
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 "Auto-lightbox billedelinks"
|
66 |
+
|
67 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:186
|
68 |
+
msgid ""
|
69 |
+
"Note: this will disable the nofollow-attribute of comment links, that "
|
70 |
+
"otherwise interfere with the lightbox."
|
71 |
+
msgstr ""
|
72 |
+
"Bemærk: Dette vil deaktivere nofollow-attributten på kommentarer, som ellers "
|
73 |
+
"kan give konflikt med lightbox-funktionen."
|
74 |
+
|
75 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:186
|
76 |
+
msgid ""
|
77 |
+
"Enable lightbox in comments (disables <a href=\"http://codex.wordpress.org/"
|
78 |
+
"Nofollow\">the nofollow attribute!</a>)"
|
79 |
+
msgstr ""
|
80 |
+
"Aktiver lightbox i kommentarer (deaktiverer <a href=\"http://codex.wordpress."
|
81 |
+
"org/Nofollow\">nofollow-attributtet</a>!)"
|
82 |
+
|
83 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:193
|
84 |
+
msgid "Show download link"
|
85 |
+
msgstr "Vis downloadlink"
|
86 |
+
|
87 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:197
|
88 |
+
msgid ""
|
89 |
+
"_blank: open the image in a new window or tab\n"
|
90 |
+
"_self: open the image in the same frame as it was clicked (default)\n"
|
91 |
+
"_parent: open the image in the parent frameset\n"
|
92 |
+
"_top: open the image in the full body of the window"
|
93 |
+
msgstr ""
|
94 |
+
"_blank: åbner billedet i et nyt vindue\n"
|
95 |
+
"_self: åbner billedet i samme ramme som link (standard)\n"
|
96 |
+
"_parent: åbner billedet i forældrerammen\n"
|
97 |
+
"_top: åbne billedet i hele vinduet "
|
98 |
+
|
99 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:200
|
100 |
+
msgid "Target for download link:"
|
101 |
+
msgstr "Target for download link:"
|
102 |
+
|
103 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:214
|
104 |
+
msgid "Show image info on top"
|
105 |
+
msgstr "Vis bildeinformation i toppen"
|
106 |
+
|
107 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:222
|
108 |
+
msgid "Shrink large images to fit smaller screens"
|
109 |
+
msgstr "Tilpas store billeder til mindre skjærme"
|
110 |
+
|
111 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:227
|
112 |
+
msgid "Keep a distance between the image and the screen edges."
|
113 |
+
msgstr "Hold en afstand mellem billedet og skjærmens kanter."
|
114 |
+
|
115 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:227
|
116 |
+
msgid "Minimum margin to screen edge (default: 0)"
|
117 |
+
msgstr "Minste margin til skjærmkant (standard: 0)"
|
118 |
+
|
119 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:234
|
120 |
+
msgid "Animation duration (in milliseconds) "
|
121 |
+
msgstr "Animationstid (i millisekunder)"
|
122 |
+
|
123 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:240
|
124 |
+
msgid "Help text (default: none) "
|
125 |
+
msgstr "Hjælpetekst (standard: ingen)"
|
126 |
+
|
127 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:244
|
128 |
+
msgid ""
|
129 |
+
"Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC "
|
130 |
+
"for close."
|
131 |
+
msgstr ""
|
132 |
+
"Bladre mellem billedene med tastaturet: Pile eller P(revious)/N(ext) og X/C/"
|
133 |
+
"ESC for at lukke."
|
134 |
+
|
135 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:246
|
136 |
+
msgid "Save Changes"
|
137 |
+
msgstr "Gem ændringer"
|
138 |
+
|
139 |
+
#~ msgid ""
|
140 |
+
#~ " \\u2190 / P - previous image\\u00a0\\u00a0\\u00a0\\u00a0\\u2192 / N - "
|
141 |
+
#~ "next image\\u00a0\\u00a0\\u00a0\\u00a0ESC / X - close image gallery"
|
142 |
+
#~ msgstr ""
|
143 |
+
#~ " \\u2190 / P - forrige bilde\\u00a0\\u00a0\\u00a0\\u00a0\\u2192 / N - "
|
144 |
+
#~ "neste bilde\\u00a0\\u00a0\\u00a0\\u00a0ESC / X - lukk bildegalleri"
|
languages/jqlb-lt_LT.mo
CHANGED
Binary file
|
languages/jqlb-lt_LT.po
CHANGED
@@ -2,84 +2,161 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP JQuery Lightbox\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date:
|
6 |
-
"PO-Revision-Date:
|
7 |
"Last-Translator: Hancas <majklas@nereal.us>\n"
|
8 |
"Language-Team: ArtPrima.cz <ask@artprima.cz>\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-
|
15 |
-
"
|
16 |
-
"
|
17 |
-
"
|
18 |
-
"X-Poedit-SearchPath-0:
|
19 |
|
20 |
-
#:
|
21 |
msgid "Settings"
|
22 |
msgstr "Nustatymai"
|
23 |
|
24 |
-
#:
|
25 |
-
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:81
|
26 |
msgid "previous image"
|
27 |
msgstr "ankstesnis paveiksliukas"
|
28 |
|
29 |
-
#:
|
30 |
-
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:82
|
31 |
msgid "next image"
|
32 |
msgstr "sekantis paveiksliukas"
|
33 |
|
34 |
-
#:
|
35 |
-
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:85
|
36 |
msgid "close image gallery"
|
37 |
msgstr "uždaryti paveiksliukų galeriją"
|
38 |
|
39 |
-
#:
|
40 |
-
msgid "« Previous"
|
41 |
-
msgstr "« Ankstesnis"
|
42 |
-
|
43 |
-
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:84
|
44 |
-
msgid "Next »"
|
45 |
-
msgstr "Sekantis »"
|
46 |
-
|
47 |
-
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:86
|
48 |
msgid "Image "
|
49 |
msgstr "Paveiksliukas "
|
50 |
|
51 |
-
#:
|
52 |
msgid " of "
|
53 |
-
msgstr "iš"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
-
#:
|
|
|
|
|
|
|
|
|
56 |
msgid "Cheatin’ uh?"
|
57 |
msgstr "Čytini, ane?"
|
58 |
|
59 |
-
#:
|
|
|
|
|
|
|
|
|
60 |
msgid "Auto-lightbox image links"
|
61 |
msgstr "Automatiškai taikyti LightBox paveiksliukų nuorodoms"
|
62 |
|
63 |
-
#:
|
64 |
-
msgid "
|
65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
|
67 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
msgid "Shrink large images to fit smaller screens"
|
69 |
msgstr "Sutraukti didelius paveiksliukus, kad tilptų į mažesnius ekranus"
|
70 |
|
71 |
-
#:
|
72 |
-
msgid "
|
73 |
-
msgstr "
|
74 |
|
75 |
-
#:
|
76 |
-
msgid "
|
|
|
|
|
|
|
|
|
77 |
msgstr "Animacijos greitis (milisekundėmis)"
|
78 |
|
79 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
msgid "Save Changes"
|
81 |
msgstr "Išsaugoti pakeitimus"
|
82 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
#~ msgid "(more...)"
|
84 |
#~ msgstr "(далее...)"
|
85 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP JQuery Lightbox\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-10-05 13:07+0200\n"
|
6 |
+
"PO-Revision-Date: 2013-10-05 13:19+0200\n"
|
7 |
"Last-Translator: Hancas <majklas@nereal.us>\n"
|
8 |
"Language-Team: ArtPrima.cz <ask@artprima.cz>\n"
|
9 |
+
"Language: ru_RU\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"X-Poedit-KeywordsList: __;_e;_c;__ngettext:1,2\n"
|
14 |
"X-Poedit-Basepath: .\n"
|
15 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
+
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
|
17 |
+
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
18 |
+
"X-Generator: Poedit 1.5.5\n"
|
19 |
+
"X-Poedit-SearchPath-0: ..\n"
|
20 |
|
21 |
+
#: ../wp-jquery-lightbox.php:42
|
22 |
msgid "Settings"
|
23 |
msgstr "Nustatymai"
|
24 |
|
25 |
+
#: ../wp-jquery-lightbox.php:116
|
|
|
26 |
msgid "previous image"
|
27 |
msgstr "ankstesnis paveiksliukas"
|
28 |
|
29 |
+
#: ../wp-jquery-lightbox.php:117
|
|
|
30 |
msgid "next image"
|
31 |
msgstr "sekantis paveiksliukas"
|
32 |
|
33 |
+
#: ../wp-jquery-lightbox.php:118
|
|
|
34 |
msgid "close image gallery"
|
35 |
msgstr "uždaryti paveiksliukų galeriją"
|
36 |
|
37 |
+
#: ../wp-jquery-lightbox.php:119
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
msgid "Image "
|
39 |
msgstr "Paveiksliukas "
|
40 |
|
41 |
+
#: ../wp-jquery-lightbox.php:120
|
42 |
msgid " of "
|
43 |
+
msgstr " iš "
|
44 |
+
|
45 |
+
#: ../wp-jquery-lightbox.php:121
|
46 |
+
msgid "Download"
|
47 |
+
msgstr "Parsisiųsti"
|
48 |
+
|
49 |
+
#: ../wp-jquery-lightbox.php:122
|
50 |
+
msgid "(pause slideshow)"
|
51 |
+
msgstr "(Pristabdyti skaidrių peržiūrą)"
|
52 |
|
53 |
+
#: ../wp-jquery-lightbox.php:123
|
54 |
+
msgid "(play slideshow)"
|
55 |
+
msgstr "(Paleisti skaidrių peržiūrą)"
|
56 |
+
|
57 |
+
#: ../wp-jquery-lightbox.php:186
|
58 |
msgid "Cheatin’ uh?"
|
59 |
msgstr "Čytini, ane?"
|
60 |
|
61 |
+
#: ../wp-jquery-lightbox.php:201
|
62 |
+
msgid "Let the plugin add necessary html to image links"
|
63 |
+
msgstr "Leisti įskiepiui pridėti reikiamą kodą prie paveiksliukų nuorodų"
|
64 |
+
|
65 |
+
#: ../wp-jquery-lightbox.php:201
|
66 |
msgid "Auto-lightbox image links"
|
67 |
msgstr "Automatiškai taikyti LightBox paveiksliukų nuorodoms"
|
68 |
|
69 |
+
#: ../wp-jquery-lightbox.php:208
|
70 |
+
msgid ""
|
71 |
+
"Note: this will disable the nofollow-attribute of comment links, that "
|
72 |
+
"otherwise interfere with the lightbox."
|
73 |
+
msgstr ""
|
74 |
+
"Dėmesio: tai panaikins \"nofollow\" atributą naudojamą komentarų nuorodose, "
|
75 |
+
"nes tai nesuderinama su lightbox'u."
|
76 |
+
|
77 |
+
#: ../wp-jquery-lightbox.php:208
|
78 |
+
msgid ""
|
79 |
+
"Enable lightbox in comments (disables <a href=\"http://codex.wordpress.org/"
|
80 |
+
"Nofollow\">the nofollow attribute!</a>)"
|
81 |
+
msgstr ""
|
82 |
+
"Įgalinti lightbox'ą komentaruose (panaikins <a href=\"http://codex.wordpress."
|
83 |
+
"org/Nofollow\">\"nofollow\" atributą!</a>)"
|
84 |
+
|
85 |
+
#: ../wp-jquery-lightbox.php:215
|
86 |
+
msgid "Show title & caption"
|
87 |
+
msgstr "Rodyti pavadinimą ir iškarpą"
|
88 |
|
89 |
+
#: ../wp-jquery-lightbox.php:222
|
90 |
+
msgid "Show download link"
|
91 |
+
msgstr "Rodyti parsisiuntimo nuorodą"
|
92 |
+
|
93 |
+
#: ../wp-jquery-lightbox.php:226
|
94 |
+
msgid ""
|
95 |
+
"_blank: open the image in a new window or tab\n"
|
96 |
+
"_self: open the image in the same frame as it was clicked (default)\n"
|
97 |
+
"_parent: open the image in the parent frameset\n"
|
98 |
+
"_top: open the image in the full body of the window"
|
99 |
+
msgstr ""
|
100 |
+
"_blank: atidaryti paveiksliuką naujame naršyklės lange ar skirtuke\n"
|
101 |
+
"_self: atidaryti paveiksliuką tame pačiame lange, kuriame buvo paspausta "
|
102 |
+
"(default)\n"
|
103 |
+
"_parent: atidaryti paveiksliuką tėviname lange\n"
|
104 |
+
"_top: atidaryti paveiksliuką per visą ekraną"
|
105 |
+
|
106 |
+
#: ../wp-jquery-lightbox.php:229
|
107 |
+
msgid "Target for download link:"
|
108 |
+
msgstr "Parsisiuntimo nuorodos tipas:"
|
109 |
+
|
110 |
+
#: ../wp-jquery-lightbox.php:243
|
111 |
+
msgid "Show image info on top"
|
112 |
+
msgstr "Rodyti paveiksliuko informaciją viršuje"
|
113 |
+
|
114 |
+
#: ../wp-jquery-lightbox.php:251
|
115 |
msgid "Shrink large images to fit smaller screens"
|
116 |
msgstr "Sutraukti didelius paveiksliukus, kad tilptų į mažesnius ekranus"
|
117 |
|
118 |
+
#: ../wp-jquery-lightbox.php:256
|
119 |
+
msgid "Keep a distance between the image and the screen edges."
|
120 |
+
msgstr "Atskirti patį paveiksliuką nuo ekrano šonų."
|
121 |
|
122 |
+
#: ../wp-jquery-lightbox.php:256
|
123 |
+
msgid "Minimum margin to screen edge (default: 0)"
|
124 |
+
msgstr "Minimalus atstumas nuo ekrano šonų (numatyta: 0)"
|
125 |
+
|
126 |
+
#: ../wp-jquery-lightbox.php:263
|
127 |
+
msgid "Animation duration (in milliseconds) "
|
128 |
msgstr "Animacijos greitis (milisekundėmis)"
|
129 |
|
130 |
+
#: ../wp-jquery-lightbox.php:269
|
131 |
+
msgid "Slideshow speed (in milliseconds). 0 to disable."
|
132 |
+
msgstr ""
|
133 |
+
"Skaidrų peržiūros greitis (milisekundėmis). 0 - panaikina šią galimybę."
|
134 |
+
|
135 |
+
#: ../wp-jquery-lightbox.php:275
|
136 |
+
msgid "Help text (default: none) "
|
137 |
+
msgstr "Pagalbinis tesktas (numatyta: jokio) "
|
138 |
+
|
139 |
+
#: ../wp-jquery-lightbox.php:279
|
140 |
+
msgid ""
|
141 |
+
"Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC "
|
142 |
+
"for close."
|
143 |
+
msgstr ""
|
144 |
+
"Peržvelgti paveiksliukus su klaviatūros pagalba: Rodyklytėm arba P"
|
145 |
+
"(ankstesnis)/N(kitas) and X/C/ESC uždaryti."
|
146 |
+
|
147 |
+
#: ../wp-jquery-lightbox.php:281
|
148 |
msgid "Save Changes"
|
149 |
msgstr "Išsaugoti pakeitimus"
|
150 |
|
151 |
+
#~ msgid "« Previous"
|
152 |
+
#~ msgstr "« Ankstesnis"
|
153 |
+
|
154 |
+
#~ msgid "Next »"
|
155 |
+
#~ msgstr "Sekantis »"
|
156 |
+
|
157 |
+
#~ msgid "Note: <u>Excessively large images</u> waste bandwidth!"
|
158 |
+
#~ msgstr "Dėmesio: <u>LABAI dideli paveiksliukai</u> kenkia greitaveikai!"
|
159 |
+
|
160 |
#~ msgid "(more...)"
|
161 |
#~ msgstr "(далее...)"
|
162 |
|
languages/jqlb-pt_BR.mo
ADDED
Binary file
|
languages/jqlb-pt_BR.po
ADDED
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: 2013-10-12 09:49-0300\n"
|
7 |
+
"Last-Translator: José Luís Carneiro <contato@jlcarneiro.com>\n"
|
8 |
+
"Language-Team: José Luís <contato@jlcarneiro.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-SourceCharset: UTF-8\n"
|
15 |
+
"X-Generator: Poedit 1.5.4\n"
|
16 |
+
"Language: pt_BR\n"
|
17 |
+
|
18 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:42
|
19 |
+
msgid "Settings"
|
20 |
+
msgstr "Configurações"
|
21 |
+
|
22 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:113
|
23 |
+
msgid "previous image"
|
24 |
+
msgstr "Imagem anterior"
|
25 |
+
|
26 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:114
|
27 |
+
msgid "next image"
|
28 |
+
msgstr "Imagem seguinte"
|
29 |
+
|
30 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:115
|
31 |
+
msgid "« Previous"
|
32 |
+
msgstr "« Anterior"
|
33 |
+
|
34 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:116
|
35 |
+
msgid "Next »"
|
36 |
+
msgstr "Seguinte »"
|
37 |
+
|
38 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:117
|
39 |
+
msgid "close image gallery"
|
40 |
+
msgstr "Fechar a galeria"
|
41 |
+
|
42 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:118
|
43 |
+
msgid "Image "
|
44 |
+
msgstr "Imagem "
|
45 |
+
|
46 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:119
|
47 |
+
msgid " of "
|
48 |
+
msgstr " de "
|
49 |
+
|
50 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:120
|
51 |
+
msgid "Download"
|
52 |
+
msgstr "Download"
|
53 |
+
|
54 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:166
|
55 |
+
msgid "Cheatin’ uh?"
|
56 |
+
msgstr "Trapaceando, né?"
|
57 |
+
|
58 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:179
|
59 |
+
msgid "Let the plugin add necessary html to image links"
|
60 |
+
msgstr "Deixar o plugin adicionar o HTML necessário aos links de imagem"
|
61 |
+
|
62 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:179
|
63 |
+
msgid "Auto-lightbox image links"
|
64 |
+
msgstr "Alterar os links de imagem automaticamente"
|
65 |
+
|
66 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:186
|
67 |
+
msgid ""
|
68 |
+
"Note: this will disable the nofollow-attribute of comment links, that "
|
69 |
+
"otherwise interfere with the lightbox."
|
70 |
+
msgstr ""
|
71 |
+
"Atenção: isso desabilitará o atributo nofollow nos links de comentários, "
|
72 |
+
"para não interferirem com o lightbox."
|
73 |
+
|
74 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:186
|
75 |
+
msgid ""
|
76 |
+
"Enable lightbox in comments (disables <a href=\"http://codex.wordpress.org/"
|
77 |
+
"Nofollow\">the nofollow attribute!</a>)"
|
78 |
+
msgstr ""
|
79 |
+
"Habilitar o lightbox nos comentários (desabilita o <a href=\"http://codex."
|
80 |
+
"wordpress.org/Nofollow\">atributo nofollow!</a>)"
|
81 |
+
|
82 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:193
|
83 |
+
msgid "Show download link"
|
84 |
+
msgstr "Exibir link de download"
|
85 |
+
|
86 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:197
|
87 |
+
msgid ""
|
88 |
+
"_blank: open the image in a new window or tab\n"
|
89 |
+
"_self: open the image in the same frame as it was clicked (default)\n"
|
90 |
+
"_parent: open the image in the parent frameset\n"
|
91 |
+
"_top: open the image in the full body of the window"
|
92 |
+
msgstr ""
|
93 |
+
"_blank: abrir a imagem em um nova janela ou aba\n"
|
94 |
+
"_self: abrir a imagem na mesma frame em que foi clicada (default)\n"
|
95 |
+
"_parent: abrir a imagem no frameset pai\n"
|
96 |
+
"_top: abrir a imagem ocupando toda a janela"
|
97 |
+
|
98 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:200
|
99 |
+
msgid "Target for download link:"
|
100 |
+
msgstr "Destino para o link de download"
|
101 |
+
|
102 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:214
|
103 |
+
msgid "Show image info on top"
|
104 |
+
msgstr "Exibir informações da imagem no topo"
|
105 |
+
|
106 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:222
|
107 |
+
msgid "Shrink large images to fit smaller screens"
|
108 |
+
msgstr "Reduzir imagens grandes em telas menores"
|
109 |
+
|
110 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:227
|
111 |
+
msgid "Keep a distance between the image and the screen edges."
|
112 |
+
msgstr "Manter distância mínima entre a imagem e as bordas da tela."
|
113 |
+
|
114 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:227
|
115 |
+
msgid "Minimum margin to screen edge (default: 0)"
|
116 |
+
msgstr "Margem minima para a borda da tela (padrão: 0)"
|
117 |
+
|
118 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:234
|
119 |
+
msgid "Animation duration (in milliseconds) "
|
120 |
+
msgstr "Duração da animação (em milisegundos)"
|
121 |
+
|
122 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:240
|
123 |
+
msgid "Help text (default: none) "
|
124 |
+
msgstr "Texto de ajuda (padrão: nenhum)"
|
125 |
+
|
126 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:244
|
127 |
+
msgid ""
|
128 |
+
"Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC "
|
129 |
+
"for close."
|
130 |
+
msgstr ""
|
131 |
+
"Navegar pelas imagens usando o teclado: setas ou P/N (anterior/posterior) e "
|
132 |
+
"X/C/ESC para fechar."
|
133 |
+
|
134 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:246
|
135 |
+
msgid "Save Changes"
|
136 |
+
msgstr "Salvar alterações"
|
137 |
+
|
138 |
+
#~ msgid ""
|
139 |
+
#~ " \\u2190 / P - previous image\\u00a0\\u00a0\\u00a0\\u00a0\\u2192 / N - "
|
140 |
+
#~ "next image\\u00a0\\u00a0\\u00a0\\u00a0ESC / X - close image gallery"
|
141 |
+
#~ msgstr ""
|
142 |
+
#~ " \\u2190 / P - Imagem anterior\\u00a0\\u00a0\\u00a0\\u00a0\\u2192 / N - "
|
143 |
+
#~ "Imagem seguinte\\u00a0\\u00a0\\u00a0\\u00a0ESC / X - Fechar a galeria "
|
languages/jqlb-pt_PT.mo
ADDED
Binary file
|
languages/jqlb-pt_PT.po
ADDED
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: WP JQuery Lightbox\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2015-09-21 14:49+0100\n"
|
6 |
+
"PO-Revision-Date: 2015-09-21 16:37+0100\n"
|
7 |
+
"Last-Translator: Pedro Mendonça <ped.gaspar@gmail.com>\n"
|
8 |
+
"Language-Team: Pedro Mendonça <ped.gaspar@gmail.com>\n"
|
9 |
+
"Language: pt_PT\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
|
14 |
+
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;"
|
15 |
+
"esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
|
16 |
+
"X-Poedit-Basepath: ..\n"
|
17 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
19 |
+
"X-Generator: Poedit 1.8.4\n"
|
20 |
+
"X-Poedit-SearchPath-0: .\n"
|
21 |
+
|
22 |
+
#: wp-jquery-lightbox.php:41
|
23 |
+
msgid "Settings"
|
24 |
+
msgstr "Definições"
|
25 |
+
|
26 |
+
#: wp-jquery-lightbox.php:129
|
27 |
+
msgid "previous image"
|
28 |
+
msgstr "Imagem anterior"
|
29 |
+
|
30 |
+
#: wp-jquery-lightbox.php:130
|
31 |
+
msgid "next image"
|
32 |
+
msgstr "Imagem seguinte"
|
33 |
+
|
34 |
+
#: wp-jquery-lightbox.php:131
|
35 |
+
msgid "close image gallery"
|
36 |
+
msgstr "Fechar a galeria"
|
37 |
+
|
38 |
+
#: wp-jquery-lightbox.php:132 wp-jquery-lightbox.php:242
|
39 |
+
msgid "Image "
|
40 |
+
msgstr "Imagem "
|
41 |
+
|
42 |
+
#: wp-jquery-lightbox.php:133 wp-jquery-lightbox.php:242
|
43 |
+
msgid " of "
|
44 |
+
msgstr " de "
|
45 |
+
|
46 |
+
#: wp-jquery-lightbox.php:134
|
47 |
+
msgid "Download"
|
48 |
+
msgstr "Descarregar"
|
49 |
+
|
50 |
+
#: wp-jquery-lightbox.php:135
|
51 |
+
msgid "(pause slideshow)"
|
52 |
+
msgstr "(pausar apresentação)"
|
53 |
+
|
54 |
+
#: wp-jquery-lightbox.php:136
|
55 |
+
msgid "(play slideshow)"
|
56 |
+
msgstr "(iniciar apresentação)"
|
57 |
+
|
58 |
+
#: wp-jquery-lightbox.php:199
|
59 |
+
msgid "Cheatin’ uh?"
|
60 |
+
msgstr "A fazer batota?"
|
61 |
+
|
62 |
+
#: wp-jquery-lightbox.php:214
|
63 |
+
msgid "Let the plugin add necessary html to image links"
|
64 |
+
msgstr "Deixe o plugin adicionar o html necessário às ligações das imagens"
|
65 |
+
|
66 |
+
#: wp-jquery-lightbox.php:214
|
67 |
+
msgid "Auto-lightbox image links"
|
68 |
+
msgstr "Alterar as ligações das imagens automaticamente"
|
69 |
+
|
70 |
+
#: wp-jquery-lightbox.php:221
|
71 |
+
msgid ""
|
72 |
+
"Note: this will disable the nofollow-attribute of comment links, that "
|
73 |
+
"otherwise interfere with the lightbox."
|
74 |
+
msgstr ""
|
75 |
+
"Nota: isto desactivará o atributo 'nofollow' das ligações dos comentários, "
|
76 |
+
"que de outro modo interfeririam com o lightbox."
|
77 |
+
|
78 |
+
#: wp-jquery-lightbox.php:221
|
79 |
+
msgid ""
|
80 |
+
"Enable lightbox in comments (disables <a href=\"http://codex.wordpress.org/"
|
81 |
+
"Nofollow\">the nofollow attribute!</a>)"
|
82 |
+
msgstr ""
|
83 |
+
"Activar lightbox nos comentários (desactiva <a href=\"http://codex.wordpress."
|
84 |
+
"org/Nofollow\">o atributo 'nofollow'!</a>)"
|
85 |
+
|
86 |
+
#: wp-jquery-lightbox.php:228
|
87 |
+
msgid "Show title"
|
88 |
+
msgstr "Mostrar título"
|
89 |
+
|
90 |
+
#: wp-jquery-lightbox.php:235
|
91 |
+
msgid "Show caption"
|
92 |
+
msgstr "Mostrar legenda"
|
93 |
+
|
94 |
+
#: wp-jquery-lightbox.php:242
|
95 |
+
msgid "Show image numbers:"
|
96 |
+
msgstr "Mostrar números das imagens:"
|
97 |
+
|
98 |
+
#: wp-jquery-lightbox.php:249
|
99 |
+
msgid "Show download link"
|
100 |
+
msgstr "Mostrar ligação para descarregar"
|
101 |
+
|
102 |
+
#: wp-jquery-lightbox.php:257
|
103 |
+
msgid "Show image info on top"
|
104 |
+
msgstr "Mostrar a informação da imagem no topo"
|
105 |
+
|
106 |
+
#: wp-jquery-lightbox.php:265
|
107 |
+
msgid "Shrink large images to fit smaller screens"
|
108 |
+
msgstr "Reduzir imagens grandes a ecrãs pequenos"
|
109 |
+
|
110 |
+
#: wp-jquery-lightbox.php:270
|
111 |
+
msgid "Keep a distance between the image and the screen edges."
|
112 |
+
msgstr "Manter uma distância entre a imagem e os bordos do ecrã."
|
113 |
+
|
114 |
+
#: wp-jquery-lightbox.php:270
|
115 |
+
msgid "Minimum margin to screen edge (default: 0)"
|
116 |
+
msgstr "Margem mínima ao bordo do ecrã (por omissão: 0)"
|
117 |
+
|
118 |
+
#: wp-jquery-lightbox.php:278
|
119 |
+
msgid "Use custom stylesheet"
|
120 |
+
msgstr "Usar folha de estilos personalizada"
|
121 |
+
|
122 |
+
#: wp-jquery-lightbox.php:284
|
123 |
+
msgid "Animation duration (in milliseconds) "
|
124 |
+
msgstr "Duração da animação (em milisegundos) "
|
125 |
+
|
126 |
+
#: wp-jquery-lightbox.php:290
|
127 |
+
msgid "Slideshow speed (in milliseconds). 0 to disable."
|
128 |
+
msgstr "Velocidade da apresentação (em milisegundos). 0 para desactivar."
|
129 |
+
|
130 |
+
#: wp-jquery-lightbox.php:295
|
131 |
+
msgid "Save Changes"
|
132 |
+
msgstr "Guardar alterações"
|
133 |
+
|
134 |
+
#~ msgid "« Previous"
|
135 |
+
#~ msgstr "« Anterior"
|
136 |
+
|
137 |
+
#~ msgid "Next »"
|
138 |
+
#~ msgstr "Seguinte »"
|
139 |
+
|
140 |
+
#~ msgid ""
|
141 |
+
#~ "_blank: open the image in a new window or tab\n"
|
142 |
+
#~ "_self: open the image in the same frame as it was clicked (default)\n"
|
143 |
+
#~ "_parent: open the image in the parent frameset\n"
|
144 |
+
#~ "_top: open the image in the full body of the window"
|
145 |
+
#~ msgstr ""
|
146 |
+
#~ "_blank: abrir a imagem numa nova janela ou separador\n"
|
147 |
+
#~ "_self: abrir a imagem na mesma janela em que for seleccionada (por "
|
148 |
+
#~ "omissão)\n"
|
149 |
+
#~ "_parent: abrir a imagem na janela superior\n"
|
150 |
+
#~ "_top: abrir a imagem ocupando toda a janela"
|
151 |
+
|
152 |
+
#~ msgid "Target for download link:"
|
153 |
+
#~ msgstr "Destino para a ligação de descarga:"
|
154 |
+
|
155 |
+
#~ msgid "Help text (default: none) "
|
156 |
+
#~ msgstr "Texto de ajuda (por omissão: nenhum)"
|
157 |
+
|
158 |
+
#~ msgid ""
|
159 |
+
#~ "Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC "
|
160 |
+
#~ "for close."
|
161 |
+
#~ msgstr ""
|
162 |
+
#~ "Navegar pelas imagens com o teclado: Setas ou 'P' (Anterior) e "
|
163 |
+
#~ "'N' (Seguinte), 'X' ou 'C' ou 'Esc' para fechar."
|
164 |
+
|
165 |
+
#~ msgid "Show title & caption"
|
166 |
+
#~ msgstr "Mostrar título e descrição"
|
languages/jqlb-sk_SK.mo
ADDED
Binary file
|
languages/jqlb-sk_SK.po
ADDED
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: 2013-09-15 17:26+0100\n"
|
7 |
+
"Last-Translator: ArtPrima.cz <ask@artprima.cz>\n"
|
8 |
+
"Language-Team: ArtPrima.cz <ask@artprima.cz>\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-SourceCharset: utf-8\n"
|
15 |
+
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
16 |
+
"Language: cs_CZ\n"
|
17 |
+
"X-Generator: Poedit 1.5.7\n"
|
18 |
+
"X-Poedit-SearchPath-0: C:\\_work\\svn\\artprima\\trunk\\wp-content\\plugins"
|
19 |
+
"\\wp-jquery-lightbox\n"
|
20 |
+
|
21 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:44
|
22 |
+
msgid "Settings"
|
23 |
+
msgstr "Nastavenie"
|
24 |
+
|
25 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:80
|
26 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:81
|
27 |
+
msgid "previous image"
|
28 |
+
msgstr "predchádzajúci obrázok"
|
29 |
+
|
30 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:80
|
31 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:82
|
32 |
+
msgid "next image"
|
33 |
+
msgstr "ďalší obrázok"
|
34 |
+
|
35 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:80
|
36 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:85
|
37 |
+
msgid "close image gallery"
|
38 |
+
msgstr "zavrieť galériu"
|
39 |
+
|
40 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:83
|
41 |
+
msgid "« Previous"
|
42 |
+
msgstr "« Predchádzajúci"
|
43 |
+
|
44 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:84
|
45 |
+
msgid "Next »"
|
46 |
+
msgstr "Ďalší »"
|
47 |
+
|
48 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:86
|
49 |
+
msgid "Image "
|
50 |
+
msgstr "Obrázok "
|
51 |
+
|
52 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:87
|
53 |
+
msgid " of "
|
54 |
+
msgstr " z "
|
55 |
+
|
56 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:107
|
57 |
+
msgid "Cheatin’ uh?"
|
58 |
+
msgstr "Nepodvádzate?"
|
59 |
+
|
60 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:117
|
61 |
+
msgid "Auto-lightbox image links"
|
62 |
+
msgstr "Používať lightbox automaticky"
|
63 |
+
|
64 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:121
|
65 |
+
msgid "Let the plugin add necessary html to image links"
|
66 |
+
msgstr "Dovoliť pluginu pridať potrebný html kód do obrázkových odkazov"
|
67 |
+
|
68 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:125
|
69 |
+
msgid "Shrink large images to fit smaller screens"
|
70 |
+
msgstr "Zmenšiť veľké obrázky, aby sa vošli na obrazovku"
|
71 |
+
|
72 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:129
|
73 |
+
msgid "Note: <u>Excessively large images</u> waste bandwidth!"
|
74 |
+
msgstr "Poznámka: <u>Príliš veľké obrázky</u> plytvajú šírkou pásma!"
|
75 |
+
|
76 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:133
|
77 |
+
msgid "Animation speed (in milliseconds)"
|
78 |
+
msgstr "Rýchlosť animácie (v milisekundách)"
|
79 |
+
|
80 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:140
|
81 |
+
msgid "Save Changes"
|
82 |
+
msgstr "Uložiť zmeny"
|
83 |
+
|
84 |
+
#~ msgid "(more...)"
|
85 |
+
#~ msgstr "(dále...)"
|
86 |
+
|
87 |
+
#~ msgid "Contacts"
|
88 |
+
#~ msgstr "Kontakty"
|
89 |
+
|
90 |
+
#~ msgid "Contact Us"
|
91 |
+
#~ msgstr "Kontaktujte nás"
|
92 |
+
|
93 |
+
#~ msgid "Read more..."
|
94 |
+
#~ msgstr "Číst dále..."
|
95 |
+
|
96 |
+
#~ msgid "Contact Us..."
|
97 |
+
#~ msgstr "Kontaktujte nás..."
|
98 |
+
|
99 |
+
#~ msgid "Order..."
|
100 |
+
#~ msgstr "Objednat..."
|
101 |
+
|
102 |
+
#~ msgid "Search..."
|
103 |
+
#~ msgstr "Hledat..."
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== WP jQuery Lightbox ===
|
2 |
Contributors: ulfben
|
3 |
-
Donate link: http://
|
4 |
Tags: lightbox, jquery, nodal, image, display, ulfben
|
5 |
-
Requires at least: 3.
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 1.4.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
A drop-in replacement for Lightbox 2 and similar plugins, shedding the bulk of Prototype and Scriptaculous. Improved for mobile devices.
|
@@ -20,15 +20,38 @@ This version is also [adjusted for mobile devices](http://wordpress.org/extend/p
|
|
20 |
* Swipe gestures for flicking between images on touch devices
|
21 |
* Improved scaling *maximizes* use of screen space
|
22 |
* Live adjustment to the browser window and orientation of your phone
|
23 |
-
* Optional download link to display images in native app.
|
24 |
|
25 |
See the plugin in action here: [http://game.hgo.se/blog/motion-capture/](http://game.hgo.se/blog/motion-capture/)
|
26 |
|
27 |
You can browse images with your keyboard: Arrows, P(revious)/N(ext) and X/C/ESC for close.
|
28 |
|
29 |
-
If you value [my plugins](http://profiles.wordpress.org/users/ulfben/),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
-
*[//Ulf Benjaminsson](http://profiles.wordpress.org/users/ulfben/)*
|
32 |
|
33 |
= 1.4.5 (2013-06-09) =
|
34 |
* Fit to screen edge on low rez displays (<500px)
|
@@ -54,15 +77,6 @@ If you value [my plugins](http://profiles.wordpress.org/users/ulfben/), please h
|
|
54 |
* Fix toggling visible state on unrelated object, embed and select nodes. [mwolfe02](http://wordpress.org/support/topic/lightbox-shows-hidden-selectembedobject-blocks?replies=1)
|
55 |
* Fix leaky CSS on admin page
|
56 |
|
57 |
-
= 1.3 (2011-05-01) =
|
58 |
-
* Improved scaling to *maximize* display area.
|
59 |
-
* Supports orientation / resize changes - Lightbox reflows with site.
|
60 |
-
* Added translation support (Thanks; [Martin S](http://sukimashita.com/) & Denis N. Voituk).
|
61 |
-
* Added option to display download link.
|
62 |
-
* Added support for disabling all animations (set duration to 0).
|
63 |
-
* Fixed "duration" not having an effect.
|
64 |
-
* [For Developers: public method to apply Lightbox to any string.](http://wordpress.org/extend/plugins/wp-jquery-lightbox/installation/)
|
65 |
-
|
66 |
[Older changelogs moved here.](http://wordpress.org/extend/plugins/wp-jquery-lightbox/changelog/)
|
67 |
|
68 |
== Installation ==
|
@@ -139,6 +153,24 @@ Lastly:
|
|
139 |
Still have problems? Post a link and describe what issue you're having, and tell us what of these steps you've already tried.
|
140 |
|
141 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
= 1.4.5 (2013-06-09) =
|
143 |
* Fit to screen edge on low rez displays (<500px)
|
144 |
* Added global setting to hide title & caption
|
@@ -228,6 +260,12 @@ Still have problems? Post a link and describe what issue you're having, and tell
|
|
228 |
* Release.
|
229 |
|
230 |
== Upgrade Notice ==
|
|
|
|
|
|
|
|
|
|
|
|
|
231 |
= 1.4.5 (2013-06-09) =
|
232 |
Support latest jQuery. Better use of small screen estate, fixed buggy features (slideshow, swipes) and reduced system load.
|
233 |
|
1 |
=== WP jQuery Lightbox ===
|
2 |
Contributors: ulfben
|
3 |
+
Donate link: http://flattr.com/thing/367557/Support-my-WordPress-plugins
|
4 |
Tags: lightbox, jquery, nodal, image, display, ulfben
|
5 |
+
Requires at least: 3.9
|
6 |
+
Tested up to: 4.3.1
|
7 |
+
Stable tag: 1.4.7
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
A drop-in replacement for Lightbox 2 and similar plugins, shedding the bulk of Prototype and Scriptaculous. Improved for mobile devices.
|
20 |
* Swipe gestures for flicking between images on touch devices
|
21 |
* Improved scaling *maximizes* use of screen space
|
22 |
* Live adjustment to the browser window and orientation of your phone
|
|
|
23 |
|
24 |
See the plugin in action here: [http://game.hgo.se/blog/motion-capture/](http://game.hgo.se/blog/motion-capture/)
|
25 |
|
26 |
You can browse images with your keyboard: Arrows, P(revious)/N(ext) and X/C/ESC for close.
|
27 |
|
28 |
+
If you value [my plugins](http://profiles.wordpress.org/users/ulfben/), there's several ways you can help me out;
|
29 |
+
|
30 |
+
* Help me out by [Flattr-ing them](http://flattr.com/thing/367557/Support-my-WordPress-plugins)
|
31 |
+
* or [sign up to Microsoft OneDrive using my referral link](https://onedrive.live.com?invref=b1f728851abada15&invsrc=90) - we both get 0.5GB extra for free!
|
32 |
+
* or [sign up to RealPlayer Cloud using my referral link](https://cloud.real.com/r/UzKHSP) - we both get 1GB extra for free!
|
33 |
+
* get me anything from [my Amazon whislisth](http://www.amazon.com/gp/registry/wishlist/2QB6SQ5XX2U0N/105-3209188-5640446?reveal=unpurchased&filter=all&sort=priority&layout=standard&x=11&y=10) (used items are OK!)
|
34 |
+
|
35 |
+
Any help is greatly appreciated. Thanks!
|
36 |
+
|
37 |
+
*[//Ulf Benjaminsson](http://www.ulfben.com)*
|
38 |
+
|
39 |
+
= 1.4.7 (2015-09-21) =
|
40 |
+
* Support for WordPress' new translation system.
|
41 |
+
* Updated translation for Portugese (Thanks: Pedro Mendonça)
|
42 |
+
* Added images and CSS for Portugese (Thanks: Pedro Mendonça)
|
43 |
+
|
44 |
+
|
45 |
+
= 1.4.6 (2015-03-20) =
|
46 |
+
* "Download link" now correctly open a download dialogue instead of displaying the file
|
47 |
+
* Title, caption and all control elements can now be turned on / off individually
|
48 |
+
* Added support for custom style sheets (just copy original to your theme's style folder, and hack away)
|
49 |
+
* Restructured the HTML slightly, making styling easier
|
50 |
+
* Added specific CSS selectors for all elements
|
51 |
+
* Fixed animation speed setting being ignored
|
52 |
+
* Dropped quirks support for Internet Explorer 8
|
53 |
+
* Removed help-text setting
|
54 |
|
|
|
55 |
|
56 |
= 1.4.5 (2013-06-09) =
|
57 |
* Fit to screen edge on low rez displays (<500px)
|
77 |
* Fix toggling visible state on unrelated object, embed and select nodes. [mwolfe02](http://wordpress.org/support/topic/lightbox-shows-hidden-selectembedobject-blocks?replies=1)
|
78 |
* Fix leaky CSS on admin page
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
[Older changelogs moved here.](http://wordpress.org/extend/plugins/wp-jquery-lightbox/changelog/)
|
81 |
|
82 |
== Installation ==
|
153 |
Still have problems? Post a link and describe what issue you're having, and tell us what of these steps you've already tried.
|
154 |
|
155 |
== Changelog ==
|
156 |
+
|
157 |
+
= 1.4.7 (2015-09-21) =
|
158 |
+
* Support for WordPress' new translation system.
|
159 |
+
* Updated translation for Portugese (Thanks: Pedro Mendonça)
|
160 |
+
* Added images and CSS for Portugese (Thanks: Pedro Mendonça)
|
161 |
+
|
162 |
+
|
163 |
+
|
164 |
+
= 1.4.6 (2015-03-20) =
|
165 |
+
* "Download link" now correctly open a download dialogue instead of displaying the file
|
166 |
+
* Title, caption and all control elements can now be turned on / off individually
|
167 |
+
* Added support for custom style sheets (just copy original to your theme's style folder, and hack away)
|
168 |
+
* Restructured the HTML slightly, making styling easier
|
169 |
+
* Added specific CSS selectors for all elements
|
170 |
+
* Fixed animation speed setting being ignored
|
171 |
+
* Dropped quirks support for Internet Explorer 8
|
172 |
+
* Removed help-text setting
|
173 |
+
|
174 |
= 1.4.5 (2013-06-09) =
|
175 |
* Fit to screen edge on low rez displays (<500px)
|
176 |
* Added global setting to hide title & caption
|
260 |
* Release.
|
261 |
|
262 |
== Upgrade Notice ==
|
263 |
+
= 1.4.7 =
|
264 |
+
New Portugese translation. Support for WordPress' new translation system.
|
265 |
+
|
266 |
+
= 1.4.6 =
|
267 |
+
Lots of bug fixes and performance improvements. New CSS styles!
|
268 |
+
|
269 |
= 1.4.5 (2013-06-09) =
|
270 |
Support latest jQuery. Better use of small screen estate, fixed buggy features (slideshow, swipes) and reduced system load.
|
271 |
|
styles/images/da_DK/blank.gif
ADDED
Binary file
|
styles/images/da_DK/close.gif
ADDED
Binary file
|
styles/images/da_DK/closelabel.gif
ADDED
Binary file
|
styles/images/da_DK/loading.gif
ADDED
Binary file
|
styles/images/da_DK/next.gif
ADDED
Binary file
|
styles/images/da_DK/nextlabel.gif
ADDED
Binary file
|
styles/images/da_DK/prev.gif
ADDED
Binary file
|
styles/images/da_DK/prevlabel.gif
ADDED
Binary file
|
styles/images/pt_PT/blank.gif
ADDED
Binary file
|
styles/images/pt_PT/close.gif
ADDED
Binary file
|
styles/images/pt_PT/closelabel.gif
ADDED
Binary file
|
styles/images/pt_PT/loading.gif
ADDED
Binary file
|
styles/images/pt_PT/next.gif
ADDED
Binary file
|
styles/images/pt_PT/nextlabel.gif
ADDED
Binary file
|
styles/images/pt_PT/prev.gif
ADDED
Binary file
|
styles/images/pt_PT/prevlabel.gif
ADDED
Binary file
|
styles/images/sk_SK/blank.gif
ADDED
Binary file
|
styles/images/sk_SK/close.gif
ADDED
Binary file
|
styles/images/sk_SK/closelabel.gif
ADDED
Binary file
|
styles/images/sk_SK/loading.gif
ADDED
Binary file
|
styles/images/sk_SK/next.gif
ADDED
Binary file
|
styles/images/sk_SK/nextlabel.gif
ADDED
Binary file
|
styles/images/sk_SK/prev.gif
ADDED
Binary file
|
styles/images/sk_SK/prevlabel.gif
ADDED
Binary file
|
styles/lightbox.css
CHANGED
@@ -1,14 +1,55 @@
|
|
1 |
/**
|
2 |
* WP jQuery Lightbox
|
3 |
-
* Version 1.4 -
|
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 |
}
|
14 |
#jqlb_spinner{
|
@@ -19,37 +60,31 @@
|
|
19 |
}
|
20 |
#jqlb_closelabel{
|
21 |
height:22px;
|
|
|
22 |
background-image:url('./images/closelabel.gif');
|
23 |
background-repeat:no-repeat;
|
24 |
background-position:center center;
|
25 |
}
|
26 |
#lightbox a img{ border: none; }
|
27 |
-
#controls{
|
28 |
-
white-space: nowrap;
|
29 |
-
}
|
30 |
-
#playpause{
|
31 |
-
}
|
32 |
#outerImageContainer{
|
33 |
position: relative;
|
34 |
background-color: #fff;
|
35 |
-
width:
|
36 |
-
height:
|
37 |
margin: 0 auto;
|
38 |
-
|
39 |
-
|
40 |
#imageContainer{
|
41 |
padding: 10px;
|
42 |
-
|
43 |
-
|
44 |
#jqlb_loading{
|
45 |
position: absolute;
|
46 |
top: 40%;
|
47 |
left: 0%;
|
48 |
height: 25%;
|
49 |
width: 100%;
|
50 |
-
text-align: center;
|
51 |
line-height: 0;
|
52 |
-
|
53 |
#hoverNav{
|
54 |
position: absolute;
|
55 |
top: 0;
|
@@ -57,95 +92,54 @@
|
|
57 |
height: 100%;
|
58 |
width: 100%;
|
59 |
z-index: 10;
|
60 |
-
|
61 |
-
#imageContainer>#hoverNav{ left: 0;}
|
62 |
-
#hoverNav a{ outline: none;}
|
63 |
|
|
|
64 |
#prevLink, #nextLink{
|
65 |
width: 45%;
|
66 |
height: 100%;
|
67 |
background: transparent url('./images/blank.gif') no-repeat; /* Trick IE into showing hover */
|
68 |
display: block;
|
69 |
-
|
70 |
#prevLink { left: 0; float: left;}
|
71 |
#nextLink { right: 0; float: right;}
|
72 |
#prevLink:hover, #prevLink:visited:hover { background: url('./images/prev.gif') left 50% no-repeat; }
|
73 |
#nextLink:hover, #nextLink:visited:hover { background: url('./images/next.gif') right 50% no-repeat; }
|
|
|
74 |
|
75 |
-
|
76 |
-
|
77 |
-
color: #FF9834;
|
78 |
-
font-weight:bold;
|
79 |
-
text-decoration: none;
|
80 |
-
}
|
81 |
-
#nextLinkText{
|
82 |
-
padding-left: 20px;
|
83 |
-
}
|
84 |
-
#prevLinkText{
|
85 |
-
padding-right: 20px;
|
86 |
-
}
|
87 |
-
#downloadLink{ /*a span, containing the anchor tag*/
|
88 |
-
display:none;
|
89 |
-
}
|
90 |
-
/*** END : next / previous text links ***/
|
91 |
-
/*** START : added padding when navbar is on top ***/
|
92 |
-
|
93 |
-
.ontop #imageData {
|
94 |
-
padding-top: 5px;
|
95 |
-
}
|
96 |
-
|
97 |
-
/*** END : added padding when navbar is on top ***/
|
98 |
-
|
99 |
#imageDataContainer{
|
100 |
font: 10px Verdana, Helvetica, sans-serif;
|
101 |
background-color: #fff;
|
|
|
102 |
margin: 0 auto;
|
103 |
line-height: 1.4em;
|
104 |
-
|
105 |
-
|
106 |
#imageData{
|
107 |
padding:0 10px;
|
108 |
-
|
109 |
-
#imageData
|
110 |
-
|
111 |
-
|
112 |
-
#imageData #
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
width: 100
|
121 |
-
height: 500px;
|
122 |
-
background-color: #000;
|
123 |
-
filter:alpha(opacity=60);
|
124 |
-
-moz-opacity: 0.6;
|
125 |
-
opacity: 0.6;
|
126 |
-
display: none;
|
127 |
-
}
|
128 |
-
|
129 |
-
|
130 |
-
.clearfix:after {
|
131 |
-
content: ".";
|
132 |
-
display: block;
|
133 |
-
height: 0;
|
134 |
-
clear: both;
|
135 |
-
visibility: hidden;
|
136 |
-
}
|
137 |
-
|
138 |
-
* html>body .clearfix {
|
139 |
-
display: inline-block;
|
140 |
-
width: 100%;
|
141 |
-
}
|
142 |
-
|
143 |
-
* html .clearfix {
|
144 |
-
/* Hides from IE-mac \*/
|
145 |
-
height: 1%;
|
146 |
-
/* End hide from IE-mac */
|
147 |
-
}
|
148 |
-
|
149 |
-
#lightboxIframe {
|
150 |
-
display: none;
|
151 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
/**
|
2 |
* WP jQuery Lightbox
|
3 |
+
* Version 1.4.6.1 - 2015-03-21
|
4 |
* http://wordpress.org/extend/plugins/wp-jquery-lightbox/
|
5 |
+
*
|
6 |
+
* WP jQuery Lightbox uses the minified version of this stylesheet (lightbox.min.css).
|
7 |
+
* This file is provided only for you to base your modification on. Edits will not be reflected on the site!
|
8 |
+
*
|
9 |
+
* To minify your stylesheet after modifying it, use http://refresh-sf.com/ and save the compressed code to
|
10 |
+
* lightbox.min.css or lightbox.min.{locale}.css (for translations)
|
11 |
+
*
|
12 |
+
* If you activate the "Use custom stylesheet"-setting, WP jQuery Lightbox will try and grab its CSS files
|
13 |
+
* from your theme's style-folder. Ergo: move your lightbox.min.css to the theme style folder to avoid having
|
14 |
+
* your changes reverted whenever the plugin updates.
|
15 |
*/
|
16 |
+
.clearfix:after {
|
17 |
+
content: ".";
|
18 |
+
display: block;
|
19 |
+
height: 0;
|
20 |
+
clear: both;
|
21 |
+
visibility: hidden;
|
22 |
+
}
|
23 |
+
* html>body .clearfix {
|
24 |
+
display: inline-block;
|
25 |
+
width: 100%;
|
26 |
+
}
|
27 |
+
* html .clearfix {
|
28 |
+
/* Hides from IE-mac \*/
|
29 |
+
height: 1%;
|
30 |
+
/* End hide from IE-mac */
|
31 |
+
}
|
32 |
+
#lightboxIframe {
|
33 |
+
display: none;
|
34 |
+
}
|
35 |
+
#overlay{
|
36 |
+
position: absolute;
|
37 |
+
top: 0;
|
38 |
+
left: 0;
|
39 |
+
z-index: 10090;
|
40 |
+
width: 100%;
|
41 |
+
height: 500px;
|
42 |
+
background-color: #000;
|
43 |
+
filter:alpha(opacity=60);
|
44 |
+
-moz-opacity: 0.6;
|
45 |
+
opacity: 0.6;
|
46 |
+
display: none;
|
47 |
+
}
|
48 |
#lightbox{
|
49 |
position: absolute;
|
50 |
left: 0;
|
51 |
width: 100%;
|
52 |
z-index: 10100;/*twentyeleven keeps the header at 999...*/
|
|
|
53 |
line-height: 0;
|
54 |
}
|
55 |
#jqlb_spinner{
|
60 |
}
|
61 |
#jqlb_closelabel{
|
62 |
height:22px;
|
63 |
+
width:66px;
|
64 |
background-image:url('./images/closelabel.gif');
|
65 |
background-repeat:no-repeat;
|
66 |
background-position:center center;
|
67 |
}
|
68 |
#lightbox a img{ border: none; }
|
|
|
|
|
|
|
|
|
|
|
69 |
#outerImageContainer{
|
70 |
position: relative;
|
71 |
background-color: #fff;
|
72 |
+
width: 300px;
|
73 |
+
height: 300px;
|
74 |
margin: 0 auto;
|
75 |
+
}
|
|
|
76 |
#imageContainer{
|
77 |
padding: 10px;
|
78 |
+
text-align: center;
|
79 |
+
}
|
80 |
#jqlb_loading{
|
81 |
position: absolute;
|
82 |
top: 40%;
|
83 |
left: 0%;
|
84 |
height: 25%;
|
85 |
width: 100%;
|
|
|
86 |
line-height: 0;
|
87 |
+
}
|
88 |
#hoverNav{
|
89 |
position: absolute;
|
90 |
top: 0;
|
92 |
height: 100%;
|
93 |
width: 100%;
|
94 |
z-index: 10;
|
95 |
+
}
|
96 |
+
#imageContainer>#hoverNav{ left: 0; }
|
97 |
+
#hoverNav a{ outline: none; }
|
98 |
|
99 |
+
/*** START : next / previous image links ***/
|
100 |
#prevLink, #nextLink{
|
101 |
width: 45%;
|
102 |
height: 100%;
|
103 |
background: transparent url('./images/blank.gif') no-repeat; /* Trick IE into showing hover */
|
104 |
display: block;
|
105 |
+
}
|
106 |
#prevLink { left: 0; float: left;}
|
107 |
#nextLink { right: 0; float: right;}
|
108 |
#prevLink:hover, #prevLink:visited:hover { background: url('./images/prev.gif') left 50% no-repeat; }
|
109 |
#nextLink:hover, #nextLink:visited:hover { background: url('./images/next.gif') right 50% no-repeat; }
|
110 |
+
/*** END : next / previous image links ***/
|
111 |
|
112 |
+
/** Text styling goes below.
|
113 |
+
I've written out the entire selector hierarchy so you can decide how specific you want your selectors to be.**/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
#imageDataContainer{
|
115 |
font: 10px Verdana, Helvetica, sans-serif;
|
116 |
background-color: #fff;
|
117 |
+
color: #000;
|
118 |
margin: 0 auto;
|
119 |
line-height: 1.4em;
|
120 |
+
}
|
|
|
121 |
#imageData{
|
122 |
padding:0 10px;
|
123 |
+
}
|
124 |
+
.ontop #imageData {
|
125 |
+
padding-top: 5px; /* add padding when title and caption are on top */
|
126 |
+
}
|
127 |
+
#imageData #imageDetails{
|
128 |
+
float: left;
|
129 |
+
text-align: left;
|
130 |
+
margin-bottom: 10px;
|
131 |
+
width: 80%; /* make room for the CLOSE-button. */
|
132 |
+
width: -moz-calc(100% - 80px); /* Firefox */
|
133 |
+
width: -webkit-calc(100% - 80px);/* WebKit */
|
134 |
+
width: -o-calc(100% - 80px); /* Opera */
|
135 |
+
width: calc(100% - 80px); /* Standard */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
}
|
137 |
+
#imageData #imageDetails #titleAndCaption{ } /*previously: #caption*/
|
138 |
+
#imageData #imageDetails #titleAndCaption #titleText { font-weight: bold; }
|
139 |
+
#imageData #imageDetails #titleAndCaption #captionText { font-weight: normal; }
|
140 |
+
#imageData #imageDetails #controls{ margin:0px; white-space: nowrap;}
|
141 |
+
#imageData #imageDetails #controls #playPause{}
|
142 |
+
#imageData #imageDetails #controls #numberDisplay{}
|
143 |
+
#imageData #imageDetails #controls #downloadLink{}
|
144 |
+
#imageData #bottomNav #bottomNavClose{ height:22px; width: 66px; float: right; margin-bottom: 10px; }
|
145 |
+
|
styles/lightbox.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#lightbox{position:absolute;left:0;width:100%;z-index:10100;
|
1 |
+
.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}#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}#lightbox{position:absolute;left:0;width:100%;z-index:10100;line-height:0}#jqlb_spinner{height:32px;background-image:url(./images/loading.gif);background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;width:66px;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:300px;height:300px;margin:0 auto}#imageContainer{padding:10px;text-align:center}#jqlb_loading{position:absolute;top:40%;left:0;height:25%;width:100%;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}#nextLink,#prevLink{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}#imageDataContainer{font:10px Verdana,Helvetica,sans-serif;background-color:#fff;color:#000;margin:0 auto;line-height:1.4em}#imageData{padding:0 10px}.ontop #imageData{padding-top:5px}#imageData #imageDetails{float:left;text-align:left;margin-bottom:10px;width:80%;width:-moz-calc(100% - 80px);width:-webkit-calc(100% - 80px);width:-o-calc(100% - 80px);width:calc(100% - 80px)}#imageData #imageDetails #titleAndCaption #titleText{font-weight:700}#imageData #imageDetails #titleAndCaption #captionText{font-weight:400}#imageData #imageDetails #controls{margin:0;white-space:nowrap}#imageData #bottomNav #bottomNavClose{height:22px;width:66px;float:right;margin-bottom:10px}
|
styles/lightbox.min.da_DK.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
#lightbox{position:absolute;left:0;width:100%;z-index:10100;text-align:center;line-height:0}#jqlb_spinner{height:32px;background-image:url('./images/da_DK/loading.gif');background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;background-image:url('./images/da_DK/closelabel.gif');background-repeat:no-repeat;background-position:center center}#lightbox a img{border:0}#controls{white-space:nowrap}#outerImageContainer{position:relative;background-color:#fff;width:250px;height:250px;margin:0 auto}#imageContainer{padding:10px}#jqlb_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/da_DK/blank.gif') no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url('./images/da_DK/prev.gif') left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url('./images/da_DK/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{display:none}.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{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.pt_PT.css
ADDED
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* WP jQuery Lightbox
|
3 |
+
* Version 1.4.6.1 - 2015-03-21
|
4 |
+
* http://wordpress.org/extend/plugins/wp-jquery-lightbox/
|
5 |
+
*
|
6 |
+
* WP jQuery Lightbox uses the minified version of this stylesheet (lightbox.min.css).
|
7 |
+
* This file is provided only for you to base your modification on. Edits will not be reflected on the site!
|
8 |
+
*
|
9 |
+
* To minify your stylesheet after modifying it, use http://refresh-sf.com/ and save the compressed code to
|
10 |
+
* lightbox.min.css or lightbox.min.{locale}.css (for translations)
|
11 |
+
*
|
12 |
+
* If you activate the "Use custom stylesheet"-setting, WP jQuery Lightbox will try and grab its CSS files
|
13 |
+
* from your theme's style-folder. Ergo: move your lightbox.min.css to the theme style folder to avoid having
|
14 |
+
* your changes reverted whenever the plugin updates.
|
15 |
+
*/
|
16 |
+
.clearfix:after {
|
17 |
+
content: ".";
|
18 |
+
display: block;
|
19 |
+
height: 0;
|
20 |
+
clear: both;
|
21 |
+
visibility: hidden;
|
22 |
+
}
|
23 |
+
* html>body .clearfix {
|
24 |
+
display: inline-block;
|
25 |
+
width: 100%;
|
26 |
+
}
|
27 |
+
* html .clearfix {
|
28 |
+
/* Hides from IE-mac \*/
|
29 |
+
height: 1%;
|
30 |
+
/* End hide from IE-mac */
|
31 |
+
}
|
32 |
+
#lightboxIframe {
|
33 |
+
display: none;
|
34 |
+
}
|
35 |
+
#overlay{
|
36 |
+
position: absolute;
|
37 |
+
top: 0;
|
38 |
+
left: 0;
|
39 |
+
z-index: 10090;
|
40 |
+
width: 100%;
|
41 |
+
height: 500px;
|
42 |
+
background-color: #000;
|
43 |
+
filter:alpha(opacity=60);
|
44 |
+
-moz-opacity: 0.6;
|
45 |
+
opacity: 0.6;
|
46 |
+
display: none;
|
47 |
+
}
|
48 |
+
#lightbox{
|
49 |
+
position: absolute;
|
50 |
+
left: 0;
|
51 |
+
width: 100%;
|
52 |
+
z-index: 10100;/*twentyeleven keeps the header at 999...*/
|
53 |
+
line-height: 0;
|
54 |
+
}
|
55 |
+
#jqlb_spinner{
|
56 |
+
height:32px;
|
57 |
+
background-image:url('./images/pt_PT/loading.gif');
|
58 |
+
background-repeat:no-repeat;
|
59 |
+
background-position:center center;
|
60 |
+
}
|
61 |
+
#jqlb_closelabel{
|
62 |
+
height:22px;
|
63 |
+
width:66px;
|
64 |
+
background-image:url('./images/pt_PT/closelabel.gif');
|
65 |
+
background-repeat:no-repeat;
|
66 |
+
background-position:center center;
|
67 |
+
}
|
68 |
+
#lightbox a img{ border: none; }
|
69 |
+
#outerImageContainer{
|
70 |
+
position: relative;
|
71 |
+
background-color: #fff;
|
72 |
+
width: 300px;
|
73 |
+
height: 300px;
|
74 |
+
margin: 0 auto;
|
75 |
+
}
|
76 |
+
#imageContainer{
|
77 |
+
padding: 10px;
|
78 |
+
text-align: center;
|
79 |
+
}
|
80 |
+
#jqlb_loading{
|
81 |
+
position: absolute;
|
82 |
+
top: 40%;
|
83 |
+
left: 0%;
|
84 |
+
height: 25%;
|
85 |
+
width: 100%;
|
86 |
+
line-height: 0;
|
87 |
+
}
|
88 |
+
#hoverNav{
|
89 |
+
position: absolute;
|
90 |
+
top: 0;
|
91 |
+
left: 0;
|
92 |
+
height: 100%;
|
93 |
+
width: 100%;
|
94 |
+
z-index: 10;
|
95 |
+
}
|
96 |
+
#imageContainer>#hoverNav{ left: 0; }
|
97 |
+
#hoverNav a{ outline: none; }
|
98 |
+
|
99 |
+
/*** START : next / previous image links ***/
|
100 |
+
#prevLink, #nextLink{
|
101 |
+
width: 45%;
|
102 |
+
height: 100%;
|
103 |
+
background: transparent url('./images/pt_PT/blank.gif') no-repeat; /* Trick IE into showing hover */
|
104 |
+
display: block;
|
105 |
+
}
|
106 |
+
#prevLink { left: 0; float: left;}
|
107 |
+
#nextLink { right: 0; float: right;}
|
108 |
+
#prevLink:hover, #prevLink:visited:hover { background: url('./images/pt_PT/prev.gif') left 50% no-repeat; }
|
109 |
+
#nextLink:hover, #nextLink:visited:hover { background: url('./images/pt_PT/next.gif') right 50% no-repeat; }
|
110 |
+
/*** END : next / previous image links ***/
|
111 |
+
|
112 |
+
/** Text styling goes below.
|
113 |
+
I've written out the entire selector hierarchy so you can decide how specific you want your selectors to be.**/
|
114 |
+
#imageDataContainer{
|
115 |
+
font: 10px Verdana, Helvetica, sans-serif;
|
116 |
+
background-color: #fff;
|
117 |
+
color: #000;
|
118 |
+
margin: 0 auto;
|
119 |
+
line-height: 1.4em;
|
120 |
+
}
|
121 |
+
#imageData{
|
122 |
+
padding:0 10px;
|
123 |
+
}
|
124 |
+
.ontop #imageData {
|
125 |
+
padding-top: 5px; /* add padding when title and caption are on top */
|
126 |
+
}
|
127 |
+
#imageData #imageDetails{
|
128 |
+
float: left;
|
129 |
+
text-align: left;
|
130 |
+
margin-bottom: 10px;
|
131 |
+
width: 80%; /* make room for the CLOSE-button. */
|
132 |
+
width: -moz-calc(100% - 80px); /* Firefox */
|
133 |
+
width: -webkit-calc(100% - 80px);/* WebKit */
|
134 |
+
width: -o-calc(100% - 80px); /* Opera */
|
135 |
+
width: calc(100% - 80px); /* Standard */
|
136 |
+
}
|
137 |
+
#imageData #imageDetails #titleAndCaption{ } /*previously: #caption*/
|
138 |
+
#imageData #imageDetails #titleAndCaption #titleText { font-weight: bold; }
|
139 |
+
#imageData #imageDetails #titleAndCaption #captionText { font-weight: normal; }
|
140 |
+
#imageData #imageDetails #controls{ margin:0px; white-space: nowrap;}
|
141 |
+
#imageData #imageDetails #controls #playPause{}
|
142 |
+
#imageData #imageDetails #controls #numberDisplay{}
|
143 |
+
#imageData #imageDetails #controls #downloadLink{}
|
144 |
+
#imageData #bottomNav #bottomNavClose{ height:22px; width: 66px; float: right; margin-bottom: 10px; }
|
145 |
+
|
styles/lightbox.min.sk_SK.css
ADDED
@@ -0,0 +1 @@
|
|
|
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/sk_SK/loading.gif');background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;background-image:url('./images/sk_SK/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/sk_SK/blank.gif') no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url('./images/sk_SK/prev.gif') left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url('./images/sk_SK/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{padding-bottom:1.0em}#downloadLink{display:none;}#playpause{}#controls{white-space:nowrap;}#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,7 +3,7 @@
|
|
3 |
Plugin Name: wp-jquery-lightbox
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/wp-jquery-lightbox/
|
5 |
Description: A drop in replacement for LightBox-2 and similar plugins. Uses jQuery to save you from the JS-library mess in your header. :)
|
6 |
-
Version: 1.4.
|
7 |
Author: Ulf Benjaminsson
|
8 |
Author URI: http://www.ulfben.com
|
9 |
License: GPLv2 or later
|
@@ -19,10 +19,9 @@ function jqlb_init() {
|
|
19 |
//JQLB_URL = plugin_dir_url(__FILE__);
|
20 |
//JQLB_STYLES_URL = plugin_dir_url(__FILE__).'styles/'
|
21 |
//JQLB_LANGUAGES_DIR = plugin_dir_path(__FILE__) . 'languages/'
|
22 |
-
define('JQLB_SCRIPT', 'jquery.lightbox.min.js');
|
23 |
define('JQLB_TOUCH_SCRIPT', 'jquery.touchwipe.min.js');
|
24 |
-
load_plugin_textdomain('
|
25 |
-
//load_plugin_textdomain('jqlb', false, plugin_dir_path(__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');
|
@@ -39,7 +38,7 @@ function jqlb_set_plugin_meta( $links, $file ) { // Add a link to this plugin's
|
|
39 |
static $this_plugin;
|
40 |
if(!$this_plugin) $this_plugin = plugin_basename(__FILE__);
|
41 |
if($file == $this_plugin) {
|
42 |
-
$settings_link = '<a href="options-general.php?page=jquery-lightbox-options">'.__('Settings', '
|
43 |
array_unshift($links, $settings_link);
|
44 |
}
|
45 |
return $links;
|
@@ -49,27 +48,30 @@ function jqlb_add_admin_footer(){ //shows some plugin info in the footer of the
|
|
49 |
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']);
|
50 |
}
|
51 |
function jqlb_register_settings(){
|
52 |
-
register_setting( 'jqlb-settings-group', 'jqlb_automate', 'jqlb_bool_intval');
|
53 |
-
register_setting( 'jqlb-settings-group', '
|
|
|
|
|
54 |
register_setting( 'jqlb-settings-group', 'jqlb_comments', 'jqlb_bool_intval');
|
55 |
register_setting( 'jqlb-settings-group', 'jqlb_resize_on_demand', 'jqlb_bool_intval');
|
56 |
-
register_setting( 'jqlb-settings-group', '
|
57 |
register_setting( 'jqlb-settings-group', 'jqlb_navbarOnTop', 'jqlb_bool_intval');
|
58 |
register_setting( 'jqlb-settings-group', 'jqlb_margin_size', 'floatval');
|
59 |
register_setting( 'jqlb-settings-group', 'jqlb_resize_speed', 'jqlb_pos_intval');
|
60 |
-
register_setting( 'jqlb-settings-group', 'jqlb_slideshow_speed', 'jqlb_pos_intval');
|
61 |
-
register_setting( 'jqlb-settings-group', '
|
62 |
-
|
63 |
-
add_option('
|
64 |
-
add_option('
|
65 |
-
add_option('jqlb_link_target', '_self');
|
66 |
add_option('jqlb_automate', 1); //default is to auto-lightbox.
|
67 |
add_option('jqlb_comments', 1);
|
68 |
add_option('jqlb_resize_on_demand', 0);
|
69 |
-
add_option('
|
70 |
add_option('jqlb_navbarOnTop', 0);
|
|
|
71 |
add_option('jqlb_resize_speed', 400);
|
72 |
add_option('jqlb_slideshow_speed', 4000);
|
|
|
73 |
}
|
74 |
function jqlb_register_menu_item() {
|
75 |
add_options_page('jQuery Lightbox Options', 'jQuery Lightbox', 'manage_options', 'jquery-lightbox-options', 'jqlb_options_panel');
|
@@ -88,39 +90,50 @@ function jqlb_css(){
|
|
88 |
if(is_admin() || is_feed()){return;}
|
89 |
$locale = jqlb_get_locale();
|
90 |
$fileName = "lightbox.min.{$locale}.css";
|
91 |
-
|
92 |
-
$
|
93 |
-
if(
|
94 |
-
$
|
95 |
-
|
96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
}
|
98 |
|
99 |
function jqlb_js() {
|
100 |
if(is_admin() || is_feed()){return;}
|
101 |
wp_enqueue_script('jquery', '', array(), false, true);
|
102 |
-
wp_enqueue_script('wp-jquery-lightbox-swipe', plugins_url(JQLB_TOUCH_SCRIPT, __FILE__), Array('jquery'), '1.4', true);
|
103 |
-
wp_enqueue_script('wp-jquery-lightbox', plugins_url(JQLB_SCRIPT, __FILE__), Array('jquery'), '1.4', true);
|
104 |
wp_localize_script('wp-jquery-lightbox', 'JQLBSettings', array(
|
105 |
-
'
|
|
|
|
|
106 |
'fitToScreen' => get_option('jqlb_resize_on_demand'),
|
107 |
'resizeSpeed' => get_option('jqlb_resize_speed'),
|
108 |
-
'
|
109 |
-
'navbarOnTop' => get_option('jqlb_navbarOnTop'),
|
110 |
-
'
|
111 |
-
'marginSize' => get_option('jqlb_margin_size'),
|
112 |
-
'linkTarget' => get_option('jqlb_link_target'),
|
113 |
'slideshowSpeed' => get_option('jqlb_slideshow_speed'),
|
114 |
-
/* translation */
|
115 |
-
'
|
116 |
-
'
|
117 |
-
'
|
118 |
-
'
|
119 |
-
'
|
120 |
-
'
|
121 |
-
'
|
122 |
-
'
|
123 |
-
'play' => __('(play slideshow)', 'jqlb')
|
124 |
));
|
125 |
}
|
126 |
|
@@ -183,7 +196,7 @@ function jqlb_pos_intval($v){
|
|
183 |
}
|
184 |
function jqlb_options_panel(){
|
185 |
if(!function_exists('current_user_can') || !current_user_can('manage_options')){
|
186 |
-
die(__('Cheatin’ uh?', '
|
187 |
}
|
188 |
add_action('in_admin_footer', 'jqlb_add_admin_footer');
|
189 |
?>
|
@@ -198,49 +211,50 @@ function jqlb_options_panel(){
|
|
198 |
<td colspan="">
|
199 |
<?php $check = get_option('jqlb_automate') ? ' checked="yes" ' : ''; ?>
|
200 |
<input type="checkbox" id="jqlb_automate" name="jqlb_automate" value="1" <?php echo $check; ?>/>
|
201 |
-
<label for="jqlb_automate" title="<?php _e('Let the plugin add necessary html to image links', '
|
202 |
</td>
|
203 |
</tr>
|
204 |
<tr valign="baseline" colspan="2">
|
205 |
<td colspan="2">
|
206 |
<?php $check = get_option('jqlb_comments') ? ' checked="yes" ' : ''; ?>
|
207 |
<input type="checkbox" id="jqlb_comments" name="jqlb_comments" value="1" <?php echo $check; ?>/>
|
208 |
-
<label for="jqlb_comments" title="<?php _e('Note: this will disable the nofollow-attribute of comment links, that otherwise interfere with the lightbox.', '
|
209 |
</td>
|
210 |
</tr>
|
211 |
<tr>
|
212 |
-
|
213 |
-
<?php $check = get_option('
|
214 |
-
<input type="checkbox" id="
|
215 |
-
<label for="
|
216 |
</td>
|
217 |
</tr>
|
218 |
-
<tr
|
219 |
<td>
|
220 |
-
<?php $check = get_option('
|
221 |
-
<input type="checkbox" id="
|
222 |
-
<label for="
|
223 |
</td>
|
|
|
|
|
224 |
<td>
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
<
|
234 |
-
<
|
235 |
-
</
|
236 |
-
</td>
|
237 |
</tr>
|
238 |
<tr valign="baseline" colspan="2">
|
239 |
<td colspan="2">
|
240 |
<?php $check = get_option('jqlb_navbarOnTop') ? ' checked="yes" ' : ''; ?>
|
241 |
<input type="checkbox" id="jqlb_navbarOnTop" name="jqlb_navbarOnTop" value="1" <?php echo $check; ?> />
|
242 |
<label for="jqlb_navbarOnTop">
|
243 |
-
<?php _e('Show image info on top', '
|
244 |
</label>
|
245 |
</td>
|
246 |
</tr>
|
@@ -248,37 +262,37 @@ _top: open the image in the full body of the window', 'jqlb') ?>"><?php _e('Targ
|
|
248 |
<td>
|
249 |
<?php $check = get_option('jqlb_resize_on_demand') ? ' checked="yes" ' : ''; ?>
|
250 |
<input type="checkbox" id="jqlb_resize_on_demand" name="jqlb_resize_on_demand" value="1" <?php echo $check; ?> />
|
251 |
-
<label for="jqlb_resize_on_demand"><?php _e('Shrink large images to fit smaller screens', '
|
252 |
</td>
|
253 |
<?php IF($check != ''): ?>
|
254 |
<td>
|
255 |
<input type="text" id="jqlb_margin_size" name="jqlb_margin_size" value="<?php echo floatval(get_option('jqlb_margin_size')) ?>" size="3" />
|
256 |
-
<label for="jqlb_margin_size" title="<?php _e('Keep a distance between the image and the screen edges.', '
|
257 |
</td>
|
258 |
<?php ENDIF; ?>
|
259 |
-
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
260 |
<tr valign="baseline" colspan="2">
|
261 |
<td colspan="2">
|
262 |
<input type="text" id="jqlb_resize_speed" name="jqlb_resize_speed" value="<?php echo intval(get_option('jqlb_resize_speed')) ?>" size="3" />
|
263 |
-
<label for="jqlb_resize_speed"><?php _e('Animation duration (in milliseconds) ', '
|
264 |
</td>
|
265 |
</tr>
|
266 |
<tr valign="baseline" colspan="2">
|
267 |
<td colspan="2">
|
268 |
<input type="text" id="jqlb_slideshow_speed" name="jqlb_slideshow_speed" value="<?php echo intval(get_option('jqlb_slideshow_speed')) ?>" size="3" />
|
269 |
-
<label for="jqlb_slideshow_speed"><?php _e('Slideshow speed (in milliseconds). 0 to disable.', '
|
270 |
</td>
|
271 |
-
</tr>
|
272 |
-
|
273 |
-
<td>
|
274 |
-
<input type="text" id="jqlb_help_text" name="jqlb_help_text" value="<?php echo get_option('jqlb_help_text'); ?>" size="30" />
|
275 |
-
<label for="jqlb_help_text"><?php _e('Help text (default: none) ', 'jqlb'); ?></label>
|
276 |
-
</td>
|
277 |
-
</tr>
|
278 |
-
</table>
|
279 |
-
<p style="font-size:xx-small;font-style:italic;"><?php _e('Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close.', 'jqlb'); ?></p>
|
280 |
<p class="submit">
|
281 |
-
<input type="submit" name="Submit" value="<?php _e('Save Changes', '
|
282 |
</p>
|
283 |
</form>
|
284 |
<?php
|
3 |
Plugin Name: wp-jquery-lightbox
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/wp-jquery-lightbox/
|
5 |
Description: A drop in replacement for LightBox-2 and similar plugins. Uses jQuery to save you from the JS-library mess in your header. :)
|
6 |
+
Version: 1.4.7
|
7 |
Author: Ulf Benjaminsson
|
8 |
Author URI: http://www.ulfben.com
|
9 |
License: GPLv2 or later
|
19 |
//JQLB_URL = plugin_dir_url(__FILE__);
|
20 |
//JQLB_STYLES_URL = plugin_dir_url(__FILE__).'styles/'
|
21 |
//JQLB_LANGUAGES_DIR = plugin_dir_path(__FILE__) . 'languages/'
|
22 |
+
define('JQLB_SCRIPT', 'jquery.lightbox.min.js');
|
23 |
define('JQLB_TOUCH_SCRIPT', 'jquery.touchwipe.min.js');
|
24 |
+
load_plugin_textdomain('wp-jquery-lightbox', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/');
|
|
|
25 |
add_action('admin_init', 'jqlb_register_settings');
|
26 |
add_action('admin_menu', 'jqlb_register_menu_item');
|
27 |
add_action('wp_print_styles', 'jqlb_css');
|
38 |
static $this_plugin;
|
39 |
if(!$this_plugin) $this_plugin = plugin_basename(__FILE__);
|
40 |
if($file == $this_plugin) {
|
41 |
+
$settings_link = '<a href="options-general.php?page=jquery-lightbox-options">'.__('Settings', 'wp-jquery-lightbox').'</a>';
|
42 |
array_unshift($links, $settings_link);
|
43 |
}
|
44 |
return $links;
|
48 |
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']);
|
49 |
}
|
50 |
function jqlb_register_settings(){
|
51 |
+
register_setting( 'jqlb-settings-group', 'jqlb_automate', 'jqlb_bool_intval');
|
52 |
+
register_setting( 'jqlb-settings-group', 'jqlb_showTitle', 'jqlb_bool_intval');
|
53 |
+
register_setting( 'jqlb-settings-group', 'jqlb_showCaption', 'jqlb_bool_intval');
|
54 |
+
register_setting( 'jqlb-settings-group', 'jqlb_showNumbers', 'jqlb_bool_intval');
|
55 |
register_setting( 'jqlb-settings-group', 'jqlb_comments', 'jqlb_bool_intval');
|
56 |
register_setting( 'jqlb-settings-group', 'jqlb_resize_on_demand', 'jqlb_bool_intval');
|
57 |
+
register_setting( 'jqlb-settings-group', 'jqlb_showDownload', 'jqlb_bool_intval');
|
58 |
register_setting( 'jqlb-settings-group', 'jqlb_navbarOnTop', 'jqlb_bool_intval');
|
59 |
register_setting( 'jqlb-settings-group', 'jqlb_margin_size', 'floatval');
|
60 |
register_setting( 'jqlb-settings-group', 'jqlb_resize_speed', 'jqlb_pos_intval');
|
61 |
+
register_setting( 'jqlb-settings-group', 'jqlb_slideshow_speed', 'jqlb_pos_intval');
|
62 |
+
register_setting( 'jqlb-settings-group', 'jqlb_use_theme_styles', 'jqlb_bool_intval');
|
63 |
+
add_option('jqlb_showTitle', 1);
|
64 |
+
add_option('jqlb_showCaption', 1);
|
65 |
+
add_option('jqlb_showNumbers', 1);
|
|
|
66 |
add_option('jqlb_automate', 1); //default is to auto-lightbox.
|
67 |
add_option('jqlb_comments', 1);
|
68 |
add_option('jqlb_resize_on_demand', 0);
|
69 |
+
add_option('jqlb_showDownload', 0);
|
70 |
add_option('jqlb_navbarOnTop', 0);
|
71 |
+
add_option('jqlb_margin_size', 0);
|
72 |
add_option('jqlb_resize_speed', 400);
|
73 |
add_option('jqlb_slideshow_speed', 4000);
|
74 |
+
add_option('jqlb_use_theme_styles', 0);
|
75 |
}
|
76 |
function jqlb_register_menu_item() {
|
77 |
add_options_page('jQuery Lightbox Options', 'jQuery Lightbox', 'manage_options', 'jquery-lightbox-options', 'jqlb_options_panel');
|
90 |
if(is_admin() || is_feed()){return;}
|
91 |
$locale = jqlb_get_locale();
|
92 |
$fileName = "lightbox.min.{$locale}.css";
|
93 |
+
$fileName = "lightbox.min.css";
|
94 |
+
$haveThemeCss = false;
|
95 |
+
if(get_option('jqlb_use_theme_styles') == 1){ // courtesy of Vincent Weber
|
96 |
+
$pathTheme = get_stylesheet_directory() ."/{$fileName}"; //look for CSS in theme's style folder first
|
97 |
+
if(false === ($haveThemeCss = is_readable($pathTheme))) {
|
98 |
+
$fileName = 'lightbox.min.css';
|
99 |
+
$pathTheme = get_stylesheet_directory() ."/{$fileName}";
|
100 |
+
$haveThemeCss = is_readable($pathTheme);
|
101 |
+
}
|
102 |
+
}
|
103 |
+
if($haveThemeCss == false){
|
104 |
+
$path = plugin_dir_path(__FILE__)."styles/{$fileName}";
|
105 |
+
if(!is_readable($path)) {
|
106 |
+
$fileName = 'lightbox.min.css';
|
107 |
+
}
|
108 |
+
}
|
109 |
+
$uri = ( $haveThemeCss ) ? get_template_directory_uri().'/'.$fileName : plugin_dir_url(__FILE__).'styles/'.$fileName;
|
110 |
+
wp_enqueue_style('jquery.lightbox.min.css', $uri, false, '1.4.6');
|
111 |
}
|
112 |
|
113 |
function jqlb_js() {
|
114 |
if(is_admin() || is_feed()){return;}
|
115 |
wp_enqueue_script('jquery', '', array(), false, true);
|
116 |
+
wp_enqueue_script('wp-jquery-lightbox-swipe', plugins_url(JQLB_TOUCH_SCRIPT, __FILE__), Array('jquery'), '1.4.6', true);
|
117 |
+
wp_enqueue_script('wp-jquery-lightbox', plugins_url(JQLB_SCRIPT, __FILE__), Array('jquery'), '1.4.6', true);
|
118 |
wp_localize_script('wp-jquery-lightbox', 'JQLBSettings', array(
|
119 |
+
'showTitle' => get_option('jqlb_showTitle'),
|
120 |
+
'showCaption' => get_option('jqlb_showCaption'),
|
121 |
+
'showNumbers' => get_option('jqlb_showNumbers'),
|
122 |
'fitToScreen' => get_option('jqlb_resize_on_demand'),
|
123 |
'resizeSpeed' => get_option('jqlb_resize_speed'),
|
124 |
+
'showDownload' => get_option('jqlb_showDownload'),
|
125 |
+
'navbarOnTop' => get_option('jqlb_navbarOnTop'),
|
126 |
+
'marginSize' => get_option('jqlb_margin_size'),
|
|
|
|
|
127 |
'slideshowSpeed' => get_option('jqlb_slideshow_speed'),
|
128 |
+
/* translation */
|
129 |
+
'prevLinkTitle' => __('previous image', 'wp-jquery-lightbox'),
|
130 |
+
'nextLinkTitle' => __('next image', 'wp-jquery-lightbox'),
|
131 |
+
'closeTitle' => __('close image gallery', 'wp-jquery-lightbox'),
|
132 |
+
'image' => __('Image ', 'wp-jquery-lightbox'),
|
133 |
+
'of' => __(' of ', 'wp-jquery-lightbox'),
|
134 |
+
'download' => __('Download', 'wp-jquery-lightbox'),
|
135 |
+
'pause' => __('(pause slideshow)', 'wp-jquery-lightbox'),
|
136 |
+
'play' => __('(play slideshow)', 'wp-jquery-lightbox')
|
|
|
137 |
));
|
138 |
}
|
139 |
|
196 |
}
|
197 |
function jqlb_options_panel(){
|
198 |
if(!function_exists('current_user_can') || !current_user_can('manage_options')){
|
199 |
+
die(__('Cheatin’ uh?', 'wp-jquery-lightbox'));
|
200 |
}
|
201 |
add_action('in_admin_footer', 'jqlb_add_admin_footer');
|
202 |
?>
|
211 |
<td colspan="">
|
212 |
<?php $check = get_option('jqlb_automate') ? ' checked="yes" ' : ''; ?>
|
213 |
<input type="checkbox" id="jqlb_automate" name="jqlb_automate" value="1" <?php echo $check; ?>/>
|
214 |
+
<label for="jqlb_automate" title="<?php _e('Let the plugin add necessary html to image links', 'wp-jquery-lightbox') ?>"> <?php _e('Auto-lightbox image links', 'wp-jquery-lightbox') ?></label>
|
215 |
</td>
|
216 |
</tr>
|
217 |
<tr valign="baseline" colspan="2">
|
218 |
<td colspan="2">
|
219 |
<?php $check = get_option('jqlb_comments') ? ' checked="yes" ' : ''; ?>
|
220 |
<input type="checkbox" id="jqlb_comments" name="jqlb_comments" value="1" <?php echo $check; ?>/>
|
221 |
+
<label for="jqlb_comments" title="<?php _e('Note: this will disable the nofollow-attribute of comment links, that otherwise interfere with the lightbox.', 'wp-jquery-lightbox') ?>"> <?php _e('Enable lightbox in comments (disables <a href="http://codex.wordpress.org/Nofollow">the nofollow attribute!</a>)', 'wp-jquery-lightbox') ?></label>
|
222 |
</td>
|
223 |
</tr>
|
224 |
<tr>
|
225 |
+
<td>
|
226 |
+
<?php $check = get_option('jqlb_showTitle') ? ' checked="yes" ' : ''; ?>
|
227 |
+
<input type="checkbox" id="jqlb_showTitle" name="jqlb_showTitle" value="1" <?php echo $check; ?> />
|
228 |
+
<label for="jqlb_showTitle"> <?php _e('Show title', 'wp-jquery-lightbox') ?> </label>
|
229 |
</td>
|
230 |
</tr>
|
231 |
+
<tr>
|
232 |
<td>
|
233 |
+
<?php $check = get_option('jqlb_showCaption') ? ' checked="yes" ' : ''; ?>
|
234 |
+
<input type="checkbox" id="jqlb_showCaption" name="jqlb_showCaption" value="1" <?php echo $check; ?> />
|
235 |
+
<label for="jqlb_showCaption"> <?php _e('Show caption', 'wp-jquery-lightbox') ?> </label>
|
236 |
</td>
|
237 |
+
</tr>
|
238 |
+
<tr valign="baseline">
|
239 |
<td>
|
240 |
+
<?php $check = get_option('jqlb_showNumbers') ? ' checked="yes" ' : ''; ?>
|
241 |
+
<input type="checkbox" id="jqlb_showNumbers" name="jqlb_showNumbers" value="1" <?php echo $check; ?> />
|
242 |
+
<label for="jqlb_showNumbers"> <?php _e('Show image numbers:', 'wp-jquery-lightbox'); printf(' <code>"%s # %s #"</code>', __('Image ', 'wp-jquery-lightbox'), __(' of ', 'wp-jquery-lightbox')); ?> </label>
|
243 |
+
</td>
|
244 |
+
</tr>
|
245 |
+
<tr valign="baseline">
|
246 |
+
<td>
|
247 |
+
<?php $check = get_option('jqlb_showDownload') ? ' checked="yes" ' : ''; ?>
|
248 |
+
<input type="checkbox" id="jqlb_showDownload" name="jqlb_showDownload" value="1" <?php echo $check; ?> />
|
249 |
+
<label for="jqlb_showDownload"> <?php _e('Show download link', 'wp-jquery-lightbox') ?> </label>
|
250 |
+
</td>
|
|
|
251 |
</tr>
|
252 |
<tr valign="baseline" colspan="2">
|
253 |
<td colspan="2">
|
254 |
<?php $check = get_option('jqlb_navbarOnTop') ? ' checked="yes" ' : ''; ?>
|
255 |
<input type="checkbox" id="jqlb_navbarOnTop" name="jqlb_navbarOnTop" value="1" <?php echo $check; ?> />
|
256 |
<label for="jqlb_navbarOnTop">
|
257 |
+
<?php _e('Show image info on top', 'wp-jquery-lightbox') ?>
|
258 |
</label>
|
259 |
</td>
|
260 |
</tr>
|
262 |
<td>
|
263 |
<?php $check = get_option('jqlb_resize_on_demand') ? ' checked="yes" ' : ''; ?>
|
264 |
<input type="checkbox" id="jqlb_resize_on_demand" name="jqlb_resize_on_demand" value="1" <?php echo $check; ?> />
|
265 |
+
<label for="jqlb_resize_on_demand"><?php _e('Shrink large images to fit smaller screens', 'wp-jquery-lightbox') ?></label>
|
266 |
</td>
|
267 |
<?php IF($check != ''): ?>
|
268 |
<td>
|
269 |
<input type="text" id="jqlb_margin_size" name="jqlb_margin_size" value="<?php echo floatval(get_option('jqlb_margin_size')) ?>" size="3" />
|
270 |
+
<label for="jqlb_margin_size" title="<?php _e('Keep a distance between the image and the screen edges.', 'wp-jquery-lightbox') ?>"><?php _e('Minimum margin to screen edge (default: 0)', 'wp-jquery-lightbox') ?></label>
|
271 |
</td>
|
272 |
<?php ENDIF; ?>
|
273 |
+
</tr>
|
274 |
+
<tr valign="baseline" colspan="2">
|
275 |
+
<td>
|
276 |
+
<?php $check = get_option('jqlb_use_theme_styles') ? ' checked="yes" ' : ''; ?>
|
277 |
+
<input type="checkbox" id="jqlb_use_theme_styles" name="jqlb_use_theme_styles" value="1" <?php echo $check; ?> />
|
278 |
+
<label for="jqlb_use_theme_styles" title="You must put lightbox.min.css or lightbox.min.[locale].css in your theme's style-folder. This is good to keep your CSS edits when updating the plugin."><?php _e('Use custom stylesheet', 'wp-jquery-lightbox'); ?></label>
|
279 |
+
</td>
|
280 |
+
</tr>
|
281 |
<tr valign="baseline" colspan="2">
|
282 |
<td colspan="2">
|
283 |
<input type="text" id="jqlb_resize_speed" name="jqlb_resize_speed" value="<?php echo intval(get_option('jqlb_resize_speed')) ?>" size="3" />
|
284 |
+
<label for="jqlb_resize_speed"><?php _e('Animation duration (in milliseconds) ', 'wp-jquery-lightbox') ?></label>
|
285 |
</td>
|
286 |
</tr>
|
287 |
<tr valign="baseline" colspan="2">
|
288 |
<td colspan="2">
|
289 |
<input type="text" id="jqlb_slideshow_speed" name="jqlb_slideshow_speed" value="<?php echo intval(get_option('jqlb_slideshow_speed')) ?>" size="3" />
|
290 |
+
<label for="jqlb_slideshow_speed"><?php _e('Slideshow speed (in milliseconds). 0 to disable.', 'wp-jquery-lightbox') ?></label>
|
291 |
</td>
|
292 |
+
</tr>
|
293 |
+
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
294 |
<p class="submit">
|
295 |
+
<input type="submit" name="Submit" value="<?php _e('Save Changes', 'wp-jquery-lightbox') ?>" />
|
296 |
</p>
|
297 |
</form>
|
298 |
<?php
|