Version Description
Swipe gestures, slideshow, sets and lots of fixes. Check your config screen after update!
Download this release
Release Info
Developer | ulfben |
Plugin | WP jQuery Lightbox |
Version | 1.4 |
Comparing to | |
See all releases |
Code changes from version 1.3.4.2 to 1.4
- about.php +2 -3
- jquery.lightbox.js +174 -210
- jquery.lightbox.min.js +1 -1
- jquery.touchwipe.1.1.1.js +82 -0
- jquery.touchwipe.min.js +10 -0
- languages/howtouse-en_US.html +32 -28
- languages/howtouse-ja.html +0 -50
- languages/howtouse.html +32 -28
- languages/jqlb-de_DE.mo +0 -0
- languages/jqlb-de_DE.po +154 -0
- languages/jqlb-es_ES.mo +0 -0
- languages/jqlb-es_ES.po +132 -0
- languages/jqlb-fi.mo +0 -0
- languages/jqlb-fi.po +125 -0
- languages/jqlb-lt_LT.mo +0 -0
- languages/jqlb-lt_LT.po +102 -0
- languages/jqlb-nb_NO.mo +0 -0
- languages/jqlb-nb_NO.po +144 -0
- readme.txt +123 -39
- styles/images/es_ES/blank.gif +0 -0
- styles/images/es_ES/close.gif +0 -0
- styles/images/es_ES/closelabel.gif +0 -0
- styles/images/es_ES/loading.gif +0 -0
- styles/images/es_ES/next.gif +0 -0
- styles/images/es_ES/nextlabel.gif +0 -0
- styles/images/es_ES/prev.gif +0 -0
- styles/images/es_ES/prevlabel.gif +0 -0
- styles/images/fi/blank.gif +0 -0
- styles/images/fi/close.gif +0 -0
- styles/images/fi/closelabel.gif +0 -0
- styles/images/fi/loading.gif +0 -0
- styles/images/fi/next.gif +0 -0
- styles/images/fi/nextlabel.gif +0 -0
- styles/images/fi/prev.gif +0 -0
- styles/images/fi/prevlabel.gif +0 -0
- styles/lightbox.css +12 -10
- styles/lightbox.min.cs_CZ.css +1 -1
- styles/lightbox.min.css +1 -1
- styles/lightbox.min.fi.css +1 -0
- styles/lightbox.min.pl_PL.css +1 -1
- styles/lightbox.min.ru_RU.css +1 -1
- wp-jquery-lightbox.php +45 -18
about.php
CHANGED
@@ -23,9 +23,8 @@ $author_profile = 'http://profiles.wordpress.org/users/ulfben/';
|
|
23 |
/* ]]> */
|
24 |
</script>
|
25 |
<style type="text/css">
|
26 |
-
#about{ float: right; width:350px; background: #ffc; border: 1px solid #333; padding: 5px; text-align: justify; }
|
27 |
-
#about
|
28 |
-
#about h3 {text-align:center;}
|
29 |
.field_info {text-align:right;};
|
30 |
</style>
|
31 |
<?php echo "<div id='about'>
|
23 |
/* ]]> */
|
24 |
</script>
|
25 |
<style type="text/css">
|
26 |
+
#about{ float: right; width:350px; background: #ffc; border: 1px solid #333; padding: 5px; text-align: justify; font-family:verdana; font-size:11px; }
|
27 |
+
div#about h3 {text-align:center;}
|
|
|
28 |
.field_info {text-align:right;};
|
29 |
</style>
|
30 |
<?php echo "<div id='about'>
|
jquery.lightbox.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* WP jQuery Lightbox
|
3 |
-
* Version 1.
|
4 |
* @author Ulf Benjaminsson (http://www.ulfben.com)
|
5 |
*
|
6 |
* This is a modified version of Warren Krevenkis Lightbox-port (see notice below) for use in the WP jQuery Lightbox-
|
@@ -36,6 +36,9 @@
|
|
36 |
(function($){
|
37 |
$.fn.lightbox = function(options) {
|
38 |
var opts = $.extend({}, $.fn.lightbox.defaults, options);
|
|
|
|
|
|
|
39 |
function onClick() {
|
40 |
initialize();
|
41 |
start(this);
|
@@ -45,28 +48,22 @@
|
|
45 |
return $(this).on("click", onClick);
|
46 |
}else{
|
47 |
return $(this).live("click", onClick); //deprecated since 1.7
|
48 |
-
}
|
49 |
-
|
50 |
function initialize() {
|
51 |
$(window).bind('orientationchange', resizeListener);
|
52 |
$(window).bind('resize', resizeListener);
|
53 |
-
// if (opts.followScroll) { $(window).bind('scroll', orientListener); }
|
54 |
$('#overlay').remove();
|
55 |
$('#lightbox').remove();
|
56 |
opts.isIE8 = isIE8(); // //http://www.grayston.net/2011/internet-explorer-v8-and-opacity-issues/
|
57 |
opts.inprogress = false;
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
opts.imageArray = parser(opts.jsonData);
|
63 |
-
}
|
64 |
-
var outerImage = '<div id="outerImageContainer"><div id="imageContainer"><iframe id="lightboxIframe" /><img id="lightboxImage"><div id="hoverNav"><a href="javascript://" title="' + opts.strings.prevLinkTitle + '" id="prevLink"></a><a href="javascript://" id="nextLink" title="' + opts.strings.nextLinkTitle + '"></a></div><div id="loading"><a href="javascript://" id="loadingLink"><div id="jqlb_loading"></div></a></div></div></div>';
|
65 |
-
var imageData = '<div id="imageDataContainer" class="clearfix"><div id="imageData"><div id="imageDetails"><span id="caption"></span><span id="numberDisplay"></span></div><div id="bottomNav">';
|
66 |
if (opts.displayHelp) {
|
67 |
-
imageData += '<span id="helpDisplay">' +
|
68 |
}
|
69 |
-
imageData += '<a href="javascript://" id="bottomNavClose" title="' +
|
70 |
var string;
|
71 |
if (opts.navbarOnTop) {
|
72 |
string = '<div id="overlay"></div><div id="lightbox">' + imageData + outerImage + '</div>';
|
@@ -85,15 +82,15 @@
|
|
85 |
if (!opts.imageClickClose) {
|
86 |
$("#lightboxImage").click(function () { return false; });
|
87 |
$("#hoverNav").click(function () { return false; });
|
88 |
-
}
|
89 |
-
};
|
90 |
//allow image to reposition & scale if orientation change or resize occurs.
|
91 |
function resizeListener(e) {
|
92 |
if (opts.resizeTimeout) {
|
93 |
clearTimeout(opts.resizeTimeout);
|
94 |
opts.resizeTimeout = false;
|
95 |
}
|
96 |
-
opts.resizeTimeout = setTimeout(function () { doScale(
|
97 |
}
|
98 |
function getPageSize(){
|
99 |
var pgDocHeight = $(document).height();
|
@@ -134,7 +131,6 @@
|
|
134 |
}
|
135 |
return new Array(xScroll, yScroll);
|
136 |
};
|
137 |
-
|
138 |
function start(imageLink) {
|
139 |
$("select, embed, object").hide();
|
140 |
var arrayPageSize = getPageSize();
|
@@ -150,91 +146,80 @@
|
|
150 |
$("#overlay").css({ top: newTop + 'px' });
|
151 |
}
|
152 |
}
|
153 |
-
imageNum = 0;
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
});
|
207 |
-
}
|
208 |
-
}
|
209 |
-
if (opts.imageArray.length > 1) {
|
210 |
-
for (i = 0; i < opts.imageArray.length; i++) {
|
211 |
-
for (j = opts.imageArray.length - 1; j > i; j--) {
|
212 |
-
if (opts.imageArray[i][0] == opts.imageArray[j][0]) {
|
213 |
-
opts.imageArray.splice(j, 1);
|
214 |
}
|
215 |
}
|
216 |
}
|
217 |
-
while (
|
218 |
}
|
219 |
-
|
220 |
-
setLightBoxPos(arrayPagePos[1], arrayPagePos[0]).show()
|
221 |
changeImage(imageNum);
|
222 |
};
|
223 |
-
|
224 |
function setLightBoxPos(newTop, newLeft) {
|
225 |
if (opts.resizeSpeed > 0) {
|
226 |
-
$('#lightbox').animate({ top: newTop }, 250, 'linear');
|
227 |
-
return $('#lightbox').animate({ left: newLeft }, 250, 'linear');
|
228 |
}
|
229 |
return $('#lightbox').css({ top: newTop + 'px', left: newLeft + 'px' });
|
230 |
}
|
231 |
-
|
232 |
function changeImage(imageNum) {
|
233 |
if (opts.inprogress == false) {
|
234 |
opts.inprogress = true;
|
235 |
opts.activeImage = imageNum;
|
236 |
// hide elements during transition
|
237 |
-
$('#
|
238 |
$('#lightboxImage').hide();
|
239 |
$('#hoverNav').hide();
|
240 |
$('#prevLink').hide();
|
@@ -242,7 +227,6 @@
|
|
242 |
doChangeImage();
|
243 |
}
|
244 |
};
|
245 |
-
|
246 |
function doChangeImage() {
|
247 |
opts.imgPreloader = new Image();
|
248 |
opts.imgPreloader.onload = function () {
|
@@ -252,7 +236,6 @@
|
|
252 |
};
|
253 |
opts.imgPreloader.src = opts.imageArray[opts.activeImage][0];
|
254 |
};
|
255 |
-
|
256 |
function doScale() {
|
257 |
if (!opts.imgPreloader) {
|
258 |
return;
|
@@ -298,24 +281,18 @@
|
|
298 |
opts.yScale = (heightNew / opts.heightCurrent) * 100;
|
299 |
setLightBoxPos(lightboxTop, lightboxLeft);
|
300 |
updateDetails(); //toyNN: moved updateDetails() here, seems to work fine.
|
301 |
-
$('#imageDataContainer').animate({
|
302 |
-
$('#outerImageContainer').animate({
|
303 |
-
|
304 |
-
showImage();
|
305 |
-
});
|
306 |
});
|
307 |
updateNav();
|
308 |
-
$('#prevLink').height(imgHeight);
|
309 |
-
$('#nextLink').height(imgHeight);
|
310 |
};
|
311 |
-
|
312 |
function showImage() {
|
313 |
//assumes updateDetails have been called earlier!
|
314 |
$("#imageData").show();
|
315 |
-
$('#caption').show();
|
316 |
-
|
317 |
-
//$("#imageDetails").hide().fadeIn(400);
|
318 |
-
$('#loading').hide();
|
319 |
if (opts.resizeSpeed > 0) {
|
320 |
$('#lightboxImage').fadeIn("fast");
|
321 |
} else {
|
@@ -325,7 +302,7 @@
|
|
325 |
};
|
326 |
|
327 |
function preloadNeighborImages() {
|
328 |
-
if (opts.
|
329 |
preloadNextImage = new Image();
|
330 |
preloadNextImage.src = opts.imageArray[(opts.activeImage == (opts.imageArray.length - 1)) ? 0 : opts.activeImage + 1][0]
|
331 |
preloadPrevImage = new Image();
|
@@ -342,68 +319,72 @@
|
|
342 |
}
|
343 |
};
|
344 |
|
345 |
-
|
346 |
function updateDetails() {
|
347 |
$('#numberDisplay').html('');
|
348 |
$('#caption').html('').hide();
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
var
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
|
|
368 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
369 |
};
|
370 |
-
|
371 |
function updateNav() {
|
372 |
if (opts.imageArray.length > 1) {
|
373 |
-
$('#hoverNav').show();
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
}
|
389 |
-
// if not last image in set, display next image button
|
390 |
-
if (opts.activeImage != (opts.imageArray.length - 1)) {
|
391 |
-
$('#nextLink,#nextLinkText').show().click(function () {
|
392 |
-
changeImage(opts.activeImage + 1); return false;
|
393 |
-
});
|
394 |
-
}
|
395 |
-
}
|
396 |
enableKeyboardNav();
|
397 |
}
|
398 |
};
|
399 |
-
|
400 |
function end() {
|
401 |
disableKeyboardNav();
|
|
|
|
|
402 |
$('#lightbox').hide();
|
403 |
$('#overlay').fadeOut();
|
404 |
$('select, object, embed').show();
|
405 |
};
|
406 |
-
|
407 |
function keyboardAction(e) {
|
408 |
var o = e.data.opts;
|
409 |
var keycode = e.keyCode;
|
@@ -412,23 +393,11 @@
|
|
412 |
if ((key == 'x') || (key == 'o') || (key == 'c') || (keycode == escapeKey)) { // close lightbox
|
413 |
end();
|
414 |
} else if ((key == 'p') || (keycode == 37)) { // display previous image
|
415 |
-
|
416 |
-
|
417 |
-
changeImage((o.activeImage == 0) ? (o.imageArray.length - 1) : o.activeImage - 1);
|
418 |
-
}
|
419 |
-
else if (o.activeImage != 0) {
|
420 |
-
disableKeyboardNav();
|
421 |
-
changeImage(o.activeImage - 1);
|
422 |
-
}
|
423 |
} else if ((key == 'n') || (keycode == 39)) { // display next image
|
424 |
-
|
425 |
-
|
426 |
-
changeImage((o.activeImage == (o.imageArray.length - 1)) ? 0 : o.activeImage + 1);
|
427 |
-
}
|
428 |
-
else if (o.activeImage != (o.imageArray.length - 1)) {
|
429 |
-
disableKeyboardNav();
|
430 |
-
changeImage(o.activeImage + 1);
|
431 |
-
}
|
432 |
}
|
433 |
return false;
|
434 |
};
|
@@ -438,14 +407,7 @@
|
|
438 |
function disableKeyboardNav() {
|
439 |
$(document).unbind('keydown');
|
440 |
};
|
441 |
-
};
|
442 |
-
$.fn.lightbox.parseJsonData = function(data) {
|
443 |
-
var imageArray = [];
|
444 |
-
$.each(data, function () {
|
445 |
-
imageArray.push(new Array(this.url, this.title));
|
446 |
-
});
|
447 |
-
return imageArray;
|
448 |
-
};
|
449 |
$.fn.lightbox.defaults = {
|
450 |
adminBarHeight:28,
|
451 |
overlayOpacity: 0.8,
|
@@ -457,45 +419,47 @@
|
|
457 |
heightCurrent: 250,
|
458 |
xScale: 1,
|
459 |
yScale: 1,
|
460 |
-
displayTitle: true,
|
461 |
-
disableNavbarLinks: true,
|
462 |
-
loopImages: true,
|
463 |
imageClickClose: true,
|
464 |
-
jsonData: null,
|
465 |
-
jsonDataParser: null,
|
466 |
followScroll: false,
|
467 |
isIE8: false //toyNN:internal value only
|
468 |
-
};
|
469 |
-
$(document).ready(
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
500 |
});
|
501 |
-
}
|
1 |
/**
|
2 |
* WP jQuery Lightbox
|
3 |
+
* Version 1.4 - 2013-02-02
|
4 |
* @author Ulf Benjaminsson (http://www.ulfben.com)
|
5 |
*
|
6 |
* This is a modified version of Warren Krevenkis Lightbox-port (see notice below) for use in the WP jQuery Lightbox-
|
36 |
(function($){
|
37 |
$.fn.lightbox = function(options) {
|
38 |
var opts = $.extend({}, $.fn.lightbox.defaults, options);
|
39 |
+
if($("#overlay").is(':visible')){//to resize the overlay whenever doLightbox is invoked
|
40 |
+
$(window).trigger('resize'); //we need this to deal with InfiniteScroll and similar.
|
41 |
+
}
|
42 |
function onClick() {
|
43 |
initialize();
|
44 |
start(this);
|
48 |
return $(this).on("click", onClick);
|
49 |
}else{
|
50 |
return $(this).live("click", onClick); //deprecated since 1.7
|
51 |
+
}
|
|
|
52 |
function initialize() {
|
53 |
$(window).bind('orientationchange', resizeListener);
|
54 |
$(window).bind('resize', resizeListener);
|
|
|
55 |
$('#overlay').remove();
|
56 |
$('#lightbox').remove();
|
57 |
opts.isIE8 = isIE8(); // //http://www.grayston.net/2011/internet-explorer-v8-and-opacity-issues/
|
58 |
opts.inprogress = false;
|
59 |
+
opts.auto = -1;
|
60 |
+
var txt = opts.strings;
|
61 |
+
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>';
|
62 |
+
var imageData = '<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="'+opts.linkTarget+'">' + txt.download + '</a></span></p></div><div id="bottomNav">';
|
|
|
|
|
|
|
|
|
63 |
if (opts.displayHelp) {
|
64 |
+
imageData += '<span id="helpDisplay">' + txt.help + '</span>';
|
65 |
}
|
66 |
+
imageData += '<a href="javascript://" id="bottomNavClose" title="' + txt.closeTitle + '"><div id="jqlb_closelabel"></div></a></div></div></div>';
|
67 |
var string;
|
68 |
if (opts.navbarOnTop) {
|
69 |
string = '<div id="overlay"></div><div id="lightbox">' + imageData + outerImage + '</div>';
|
82 |
if (!opts.imageClickClose) {
|
83 |
$("#lightboxImage").click(function () { return false; });
|
84 |
$("#hoverNav").click(function () { return false; });
|
85 |
+
}
|
86 |
+
};
|
87 |
//allow image to reposition & scale if orientation change or resize occurs.
|
88 |
function resizeListener(e) {
|
89 |
if (opts.resizeTimeout) {
|
90 |
clearTimeout(opts.resizeTimeout);
|
91 |
opts.resizeTimeout = false;
|
92 |
}
|
93 |
+
opts.resizeTimeout = setTimeout(function () { doScale(); }, 50); //a delay to avoid duplicate event calls.
|
94 |
}
|
95 |
function getPageSize(){
|
96 |
var pgDocHeight = $(document).height();
|
131 |
}
|
132 |
return new Array(xScroll, yScroll);
|
133 |
};
|
|
|
134 |
function start(imageLink) {
|
135 |
$("select, embed, object").hide();
|
136 |
var arrayPageSize = getPageSize();
|
146 |
$("#overlay").css({ top: newTop + 'px' });
|
147 |
}
|
148 |
}
|
149 |
+
var imageNum = 0;
|
150 |
+
var images = [];
|
151 |
+
opts.downloads = {}; //to keep track of any custom download links
|
152 |
+
$("a").each(function(){
|
153 |
+
if(!this.href || (this.rel != imageLink.rel)) {
|
154 |
+
return;
|
155 |
+
}
|
156 |
+
var title = '';
|
157 |
+
var caption = '';
|
158 |
+
var captionText = '';
|
159 |
+
var jqThis = $(this);
|
160 |
+
var jqImg = jqThis.children('img:first-child');
|
161 |
+
if (this.title) { //title of link
|
162 |
+
title = this.title;
|
163 |
+
} else if (jqImg.attr('title')) {
|
164 |
+
title = jqImg.attr('title'); //grab the title from the image if the link lacks one
|
165 |
+
} else if(jqImg.attr('alt')){
|
166 |
+
title = jqImg.attr('alt'); //if neither link nor image have a title attribute
|
167 |
+
}
|
168 |
+
if (jqThis.parent().next('.gallery-caption').html()) {
|
169 |
+
var jq = jqThis.parent().next('.gallery-caption');
|
170 |
+
caption = jq.html();
|
171 |
+
captionText = jq.text();
|
172 |
+
} else if (jqThis.next('.wp-caption-text').html()) {
|
173 |
+
caption = jqThis.next('.wp-caption-text').html();
|
174 |
+
captionText = jqThis.next('.wp-caption-text').text();
|
175 |
+
}
|
176 |
+
title = $.trim(title);
|
177 |
+
captionText = $.trim(captionText);
|
178 |
+
if (title.toLowerCase() == captionText.toLowerCase()) {
|
179 |
+
title = caption; //to keep linked captions
|
180 |
+
caption = ''; //but not duplicate the text
|
181 |
+
}
|
182 |
+
var s = '';
|
183 |
+
if (title != '') {
|
184 |
+
s = '<span id="titleText">' + title + '</span>';
|
185 |
+
}
|
186 |
+
if (caption != '') {
|
187 |
+
if (title != ''){
|
188 |
+
s += '<br />';
|
189 |
+
}
|
190 |
+
s += '<span id="captionText">' + caption +'</span>';
|
191 |
+
}
|
192 |
+
if(opts.displayDownloadLink || jqThis.attr("data-download")){
|
193 |
+
opts.downloads[images.length] = jqThis.attr("data-download"); //use length as an index. convenient since it will always be unique
|
194 |
+
}
|
195 |
+
images.push(new Array(this.href, opts.displayTitle ? s : '', images.length));
|
196 |
+
});
|
197 |
+
if (images.length > 1) {
|
198 |
+
for (i = 0; i < images.length; i++) {
|
199 |
+
for (j = images.length - 1; j > i; j--) {
|
200 |
+
if (images[i][0] == images[j][0]) {
|
201 |
+
images.splice(j, 1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
}
|
203 |
}
|
204 |
}
|
205 |
+
while (images[imageNum][0] != imageLink.href) { imageNum++; }
|
206 |
}
|
207 |
+
opts.imageArray = images;
|
208 |
+
setLightBoxPos(arrayPagePos[1], arrayPagePos[0]).show();// calculate top and left offset for the lightbox
|
209 |
changeImage(imageNum);
|
210 |
};
|
|
|
211 |
function setLightBoxPos(newTop, newLeft) {
|
212 |
if (opts.resizeSpeed > 0) {
|
213 |
+
return $('#lightbox').animate({ top: newTop+ 'px', left: newLeft+ 'px' }, 250, 'linear');
|
|
|
214 |
}
|
215 |
return $('#lightbox').css({ top: newTop + 'px', left: newLeft + 'px' });
|
216 |
}
|
|
|
217 |
function changeImage(imageNum) {
|
218 |
if (opts.inprogress == false) {
|
219 |
opts.inprogress = true;
|
220 |
opts.activeImage = imageNum;
|
221 |
// hide elements during transition
|
222 |
+
$('#jqlb_loading').show();
|
223 |
$('#lightboxImage').hide();
|
224 |
$('#hoverNav').hide();
|
225 |
$('#prevLink').hide();
|
227 |
doChangeImage();
|
228 |
}
|
229 |
};
|
|
|
230 |
function doChangeImage() {
|
231 |
opts.imgPreloader = new Image();
|
232 |
opts.imgPreloader.onload = function () {
|
236 |
};
|
237 |
opts.imgPreloader.src = opts.imageArray[opts.activeImage][0];
|
238 |
};
|
|
|
239 |
function doScale() {
|
240 |
if (!opts.imgPreloader) {
|
241 |
return;
|
281 |
opts.yScale = (heightNew / opts.heightCurrent) * 100;
|
282 |
setLightBoxPos(lightboxTop, lightboxLeft);
|
283 |
updateDetails(); //toyNN: moved updateDetails() here, seems to work fine.
|
284 |
+
$('#imageDataContainer').animate({width:widthNew}, opts.resizeSpeed, 'linear');
|
285 |
+
$('#outerImageContainer').animate({width:widthNew,height:heightNew}, opts.resizeSpeed, 'linear', function () {
|
286 |
+
showImage();
|
|
|
|
|
287 |
});
|
288 |
updateNav();
|
289 |
+
$('#prevLink,#nextLink').height(imgHeight);
|
|
|
290 |
};
|
|
|
291 |
function showImage() {
|
292 |
//assumes updateDetails have been called earlier!
|
293 |
$("#imageData").show();
|
294 |
+
$('#caption').show();
|
295 |
+
$('#jqlb_loading').hide();
|
|
|
|
|
296 |
if (opts.resizeSpeed > 0) {
|
297 |
$('#lightboxImage').fadeIn("fast");
|
298 |
} else {
|
302 |
};
|
303 |
|
304 |
function preloadNeighborImages() {
|
305 |
+
if (opts.imageArray.length > 1) {
|
306 |
preloadNextImage = new Image();
|
307 |
preloadNextImage.src = opts.imageArray[(opts.activeImage == (opts.imageArray.length - 1)) ? 0 : opts.activeImage + 1][0]
|
308 |
preloadPrevImage = new Image();
|
319 |
}
|
320 |
};
|
321 |
|
|
|
322 |
function updateDetails() {
|
323 |
$('#numberDisplay').html('');
|
324 |
$('#caption').html('').hide();
|
325 |
+
var images = opts.imageArray;
|
326 |
+
var txt = opts.strings;
|
327 |
+
var i = opts.activeImage;
|
328 |
+
var downloadIndex = images[i][2];
|
329 |
+
if (images[i][1]) {
|
330 |
+
$('#caption').html(images[i][1]).show();
|
331 |
+
}
|
332 |
+
var pos = (images.length > 1) ? txt.image + (i + 1) + txt.of + images.length : '';
|
333 |
+
if(opts.slidehowSpeed && images.length > 1){
|
334 |
+
var pp = (opts.auto === -1) ? txt.play : txt.pause;
|
335 |
+
pos += ' <a id="playpause" href="#">' + pp + '</a>';
|
336 |
+
}
|
337 |
+
if(opts.displayDownloadLink || opts.downloads[downloadIndex]){
|
338 |
+
var url = opts.downloads[downloadIndex] ? opts.downloads[downloadIndex] : images[i][0];
|
339 |
+
$('#downloadLink').show().children().attr("href", url);
|
340 |
+
}else{
|
341 |
+
$('#downloadLink').hide();
|
342 |
+
}
|
343 |
+
if(pos != ''){
|
344 |
+
$('#numberDisplay').html(pos).show();
|
345 |
}
|
346 |
+
if(opts.slidehowSpeed){
|
347 |
+
$("#numberDisplay").off('click').click(function() {
|
348 |
+
if(opts.auto != -1){
|
349 |
+
$(this).children("a").text(txt.play);
|
350 |
+
clearInterval(opts.auto);
|
351 |
+
opts.auto = -1;
|
352 |
+
}else{
|
353 |
+
$(this).children("a").text(txt.pause);
|
354 |
+
opts.auto = setInterval(function(){changeImage((opts.activeImage == (opts.imageArray.length - 1)) ? 0 : opts.activeImage + 1);}, opts.slidehowSpeed);
|
355 |
+
}
|
356 |
+
return false;
|
357 |
+
});
|
358 |
+
}
|
359 |
};
|
|
|
360 |
function updateNav() {
|
361 |
if (opts.imageArray.length > 1) {
|
362 |
+
$('#hoverNav').show();
|
363 |
+
$('#prevLink').show().click(function () {
|
364 |
+
changeImage((opts.activeImage == 0) ? (opts.imageArray.length - 1) : opts.activeImage - 1); return false;
|
365 |
+
});
|
366 |
+
$('#nextLink').show().click(function () {
|
367 |
+
changeImage((opts.activeImage == (opts.imageArray.length - 1)) ? 0 : opts.activeImage + 1); return false;
|
368 |
+
});
|
369 |
+
if($.fn.touchwipe){
|
370 |
+
$('#imageContainer').touchwipe({
|
371 |
+
wipeLeft: function() { changeImage((opts.activeImage == 0) ? (opts.imageArray.length - 1) : opts.activeImage - 1); },
|
372 |
+
wipeRight: function() { changeImage((opts.activeImage == (opts.imageArray.length - 1)) ? 0 : opts.activeImage + 1); },
|
373 |
+
min_move_x: 20,
|
374 |
+
preventDefaultEvents: true
|
375 |
+
});
|
376 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
377 |
enableKeyboardNav();
|
378 |
}
|
379 |
};
|
|
|
380 |
function end() {
|
381 |
disableKeyboardNav();
|
382 |
+
clearInterval(opts.auto);
|
383 |
+
opts.auto = -1;
|
384 |
$('#lightbox').hide();
|
385 |
$('#overlay').fadeOut();
|
386 |
$('select, object, embed').show();
|
387 |
};
|
|
|
388 |
function keyboardAction(e) {
|
389 |
var o = e.data.opts;
|
390 |
var keycode = e.keyCode;
|
393 |
if ((key == 'x') || (key == 'o') || (key == 'c') || (keycode == escapeKey)) { // close lightbox
|
394 |
end();
|
395 |
} else if ((key == 'p') || (keycode == 37)) { // display previous image
|
396 |
+
disableKeyboardNav();
|
397 |
+
changeImage((o.activeImage == 0) ? (o.imageArray.length - 1) : o.activeImage - 1);
|
|
|
|
|
|
|
|
|
|
|
|
|
398 |
} else if ((key == 'n') || (keycode == 39)) { // display next image
|
399 |
+
disableKeyboardNav();
|
400 |
+
changeImage((o.activeImage == (o.imageArray.length - 1)) ? 0 : o.activeImage + 1);
|
|
|
|
|
|
|
|
|
|
|
|
|
401 |
}
|
402 |
return false;
|
403 |
};
|
407 |
function disableKeyboardNav() {
|
408 |
$(document).unbind('keydown');
|
409 |
};
|
410 |
+
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
411 |
$.fn.lightbox.defaults = {
|
412 |
adminBarHeight:28,
|
413 |
overlayOpacity: 0.8,
|
419 |
heightCurrent: 250,
|
420 |
xScale: 1,
|
421 |
yScale: 1,
|
422 |
+
displayTitle: true,
|
|
|
|
|
423 |
imageClickClose: true,
|
|
|
|
|
424 |
followScroll: false,
|
425 |
isIE8: false //toyNN:internal value only
|
426 |
+
};
|
427 |
+
$(document).ready(doLightBox);
|
428 |
+
})(jQuery);
|
429 |
+
//you can call this manually at any time to activate the lightboxing. (useful for ajax-loaded content)
|
430 |
+
function doLightBox(){
|
431 |
+
var haveConf = (typeof JQLBSettings == 'object');
|
432 |
+
var ss, rs, ms = 0;
|
433 |
+
if(haveConf && JQLBSettings.slideshowSpeed) {
|
434 |
+
ss = parseInt(JQLBSettings.slideshowSpeed);
|
435 |
+
}
|
436 |
+
if(haveConf && JQLBSettings.resizeSpeed) {
|
437 |
+
rs = parseInt(JQLBSettings.resizeSpeed);
|
438 |
+
}
|
439 |
+
if(haveConf && JQLBSettings.marginSize){
|
440 |
+
ms = parseInt(JQLBSettings.marginSize);
|
441 |
+
}
|
442 |
+
var default_strings = {
|
443 |
+
help: ' Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close.',
|
444 |
+
prevLinkTitle: 'previous image',
|
445 |
+
nextLinkTitle: 'next image',
|
446 |
+
closeTitle: 'close image gallery',
|
447 |
+
image: 'Image ',
|
448 |
+
of: ' of ',
|
449 |
+
download: 'Download',
|
450 |
+
pause: '(pause slideshow)',
|
451 |
+
play: '(play slideshow)'
|
452 |
+
};
|
453 |
+
jQuery('a[rel^="lightbox"]').lightbox({
|
454 |
+
adminBarHeight: jQuery('#wpadminbar').height() || 0,
|
455 |
+
linkTarget: (haveConf && JQLBSettings.linkTarget.length) ? JQLBSettings.linkTarget : '_self',
|
456 |
+
displayHelp: (haveConf && JQLBSettings.help.length) ? true : false,
|
457 |
+
marginSize: (haveConf && ms) ? ms : 0,
|
458 |
+
fitToScreen: (haveConf && JQLBSettings.fitToScreen == '1') ? true : false,
|
459 |
+
resizeSpeed: (haveConf && rs >= 0) ? rs : 400,
|
460 |
+
slidehowSpeed: (haveConf && ss >= 0) ? ss : 4000,
|
461 |
+
displayDownloadLink: (haveConf && JQLBSettings.displayDownloadLink == '0') ? false : true,
|
462 |
+
navbarOnTop: (haveConf && JQLBSettings.navbarOnTop == '0') ? false : true,
|
463 |
+
strings: (haveConf && typeof JQLBSettings.help == 'string') ? JQLBSettings : default_strings
|
464 |
});
|
465 |
+
}
|
jquery.lightbox.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(a){a.fn.lightbox=function(k){var u=a.extend({},a.fn.lightbox.defaults,k);function p(){e();o(this);return false}if(parseFloat(a().jquery)>=1.7){return a(this).on("click",p)}else{return a(this).live("click",p)}function e(){a(window).bind("orientationchange",q);a(window).bind("resize",q);a("#overlay").remove();a("#lightbox").remove();u.isIE8=v();u.inprogress=false;if(u.jsonData&&u.jsonData.length>0){var C=u.jsonDataParser?u.jsonDataParser:a.fn.lightbox.parseJsonData;u.imageArray=[];u.imageArray=C(u.jsonData)}var z='<div id="outerImageContainer"><div id="imageContainer"><iframe id="lightboxIframe" /><img id="lightboxImage"><div id="hoverNav"><a href="javascript://" title="'+u.strings.prevLinkTitle+'" id="prevLink"></a><a href="javascript://" id="nextLink" title="'+u.strings.nextLinkTitle+'"></a></div><div id="loading"><a href="javascript://" id="loadingLink"><div id="jqlb_loading"></div></a></div></div></div>';var B='<div id="imageDataContainer" class="clearfix"><div id="imageData"><div id="imageDetails"><span id="caption"></span><span id="numberDisplay"></span></div><div id="bottomNav">';if(u.displayHelp){B+='<span id="helpDisplay">'+u.strings.help+"</span>"}B+='<a href="javascript://" id="bottomNavClose" title="'+u.strings.closeTitle+'"><div id="jqlb_closelabel"></div></a></div></div></div>';var A;if(u.navbarOnTop){A='<div id="overlay"></div><div id="lightbox">'+B+z+"</div>";a("body").append(A);a("#imageDataContainer").addClass("ontop")}else{A='<div id="overlay"></div><div id="lightbox">'+z+B+"</div>";a("body").append(A)}a("#overlay").click(function(){h()}).hide();a("#lightbox").click(function(){h()}).hide();a("#loadingLink").click(function(){h();return false});a("#bottomNavClose").click(function(){h();return false});a("#outerImageContainer").width(u.widthCurrent).height(u.heightCurrent);a("#imageDataContainer").width(u.widthCurrent);if(!u.imageClickClose){a("#lightboxImage").click(function(){return false});a("#hoverNav").click(function(){return false})}}function q(z){if(u.resizeTimeout){clearTimeout(u.resizeTimeout);u.resizeTimeout=false}u.resizeTimeout=setTimeout(function(){y(false)},50)}function x(){var A=a(document).height();if(u.isIE8&&A>4096){A=4096}var z=a(window).height()-u.adminBarHeight;return new Array(a(document).width(),A,a(window).width(),z,a(document).height())}function v(){var A=false;if(document.createElement){var z=document.createElement("div");if(z&&z.querySelectorAll){z.innerHTML='<object><param name=""></object>';A=z.querySelectorAll("param").length!=1}z=null}return A}function g(){var A=0;var z=0;if(self.pageYOffset){z=self.pageYOffset;A=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){z=document.documentElement.scrollTop;A=document.documentElement.scrollLeft}else{if(document.body){z=document.body.scrollTop;A=document.body.scrollLeft}}}if(u.adminBarHeight&&parseInt(a("#wpadminbar").css("top"),10)===0){z+=u.adminBarHeight}return new Array(A,z)}function o(D){a("select, embed, object").hide();var B=x();var z=g();var A=0;a("#overlay").hide().css({width:B[0]+"px",height:B[1]+"px",opacity:u.overlayOpacity}).fadeIn(400);if(u.isIE8&&B[1]==4096){if(z[1]>=1000){A=z[1]-1000;if((B[4]-(z[1]+3096))<0){A-=(z[1]+3096)-B[4]}a("#overlay").css({top:A+"px"})}}imageNum=0;if(!u.jsonData){u.imageArray=[];if(!D.rel||(D.rel=="")){var C="";if(D.title){C=D.title}else{if(a(this).children(":first-child").attr("title")){C=a(this).children(":first-child").attr("title")}}u.imageArray.push(new Array(D.href,u.displayTitle?C:""))}else{a("a").each(function(){if(this.href&&(this.rel==D.rel)){var H="";var F="";var J="";var E=a(this);if(this.title){H=this.title}else{if(E.children("img:first-child").attr("title")){H=E.children("img:first-child").attr("title")}}if(E.parent().next(".gallery-caption").html()){var I=E.parent().next(".gallery-caption");F=I.html();J=I.text()}else{if(E.next(".wp-caption-text").html()){F=E.next(".wp-caption-text").html();J=E.next(".wp-caption-text").text()}}H=a.trim(H);J=a.trim(J);if(H.toLowerCase()==J.toLowerCase()){H=F;F=""}var G="";if(H!=""){G='<span id="titleText">'+H+"</span>"}if(F!=""){if(H!=""){G+="<br />"}G+='<span id="captionText">'+F+"</span>"}u.imageArray.push(new Array(this.href,u.displayTitle?G:""))}})}}if(u.imageArray.length>1){for(i=0;i<u.imageArray.length;i++){for(j=u.imageArray.length-1;j>i;j--){if(u.imageArray[i][0]==u.imageArray[j][0]){u.imageArray.splice(j,1)}}}while(u.imageArray[imageNum][0]!=D.href){imageNum++}}m(z[1],z[0]).show();w(imageNum)}function m(z,A){if(u.resizeSpeed>0){a("#lightbox").animate({top:z},250,"linear");return a("#lightbox").animate({left:A},250,"linear")}return a("#lightbox").css({top:z+"px",left:A+"px"})}function w(z){if(u.inprogress==false){u.inprogress=true;u.activeImage=z;a("#loading").show();a("#lightboxImage").hide();a("#hoverNav").hide();a("#prevLink").hide();a("#nextLink").hide();l()}}function l(){u.imgPreloader=new Image();u.imgPreloader.onload=function(){a("#lightboxImage").attr("src",u.imageArray[u.activeImage][0]);y();f()};u.imgPreloader.src=u.imageArray[u.activeImage][0]}function y(){if(!u.imgPreloader){return}var C=u.imgPreloader.width;var z=u.imgPreloader.height;var E=x();var K=(E[2]<E[0])?E[0]:E[2];a("#overlay").css({width:K+"px",height:E[1]+"px"});var I=(E[3])-(a("#imageDataContainer").height()+(2*u.borderSize));var J=(E[2])-(2*u.borderSize);if(u.fitToScreen){var A=I-u.marginSize;var L=J-u.marginSize;var F=1;if(z>A){F=A/z}C=C*F;z=z*F;F=1;if(C>L){F=L/C}C=Math.round(C*F);z=Math.round(z*F)}var D=g();var B=D[1]+(I*0.5);var G=B-z*0.5;var H=D[0];a("#lightboxImage").width(C).height(z);n(C,z,G,H)}function n(C,A,E,D){u.widthCurrent=a("#outerImageContainer").outerWidth();u.heightCurrent=a("#outerImageContainer").outerHeight();var z=Math.max(350,C+(u.borderSize*2));var B=(A+(u.borderSize*2));u.xScale=(z/u.widthCurrent)*100;u.yScale=(B/u.heightCurrent)*100;m(E,D);c();a("#imageDataContainer").animate({width:z},u.resizeSpeed,"linear");a("#outerImageContainer").animate({width:z},u.resizeSpeed,"linear",function(){a("#outerImageContainer").animate({height:B},u.resizeSpeed,"linear",function(){d()})});s();a("#prevLink").height(A);a("#nextLink").height(A)}function d(){a("#imageData").show();a("#caption").show();a("#loading").hide();if(u.resizeSpeed>0){a("#lightboxImage").fadeIn("fast")}else{a("#lightboxImage").show()}u.inprogress=false}function f(){if(u.loopImages&&u.imageArray.length>1){preloadNextImage=new Image();preloadNextImage.src=u.imageArray[(u.activeImage==(u.imageArray.length-1))?0:u.activeImage+1][0];preloadPrevImage=new Image();preloadPrevImage.src=u.imageArray[(u.activeImage==0)?(u.imageArray.length-1):u.activeImage-1][0]}else{if((u.imageArray.length-1)>u.activeImage){preloadNextImage=new Image();preloadNextImage.src=u.imageArray[u.activeImage+1][0]}if(u.activeImage>0){preloadPrevImage=new Image();preloadPrevImage.src=u.imageArray[u.activeImage-1][0]}}}function c(){a("#numberDisplay").html("");a("#caption").html("").hide();if(u.imageArray[u.activeImage][1]){a("#caption").html(u.imageArray[u.activeImage][1]).show()}var C="";var B="";var D=(u.imageArray.length>1)?u.strings.image+(u.activeImage+1)+u.strings.of+u.imageArray.length:"";var A=(u.displayDownloadLink)?'<a href="'+u.imageArray[u.activeImage][0]+'" id="downloadLink" target="'+u.linkTarget+'">'+u.strings.download+"</a>":"";var z="";if(u.imageArray.length>1&&!u.disableNavbarLinks){if((u.activeImage)>0||u.loopImages){B='<a title="'+u.strings.prevLinkTitle+'" href="#" id="prevLinkText">'+u.strings.prevLinkText+"</a>"}if(((u.activeImage+1)<u.imageArray.length)||u.loopImages){z+='<a title="'+u.strings.nextLinkTitle+'" href="#" id="nextLinkText">'+u.strings.nextLinkText+"</a>"}}C=B+C+D+A+z;if(C!=""){a("#numberDisplay").html(C).show()}}function s(){if(u.imageArray.length>1){a("#hoverNav").show();if(u.loopImages){a("#prevLink,#prevLinkText").show().click(function(){w((u.activeImage==0)?(u.imageArray.length-1):u.activeImage-1);return false});a("#nextLink,#nextLinkText").show().click(function(){w((u.activeImage==(u.imageArray.length-1))?0:u.activeImage+1);return false})}else{if(u.activeImage!=0){a("#prevLink,#prevLinkText").show().click(function(){w(u.activeImage-1);return false})}if(u.activeImage!=(u.imageArray.length-1)){a("#nextLink,#nextLinkText").show().click(function(){w(u.activeImage+1);return false})}}b()}}function h(){r();a("#lightbox").hide();a("#overlay").fadeOut();a("select, object, embed").show()}function t(C){var D=C.data.opts;var z=C.keyCode;var A=27;var B=String.fromCharCode(z).toLowerCase();if((B=="x")||(B=="o")||(B=="c")||(z==A)){h()}else{if((B=="p")||(z==37)){if(D.loopImages){r();w((D.activeImage==0)?(D.imageArray.length-1):D.activeImage-1)}else{if(D.activeImage!=0){r();w(D.activeImage-1)}}}else{if((B=="n")||(z==39)){if(u.loopImages){r();w((D.activeImage==(D.imageArray.length-1))?0:D.activeImage+1)}else{if(D.activeImage!=(D.imageArray.length-1)){r();w(D.activeImage+1)}}}}}return false}function b(){a(document).bind("keydown",{opts:u},t)}function r(){a(document).unbind("keydown")}};a.fn.lightbox.parseJsonData=function(c){var b=[];a.each(c,function(){b.push(new Array(this.url,this.title))});return b};a.fn.lightbox.defaults={adminBarHeight:28,overlayOpacity:0.8,borderSize:10,imageArray:new Array,activeImage:null,inprogress:false,widthCurrent:250,heightCurrent:250,xScale:1,yScale:1,displayTitle:true,disableNavbarLinks:true,loopImages:true,imageClickClose:true,jsonData:null,jsonDataParser:null,followScroll:false,isIE8:false};a(document).ready(function(d){var b=(typeof JQLBSettings=="object");if(b&&JQLBSettings.resizeSpeed){JQLBSettings.resizeSpeed=parseInt(JQLBSettings.resizeSpeed)}if(b&&JQLBSettings.marginSize){JQLBSettings.marginSize=parseInt(JQLBSettings.marginSize)}var c={help:" Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close.",prevLinkTitle:"previous image",nextLinkTitle:"next image",prevLinkText:"« Previous",nextLinkText:"Next »",closeTitle:"close image gallery",image:"Image ",of:" of ",download:"Download"};d('a[rel^="lightbox"]').lightbox({adminBarHeight:d("#wpadminbar").height()||0,linkTarget:(b&&JQLBSettings.linkTarget.length)?JQLBSettings.linkTarget:"_self",displayHelp:(b&&JQLBSettings.help.length)?true:false,marginSize:(b&&JQLBSettings.marginSize)?JQLBSettings.marginSize:0,fitToScreen:(b&&JQLBSettings.fitToScreen=="1")?true:false,resizeSpeed:(b&&JQLBSettings.resizeSpeed>=0)?JQLBSettings.resizeSpeed:400,displayDownloadLink:(b&&JQLBSettings.displayDownloadLink=="0")?false:true,navbarOnTop:(b&&JQLBSettings.navbarOnTop=="0")?false:true,strings:(b&&typeof JQLBSettings.help=="string")?JQLBSettings:c})})})(jQuery);
|
1 |
+
(function(a){a.fn.lightbox=function(k){var u=a.extend({},a.fn.lightbox.defaults,k);if(a("#overlay").is(":visible")){a(window).trigger("resize")}function p(){e();o(this);return false}if(parseFloat(a().jquery)>=1.7){return a(this).on("click",p)}else{return a(this).live("click",p)}function e(){a(window).bind("orientationchange",q);a(window).bind("resize",q);a("#overlay").remove();a("#lightbox").remove();u.isIE8=v();u.inprogress=false;u.auto=-1;var A=u.strings;var z='<div id="outerImageContainer"><div id="imageContainer"><iframe id="lightboxIframe" /><img id="lightboxImage"><div id="hoverNav"><a href="javascript://" title="'+A.prevLinkTitle+'" id="prevLink"></a><a href="javascript://" id="nextLink" title="'+A.nextLinkTitle+'"></a></div><div id="jqlb_loading"><a href="javascript://" id="loadingLink"><div id="jqlb_spinner"></div></a></div></div></div>';var C='<div id="imageDataContainer" class="clearfix"><div id="imageData"><div id="imageDetails"><span id="caption"></span><p id="controls"><span id="numberDisplay"></span> <span id="downloadLink"><a href="" target="'+u.linkTarget+'">'+A.download+'</a></span></p></div><div id="bottomNav">';if(u.displayHelp){C+='<span id="helpDisplay">'+A.help+"</span>"}C+='<a href="javascript://" id="bottomNavClose" title="'+A.closeTitle+'"><div id="jqlb_closelabel"></div></a></div></div></div>';var B;if(u.navbarOnTop){B='<div id="overlay"></div><div id="lightbox">'+C+z+"</div>";a("body").append(B);a("#imageDataContainer").addClass("ontop")}else{B='<div id="overlay"></div><div id="lightbox">'+z+C+"</div>";a("body").append(B)}a("#overlay").click(function(){h()}).hide();a("#lightbox").click(function(){h()}).hide();a("#loadingLink").click(function(){h();return false});a("#bottomNavClose").click(function(){h();return false});a("#outerImageContainer").width(u.widthCurrent).height(u.heightCurrent);a("#imageDataContainer").width(u.widthCurrent);if(!u.imageClickClose){a("#lightboxImage").click(function(){return false});a("#hoverNav").click(function(){return false})}}function q(z){if(u.resizeTimeout){clearTimeout(u.resizeTimeout);u.resizeTimeout=false}u.resizeTimeout=setTimeout(function(){y()},50)}function x(){var A=a(document).height();if(u.isIE8&&A>4096){A=4096}var z=a(window).height()-u.adminBarHeight;return new Array(a(document).width(),A,a(window).width(),z,a(document).height())}function v(){var A=false;if(document.createElement){var z=document.createElement("div");if(z&&z.querySelectorAll){z.innerHTML='<object><param name=""></object>';A=z.querySelectorAll("param").length!=1}z=null}return A}function g(){var A=0;var z=0;if(self.pageYOffset){z=self.pageYOffset;A=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){z=document.documentElement.scrollTop;A=document.documentElement.scrollLeft}else{if(document.body){z=document.body.scrollTop;A=document.body.scrollLeft}}}if(u.adminBarHeight&&parseInt(a("#wpadminbar").css("top"),10)===0){z+=u.adminBarHeight}return new Array(A,z)}function o(E){a("select, embed, object").hide();var D=x();var A=g();var B=0;a("#overlay").hide().css({width:D[0]+"px",height:D[1]+"px",opacity:u.overlayOpacity}).fadeIn(400);if(u.isIE8&&D[1]==4096){if(A[1]>=1000){B=A[1]-1000;if((D[4]-(A[1]+3096))<0){B-=(A[1]+3096)-D[4]}a("#overlay").css({top:B+"px"})}}var C=0;var z=[];u.downloads={};a("a").each(function(){if(!this.href||(this.rel!=E.rel)){return}var J="";var G="";var L="";var F=a(this);var I=F.children("img:first-child");if(this.title){J=this.title}else{if(I.attr("title")){J=I.attr("title")}else{if(I.attr("alt")){J=I.attr("alt")}}}if(F.parent().next(".gallery-caption").html()){var K=F.parent().next(".gallery-caption");G=K.html();L=K.text()}else{if(F.next(".wp-caption-text").html()){G=F.next(".wp-caption-text").html();L=F.next(".wp-caption-text").text()}}J=a.trim(J);L=a.trim(L);if(J.toLowerCase()==L.toLowerCase()){J=G;G=""}var H="";if(J!=""){H='<span id="titleText">'+J+"</span>"}if(G!=""){if(J!=""){H+="<br />"}H+='<span id="captionText">'+G+"</span>"}if(u.displayDownloadLink||F.attr("data-download")){u.downloads[z.length]=F.attr("data-download")}z.push(new Array(this.href,u.displayTitle?H:"",z.length))});if(z.length>1){for(i=0;i<z.length;i++){for(j=z.length-1;j>i;j--){if(z[i][0]==z[j][0]){z.splice(j,1)}}}while(z[C][0]!=E.href){C++}}u.imageArray=z;m(A[1],A[0]).show();w(C)}function m(z,A){if(u.resizeSpeed>0){return a("#lightbox").animate({top:z+"px",left:A+"px"},250,"linear")}return a("#lightbox").css({top:z+"px",left:A+"px"})}function w(z){if(u.inprogress==false){u.inprogress=true;u.activeImage=z;a("#jqlb_loading").show();a("#lightboxImage").hide();a("#hoverNav").hide();a("#prevLink").hide();a("#nextLink").hide();l()}}function l(){u.imgPreloader=new Image();u.imgPreloader.onload=function(){a("#lightboxImage").attr("src",u.imageArray[u.activeImage][0]);y();f()};u.imgPreloader.src=u.imageArray[u.activeImage][0]}function y(){if(!u.imgPreloader){return}var C=u.imgPreloader.width;var z=u.imgPreloader.height;var E=x();var K=(E[2]<E[0])?E[0]:E[2];a("#overlay").css({width:K+"px",height:E[1]+"px"});var I=(E[3])-(a("#imageDataContainer").height()+(2*u.borderSize));var J=(E[2])-(2*u.borderSize);if(u.fitToScreen){var A=I-u.marginSize;var L=J-u.marginSize;var F=1;if(z>A){F=A/z}C=C*F;z=z*F;F=1;if(C>L){F=L/C}C=Math.round(C*F);z=Math.round(z*F)}var D=g();var B=D[1]+(I*0.5);var G=B-z*0.5;var H=D[0];a("#lightboxImage").width(C).height(z);n(C,z,G,H)}function n(C,A,E,D){u.widthCurrent=a("#outerImageContainer").outerWidth();u.heightCurrent=a("#outerImageContainer").outerHeight();var z=Math.max(350,C+(u.borderSize*2));var B=(A+(u.borderSize*2));u.xScale=(z/u.widthCurrent)*100;u.yScale=(B/u.heightCurrent)*100;m(E,D);c();a("#imageDataContainer").animate({width:z},u.resizeSpeed,"linear");a("#outerImageContainer").animate({width:z,height:B},u.resizeSpeed,"linear",function(){d()});s();a("#prevLink,#nextLink").height(A)}function d(){a("#imageData").show();a("#caption").show();a("#jqlb_loading").hide();if(u.resizeSpeed>0){a("#lightboxImage").fadeIn("fast")}else{a("#lightboxImage").show()}u.inprogress=false}function f(){if(u.imageArray.length>1){preloadNextImage=new Image();preloadNextImage.src=u.imageArray[(u.activeImage==(u.imageArray.length-1))?0:u.activeImage+1][0];preloadPrevImage=new Image();preloadPrevImage.src=u.imageArray[(u.activeImage==0)?(u.imageArray.length-1):u.activeImage-1][0]}else{if((u.imageArray.length-1)>u.activeImage){preloadNextImage=new Image();preloadNextImage.src=u.imageArray[u.activeImage+1][0]}if(u.activeImage>0){preloadPrevImage=new Image();preloadPrevImage.src=u.imageArray[u.activeImage-1][0]}}}function c(){a("#numberDisplay").html("");a("#caption").html("").hide();var A=u.imageArray;var z=u.strings;var E=u.activeImage;var D=A[E][2];if(A[E][1]){a("#caption").html(A[E][1]).show()}var F=(A.length>1)?z.image+(E+1)+z.of+A.length:"";if(u.slidehowSpeed&&A.length>1){var B=(u.auto===-1)?z.play:z.pause;F+=' <a id="playpause" href="#">'+B+"</a>"}if(u.displayDownloadLink||u.downloads[D]){var C=u.downloads[D]?u.downloads[D]:A[E][0];a("#downloadLink").show().children().attr("href",C)}else{a("#downloadLink").hide()}if(F!=""){a("#numberDisplay").html(F).show()}if(u.slidehowSpeed){a("#numberDisplay").off("click").click(function(){if(u.auto!=-1){a(this).children("a").text(z.play);clearInterval(u.auto);u.auto=-1}else{a(this).children("a").text(z.pause);u.auto=setInterval(function(){w((u.activeImage==(u.imageArray.length-1))?0:u.activeImage+1)},u.slidehowSpeed)}return false})}}function s(){if(u.imageArray.length>1){a("#hoverNav").show();a("#prevLink").show().click(function(){w((u.activeImage==0)?(u.imageArray.length-1):u.activeImage-1);return false});a("#nextLink").show().click(function(){w((u.activeImage==(u.imageArray.length-1))?0:u.activeImage+1);return false});if(a.fn.touchwipe){a("#imageContainer").touchwipe({wipeLeft:function(){w((u.activeImage==0)?(u.imageArray.length-1):u.activeImage-1)},wipeRight:function(){w((u.activeImage==(u.imageArray.length-1))?0:u.activeImage+1)},min_move_x:20,preventDefaultEvents:true})}b()}}function h(){r();clearInterval(u.auto);u.auto=-1;a("#lightbox").hide();a("#overlay").fadeOut();a("select, object, embed").show()}function t(C){var D=C.data.opts;var z=C.keyCode;var A=27;var B=String.fromCharCode(z).toLowerCase();if((B=="x")||(B=="o")||(B=="c")||(z==A)){h()}else{if((B=="p")||(z==37)){r();w((D.activeImage==0)?(D.imageArray.length-1):D.activeImage-1)}else{if((B=="n")||(z==39)){r();w((D.activeImage==(D.imageArray.length-1))?0:D.activeImage+1)}}}return false}function b(){a(document).bind("keydown",{opts:u},t)}function r(){a(document).unbind("keydown")}};a.fn.lightbox.defaults={adminBarHeight:28,overlayOpacity:0.8,borderSize:10,imageArray:new Array,activeImage:null,inprogress:false,widthCurrent:250,heightCurrent:250,xScale:1,yScale:1,displayTitle:true,imageClickClose:true,followScroll:false,isIE8:false};a(document).ready(doLightBox)})(jQuery);function doLightBox(){var a=(typeof JQLBSettings=="object");var d,b,c=0;if(a&&JQLBSettings.slideshowSpeed){d=parseInt(JQLBSettings.slideshowSpeed)}if(a&&JQLBSettings.resizeSpeed){b=parseInt(JQLBSettings.resizeSpeed)}if(a&&JQLBSettings.marginSize){c=parseInt(JQLBSettings.marginSize)}var e={help:" Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close.",prevLinkTitle:"previous image",nextLinkTitle:"next image",closeTitle:"close image gallery",image:"Image ",of:" of ",download:"Download",pause:"(pause slideshow)",play:"(play slideshow)"};jQuery('a[rel^="lightbox"]').lightbox({adminBarHeight:jQuery("#wpadminbar").height()||0,linkTarget:(a&&JQLBSettings.linkTarget.length)?JQLBSettings.linkTarget:"_self",displayHelp:(a&&JQLBSettings.help.length)?true:false,marginSize:(a&&c)?c:0,fitToScreen:(a&&JQLBSettings.fitToScreen=="1")?true:false,resizeSpeed:(a&&b>=0)?b:400,slidehowSpeed:(a&&d>=0)?d:4000,displayDownloadLink:(a&&JQLBSettings.displayDownloadLink=="0")?false:true,navbarOnTop:(a&&JQLBSettings.navbarOnTop=="0")?false:true,strings:(a&&typeof JQLBSettings.help=="string")?JQLBSettings:e})};
|
jquery.touchwipe.1.1.1.js
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* jQuery Plugin to obtain touch gestures from iPhone, iPod Touch and iPad, should also work with Android mobile phones (not tested yet!)
|
3 |
+
* Common usage: wipe images (left and right to show the previous or next image)
|
4 |
+
*
|
5 |
+
* @author Andreas Waltl, netCU Internetagentur (http://www.netcu.de)
|
6 |
+
* @version 1.1.1 (9th December 2010) - fix bug (older IE's had problems)
|
7 |
+
* @version 1.1 (1st September 2010) - support wipe up and wipe down
|
8 |
+
* @version 1.0 (15th July 2010)
|
9 |
+
*/
|
10 |
+
(function($) {
|
11 |
+
$.fn.touchwipe = function(settings) {
|
12 |
+
var config = {
|
13 |
+
min_move_x: 20,
|
14 |
+
min_move_y: 20,
|
15 |
+
wipeLeft: function() { },
|
16 |
+
wipeRight: function() { },
|
17 |
+
wipeUp: function() { },
|
18 |
+
wipeDown: function() { },
|
19 |
+
preventDefaultEvents: true
|
20 |
+
};
|
21 |
+
|
22 |
+
if (settings) $.extend(config, settings);
|
23 |
+
|
24 |
+
this.each(function() {
|
25 |
+
var startX;
|
26 |
+
var startY;
|
27 |
+
var isMoving = false;
|
28 |
+
|
29 |
+
function cancelTouch() {
|
30 |
+
this.removeEventListener('touchmove', onTouchMove);
|
31 |
+
startX = null;
|
32 |
+
isMoving = false;
|
33 |
+
}
|
34 |
+
|
35 |
+
function onTouchMove(e) {
|
36 |
+
if(config.preventDefaultEvents) {
|
37 |
+
e.preventDefault();
|
38 |
+
}
|
39 |
+
if(isMoving) {
|
40 |
+
var x = e.touches[0].pageX;
|
41 |
+
var y = e.touches[0].pageY;
|
42 |
+
var dx = startX - x;
|
43 |
+
var dy = startY - y;
|
44 |
+
if(Math.abs(dx) >= config.min_move_x) {
|
45 |
+
cancelTouch();
|
46 |
+
if(dx > 0) {
|
47 |
+
config.wipeLeft();
|
48 |
+
}
|
49 |
+
else {
|
50 |
+
config.wipeRight();
|
51 |
+
}
|
52 |
+
}
|
53 |
+
else if(Math.abs(dy) >= config.min_move_y) {
|
54 |
+
cancelTouch();
|
55 |
+
if(dy > 0) {
|
56 |
+
config.wipeDown();
|
57 |
+
}
|
58 |
+
else {
|
59 |
+
config.wipeUp();
|
60 |
+
}
|
61 |
+
}
|
62 |
+
}
|
63 |
+
}
|
64 |
+
|
65 |
+
function onTouchStart(e)
|
66 |
+
{
|
67 |
+
if (e.touches.length == 1) {
|
68 |
+
startX = e.touches[0].pageX;
|
69 |
+
startY = e.touches[0].pageY;
|
70 |
+
isMoving = true;
|
71 |
+
this.addEventListener('touchmove', onTouchMove, false);
|
72 |
+
}
|
73 |
+
}
|
74 |
+
if ('ontouchstart' in document.documentElement) {
|
75 |
+
this.addEventListener('touchstart', onTouchStart, false);
|
76 |
+
}
|
77 |
+
});
|
78 |
+
|
79 |
+
return this;
|
80 |
+
};
|
81 |
+
|
82 |
+
})(jQuery);
|
jquery.touchwipe.min.js
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* jQuery Plugin to obtain touch gestures from iPhone, iPod Touch and iPad, should also work with Android mobile phones (not tested yet!)
|
3 |
+
* Common usage: wipe images (left and right to show the previous or next image)
|
4 |
+
*
|
5 |
+
* @author Andreas Waltl, netCU Internetagentur (http://www.netcu.de)
|
6 |
+
* @version 1.1.1 (9th December 2010) - fix bug (older IE's had problems)
|
7 |
+
* @version 1.1 (1st September 2010) - support wipe up and wipe down
|
8 |
+
* @version 1.0 (15th July 2010)
|
9 |
+
*/
|
10 |
+
(function($){$.fn.touchwipe=function(settings){var config={min_move_x:20,min_move_y:20,wipeLeft:function(){},wipeRight:function(){},wipeUp:function(){},wipeDown:function(){},preventDefaultEvents:true};if(settings)$.extend(config,settings);this.each(function(){var startX;var startY;var isMoving=false;function cancelTouch(){this.removeEventListener('touchmove',onTouchMove);startX=null;isMoving=false}function onTouchMove(e){if(config.preventDefaultEvents){e.preventDefault()}if(isMoving){var x=e.touches[0].pageX;var y=e.touches[0].pageY;var dx=startX-x;var dy=startY-y;if(Math.abs(dx)>=config.min_move_x){cancelTouch();if(dx>0){config.wipeLeft()}else{config.wipeRight()}}else if(Math.abs(dy)>=config.min_move_y){cancelTouch();if(dy>0){config.wipeDown()}else{config.wipeUp()}}}}function onTouchStart(e){if(e.touches.length==1){startX=e.touches[0].pageX;startY=e.touches[0].pageY;isMoving=true;this.addEventListener('touchmove',onTouchMove,false)}}if('ontouchstart'in document.documentElement){this.addEventListener('touchstart',onTouchStart,false)}});return this}})(jQuery);
|
languages/howtouse-en_US.html
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
<h2>How to Use:</h2>
|
2 |
<ol>
|
3 |
<li>You can use WordPress image galleries and have them grouped and auto-lightboxed: <a href="http://codex.wordpress.org/Gallery_Shortcode"><code>[gallery link="file"]</code></a></li>
|
|
|
|
|
|
|
|
|
4 |
<li>You can also add a <code>rel="lightbox"</code> attribute to any link tag to activate the lightbox. For example:
|
5 |
<pre><code> <a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a></code></pre>
|
6 |
<em>Optional:</em> Use the <code>title</code> attribute if you want to show a caption.
|
@@ -11,40 +15,40 @@
|
|
11 |
<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a></code></pre>
|
12 |
No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!</li>
|
13 |
<li>To <strong>disable</strong> lightboxing of an image link, just set any other rel-attribute: <code>rel="nobox"</code></li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
</ol>
|
15 |
-
<h2>
|
|
|
16 |
<ol>
|
17 |
-
<li>
|
18 |
-
<li>
|
19 |
-
<
|
20 |
-
<
|
21 |
-
<li>
|
22 |
-
<li>
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
</ol>
|
27 |
<h2>Credits</h2><ul style="list-style-type: circle;margin-left: 24px;">
|
28 |
<li>wp-jquery-lightbox was created by <a href="http://www.ulfben.com">Ulf Benjaminsson</a> (who <a href="http://amzn.com/w/2QB6SQ5XX2U0N">appreciates books</a>). :)</li>
|
29 |
<li>wp-jquery-lightbox borrowed the regexp from <a href="http://stimuli.ca/lightbox/">LightBox-2 by Rupert Morris</a> to apply lightbox-rel without clobbering manual inputs.</li>
|
30 |
<li>wp-jquery-lightbox uses a modified (see below) <a href="http://github.com/krewenki/jquery-lightbox/">jQuery Lightbox</a> by <a href="http://warren.mesozen.com/jquery-lightbox/">Warren Krewenki</a></li>
|
31 |
<li><a href="http://github.com/krewenki/jquery-lightbox/">jQuery Lightbox</a> is based on <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox 2 by Lokesh Dhakar</a></li>
|
32 |
-
<li>
|
33 |
-
|
34 |
-
|
35 |
-
<li>Japanese localization <a href="http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-japanese-translation?replies=3">by redcocker</a></li>
|
36 |
-
</ul>
|
37 |
-
|
38 |
-
<h2>Changes to Lightbox-script:</h2><p style="margin-left: 24px;">
|
39 |
-
Takes the WordPress admin bar into consideration.<br />
|
40 |
-
Resizing code manages <strong>both</strong> height and width and never destroy aspect ratio.<br />
|
41 |
-
Scaling routines now maximize images fully while taking captions into account.<br />
|
42 |
-
Added support for browser resizing and orientation changes - allowing images to <em>remain</em> optimally scaled and centered.<br />
|
43 |
-
WP jQuery Lightbox rely on <code>rel="lightbox"</code> instead of <code>class="lightbox"</code>, since rel is what all the previous *box-scripts used.<br />
|
44 |
-
Replaced explicit IMG-urls with divs styled through the CSS. (see: <code>jqlb_loading</code> and <code>jqlb_closelabel</code> divs).<br />
|
45 |
-
Can grab titles and captions from the WordPress Media Gallery-output (<a href="http://codex.wordpress.org/Gallery_Shortcode">[gallery]</a>, "insert attachments" etc).<br />
|
46 |
-
Grabs image title if the link lacks one<br />
|
47 |
-
Honors empty titles.<br />
|
48 |
-
Uses WordPress API to localize script (with safe fallbacks).<br />
|
49 |
-
</p>
|
50 |
|
1 |
<h2>How to Use:</h2>
|
2 |
<ol>
|
3 |
<li>You can use WordPress image galleries and have them grouped and auto-lightboxed: <a href="http://codex.wordpress.org/Gallery_Shortcode"><code>[gallery link="file"]</code></a></li>
|
4 |
+
<li>[gallery]'s are automatically grouped by post ID. You can split them into separate slideshows, using the <code>group</code>-attribute:
|
5 |
+
<pre><code> [gallery link="file" ids="1,2,3" group="mon"]
|
6 |
+
[gallery link="file" ids="4,5,6" group="tue"]</code></pre>
|
7 |
+
</li>
|
8 |
<li>You can also add a <code>rel="lightbox"</code> attribute to any link tag to activate the lightbox. For example:
|
9 |
<pre><code> <a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a></code></pre>
|
10 |
<em>Optional:</em> Use the <code>title</code> attribute if you want to show a caption.
|
15 |
<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a></code></pre>
|
16 |
No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!</li>
|
17 |
<li>To <strong>disable</strong> lightboxing of an image link, just set any other rel-attribute: <code>rel="nobox"</code></li>
|
18 |
+
<li>You can use the <code>data-download</code>-attribute to set a custom download link:
|
19 |
+
<a href="image-medium.jpg" rel="lightbox" data-download="image-superlarge.jpg"> [...] </a> </li>
|
20 |
+
<li><a href="http://wordpress.org/extend/plugins/infinite-scroll/">Infinite-Scroll</a> and similar "endless pages"-plugin, should call <code>doLightbox();</code> whenever it loads new content. Most plugins have a setting
|
21 |
+
for code that is called after each new page is loaded - just give it this:
|
22 |
+
<code>if(typeof doLightBox !== 'undefined' && typeof jQuery !== 'undefined'){
|
23 |
+
doLightBox();
|
24 |
+
}</code></li>
|
25 |
</ol>
|
26 |
+
<h2>Troubleshooting</h2>
|
27 |
+
<p>If you have problems with WP jQuery Lightbox, please make sure you try these steps before asking for help. If you ask for help and I find any of these steps would fix the problem, I will just link you back here to do the work yourself.</p>
|
28 |
<ol>
|
29 |
+
<li>Make sure your site is not throwing any javascript errors. Use <a href="http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers">your browsers javascript console</a> to find out.
|
30 |
+
<li>If you're running a custom theme:</li>
|
31 |
+
<ol>
|
32 |
+
<li>Always have <code>wp_header();</code> just before the closing <code></head></code> tag of your theme, or you will break many plugins, which generally use this hook to reference JavaScript files</li>
|
33 |
+
<li>Always have <code>wp_footer();</code>, just before the closing <code></body></code>, for the same reason</li>
|
34 |
+
<li>Many JavaScript optimizers, combiners, minifiers, etc. conflict with <a href="http://codex.wordpress.org/Function_Reference/wp_localize_script2"><code>wp_localize_script()</code></a>, used to configure this plugin and many others.
|
35 |
+
<ul style="list-style-type: circle;margin-left: 24px;">
|
36 |
+
<li>If you experience problems with jQuery Lightbox, please disable all JavaScript-optimizing plugins. (Optimize Scripts, W3 Total Cache, WP Minify etc)</li>
|
37 |
+
<li>If you develop JavaScript optimizers for WordPress, please play nice with the default API...</li>
|
38 |
+
<li><a href="http://wordpress.org/support/topic/122-worked-13-does-not-work-for-me?replies=19">More info about this issue</a></li>
|
39 |
+
</ul>
|
40 |
+
</li>
|
41 |
+
</ol>
|
42 |
+
<li>Disable all other plugins, one at a time. Try the lightbox between each.</li>
|
43 |
+
<li>Revert to the default theme. Did it help? Fix your theme.</li>
|
44 |
+
<li><strong>Search</strong> the forums before posting.</li>
|
45 |
</ol>
|
46 |
<h2>Credits</h2><ul style="list-style-type: circle;margin-left: 24px;">
|
47 |
<li>wp-jquery-lightbox was created by <a href="http://www.ulfben.com">Ulf Benjaminsson</a> (who <a href="http://amzn.com/w/2QB6SQ5XX2U0N">appreciates books</a>). :)</li>
|
48 |
<li>wp-jquery-lightbox borrowed the regexp from <a href="http://stimuli.ca/lightbox/">LightBox-2 by Rupert Morris</a> to apply lightbox-rel without clobbering manual inputs.</li>
|
49 |
<li>wp-jquery-lightbox uses a modified (see below) <a href="http://github.com/krewenki/jquery-lightbox/">jQuery Lightbox</a> by <a href="http://warren.mesozen.com/jquery-lightbox/">Warren Krewenki</a></li>
|
50 |
<li><a href="http://github.com/krewenki/jquery-lightbox/">jQuery Lightbox</a> is based on <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox 2 by Lokesh Dhakar</a></li>
|
51 |
+
<li>Swipe support is courtesy of Andreas Waltl's <a href="http://www.netcu.de/jquery-touchwipe-iphone-ipad-library">touchwipe-library</a></li>
|
52 |
+
</ul>
|
53 |
+
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
languages/howtouse-ja.html
DELETED
@@ -1,50 +0,0 @@
|
|
1 |
-
<h2>使い方:</h2>
|
2 |
-
<ol>
|
3 |
-
<li>WordPressイメージギャラリーを用いて、画像をグループ化し、自動的にLightbox効果を有効にする場合の記述法: <a href="http://codex.wordpress.org/Gallery_Shortcode"><code>[gallery link="file"]</code></a></li>
|
4 |
-
<li><code>rel="lightbox"</code>手作業で属性をリンクタグに追加してLightbox効果を有効にすることも可能です。例えば:
|
5 |
-
<pre><code> <a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a></code></pre>
|
6 |
-
<em>オプション:</em> キャプション(説明文)を表示させたいならば、<code>title</code>属性を追加します。
|
7 |
-
</li>
|
8 |
-
<li>複数の画像をグループ化したいならば、rel属性にグループ名を含めます。例えば:
|
9 |
-
<pre><code> <a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
|
10 |
-
<a href="images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
|
11 |
-
<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a></code></pre>
|
12 |
-
1ページあたりイメージセットの数とイメージセット毎に許される画像の数に制限はありません。お好きなだけどうぞ!</li>
|
13 |
-
</ol>
|
14 |
-
<h2>開発者の方へ:</h2>
|
15 |
-
<ol>
|
16 |
-
<li>テーマの</body>タグの直前に<code>wp_footer();</code>を常に配置して下さい。<br />
|
17 |
-
さもないと、このフックを利用してJavaスクリプトを参照している多くのプラグインの処理を中断させる事になるでしょう。</li>
|
18 |
-
<li>コンテンツにLightbox効果を適応するため、<code>jqlb_apply_lightbox($your_content, "any ID");</code>を実行します。<br />
|
19 |
-
この関数は、Lightbox効果が適応され、"any id"によってグループ化されたすべてのイメージリンクを含む文字列を返します。</li>
|
20 |
-
<li>多くのJavaスクリプト最適化ツール、結合ツール、縮小化ツールなどは、このプラグインや他の多くのプラグインが設定のために用いている<a href="http://codex.wordpress.org/Function_Reference/wp_localize_script2"><code>wp_localize_script()</code></a>と競合します。
|
21 |
-
<ul style="list-style-type: circle;margin-left: 24px;">
|
22 |
-
<li>もし、jQuery Lightboxで問題が発生したら、Javaスクリプトを最適化する全てのプラグインを無効にして下さい。(Optimize Scripts、W3 Total Cache、WP Minifyなど)</li>
|
23 |
-
<li>もし、WordPress用にJavaスクリプト最適化ツールを開発するなら、デフォルトのAPIと仲良く共存させて下さい。</li>
|
24 |
-
<li><a href="http://wordpress.org/support/topic/122-worked-13-does-not-work-for-me?replies=19">この問題についての情報をもっと見る</a></li>
|
25 |
-
</ul>
|
26 |
-
</li>
|
27 |
-
</ol>
|
28 |
-
<h2>謝辞</h2><ul style="list-style-type: circle;margin-left: 24px;">
|
29 |
-
<li>wp-jquery-lightboxは、<a href="http://www.ulfben.com">Ulf Benjaminsson</a>氏によって開発されました。(<a href="http://amzn.com/w/2QB6SQ5XX2U0N">作者が高く評価する本</a>). :)</li>
|
30 |
-
<li>wp-jquery-lightboxは、手作業ではなく、自動的にrel属性を追加し、画像にLightbox効果を適応するために<a href="http://stimuli.ca/lightbox/">Rupert Morris氏のLightBox-2</a>から正規表現を拝借しました。</li>
|
31 |
-
<li>wp-jquery-lightboxは、<a href="http://warren.mesozen.com/jquery-lightbox/">Warren Krewenki</a>氏の<a href="http://github.com/krewenki/jquery-lightbox/">jQuery Lightbox</a>を改造して使っています。(下記参照)</li>
|
32 |
-
<li><a href="http://github.com/krewenki/jquery-lightbox/">jQuery Lightbox</a>は、<a href="http://www.huddletogether.com/projects/lightbox2/">Lokesh Dhakar氏のLightbox 2</a>がベースになっています。</li>
|
33 |
-
<li>多言語のサポート(およびドイツ語の言語ファイル)は、<a href="http://sukimashita.com/">Martin S</a>氏によって付け加えられました。</li>
|
34 |
-
<li>設定画面の多言語化(およびロシア語とチェコ語の言語ファイル)は、Denis N. Voituk氏によって付け加えられました。</li>
|
35 |
-
<li>ポーランド語への翻訳は、<a href="http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-polish-localization?replies=1">Fisiu</a>氏によるものです。</li>
|
36 |
-
</ul>
|
37 |
-
|
38 |
-
<h2>Lightboxスクリプトの変更点:</h2><p style="margin-left: 24px;">
|
39 |
-
リサイズのためのコードは、高さと幅の <strong>両方</strong>を操作し、かつ、アスペクト比を維持します。<br />
|
40 |
-
拡大・縮小ルーチンは、キャプションを考慮した上で、画像を最大化します。<br />
|
41 |
-
ブラウザでのリサイズと向きの変更に対応させました。 - 最適なサイズと中心位置は、そのまま<em>保持</em>します。<br />
|
42 |
-
過去にリリースされた同等のスクリプトすべてがrelを使っているので、WP jQuery Lightboxも、<code>class="lightbox"</code>の代わりに、<code>rel="lightbox"</code>によって有効化されるようにしています。<br />
|
43 |
-
明示的なイメージURLは、CSSでレイアウトされたdivで置換されます。(<code>jqlb_loading</code>と<code>jqlb_closelabel</code>のdivタグを参照のこと。)<br />
|
44 |
-
WordPressのメディアギャラリーの出力からタイトルと説明文を取得出来ます。(<a href="http://codex.wordpress.org/Gallery_Shortcode">[gallery]</a>、"insert attachments" など。)<br />
|
45 |
-
リンクにタイトルがないなら、画像のタイトルを取得します。<br />
|
46 |
-
タイトルがない場合もそのまま処理します。<br />
|
47 |
-
すべてのアニメーション効果を無効に出来ます。(アニメーションの継続時間を0にして下さい。)<br />
|
48 |
-
スクリプトの多言語化のためにWordPressのAPIを使用しています。(安全な代替と共に。)<br />
|
49 |
-
</p>
|
50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/howtouse.html
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
<h2>How to Use:</h2>
|
2 |
<ol>
|
3 |
<li>You can use WordPress image galleries and have them grouped and auto-lightboxed: <a href="http://codex.wordpress.org/Gallery_Shortcode"><code>[gallery link="file"]</code></a></li>
|
|
|
|
|
|
|
|
|
4 |
<li>You can also add a <code>rel="lightbox"</code> attribute to any link tag to activate the lightbox. For example:
|
5 |
<pre><code> <a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a></code></pre>
|
6 |
<em>Optional:</em> Use the <code>title</code> attribute if you want to show a caption.
|
@@ -11,40 +15,40 @@
|
|
11 |
<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a></code></pre>
|
12 |
No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!</li>
|
13 |
<li>To <strong>disable</strong> lightboxing of an image link, just set any other rel-attribute: <code>rel="nobox"</code></li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
</ol>
|
15 |
-
<h2>
|
|
|
16 |
<ol>
|
17 |
-
<li>
|
18 |
-
<li>
|
19 |
-
<
|
20 |
-
<
|
21 |
-
<li>
|
22 |
-
<li>
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
</ol>
|
27 |
<h2>Credits</h2><ul style="list-style-type: circle;margin-left: 24px;">
|
28 |
<li>wp-jquery-lightbox was created by <a href="http://www.ulfben.com">Ulf Benjaminsson</a> (who <a href="http://amzn.com/w/2QB6SQ5XX2U0N">appreciates books</a>). :)</li>
|
29 |
<li>wp-jquery-lightbox borrowed the regexp from <a href="http://stimuli.ca/lightbox/">LightBox-2 by Rupert Morris</a> to apply lightbox-rel without clobbering manual inputs.</li>
|
30 |
<li>wp-jquery-lightbox uses a modified (see below) <a href="http://github.com/krewenki/jquery-lightbox/">jQuery Lightbox</a> by <a href="http://warren.mesozen.com/jquery-lightbox/">Warren Krewenki</a></li>
|
31 |
<li><a href="http://github.com/krewenki/jquery-lightbox/">jQuery Lightbox</a> is based on <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox 2 by Lokesh Dhakar</a></li>
|
32 |
-
<li>
|
33 |
-
|
34 |
-
|
35 |
-
<li>Japanese localization <a href="http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-japanese-translation?replies=3">by redcocker</a></li>
|
36 |
-
</ul>
|
37 |
-
|
38 |
-
<h2>Changes to Lightbox-script:</h2><p style="margin-left: 24px;">
|
39 |
-
Takes the WordPress admin bar into consideration.<br />
|
40 |
-
Resizing code manages <strong>both</strong> height and width and never destroy aspect ratio.<br />
|
41 |
-
Scaling routines now maximize images fully while taking captions into account.<br />
|
42 |
-
Added support for browser resizing and orientation changes - allowing images to <em>remain</em> optimally scaled and centered.<br />
|
43 |
-
WP jQuery Lightbox rely on <code>rel="lightbox"</code> instead of <code>class="lightbox"</code>, since rel is what all the previous *box-scripts used.<br />
|
44 |
-
Replaced explicit IMG-urls with divs styled through the CSS. (see: <code>jqlb_loading</code> and <code>jqlb_closelabel</code> divs).<br />
|
45 |
-
Can grab titles and captions from the WordPress Media Gallery-output (<a href="http://codex.wordpress.org/Gallery_Shortcode">[gallery]</a>, "insert attachments" etc).<br />
|
46 |
-
Grabs image title if the link lacks one<br />
|
47 |
-
Honors empty titles.<br />
|
48 |
-
Uses WordPress API to localize script (with safe fallbacks).<br />
|
49 |
-
</p>
|
50 |
|
1 |
<h2>How to Use:</h2>
|
2 |
<ol>
|
3 |
<li>You can use WordPress image galleries and have them grouped and auto-lightboxed: <a href="http://codex.wordpress.org/Gallery_Shortcode"><code>[gallery link="file"]</code></a></li>
|
4 |
+
<li>[gallery]'s are automatically grouped by post ID. You can split them into separate slideshows, using the <code>group</code>-attribute:
|
5 |
+
<pre><code> [gallery link="file" ids="1,2,3" group="mon"]
|
6 |
+
[gallery link="file" ids="4,5,6" group="tue"]</code></pre>
|
7 |
+
</li>
|
8 |
<li>You can also add a <code>rel="lightbox"</code> attribute to any link tag to activate the lightbox. For example:
|
9 |
<pre><code> <a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a></code></pre>
|
10 |
<em>Optional:</em> Use the <code>title</code> attribute if you want to show a caption.
|
15 |
<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a></code></pre>
|
16 |
No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!</li>
|
17 |
<li>To <strong>disable</strong> lightboxing of an image link, just set any other rel-attribute: <code>rel="nobox"</code></li>
|
18 |
+
<li>You can use the <code>data-download</code>-attribute to set a custom download link:
|
19 |
+
<a href="image-medium.jpg" rel="lightbox" data-download="image-superlarge.jpg"> [...] </a> </li>
|
20 |
+
<li><a href="http://wordpress.org/extend/plugins/infinite-scroll/">Infinite-Scroll</a> and similar "endless pages"-plugin, should call <code>doLightbox();</code> whenever it loads new content. Most plugins have a setting
|
21 |
+
for code that is called after each new page is loaded - just give it this:
|
22 |
+
<code>if(typeof doLightBox !== 'undefined' && typeof jQuery !== 'undefined'){
|
23 |
+
doLightBox();
|
24 |
+
}</code></li>
|
25 |
</ol>
|
26 |
+
<h2>Troubleshooting</h2>
|
27 |
+
<p>If you have problems with WP jQuery Lightbox, please make sure you try these steps before asking for help. If you ask for help and I find any of these steps would fix the problem, I will just link you back here to do the work yourself.</p>
|
28 |
<ol>
|
29 |
+
<li>Make sure your site is not throwing any javascript errors. Use <a href="http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers">your browsers javascript console</a> to find out.
|
30 |
+
<li>If you're running a custom theme:</li>
|
31 |
+
<ol>
|
32 |
+
<li>Always have <code>wp_header();</code> just before the closing <code></head></code> tag of your theme, or you will break many plugins, which generally use this hook to reference JavaScript files</li>
|
33 |
+
<li>Always have <code>wp_footer();</code>, just before the closing <code></body></code>, for the same reason</li>
|
34 |
+
<li>Many JavaScript optimizers, combiners, minifiers, etc. conflict with <a href="http://codex.wordpress.org/Function_Reference/wp_localize_script2"><code>wp_localize_script()</code></a>, used to configure this plugin and many others.
|
35 |
+
<ul style="list-style-type: circle;margin-left: 24px;">
|
36 |
+
<li>If you experience problems with jQuery Lightbox, please disable all JavaScript-optimizing plugins. (Optimize Scripts, W3 Total Cache, WP Minify etc)</li>
|
37 |
+
<li>If you develop JavaScript optimizers for WordPress, please play nice with the default API...</li>
|
38 |
+
<li><a href="http://wordpress.org/support/topic/122-worked-13-does-not-work-for-me?replies=19">More info about this issue</a></li>
|
39 |
+
</ul>
|
40 |
+
</li>
|
41 |
+
</ol>
|
42 |
+
<li>Disable all other plugins, one at a time. Try the lightbox between each.</li>
|
43 |
+
<li>Revert to the default theme. Did it help? Fix your theme.</li>
|
44 |
+
<li><strong>Search</strong> the forums before posting.</li>
|
45 |
</ol>
|
46 |
<h2>Credits</h2><ul style="list-style-type: circle;margin-left: 24px;">
|
47 |
<li>wp-jquery-lightbox was created by <a href="http://www.ulfben.com">Ulf Benjaminsson</a> (who <a href="http://amzn.com/w/2QB6SQ5XX2U0N">appreciates books</a>). :)</li>
|
48 |
<li>wp-jquery-lightbox borrowed the regexp from <a href="http://stimuli.ca/lightbox/">LightBox-2 by Rupert Morris</a> to apply lightbox-rel without clobbering manual inputs.</li>
|
49 |
<li>wp-jquery-lightbox uses a modified (see below) <a href="http://github.com/krewenki/jquery-lightbox/">jQuery Lightbox</a> by <a href="http://warren.mesozen.com/jquery-lightbox/">Warren Krewenki</a></li>
|
50 |
<li><a href="http://github.com/krewenki/jquery-lightbox/">jQuery Lightbox</a> is based on <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox 2 by Lokesh Dhakar</a></li>
|
51 |
+
<li>Swipe support is courtesy of Andreas Waltl's <a href="http://www.netcu.de/jquery-touchwipe-iphone-ipad-library">touchwipe-library</a></li>
|
52 |
+
</ul>
|
53 |
+
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
languages/jqlb-de_DE.mo
CHANGED
Binary file
|
languages/jqlb-de_DE.po
ADDED
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: wp-jquery-lightbox v1.3.4.2\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: \n"
|
6 |
+
"PO-Revision-Date: 2012-07-16 19:18:14+0000\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
+
"X-Poedit-Language: \n"
|
14 |
+
"X-Poedit-Country: \n"
|
15 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
17 |
+
"X-Poedit-Basepath: \n"
|
18 |
+
"X-Poedit-Bookmarks: \n"
|
19 |
+
"X-Poedit-SearchPath-0: .\n"
|
20 |
+
"X-Textdomain-Support: yes"
|
21 |
+
|
22 |
+
#: wp-jquery-lightbox.php:114
|
23 |
+
#@ jqlb
|
24 |
+
msgid " of "
|
25 |
+
msgstr "von "
|
26 |
+
|
27 |
+
#: wp-jquery-lightbox.php:110
|
28 |
+
#@ jqlb
|
29 |
+
msgid "« Previous"
|
30 |
+
msgstr "« Vorheriges"
|
31 |
+
|
32 |
+
#: wp-jquery-lightbox.php:176
|
33 |
+
#@ jqlb
|
34 |
+
msgid "Auto-lightbox image links"
|
35 |
+
msgstr "Auto-Lightbox Bild Verlinkung"
|
36 |
+
|
37 |
+
#: wp-jquery-lightbox.php:161
|
38 |
+
#@ jqlb
|
39 |
+
msgid "Cheatin’ uh?"
|
40 |
+
msgstr "Tricksen’ hm?"
|
41 |
+
|
42 |
+
#: wp-jquery-lightbox.php:113
|
43 |
+
#@ jqlb
|
44 |
+
msgid "Image "
|
45 |
+
msgstr "Bild "
|
46 |
+
|
47 |
+
#: wp-jquery-lightbox.php:176
|
48 |
+
#@ jqlb
|
49 |
+
msgid "Let the plugin add necessary html to image links"
|
50 |
+
msgstr "Plugin fügt selbst benötigtes HTML in Bild-Links ein"
|
51 |
+
|
52 |
+
#: wp-jquery-lightbox.php:111
|
53 |
+
#@ jqlb
|
54 |
+
msgid "Next »"
|
55 |
+
msgstr "Nächstes »"
|
56 |
+
|
57 |
+
#: wp-jquery-lightbox.php:243
|
58 |
+
#@ jqlb
|
59 |
+
msgid "Save Changes"
|
60 |
+
msgstr "Änderungen speichern"
|
61 |
+
|
62 |
+
#: wp-jquery-lightbox.php:38
|
63 |
+
#@ jqlb
|
64 |
+
msgid "Settings"
|
65 |
+
msgstr "Einstellungen"
|
66 |
+
|
67 |
+
#: wp-jquery-lightbox.php:219
|
68 |
+
#@ jqlb
|
69 |
+
msgid "Shrink large images to fit smaller screens"
|
70 |
+
msgstr "Große Bilder in Bildschirm einpassen"
|
71 |
+
|
72 |
+
#: wp-jquery-lightbox.php:112
|
73 |
+
#@ jqlb
|
74 |
+
msgid "close image gallery"
|
75 |
+
msgstr "Bildergalerie schließen"
|
76 |
+
|
77 |
+
#: wp-jquery-lightbox.php:109
|
78 |
+
#@ jqlb
|
79 |
+
msgid "next image"
|
80 |
+
msgstr "Nächstes Bild"
|
81 |
+
|
82 |
+
#: wp-jquery-lightbox.php:108
|
83 |
+
#@ jqlb
|
84 |
+
msgid "previous image"
|
85 |
+
msgstr "Vorheriges Bild"
|
86 |
+
|
87 |
+
#: wp-jquery-lightbox.php:115
|
88 |
+
#@ jqlb
|
89 |
+
msgid "Download"
|
90 |
+
msgstr "Herunterladen"
|
91 |
+
|
92 |
+
#: wp-jquery-lightbox.php:183
|
93 |
+
#@ jqlb
|
94 |
+
msgid "Note: this will disable the nofollow-attribute of comment links, that otherwise interfere with the lightbox."
|
95 |
+
msgstr "Hinweis: Hierdurch wird das nofollow-Attribut für Kommentare deaktiviert da dieses sonst die lightbox-Funktionsweise stören würde."
|
96 |
+
|
97 |
+
#: wp-jquery-lightbox.php:183
|
98 |
+
#@ jqlb
|
99 |
+
msgid "Enable lightbox in comments (disables <a href=\"http://codex.wordpress.org/Nofollow\">the nofollow attribute!</a>)"
|
100 |
+
msgstr "Aktiviere lightbox für Kommentare (deaktiivert <a href=\"http://codex.wordpress.org/Nofollow\">das nofollow Attribut!</a>)"
|
101 |
+
|
102 |
+
#: wp-jquery-lightbox.php:190
|
103 |
+
#@ jqlb
|
104 |
+
msgid "Show download link"
|
105 |
+
msgstr "Zeige Link zum Herunterladen"
|
106 |
+
|
107 |
+
#: wp-jquery-lightbox.php:194
|
108 |
+
#@ jqlb
|
109 |
+
msgid ""
|
110 |
+
"_blank: open the image in a new window or tab\n"
|
111 |
+
"_self: open the image in the same frame as it was clicked (default)\n"
|
112 |
+
"_parent: open the image in the parent frameset\n"
|
113 |
+
"_top: open the image in the full body of the window"
|
114 |
+
msgstr ""
|
115 |
+
"_blank: öffne das Bild in einem neuen Fenster oder Tab\n"
|
116 |
+
"_self: Öffne das Bild im gleichen Frame in dem es angeklickt wurde (Voreinstellung)\n"
|
117 |
+
"_parent: öffne das Bild im parent frameset\n"
|
118 |
+
"_top: öffne das Bild im Hauptfenster"
|
119 |
+
|
120 |
+
#: wp-jquery-lightbox.php:197
|
121 |
+
#@ jqlb
|
122 |
+
msgid "Target for download link:"
|
123 |
+
msgstr "Ziel für Herunterladen-Link:"
|
124 |
+
|
125 |
+
#: wp-jquery-lightbox.php:211
|
126 |
+
#@ jqlb
|
127 |
+
msgid "Show image info on top"
|
128 |
+
msgstr "Zeige Bildinformationen oberhalb des Bildes"
|
129 |
+
|
130 |
+
#: wp-jquery-lightbox.php:224
|
131 |
+
#@ jqlb
|
132 |
+
msgid "Keep a distance between the image and the screen edges."
|
133 |
+
msgstr "Füge einen Abstand zwischen Bild und Rahmen ein."
|
134 |
+
|
135 |
+
#: wp-jquery-lightbox.php:224
|
136 |
+
#@ jqlb
|
137 |
+
msgid "Minimum margin to screen edge (default: 0)"
|
138 |
+
msgstr "Mindestabstand zum Rahmen des Bildschirms (Vorgabe: 0)"
|
139 |
+
|
140 |
+
#: wp-jquery-lightbox.php:231
|
141 |
+
#@ jqlb
|
142 |
+
msgid "Animation duration (in milliseconds) "
|
143 |
+
msgstr "Animationsdauer (in Millisekunden) "
|
144 |
+
|
145 |
+
#: wp-jquery-lightbox.php:237
|
146 |
+
#@ jqlb
|
147 |
+
msgid "Help text (default: none) "
|
148 |
+
msgstr "Hinweistext (Vorgabe: keiner) "
|
149 |
+
|
150 |
+
#: wp-jquery-lightbox.php:241
|
151 |
+
#@ jqlb
|
152 |
+
msgid "Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close."
|
153 |
+
msgstr "Tastaturkürzel zum Bildwechsel: Pfeiltasten oder P(revious für vorheriges)/N(ext für nächstes) und X/C/Esc zum schließen."
|
154 |
+
|
languages/jqlb-es_ES.mo
ADDED
Binary file
|
languages/jqlb-es_ES.po
ADDED
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: WP JQuery Lightbox\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2011-06-26 20:31+0100\n"
|
6 |
+
"PO-Revision-Date: 2012-02-15 18:48+0100\n"
|
7 |
+
"Last-Translator: Miguel Montes Porras <info@mimopo.es>\n"
|
8 |
+
"Language-Team: grogcw <grogcw@gmail.com>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-KeywordsList: __;_e;_c;__ngettext:1,2\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"X-Poedit-Language: French\n"
|
15 |
+
"X-Poedit-Country: FRANCE\n"
|
16 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
+
"X-Poedit-SearchPath-0: G:\\@WINNEEDS\\Desktop\\wp-jquery-lightbox.1.3.3\\wp-jquery-lightbox\n"
|
18 |
+
|
19 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:42
|
20 |
+
msgid "Settings"
|
21 |
+
msgstr "Configuración"
|
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 "Imagen anterior"
|
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 "Siguiente imagen"
|
30 |
+
|
31 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:115
|
32 |
+
msgid "« Previous"
|
33 |
+
msgstr "« Anterior"
|
34 |
+
|
35 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:116
|
36 |
+
msgid "Next »"
|
37 |
+
msgstr "Siguiente »"
|
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 "cerrar galería"
|
42 |
+
|
43 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:118
|
44 |
+
msgid "Image "
|
45 |
+
msgstr "Imagen"
|
46 |
+
|
47 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:119
|
48 |
+
msgid " of "
|
49 |
+
msgstr " de "
|
50 |
+
|
51 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:120
|
52 |
+
msgid "Download"
|
53 |
+
msgstr "Descargar"
|
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 "Haciendo trampas ¿eh?"
|
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 "Deje que el plugin añada el html decesario a los enlaces de imágenes"
|
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 para los links de imágenes"
|
66 |
+
|
67 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:186
|
68 |
+
msgid "Note: this will disable the nofollow-attribute of comment links, that otherwise interfere with the lightbox."
|
69 |
+
msgstr "Nota: esto desactivará el atributo nofollow de los enlaces de comentario, que de otro modo interferirían con el lightbox."
|
70 |
+
|
71 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:186
|
72 |
+
msgid "Enable lightbox in comments (disables <a href=\"http://codex.wordpress.org/Nofollow\">the nofollow attribute!</a>)"
|
73 |
+
msgstr "Activar lightbox para los comentarios (¡desactiva <a href=\"http://codex.wordpress.org/Nofollow\">el atributo nofollow!</a>)"
|
74 |
+
|
75 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:193
|
76 |
+
msgid "Show download link"
|
77 |
+
msgstr "Mostrar enlace de descarga"
|
78 |
+
|
79 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:197
|
80 |
+
msgid ""
|
81 |
+
"_blank: open the image in a new window or tab\n"
|
82 |
+
"_self: open the image in the same frame as it was clicked (default)\n"
|
83 |
+
"_parent: open the image in the parent frameset\n"
|
84 |
+
"_top: open the image in the full body of the window"
|
85 |
+
msgstr ""
|
86 |
+
"_blank: abre la imagen en una nueva ventana o pestaña\n"
|
87 |
+
"_self: abre la imagen en el mismo frame en que fue clickada (por defecto)\n"
|
88 |
+
"_parent: abre la imagen en el frame padre\n"
|
89 |
+
"_top: ouvre abre la imagen sola en la ventana"
|
90 |
+
|
91 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:200
|
92 |
+
msgid "Target for download link:"
|
93 |
+
msgstr "Destino para el enlace de descarga:"
|
94 |
+
|
95 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:214
|
96 |
+
msgid "Show image info on top"
|
97 |
+
msgstr "Mostrar la información de la imagen encima"
|
98 |
+
|
99 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:222
|
100 |
+
msgid "Shrink large images to fit smaller screens"
|
101 |
+
msgstr "Adaptar imágenes grandes en pantallas pequeñas"
|
102 |
+
|
103 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:227
|
104 |
+
msgid "Keep a distance between the image and the screen edges."
|
105 |
+
msgstr "Mantener una distancia entre la imagen y los bordes de la pantalla."
|
106 |
+
|
107 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:227
|
108 |
+
msgid "Minimum margin to screen edge (default: 0)"
|
109 |
+
msgstr "Margen mínimo hasta el borde de la pantalla (por defecto: 0)"
|
110 |
+
|
111 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:234
|
112 |
+
msgid "Animation duration (in milliseconds) "
|
113 |
+
msgstr "Duración de la animación (en milisegundos)"
|
114 |
+
|
115 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:240
|
116 |
+
msgid "Help text (default: none) "
|
117 |
+
msgstr "Texto de ayuda (por defecto: ninguno)"
|
118 |
+
|
119 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:244
|
120 |
+
msgid "Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close."
|
121 |
+
msgstr "Navegar con el teclado: (P) Anterior / (N) Siguiente ; X / C / ESC para cerrar."
|
122 |
+
|
123 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:246
|
124 |
+
msgid "Save Changes"
|
125 |
+
msgstr "Guardar Cambios"
|
126 |
+
|
127 |
+
#~ msgid ""
|
128 |
+
#~ " \\u2190 / P - previous image\\u00a0\\u00a0\\u00a0\\u00a0\\u2192 / N - "
|
129 |
+
#~ "next image\\u00a0\\u00a0\\u00a0\\u00a0ESC / X - close image gallery"
|
130 |
+
#~ msgstr ""
|
131 |
+
#~ " \\u2190 / P - Image précédente\\u00a0\\u00a0\\u00a0\\u00a0\\u2192 / N - "
|
132 |
+
#~ "Image suivante\\u00a0\\u00a0\\u00a0\\u00a0ESC / X - fermer la galerie "
|
languages/jqlb-fi.mo
ADDED
Binary file
|
languages/jqlb-fi.po
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: 2012-07-13 11:47+0200\n"
|
7 |
+
"Last-Translator: Toni Ahonen <toni.ahonen@me.com>\n"
|
8 |
+
"Language-Team: Toni Ahonen\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-KeywordsList: __;_e;_c;__ngettext:1,2\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"X-Poedit-Language: Finnish\n"
|
15 |
+
"X-Poedit-Country: FINLAND\n"
|
16 |
+
"X-Poedit-SourceCharset: utf-8\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 "Asetukset"
|
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 "edellinen kuva"
|
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 "seuraava kuva"
|
29 |
+
|
30 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:115
|
31 |
+
msgid "« Previous"
|
32 |
+
msgstr "« Edellinen"
|
33 |
+
|
34 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:116
|
35 |
+
msgid "Next »"
|
36 |
+
msgstr "Seuraava »"
|
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 "sulje kuvagalleria"
|
41 |
+
|
42 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:118
|
43 |
+
msgid "Image "
|
44 |
+
msgstr "Kuva "
|
45 |
+
|
46 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:119
|
47 |
+
msgid " of "
|
48 |
+
msgstr "/"
|
49 |
+
|
50 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:120
|
51 |
+
msgid "Download"
|
52 |
+
msgstr "Lataa"
|
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 "Huijaatko?"
|
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 "Anna lisäosan lisätä tarvittavat html-koodit kuvalinkkeihin"
|
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 "Automaattiset lightbox-kuvalinkit"
|
65 |
+
|
66 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:186
|
67 |
+
msgid "Note: this will disable the nofollow-attribute of comment links, that otherwise interfere with the lightbox."
|
68 |
+
msgstr "Huomio: Tämä estää nofollow-attribuutin kommenttilinkeistä, joka voi vaikuttaa lightboxiin."
|
69 |
+
|
70 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:186
|
71 |
+
msgid "Enable lightbox in comments (disables <a href=\"http://codex.wordpress.org/Nofollow\">the nofollow attribute!</a>)"
|
72 |
+
msgstr "Salli lightbox kommenteissa (estää <a href=\"http://codex.wordpress.org/Nofollow\">nofollow-attribuutin!</a>)"
|
73 |
+
|
74 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:193
|
75 |
+
msgid "Show download link"
|
76 |
+
msgstr "Näytä latauslinkki"
|
77 |
+
|
78 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:197
|
79 |
+
msgid ""
|
80 |
+
"_blank: open the image in a new window or tab\n"
|
81 |
+
"_self: open the image in the same frame as it was clicked (default)\n"
|
82 |
+
"_parent: open the image in the parent frameset\n"
|
83 |
+
"_top: open the image in the full body of the window"
|
84 |
+
msgstr ""
|
85 |
+
"_blank: avaa kuvan uuteen ikkunaan tai välilehteen\n"
|
86 |
+
"_self: avaa kuvan samaan kehykseen (oletus)\n"
|
87 |
+
"_parent: avaa kuvan pääkehykseen \n"
|
88 |
+
"_top: avaa kuvan koko ikkunaan"
|
89 |
+
|
90 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:200
|
91 |
+
msgid "Target for download link:"
|
92 |
+
msgstr "Ladattavan kuvan target-attribuutti:"
|
93 |
+
|
94 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:214
|
95 |
+
msgid "Show image info on top"
|
96 |
+
msgstr "Näytä kuvan info yläpuolella"
|
97 |
+
|
98 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:222
|
99 |
+
msgid "Shrink large images to fit smaller screens"
|
100 |
+
msgstr "Pienennä suuret kuvat sopimaan pienempiin näyttöihin"
|
101 |
+
|
102 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:227
|
103 |
+
msgid "Keep a distance between the image and the screen edges."
|
104 |
+
msgstr "Säilytä väli kuvan ja näytön reunojen välillä."
|
105 |
+
|
106 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:227
|
107 |
+
msgid "Minimum margin to screen edge (default: 0)"
|
108 |
+
msgstr "Pienin sallittu marginaali näytön reunalle (oletus: 0)"
|
109 |
+
|
110 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:234
|
111 |
+
msgid "Animation duration (in milliseconds) "
|
112 |
+
msgstr "Animaation kesto (millisekunneissa)"
|
113 |
+
|
114 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:240
|
115 |
+
msgid "Help text (default: none) "
|
116 |
+
msgstr "Ohjeteksti (oletus: tyhjä)"
|
117 |
+
|
118 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:244
|
119 |
+
msgid "Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close."
|
120 |
+
msgstr "Selaa kuvia näppäimistöllä: Nuolinäppäimet tai P (=edellinen)/N(=seuraava) ja X/C/ESC sulkemiseen."
|
121 |
+
|
122 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:246
|
123 |
+
msgid "Save Changes"
|
124 |
+
msgstr "Tallenna muutokset"
|
125 |
+
|
languages/jqlb-lt_LT.mo
ADDED
Binary file
|
languages/jqlb-lt_LT.po
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: WP JQuery Lightbox\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2011-02-20 15:05+0100\n"
|
6 |
+
"PO-Revision-Date: 2012-03-31 10:47+0200\n"
|
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-Language: Russian\n"
|
15 |
+
"X-Poedit-Country: RUSSIAN FEDERATION\n"
|
16 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
+
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
|
18 |
+
"X-Poedit-SearchPath-0: C:\\_work\\svn\\artprima\\trunk\\wp-content\\plugins\\wp-jquery-lightbox\n"
|
19 |
+
|
20 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:44
|
21 |
+
msgid "Settings"
|
22 |
+
msgstr "Nustatymai"
|
23 |
+
|
24 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:80
|
25 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:81
|
26 |
+
msgid "previous image"
|
27 |
+
msgstr "ankstesnis paveiksliukas"
|
28 |
+
|
29 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:80
|
30 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:82
|
31 |
+
msgid "next image"
|
32 |
+
msgstr "sekantis paveiksliukas"
|
33 |
+
|
34 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:80
|
35 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:85
|
36 |
+
msgid "close image gallery"
|
37 |
+
msgstr "uždaryti paveiksliukų galeriją"
|
38 |
+
|
39 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:83
|
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 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:87
|
52 |
+
msgid " of "
|
53 |
+
msgstr "iš"
|
54 |
+
|
55 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:107
|
56 |
+
msgid "Cheatin’ uh?"
|
57 |
+
msgstr "Čytini, ane?"
|
58 |
+
|
59 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:117
|
60 |
+
msgid "Auto-lightbox image links"
|
61 |
+
msgstr "Automatiškai taikyti LightBox paveiksliukų nuorodoms"
|
62 |
+
|
63 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:121
|
64 |
+
msgid "Let the plugin add necessary html to image links"
|
65 |
+
msgstr "Leisti įskiepiui pridėti reikiamą kodą prie paveiksliukų nuorodų"
|
66 |
+
|
67 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:125
|
68 |
+
msgid "Shrink large images to fit smaller screens"
|
69 |
+
msgstr "Sutraukti didelius paveiksliukus, kad tilptų į mažesnius ekranus"
|
70 |
+
|
71 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:129
|
72 |
+
msgid "Note: <u>Excessively large images</u> waste bandwidth!"
|
73 |
+
msgstr "Dėmesio: <u>LABAI dideli paveiksliukai</u> kenkia greitaveikai!"
|
74 |
+
|
75 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:133
|
76 |
+
msgid "Animation speed (in milliseconds)"
|
77 |
+
msgstr "Animacijos greitis (milisekundėmis)"
|
78 |
+
|
79 |
+
#: C:\_work\svn\artprima\trunk\wp-content\plugins\wp-jquery-lightbox/wp-jquery-lightbox.php:140
|
80 |
+
msgid "Save Changes"
|
81 |
+
msgstr "Išsaugoti pakeitimus"
|
82 |
+
|
83 |
+
#~ msgid "(more...)"
|
84 |
+
#~ msgstr "(далее...)"
|
85 |
+
|
86 |
+
#~ msgid "Contacts"
|
87 |
+
#~ msgstr "Контакты"
|
88 |
+
|
89 |
+
#~ msgid "Contact Us"
|
90 |
+
#~ msgstr "Связаться с нами"
|
91 |
+
|
92 |
+
#~ msgid "Read more..."
|
93 |
+
#~ msgstr "Читать далее..."
|
94 |
+
|
95 |
+
#~ msgid "Contact Us..."
|
96 |
+
#~ msgstr "Связаться с нами..."
|
97 |
+
|
98 |
+
#~ msgid "Order..."
|
99 |
+
#~ msgstr "Заказать..."
|
100 |
+
|
101 |
+
#~ msgid "Search..."
|
102 |
+
#~ msgstr "Поиск..."
|
languages/jqlb-nb_NO.mo
ADDED
Binary file
|
languages/jqlb-nb_NO.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: 2012-10-10 18:54+0100\n"
|
7 |
+
"Last-Translator: olerules <olerules@gmail.com>\n"
|
8 |
+
"Language-Team: grogcw <grogcw@gmail.com>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-KeywordsList: __;_e;_c;__ngettext:1,2\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
+
"X-Generator: Poedit 1.5.4\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 bilde"
|
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 "neste bilde"
|
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 "Neste »"
|
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 "Lukk bildegalleri"
|
42 |
+
|
43 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:118
|
44 |
+
msgid "Image "
|
45 |
+
msgstr "Bilde "
|
46 |
+
|
47 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:119
|
48 |
+
msgid " of "
|
49 |
+
msgstr " av "
|
50 |
+
|
51 |
+
#: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:120
|
52 |
+
msgid "Download"
|
53 |
+
msgstr "Last ned"
|
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 "Jukser, 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 "La plugin-en legge til nødvendig html til bildelenkene"
|
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 bildelenker"
|
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 |
+
"Merk: Dette vil deaktivere nofollow-attributtet på kommentarlenker, som "
|
73 |
+
"ellers vil skape konflikt med lightbox-funksjonen."
|
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 nedlastningslenke"
|
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: åpne bildet i et nytt vindu\n"
|
95 |
+
"_self: åpne bildet i samme ramme som lenke (standard)\n"
|
96 |
+
"_parent: åpne bildet i foreldrerammen\n"
|
97 |
+
"_top: åpne bildet i hele rammen "
|
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 "Mål for nedlastningslenke:"
|
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 bildeinformasjon på 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 "Krymp store bilder for mindre skjermer"
|
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 avstand mellom bildet og skjermkantene."
|
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 "Minstemargin til skjermkantene (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 "Animasjonstid (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 "Hjelpetekst (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 |
+
"Bla mellom bildene med tastaturet: Piler eller P(revious)/N(ext) og X/C/ESC "
|
133 |
+
"for å 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 "Lagre endringer"
|
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"
|
readme.txt
CHANGED
@@ -2,9 +2,10 @@
|
|
2 |
Contributors: ulfben
|
3 |
Donate link: http://amzn.com/w/2QB6SQ5XX2U0N
|
4 |
Tags: lightbox, jquery, nodal, image, display, ulfben
|
5 |
-
Requires at least: 3.
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 1.
|
|
|
8 |
|
9 |
A drop-in replacement for Lightbox 2 and similar plugins, shedding the bulk of Prototype and Scriptaculous. Improved for mobile devices.
|
10 |
|
@@ -16,6 +17,7 @@ Warren Krewenki [ported Lightbox to jQuery](http://warren.mesozen.com/jquery-lig
|
|
16 |
|
17 |
This version is also [adjusted for mobile devices](http://wordpress.org/extend/plugins/wp-jquery-lightbox/screenshots/);
|
18 |
|
|
|
19 |
* Improved scaling *maximizes* use of screen space
|
20 |
* Live adjustment to the browser window and orientation of your phone
|
21 |
* Optional download link to display images in native app.
|
@@ -28,36 +30,17 @@ If you value [my plugins](http://profiles.wordpress.org/users/ulfben/), please h
|
|
28 |
|
29 |
*[//Ulf Benjaminsson](http://profiles.wordpress.org/users/ulfben/)*
|
30 |
|
31 |
-
= 1.
|
32 |
-
*
|
33 |
-
|
34 |
-
|
35 |
-
*
|
36 |
-
|
37 |
-
|
38 |
-
*
|
39 |
-
*
|
40 |
-
*
|
41 |
-
*
|
42 |
-
* [Fixed admin bar covering the lightbox](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-show-download-link-not-working?replies=4#post-2400784)
|
43 |
-
* Added info on how to disable lightbox for specific links (bogus rel-attribute)
|
44 |
-
* Added translations: [Romanian](http://wordpress.org/support/topic/wp-jquery-lightbox-romanian-translation?replies=1), [French](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-french-translation?replies=2#post-2187626) and [Hebrew](www.sagive.co.il)
|
45 |
-
* Updated: Russian language icons (thanks; Ilya Gorenburg), [Japanese translation](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-japanese-translation-for-133?replies=1)
|
46 |
-
|
47 |
-
= 1.3.3 (2011-06-12) =
|
48 |
-
* Fixes [for Internet Explorer](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-jquery-version-and-ie-issues) (A million thanks to [David Grayston](http://www.grayston.net/2011/internet-explorer-v8-and-opacity-issues/#more-342)!).
|
49 |
-
* Fix for [mixed HTTP/HTTPS installations](http://wordpress.org/support/topic/mixed-http-and-https-installation-problems).
|
50 |
-
* Added setting to have margins to screen edge.
|
51 |
-
* Added setting to put info & navigation on top.
|
52 |
-
* Added setting for help text.
|
53 |
-
* Added Japanese translation ([Thanks redcocker](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-japanese-translation)).
|
54 |
-
|
55 |
-
= 1.3.2 (2011-05-16) =
|
56 |
-
* Added support for auto-lightboxing comments too.
|
57 |
-
* Added Russian and Czech translations (incl. images). Thanks again Denis!
|
58 |
-
* Added Polish translation ([Thanks Fisiu](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-polish-localization?replies=1)).
|
59 |
-
* Fixed fallbacks to avoid [breakage over JavaScript optimizers](http://wordpress.org/support/topic/122-worked-13-does-not-work-for-me?replies=19#post-2091734).
|
60 |
-
* Known issues: [1.3.x is garbage on IE7 and IE8](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-jquery-version-and-ie-issues?replies=3). I've got no clue and no time - **help appreciated!**
|
61 |
|
62 |
= 1.3 (2011-05-01) =
|
63 |
* Improved scaling to *maximize* display area.
|
@@ -78,13 +61,19 @@ If you value [my plugins](http://profiles.wordpress.org/users/ulfben/), please h
|
|
78 |
|
79 |
= How to Use: =
|
80 |
1. With [WordPress built-in gallery](http://codex.wordpress.org/Gallery_Shortcode): [`[gallery link="file"]`](http://codex.wordpress.org/Gallery_Shortcode)
|
81 |
-
1.
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
`<a href="image-1.jpg" rel="lightbox" title="my caption">image #1</a>`
|
84 |
|
85 |
Note the use of title-attribute to set a caption
|
86 |
|
87 |
-
1. To group sets of related images, follow step
|
88 |
|
89 |
`<a href="image-1.jpg" rel="lightbox[roadtrip]">image #1</a>`
|
90 |
|
@@ -92,20 +81,64 @@ If you value [my plugins](http://profiles.wordpress.org/users/ulfben/), please h
|
|
92 |
|
93 |
`<a href="image-3.jpg" rel="lightbox[roadtrip]">image #3</a>`
|
94 |
|
|
|
|
|
|
|
|
|
95 |
1. To *disable* lightboxing of an image link, just set any other rel-attribute: `rel="nobox"`
|
96 |
|
97 |
-
1. Keyboard support: Arrows, P(revious)/N(ext) and X/C/ESC for close.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
|
99 |
-
= For developers: =
|
100 |
-
1. Always have `wp_footer();` just before the closing `</body>` tag of your theme, or you will break many plugins, which generally use this hook to reference JavaScript files.
|
101 |
-
1. Apply lightbox to any content by running `jqlb_apply_lightbox($your_content, "any ID");` It returns a string with all image links lightboxed, grouped by `"any id"`.
|
102 |
1. Many JavaScript optimizers, combiners, minifiers, etc. conflict with [`wp_localize_script`](http://codex.wordpress.org/Function_Reference/wp_localize_script2), used to configure this plugin and many others.
|
103 |
|
104 |
* If you have problems with jQuery Lightbox; first disable all JavaScript-optimizing plugins. (Optimize Scripts, W3 Total Cache, WP Minify etc)
|
|
|
105 |
* If you develop JavaScript optimizers for WordPress, please play nice with the default API...
|
|
|
106 |
* [More info about this issue](http://wordpress.org/support/topic/122-worked-13-does-not-work-for-me?replies=19)
|
107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
= 1.3.4.2 (2011-02-01) =
|
110 |
* Fallbacks for people using older jQuery
|
111 |
|
@@ -171,6 +204,9 @@ If you value [my plugins](http://profiles.wordpress.org/users/ulfben/), please h
|
|
171 |
* Release.
|
172 |
|
173 |
== Upgrade Notice ==
|
|
|
|
|
|
|
174 |
= 1.3.4.2 (2011-02-01) =
|
175 |
* Fallbacks for people using older jQuery
|
176 |
|
@@ -215,6 +251,45 @@ First release.
|
|
215 |
|
216 |
== Frequently Asked Questions ==
|
217 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
= I can see elements of my site through the overlay =
|
219 |
|
220 |
It's a problem of [z-index](http://www.w3schools.com/Css/pr_pos_z-index.asp). Check [the z-index property](http://www.w3schools.com/Css/pr_pos_z-index.asp) for the problematic elements, and force them to be less than 100. (Thanks [dway](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-title-captions-bug-found-solved-and-fix-proposed?replies=20#post-2052340)!)
|
@@ -234,6 +309,15 @@ directly to the image files - allowing Lightbox to function.
|
|
234 |
|
235 |
WP-jQuery Lightbox lets you configure the animation duration and disable image resizing from the admin panel. Set duration to 0 to disable animations entirely.
|
236 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
= Can I help you in any way? =
|
238 |
|
239 |
Indeed you can!
|
2 |
Contributors: ulfben
|
3 |
Donate link: http://amzn.com/w/2QB6SQ5XX2U0N
|
4 |
Tags: lightbox, jquery, nodal, image, display, ulfben
|
5 |
+
Requires at least: 3.5.1
|
6 |
+
Tested up to: 3.5.1
|
7 |
+
Stable tag: 1.4
|
8 |
+
License: GPLv2 or later
|
9 |
|
10 |
A drop-in replacement for Lightbox 2 and similar plugins, shedding the bulk of Prototype and Scriptaculous. Improved for mobile devices.
|
11 |
|
17 |
|
18 |
This version is also [adjusted for mobile devices](http://wordpress.org/extend/plugins/wp-jquery-lightbox/screenshots/);
|
19 |
|
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.
|
30 |
|
31 |
*[//Ulf Benjaminsson](http://profiles.wordpress.org/users/ulfben/)*
|
32 |
|
33 |
+
= 1.4 (2013-02-02) =
|
34 |
+
* Added swipe gestures on touch devices
|
35 |
+
* Added slideshow
|
36 |
+
* Added support for multiple sets in one post (use: [`group`](http://wordpress.org/extend/plugins/wp-jquery-lightbox/installation/) with the gallery-shortcode)
|
37 |
+
* Added support for arbitrary Download links via the [`data-download`-attribute](http://wordpress.org/extend/plugins/wp-jquery-lightbox/installation/)
|
38 |
+
* Added support to pick text from the image ALT-attribute (if title is not available)
|
39 |
+
* Added translations: Norwegian Bokmål (thanks [Ole Martin Kristiansen](http://hvorerole.com/)!)
|
40 |
+
* Updated regexp to deal with urls like www.gif.org. (Thanks Yannick Berker!)
|
41 |
+
* Replaced two CSS selector names to avoid collisions. (Hat tip; Pollmann Frederic)
|
42 |
+
* Fix to support Infinite Scroll and similar
|
43 |
+
* Fix leaky CSS on admin page
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
= 1.3 (2011-05-01) =
|
46 |
* Improved scaling to *maximize* display area.
|
61 |
|
62 |
= How to Use: =
|
63 |
1. With [WordPress built-in gallery](http://codex.wordpress.org/Gallery_Shortcode): [`[gallery link="file"]`](http://codex.wordpress.org/Gallery_Shortcode)
|
64 |
+
1. All galleries in a post make a single slideshow. To create separate slideshows, use `group`:
|
65 |
+
|
66 |
+
`[gallery link="file" ids="1,2,3" group="mon"]`
|
67 |
+
|
68 |
+
`[gallery link="file" ids="4,5,6" group="tue"]`
|
69 |
+
|
70 |
+
1. You can manually add a `rel="lightbox"` attribute to any link:
|
71 |
|
72 |
`<a href="image-1.jpg" rel="lightbox" title="my caption">image #1</a>`
|
73 |
|
74 |
Note the use of title-attribute to set a caption
|
75 |
|
76 |
+
1. To manually group sets of related images, follow step 3 but additionally include a group name in the `rel` attribute:
|
77 |
|
78 |
`<a href="image-1.jpg" rel="lightbox[roadtrip]">image #1</a>`
|
79 |
|
81 |
|
82 |
`<a href="image-3.jpg" rel="lightbox[roadtrip]">image #3</a>`
|
83 |
|
84 |
+
1. You can use the `data-download` attribute to set a custom download link:
|
85 |
+
|
86 |
+
`<a href="image-medium.jpg" rel="lightbox" data-download="image-superlarge.jpg"> [...] </a>`
|
87 |
+
|
88 |
1. To *disable* lightboxing of an image link, just set any other rel-attribute: `rel="nobox"`
|
89 |
|
90 |
+
1. Keyboard support: Arrows, P(revious)/N(ext) and X/C/ESC for close. Swipe left / right on touch devices.
|
91 |
+
|
92 |
+
1. [Infinite-Scroll](http://wordpress.org/extend/plugins/infinite-scroll/) and similar "endless pages"-plugins should call `doLightbox();` whenever it loads new content. Check your plugin for a setting
|
93 |
+
named "callbacks" - code that is called after each new page is loaded. Add this line;
|
94 |
+
`if(typeof doLightBox !== 'undefined' && typeof jQuery !== 'undefined'){
|
95 |
+
doLightBox();
|
96 |
+
}`
|
97 |
+
|
98 |
+
1. On the server side you can apply lightbox to any content by running `jqlb_apply_lightbox($your_html_content, "any ID");` It returns a string with all image links lightboxed, grouped by `"any id"`.
|
99 |
+
|
100 |
+
= Trouble shooting: =
|
101 |
+
If you have problems with WP jQuery Lightbox, please make sure you try these steps before asking for help. If you ask for help and I find any of these steps would fix the problem, I will just link you back here to do the work yourself.
|
102 |
+
|
103 |
+
1. Make sure your site is not throwing any javascript errors. Use [your browsers javascript console](http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers) to find out.
|
104 |
+
|
105 |
+
If you're running a custom theme:
|
106 |
+
|
107 |
+
1. Make sure you have [`wp_head();`](http://codex.wordpress.org/Function_Reference/wp_head) just before the closing `</head>` tag of your theme, or you will break many plugins, which generally use this hook to reference JavaScript files.
|
108 |
+
|
109 |
+
1. For the same reason, always have `wp_footer();` just before the closing `</body>` tag of your theme.
|
110 |
|
|
|
|
|
|
|
111 |
1. Many JavaScript optimizers, combiners, minifiers, etc. conflict with [`wp_localize_script`](http://codex.wordpress.org/Function_Reference/wp_localize_script2), used to configure this plugin and many others.
|
112 |
|
113 |
* If you have problems with jQuery Lightbox; first disable all JavaScript-optimizing plugins. (Optimize Scripts, W3 Total Cache, WP Minify etc)
|
114 |
+
|
115 |
* If you develop JavaScript optimizers for WordPress, please play nice with the default API...
|
116 |
+
|
117 |
* [More info about this issue](http://wordpress.org/support/topic/122-worked-13-does-not-work-for-me?replies=19)
|
118 |
|
119 |
+
Lastly:
|
120 |
+
|
121 |
+
1. Disable all other plugins, one at a time. Try the lightbox between each.
|
122 |
+
|
123 |
+
1. Revert to the default theme. Did it help? Fix your theme.
|
124 |
+
|
125 |
+
1. Search the forums for similar symptoms.
|
126 |
+
|
127 |
+
Still have problems? Post a link and describe what issue you're having, and tell us what of these steps you've already tried.
|
128 |
+
|
129 |
== Changelog ==
|
130 |
+
= 1.4 (2013-02-02) =
|
131 |
+
* Added swipe gestures on touch devices
|
132 |
+
* Added slideshow
|
133 |
+
* Added support for multiple sets in one post (use: [`group`](http://wordpress.org/extend/plugins/wp-jquery-lightbox/installation/) with the gallery-shortcode)
|
134 |
+
* Added support for arbitrary Download links via the [`data-download`-attribute](http://wordpress.org/extend/plugins/wp-jquery-lightbox/installation/)
|
135 |
+
* Added support to pick text from the image ALT-attribute (if title is not available)
|
136 |
+
* Added translations: Norwegian Bokmål (thanks [Ole Martin Kristiansen](http://hvorerole.com/)!)
|
137 |
+
* Updated regexp to deal with urls like www.gif.org. (Thanks Yannick Berker!)
|
138 |
+
* Replaced two CSS selector names to avoid collisions. (Hat tip; Pollmann Frederic)
|
139 |
+
* Fix to support Infinite Scroll and similar
|
140 |
+
* Fix leaky CSS on admin page
|
141 |
+
|
142 |
= 1.3.4.2 (2011-02-01) =
|
143 |
* Fallbacks for people using older jQuery
|
144 |
|
204 |
* Release.
|
205 |
|
206 |
== Upgrade Notice ==
|
207 |
+
= 1.4 =
|
208 |
+
Swipe gestures, slideshow, sets and lots of fixes. Check your config screen after update!
|
209 |
+
|
210 |
= 1.3.4.2 (2011-02-01) =
|
211 |
* Fallbacks for people using older jQuery
|
212 |
|
251 |
|
252 |
== Frequently Asked Questions ==
|
253 |
|
254 |
+
= Trouble shooting: =
|
255 |
+
If you have problems with WP jQuery Lightbox, please make sure you try these steps before asking for help. If you ask for help and I find any of these steps would fix the problem, I will just link you back here to do the work yourself.
|
256 |
+
|
257 |
+
1. Make sure your site is not throwing any javascript errors. Use [your browsers javascript console](http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers) to find out.
|
258 |
+
|
259 |
+
If you're running a custom theme:
|
260 |
+
|
261 |
+
1. Make sure you have [`wp_head();`](http://codex.wordpress.org/Function_Reference/wp_head) just before the closing `</head>` tag of your theme, or you will break many plugins, which generally use this hook to reference JavaScript files.
|
262 |
+
|
263 |
+
1. For the same reason, always have `wp_footer();` just before the closing `</body>` tag of your theme.
|
264 |
+
|
265 |
+
1. Many JavaScript optimizers, combiners, minifiers, etc. conflict with [`wp_localize_script`](http://codex.wordpress.org/Function_Reference/wp_localize_script2), used to configure this plugin and many others.
|
266 |
+
|
267 |
+
* If you have problems with jQuery Lightbox; first disable all JavaScript-optimizing plugins. (Optimize Scripts, W3 Total Cache, WP Minify etc)
|
268 |
+
|
269 |
+
* If you develop JavaScript optimizers for WordPress, please play nice with the default API...
|
270 |
+
|
271 |
+
* [More info about this issue](http://wordpress.org/support/topic/122-worked-13-does-not-work-for-me?replies=19)
|
272 |
+
|
273 |
+
Lastly:
|
274 |
+
|
275 |
+
1. Disable all other plugins, one at a time. Try the lightbox between each.
|
276 |
+
|
277 |
+
1. Revert to the default theme. Did it help? Fix your theme.
|
278 |
+
|
279 |
+
1. Search the forums for similar symptoms.
|
280 |
+
|
281 |
+
Still have problems? Post a link and describe what issue you're having, and tell us what of these steps you've already tried.
|
282 |
+
|
283 |
+
= Can the lightbox display the image description instead of the title? =
|
284 |
+
WP jQuery Lightbox grabs texts from three different HTML nodes;
|
285 |
+
|
286 |
+
1. `title`-attribute of link-to-image
|
287 |
+
1. `img` tag's `title` attribute (if 1 is empty)
|
288 |
+
1. `img` tag's `alt` attribute (if 1 and 2 is empty)
|
289 |
+
1. HTML content of `.gallery-caption` or `.wp-caption-text` (in that order)
|
290 |
+
|
291 |
+
Look at how the default TwentyTwelve theme uses these in its galleries and set up your theme so it outputs what you need in these places.
|
292 |
+
|
293 |
= I can see elements of my site through the overlay =
|
294 |
|
295 |
It's a problem of [z-index](http://www.w3schools.com/Css/pr_pos_z-index.asp). Check [the z-index property](http://www.w3schools.com/Css/pr_pos_z-index.asp) for the problematic elements, and force them to be less than 100. (Thanks [dway](http://wordpress.org/support/topic/plugin-wp-jquery-lightbox-title-captions-bug-found-solved-and-fix-proposed?replies=20#post-2052340)!)
|
309 |
|
310 |
WP-jQuery Lightbox lets you configure the animation duration and disable image resizing from the admin panel. Set duration to 0 to disable animations entirely.
|
311 |
|
312 |
+
= For developers: =
|
313 |
+
1. Always have `wp_footer();` just before the closing `</body>` tag of your theme, or you will break many plugins, which generally use this hook to reference JavaScript files.
|
314 |
+
1. Apply lightbox to any content by running `jqlb_apply_lightbox($your_content, "any ID");` It returns a string with all image links lightboxed, grouped by `"any id"`.
|
315 |
+
1. Many JavaScript optimizers, combiners, minifiers, etc. conflict with [`wp_localize_script`](http://codex.wordpress.org/Function_Reference/wp_localize_script2), used to configure this plugin and many others.
|
316 |
+
|
317 |
+
* If you have problems with jQuery Lightbox; first disable all JavaScript-optimizing plugins. (Optimize Scripts, W3 Total Cache, WP Minify etc)
|
318 |
+
* If you develop JavaScript optimizers for WordPress, please play nice with the default API...
|
319 |
+
* [More info about this issue](http://wordpress.org/support/topic/122-worked-13-does-not-work-for-me?replies=19)
|
320 |
+
|
321 |
= Can I help you in any way? =
|
322 |
|
323 |
Indeed you can!
|
styles/images/es_ES/blank.gif
ADDED
Binary file
|
styles/images/es_ES/close.gif
ADDED
Binary file
|
styles/images/es_ES/closelabel.gif
ADDED
Binary file
|
styles/images/es_ES/loading.gif
ADDED
Binary file
|
styles/images/es_ES/next.gif
ADDED
Binary file
|
styles/images/es_ES/nextlabel.gif
ADDED
Binary file
|
styles/images/es_ES/prev.gif
ADDED
Binary file
|
styles/images/es_ES/prevlabel.gif
ADDED
Binary file
|
styles/images/fi/blank.gif
ADDED
Binary file
|
styles/images/fi/close.gif
ADDED
Binary file
|
styles/images/fi/closelabel.gif
ADDED
Binary file
|
styles/images/fi/loading.gif
ADDED
Binary file
|
styles/images/fi/next.gif
ADDED
Binary file
|
styles/images/fi/nextlabel.gif
ADDED
Binary file
|
styles/images/fi/prev.gif
ADDED
Binary file
|
styles/images/fi/prevlabel.gif
ADDED
Binary file
|
styles/lightbox.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/**
|
2 |
* WP jQuery Lightbox
|
3 |
-
* Version 1.
|
4 |
* http://wordpress.org/extend/plugins/wp-jquery-lightbox/
|
5 |
*/
|
6 |
#lightbox{
|
@@ -10,9 +10,8 @@
|
|
10 |
z-index: 10100;/*twentyeleven keeps the header at 999...*/
|
11 |
text-align: center;
|
12 |
line-height: 0;
|
13 |
-
|
14 |
-
|
15 |
-
#jqlb_loading{
|
16 |
height:32px;
|
17 |
background-image:url('./images/loading.gif');
|
18 |
background-repeat:no-repeat;
|
@@ -24,9 +23,12 @@
|
|
24 |
background-repeat:no-repeat;
|
25 |
background-position:center center;
|
26 |
}
|
27 |
-
|
28 |
#lightbox a img{ border: none; }
|
29 |
-
|
|
|
|
|
|
|
|
|
30 |
#outerImageContainer{
|
31 |
position: relative;
|
32 |
background-color: #fff;
|
@@ -39,7 +41,7 @@
|
|
39 |
padding: 10px;
|
40 |
}
|
41 |
|
42 |
-
#
|
43 |
position: absolute;
|
44 |
top: 40%;
|
45 |
left: 0%;
|
@@ -82,8 +84,8 @@ padding-left: 20px;
|
|
82 |
#prevLinkText{
|
83 |
padding-right: 20px;
|
84 |
}
|
85 |
-
#downloadLink{
|
86 |
-
|
87 |
}
|
88 |
/*** END : next / previous text links ***/
|
89 |
/*** START : added padding when navbar is on top ***/
|
@@ -106,7 +108,7 @@ margin-left: 10px;
|
|
106 |
}
|
107 |
#imageData #imageDetails{ width: 70%; float: left; text-align: left; }
|
108 |
#imageData #caption{ font-weight: bold; }
|
109 |
-
#imageData #numberDisplay{
|
110 |
#imageData #bottomNavClose{ width: 66px; float: right; padding-bottom: 0.7em; }
|
111 |
#imageData #helpDisplay {clear: left; float: left; display: block; }
|
112 |
|
1 |
/**
|
2 |
* WP jQuery Lightbox
|
3 |
+
* Version 1.4 - 2013-02-02
|
4 |
* http://wordpress.org/extend/plugins/wp-jquery-lightbox/
|
5 |
*/
|
6 |
#lightbox{
|
10 |
z-index: 10100;/*twentyeleven keeps the header at 999...*/
|
11 |
text-align: center;
|
12 |
line-height: 0;
|
13 |
+
}
|
14 |
+
#jqlb_spinner{
|
|
|
15 |
height:32px;
|
16 |
background-image:url('./images/loading.gif');
|
17 |
background-repeat:no-repeat;
|
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;
|
41 |
padding: 10px;
|
42 |
}
|
43 |
|
44 |
+
#jqlb_loading{
|
45 |
position: absolute;
|
46 |
top: 40%;
|
47 |
left: 0%;
|
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 ***/
|
108 |
}
|
109 |
#imageData #imageDetails{ width: 70%; float: left; text-align: left; }
|
110 |
#imageData #caption{ font-weight: bold; }
|
111 |
+
#imageData #numberDisplay{ padding-bottom: 1.0em; }
|
112 |
#imageData #bottomNavClose{ width: 66px; float: right; padding-bottom: 0.7em; }
|
113 |
#imageData #helpDisplay {clear: left; float: left; display: block; }
|
114 |
|
styles/lightbox.min.cs_CZ.css
CHANGED
@@ -1 +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/cs_CZ/loading.gif');background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;background-image:url('./images/cs_CZ/closelabel.gif');background-repeat:no-repeat;background-position:center center}#lightbox a img{border:none}#outerImageContainer{position:relative;background-color:#fff;width:250px;height:250px;margin:0 auto}#imageContainer{padding:10px}#loading{position:absolute;top:40%;left:0;height:25%;width:100%;text-align:center;line-height:0}#hoverNav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}#imageContainer>#hoverNav{left:0}#hoverNav a{outline:none}#prevLink,#nextLink{width:45%;height:100%;background:transparent url('./images/cs_CZ/blank.gif') no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url('./images/cs_CZ/prev.gif') left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url('./images/cs_CZ/next.gif') right 50% no-repeat}#nextLinkText,#prevLinkText{color:#ff9834;font-weight:bold;text-decoration:none}#nextLinkText{padding-left:20px}#prevLinkText{padding-right:20px}.ontop #imageData{padding-top:5px}#imageDataContainer{font:10px Verdana,Helvetica,sans-serif;background-color:#fff;margin:0 auto;line-height:1.4em}#imageData{padding:0 10px}#imageData #imageDetails{width:70%;float:left;text-align:left}#imageData #caption{font-weight:bold}#imageData #numberDisplay{
|
1 |
+
#lightbox{position:absolute;left:0;width:100%;z-index:10100;text-align:center;line-height:0}#jqlb_loading{height:32px;background-image:url('./images/cs_CZ/loading.gif');background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;background-image:url('./images/cs_CZ/closelabel.gif');background-repeat:no-repeat;background-position:center center}#lightbox a img{border:none}#outerImageContainer{position:relative;background-color:#fff;width:250px;height:250px;margin:0 auto}#imageContainer{padding:10px}#loading{position:absolute;top:40%;left:0;height:25%;width:100%;text-align:center;line-height:0}#hoverNav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}#imageContainer>#hoverNav{left:0}#hoverNav a{outline:none}#prevLink,#nextLink{width:45%;height:100%;background:transparent url('./images/cs_CZ/blank.gif') no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url('./images/cs_CZ/prev.gif') left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url('./images/cs_CZ/next.gif') right 50% no-repeat}#nextLinkText,#prevLinkText{color:#ff9834;font-weight:bold;text-decoration:none}#nextLinkText{padding-left:20px}#prevLinkText{padding-right:20px}.ontop #imageData{padding-top:5px}#imageDataContainer{font:10px Verdana,Helvetica,sans-serif;background-color:#fff;margin:0 auto;line-height:1.4em}#imageData{padding:0 10px}#imageData #imageDetails{width:70%;float:left;text-align:left}#imageData #caption{font-weight:bold}#imageData #numberDisplay{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}
|
styles/lightbox.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#lightbox{position:absolute;left:0;width:100%;z-index:10100;text-align:center;line-height:0}#
|
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/loading.gif');background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;background-image:url('./images/closelabel.gif');background-repeat:no-repeat;background-position:center center}#lightbox a img{border:0}#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/blank.gif') no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url('./images/prev.gif') left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url('./images/next.gif') right 50% no-repeat}#nextLinkText,#prevLinkText{color:#ff9834;font-weight:bold;text-decoration:none}#nextLinkText{padding-left:20px}#prevLinkText{padding-right:20px}#downloadLink{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.fi.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/fi/loading.gif');background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;background-image:url('./images/fi/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/fi/blank.gif') no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url('./images/fi/prev.gif') left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url('./images/fi/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}
|
styles/lightbox.min.pl_PL.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
#lightbox{position:absolute;left:0;width:100%;z-index:100;text-align:center;line-height:0}#jqlb_loading{height:32px;background-image:url('./images/loading.gif');background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;background-image:url('./images/closelabel.gif');background-repeat:no-repeat;background-position:center center}#lightbox a img{border:none}#outerImageContainer{position:relative;background-color:#fff;width:250px;height:250px;margin:0 auto}#imageContainer{padding:10px}#loading{position:absolute;top:40%;left:0;height:25%;width:100%;text-align:center;line-height:0}#hoverNav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}#imageContainer>#hoverNav{left:0}#hoverNav a{outline:none}#prevLink,#nextLink{width:49%;height:100%;background:transparent url('./images/blank.gif') no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url('./images/prev.gif') left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url('./images/next.gif') right 50% no-repeat}#nextLinkText,#prevLinkText{color:#ff9834;font-weight:bold;text-decoration:none}#nextLinkText{padding-left:20px}#prevLinkText{padding-right:20px}#downloadLink{margin-left:10px}.ontop #imageData{padding-top:5px}#imageDataContainer{font:10px Verdana,Helvetica,sans-serif;background-color:#fff;margin:0 auto;line-height:1.4em}#imageData{padding:0 10px}#imageData #imageDetails{width:70%;float:left;text-align:left}#imageData #caption{font-weight:bold}#imageData #numberDisplay{
|
2 |
#jqlb_closelabel{background-image:url('./images/pl_PL/closelabel.gif');}
|
1 |
+
#lightbox{position:absolute;left:0;width:100%;z-index:100;text-align:center;line-height:0}#jqlb_loading{height:32px;background-image:url('./images/loading.gif');background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;background-image:url('./images/closelabel.gif');background-repeat:no-repeat;background-position:center center}#lightbox a img{border:none}#outerImageContainer{position:relative;background-color:#fff;width:250px;height:250px;margin:0 auto}#imageContainer{padding:10px}#loading{position:absolute;top:40%;left:0;height:25%;width:100%;text-align:center;line-height:0}#hoverNav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}#imageContainer>#hoverNav{left:0}#hoverNav a{outline:none}#prevLink,#nextLink{width:49%;height:100%;background:transparent url('./images/blank.gif') no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url('./images/prev.gif') left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url('./images/next.gif') right 50% no-repeat}#nextLinkText,#prevLinkText{color:#ff9834;font-weight:bold;text-decoration:none}#nextLinkText{padding-left:20px}#prevLinkText{padding-right:20px}#downloadLink{margin-left:10px}.ontop #imageData{padding-top:5px}#imageDataContainer{font:10px Verdana,Helvetica,sans-serif;background-color:#fff;margin:0 auto;line-height:1.4em}#imageData{padding:0 10px}#imageData #imageDetails{width:70%;float:left;text-align:left}#imageData #caption{font-weight:bold}#imageData #numberDisplay{padding-bottom:1.0em}#downloadLink{display:none;}#playpause{}#controls{white-space:nowrap;}#imageData #bottomNavClose{width:66px;float:right;padding-bottom:.7em}#imageData #helpDisplay{clear:left;float:left;display:block}#overlay{position:absolute;top:0;left:0;z-index:90;width:100%;height:500px;background-color:#000;filter:alpha(opacity=60);-moz-opacity:.6;opacity:.6;display:none}.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}* html>body .clearfix{display:inline-block;width:100%}* html .clearfix{/*\*/height:1%;/**/}#lightboxIframe{display:none}
|
2 |
#jqlb_closelabel{background-image:url('./images/pl_PL/closelabel.gif');}
|
styles/lightbox.min.ru_RU.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#lightbox{position:absolute;left:0;width:100%;z-index:10100;text-align:center;line-height:0}#jqlb_loading{height:32px;background-image:url('./images/ru_RU/loading.gif');background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;background-image:url('./images/ru_RU/closelabel.gif');background-repeat:no-repeat;background-position:center center}#lightbox a img{border:none}#outerImageContainer{position:relative;background-color:#fff;width:250px;height:250px;margin:0 auto}#imageContainer{padding:10px}#loading{position:absolute;top:40%;left:0;height:25%;width:100%;text-align:center;line-height:0}#hoverNav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}#imageContainer>#hoverNav{left:0}#hoverNav a{outline:none}#prevLink,#nextLink{width:45%;height:100%;background:transparent url('./images/ru_RU/blank.gif') no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url('./images/ru_RU/prev.gif') left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url('./images/ru_RU/next.gif') right 50% no-repeat}#nextLinkText,#prevLinkText{color:#ff9834;font-weight:bold;text-decoration:none}#nextLinkText{padding-left:20px}#prevLinkText{padding-right:20px}.ontop #imageData{padding-top:5px}#imageDataContainer{font:10px Verdana,Helvetica,sans-serif;background-color:#fff;margin:0 auto;line-height:1.4em}#imageData{padding:0 10px}#imageData #imageDetails{width:70%;float:left;text-align:left}#imageData #caption{font-weight:bold}#imageData #numberDisplay{
|
1 |
+
#lightbox{position:absolute;left:0;width:100%;z-index:10100;text-align:center;line-height:0}#jqlb_loading{height:32px;background-image:url('./images/ru_RU/loading.gif');background-repeat:no-repeat;background-position:center center}#jqlb_closelabel{height:22px;background-image:url('./images/ru_RU/closelabel.gif');background-repeat:no-repeat;background-position:center center}#lightbox a img{border:none}#outerImageContainer{position:relative;background-color:#fff;width:250px;height:250px;margin:0 auto}#imageContainer{padding:10px}#loading{position:absolute;top:40%;left:0;height:25%;width:100%;text-align:center;line-height:0}#hoverNav{position:absolute;top:0;left:0;height:100%;width:100%;z-index:10}#imageContainer>#hoverNav{left:0}#hoverNav a{outline:none}#prevLink,#nextLink{width:45%;height:100%;background:transparent url('./images/ru_RU/blank.gif') no-repeat;display:block}#prevLink{left:0;float:left}#nextLink{right:0;float:right}#prevLink:hover,#prevLink:visited:hover{background:url('./images/ru_RU/prev.gif') left 50% no-repeat}#nextLink:hover,#nextLink:visited:hover{background:url('./images/ru_RU/next.gif') right 50% no-repeat}#nextLinkText,#prevLinkText{color:#ff9834;font-weight:bold;text-decoration:none}#nextLinkText{padding-left:20px}#prevLinkText{padding-right:20px}.ontop #imageData{padding-top:5px}#imageDataContainer{font:10px Verdana,Helvetica,sans-serif;background-color:#fff;margin:0 auto;line-height:1.4em}#imageData{padding:0 10px}#imageData #imageDetails{width:70%;float:left;text-align:left}#imageData #caption{font-weight:bold}#imageData #numberDisplay{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,11 +3,14 @@
|
|
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.
|
7 |
Author: Ulf Benjaminsson
|
8 |
Author URI: http://www.ulfben.com
|
|
|
9 |
*/
|
10 |
add_action( 'plugins_loaded', 'jqlb_init' );
|
|
|
|
|
11 |
function jqlb_init() {
|
12 |
if(!defined('ULFBEN_DONATE_URL')){
|
13 |
define('ULFBEN_DONATE_URL', 'http://www.amazon.com/gp/registry/wishlist/2QB6SQ5XX2U0N/105-3209188-5640446?reveal=unpurchased&filter=all&sort=priority&layout=standard&x=21&y=17');
|
@@ -17,6 +20,7 @@ function jqlb_init() {
|
|
17 |
//JQLB_STYLES_URL = plugin_dir_url(__FILE__).'styles/'
|
18 |
//JQLB_LANGUAGES_DIR = plugin_dir_path(__FILE__) . 'languages/'
|
19 |
define('JQLB_SCRIPT', 'jquery.lightbox.min.js');
|
|
|
20 |
load_plugin_textdomain('jqlb', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/');
|
21 |
//load_plugin_textdomain('jqlb', false, plugin_dir_path(__FILE__).'languages/');
|
22 |
add_action('admin_init', 'jqlb_register_settings');
|
@@ -25,12 +29,12 @@ function jqlb_init() {
|
|
25 |
add_action('wp_print_scripts', 'jqlb_js');
|
26 |
add_filter('plugin_row_meta', 'jqlb_set_plugin_meta', 2, 10);
|
27 |
add_filter('the_content', 'jqlb_autoexpand_rel_wlightbox', 99);
|
|
|
28 |
if(get_option('jqlb_comments') == 1){
|
29 |
remove_filter('pre_comment_content', 'wp_rel_nofollow');
|
30 |
add_filter('comment_text', 'jqlb_lightbox_comment', 99);
|
31 |
}
|
32 |
}
|
33 |
-
|
34 |
function jqlb_set_plugin_meta( $links, $file ) { // Add a link to this plugin's settings page
|
35 |
static $this_plugin;
|
36 |
if(!$this_plugin) $this_plugin = plugin_basename(__FILE__);
|
@@ -52,10 +56,9 @@ function jqlb_register_settings(){
|
|
52 |
register_setting( 'jqlb-settings-group', 'jqlb_navbarOnTop', 'jqlb_bool_intval');
|
53 |
register_setting( 'jqlb-settings-group', 'jqlb_margin_size', 'floatval');
|
54 |
register_setting( 'jqlb-settings-group', 'jqlb_resize_speed', 'jqlb_pos_intval');
|
|
|
55 |
register_setting( 'jqlb-settings-group', 'jqlb_help_text');
|
56 |
-
register_setting( 'jqlb-settings-group', 'jqlb_link_target');
|
57 |
-
|
58 |
-
//register_setting( 'jqlb-settings-group', 'jqlb_follow_scroll', 'jqlb_bool_intval');
|
59 |
add_option('jqlb_help_text', '');
|
60 |
add_option('jqlb_link_target', '_self');
|
61 |
add_option('jqlb_automate', 1); //default is to auto-lightbox.
|
@@ -64,7 +67,7 @@ function jqlb_register_settings(){
|
|
64 |
add_option('jqlb_show_download', 0);
|
65 |
add_option('jqlb_navbarOnTop', 0);
|
66 |
add_option('jqlb_resize_speed', 400);
|
67 |
-
|
68 |
}
|
69 |
function jqlb_register_menu_item() {
|
70 |
add_options_page('jQuery Lightbox Options', 'jQuery Lightbox', 'manage_options', 'jquery-lightbox-options', 'jqlb_options_panel');
|
@@ -83,36 +86,37 @@ function jqlb_css(){
|
|
83 |
if(is_admin() || is_feed()){return;}
|
84 |
$locale = jqlb_get_locale();
|
85 |
$fileName = "lightbox.min.{$locale}.css";
|
|
|
86 |
$path = plugin_dir_path(__FILE__)."styles/{$fileName}";
|
87 |
if(!is_readable($path)){
|
88 |
$fileName = 'lightbox.min.css';
|
89 |
}
|
90 |
-
wp_enqueue_style('jquery.lightbox.min.css', plugin_dir_url(__FILE__).'styles/'.$fileName, false, '1.
|
91 |
}
|
92 |
function jqlb_js() {
|
93 |
if(is_admin() || is_feed()){return;}
|
94 |
-
wp_enqueue_script('jquery', '', array(),
|
95 |
-
wp_enqueue_script('wp-jquery-lightbox', plugins_url(
|
|
|
96 |
wp_localize_script('wp-jquery-lightbox', 'JQLBSettings', array(
|
97 |
'fitToScreen' => get_option('jqlb_resize_on_demand'),
|
98 |
'resizeSpeed' => get_option('jqlb_resize_speed'),
|
99 |
'displayDownloadLink' => get_option('jqlb_show_download'),
|
100 |
-
'navbarOnTop' => get_option('jqlb_navbarOnTop'),
|
101 |
-
'loopImages' => get_option('jqlb_loopImages'),
|
102 |
'resizeCenter' => get_option('jqlb_resizeCenter'),
|
103 |
'marginSize' => get_option('jqlb_margin_size'),
|
104 |
'linkTarget' => get_option('jqlb_link_target'),
|
105 |
-
|
106 |
/* translation */
|
107 |
'help' => __(get_option('jqlb_help_text'), 'jqlb'),
|
108 |
'prevLinkTitle' => __('previous image', 'jqlb'),
|
109 |
-
'nextLinkTitle' => __('next image', 'jqlb'),
|
110 |
-
'prevLinkText' => __('« Previous', 'jqlb'),
|
111 |
-
'nextLinkText' => __('Next »', 'jqlb'),
|
112 |
'closeTitle' => __('close image gallery', 'jqlb'),
|
113 |
'image' => __('Image ', 'jqlb'),
|
114 |
'of' => __(' of ', 'jqlb'),
|
115 |
-
'download' => __('Download', 'jqlb')
|
|
|
|
|
116 |
));
|
117 |
}
|
118 |
|
@@ -143,12 +147,29 @@ function jqlb_apply_lightbox($content, $id = -1){
|
|
143 |
if there are already rel="lightbox[something]" attributes, they are not clobbered.
|
144 |
Michael Tyson, you are a regular expressions god! - http://atastypixel.com */
|
145 |
function jqlb_do_regexp($content, $id){
|
146 |
-
$id = esc_attr($id);
|
147 |
-
$pattern = "/(<a(?![^>]*?rel=['\"]lightbox.*)[^>]*?href=['\"][^'\"]+?\.(?:bmp|gif|jpg|jpeg|png)
|
148 |
$replacement = '$1 rel="lightbox['.$id.']">';
|
149 |
return preg_replace($pattern, $replacement, $content);
|
150 |
}
|
151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
function jqlb_bool_intval($v){
|
153 |
return $v == 1 ? '1' : '0';
|
154 |
}
|
@@ -231,6 +252,12 @@ _top: open the image in the full body of the window', 'jqlb') ?>"><?php _e('Targ
|
|
231 |
<label for="jqlb_resize_speed"><?php _e('Animation duration (in milliseconds) ', 'jqlb') ?></label>
|
232 |
</td>
|
233 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
<tr valign="baseline" colspan="2">
|
235 |
<td>
|
236 |
<input type="text" id="jqlb_help_text" name="jqlb_help_text" value="<?php echo get_option('jqlb_help_text'); ?>" size="30" />
|
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
|
10 |
*/
|
11 |
add_action( 'plugins_loaded', 'jqlb_init' );
|
12 |
+
global $jqlb_group;
|
13 |
+
$jqlb_group = -1;
|
14 |
function jqlb_init() {
|
15 |
if(!defined('ULFBEN_DONATE_URL')){
|
16 |
define('ULFBEN_DONATE_URL', 'http://www.amazon.com/gp/registry/wishlist/2QB6SQ5XX2U0N/105-3209188-5640446?reveal=unpurchased&filter=all&sort=priority&layout=standard&x=21&y=17');
|
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('jqlb', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/');
|
25 |
//load_plugin_textdomain('jqlb', false, plugin_dir_path(__FILE__).'languages/');
|
26 |
add_action('admin_init', 'jqlb_register_settings');
|
29 |
add_action('wp_print_scripts', 'jqlb_js');
|
30 |
add_filter('plugin_row_meta', 'jqlb_set_plugin_meta', 2, 10);
|
31 |
add_filter('the_content', 'jqlb_autoexpand_rel_wlightbox', 99);
|
32 |
+
add_filter('post_gallery', 'jqlb_filter_groups', 10, 2);
|
33 |
if(get_option('jqlb_comments') == 1){
|
34 |
remove_filter('pre_comment_content', 'wp_rel_nofollow');
|
35 |
add_filter('comment_text', 'jqlb_lightbox_comment', 99);
|
36 |
}
|
37 |
}
|
|
|
38 |
function jqlb_set_plugin_meta( $links, $file ) { // Add a link to this plugin's settings page
|
39 |
static $this_plugin;
|
40 |
if(!$this_plugin) $this_plugin = plugin_basename(__FILE__);
|
56 |
register_setting( 'jqlb-settings-group', 'jqlb_navbarOnTop', 'jqlb_bool_intval');
|
57 |
register_setting( 'jqlb-settings-group', 'jqlb_margin_size', 'floatval');
|
58 |
register_setting( 'jqlb-settings-group', 'jqlb_resize_speed', 'jqlb_pos_intval');
|
59 |
+
register_setting( 'jqlb-settings-group', 'jqlb_slideshow_speed', 'jqlb_pos_intval');
|
60 |
register_setting( 'jqlb-settings-group', 'jqlb_help_text');
|
61 |
+
register_setting( 'jqlb-settings-group', 'jqlb_link_target');
|
|
|
|
|
62 |
add_option('jqlb_help_text', '');
|
63 |
add_option('jqlb_link_target', '_self');
|
64 |
add_option('jqlb_automate', 1); //default is to auto-lightbox.
|
67 |
add_option('jqlb_show_download', 0);
|
68 |
add_option('jqlb_navbarOnTop', 0);
|
69 |
add_option('jqlb_resize_speed', 400);
|
70 |
+
add_option('jqlb_slideshow_speed', 4000);
|
71 |
}
|
72 |
function jqlb_register_menu_item() {
|
73 |
add_options_page('jQuery Lightbox Options', 'jQuery Lightbox', 'manage_options', 'jquery-lightbox-options', 'jqlb_options_panel');
|
86 |
if(is_admin() || is_feed()){return;}
|
87 |
$locale = jqlb_get_locale();
|
88 |
$fileName = "lightbox.min.{$locale}.css";
|
89 |
+
//$fileName = "lightbox.css";
|
90 |
$path = plugin_dir_path(__FILE__)."styles/{$fileName}";
|
91 |
if(!is_readable($path)){
|
92 |
$fileName = 'lightbox.min.css';
|
93 |
}
|
94 |
+
wp_enqueue_style('jquery.lightbox.min.css', plugin_dir_url(__FILE__).'styles/'.$fileName, false, '1.4');
|
95 |
}
|
96 |
function jqlb_js() {
|
97 |
if(is_admin() || is_feed()){return;}
|
98 |
+
wp_enqueue_script('jquery', '', array(), null, true);
|
99 |
+
wp_enqueue_script('wp-jquery-lightbox-swipe', plugins_url(JQLB_TOUCH_SCRIPT, __FILE__), Array('jquery'), '1.4', true);
|
100 |
+
wp_enqueue_script('wp-jquery-lightbox', plugins_url(JQLB_SCRIPT, __FILE__), Array('jquery'), '1.4', true);
|
101 |
wp_localize_script('wp-jquery-lightbox', 'JQLBSettings', array(
|
102 |
'fitToScreen' => get_option('jqlb_resize_on_demand'),
|
103 |
'resizeSpeed' => get_option('jqlb_resize_speed'),
|
104 |
'displayDownloadLink' => get_option('jqlb_show_download'),
|
105 |
+
'navbarOnTop' => get_option('jqlb_navbarOnTop'),
|
|
|
106 |
'resizeCenter' => get_option('jqlb_resizeCenter'),
|
107 |
'marginSize' => get_option('jqlb_margin_size'),
|
108 |
'linkTarget' => get_option('jqlb_link_target'),
|
109 |
+
'slideshowSpeed' => get_option('jqlb_slideshow_speed'),
|
110 |
/* translation */
|
111 |
'help' => __(get_option('jqlb_help_text'), 'jqlb'),
|
112 |
'prevLinkTitle' => __('previous image', 'jqlb'),
|
113 |
+
'nextLinkTitle' => __('next image', 'jqlb'),
|
|
|
|
|
114 |
'closeTitle' => __('close image gallery', 'jqlb'),
|
115 |
'image' => __('Image ', 'jqlb'),
|
116 |
'of' => __(' of ', 'jqlb'),
|
117 |
+
'download' => __('Download', 'jqlb'),
|
118 |
+
'pause' => __('(pause slideshow)', 'jqlb'),
|
119 |
+
'play' => __('(play slideshow)', 'jqlb')
|
120 |
));
|
121 |
}
|
122 |
|
147 |
if there are already rel="lightbox[something]" attributes, they are not clobbered.
|
148 |
Michael Tyson, you are a regular expressions god! - http://atastypixel.com */
|
149 |
function jqlb_do_regexp($content, $id){
|
150 |
+
$id = esc_attr($id);
|
151 |
+
$pattern = "/(<a(?![^>]*?rel=['\"]lightbox.*)[^>]*?href=['\"][^'\"]+?\.(?:bmp|gif|jpg|jpeg|png)(\?\S{0,}){0,1}['\"][^\>]*)>/i";
|
152 |
$replacement = '$1 rel="lightbox['.$id.']">';
|
153 |
return preg_replace($pattern, $replacement, $content);
|
154 |
}
|
155 |
|
156 |
+
function jqlb_filter_groups($html, $attr) {//runs on the post_gallery filter.
|
157 |
+
global $jqlb_group;
|
158 |
+
if(empty($attr['group'])){
|
159 |
+
$jqlb_group = -1;
|
160 |
+
remove_filter('wp_get_attachment_link','jqlb_lightbox_gallery_links',10,1);
|
161 |
+
}else{
|
162 |
+
$jqlb_group = $attr['group'];
|
163 |
+
add_filter('wp_get_attachment_link','jqlb_lightbox_gallery_links',10,1);
|
164 |
+
}
|
165 |
+
return '';
|
166 |
+
}
|
167 |
+
function jqlb_lightbox_gallery_links($html){ //honors our custom group-attribute of the gallery shortcode.
|
168 |
+
global $jqlb_group;
|
169 |
+
if(!isset($jqlb_group) || $jqlb_group == -1){return $html;}
|
170 |
+
return str_replace('<a','<a rel="lightbox['.$jqlb_group.']"', $html);
|
171 |
+
}
|
172 |
+
|
173 |
function jqlb_bool_intval($v){
|
174 |
return $v == 1 ? '1' : '0';
|
175 |
}
|
252 |
<label for="jqlb_resize_speed"><?php _e('Animation duration (in milliseconds) ', 'jqlb') ?></label>
|
253 |
</td>
|
254 |
</tr>
|
255 |
+
<tr valign="baseline" colspan="2">
|
256 |
+
<td colspan="2">
|
257 |
+
<input type="text" id="jqlb_slideshow_speed" name="jqlb_slideshow_speed" value="<?php echo intval(get_option('jqlb_slideshow_speed')) ?>" size="3" />
|
258 |
+
<label for="jqlb_slideshow_speed"><?php _e('Slideshow speed (in milliseconds). 0 to disable.', 'jqlb') ?></label>
|
259 |
+
</td>
|
260 |
+
</tr>
|
261 |
<tr valign="baseline" colspan="2">
|
262 |
<td>
|
263 |
<input type="text" id="jqlb_help_text" name="jqlb_help_text" value="<?php echo get_option('jqlb_help_text'); ?>" size="30" />
|