WP jQuery Lightbox - Version 1.4.5

Version Description

(2013-06-09) = * Fit to screen edge on low rez displays (<500px) * Added global setting to hide title & caption * Reduced the amount of code running for each image shown * Updated German translation (thanks Niko23) * Fix: swipe direction * Fix: slideshow now waits for images to display before starting timer. * Fix: support for latest jQuery * Fix: WordPress encoding wrong quote mark in captions, causing duplicate texts to display.

Download this release

Release Info

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

Code changes from version 1.4.1 to 1.4.5

about.php CHANGED
@@ -12,7 +12,6 @@ $author_site = 'http://www.ulfben.com/';
12
  $author_profile = 'http://profiles.wordpress.org/users/ulfben/';
13
  ?>
14
  <script type="text/javascript">
15
- /* <![CDATA[ */
16
  (function() {
17
  var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
18
  s.type = 'text/javascript';
@@ -20,7 +19,6 @@ $author_profile = 'http://profiles.wordpress.org/users/ulfben/';
20
  s.src = '<?php echo $flattr_api; ?>';
21
  t.parentNode.insertBefore(s, t);
22
  })();
23
- /* ]]> */
24
  </script>
25
  <style type="text/css">
26
  #about{ float: right; width:350px; background: #ffc; border: 1px solid #333; padding: 5px; text-align: justify; font-family:verdana; font-size:11px; }
12
  $author_profile = 'http://profiles.wordpress.org/users/ulfben/';
13
  ?>
14
  <script type="text/javascript">
 
15
  (function() {
16
  var s = document.createElement('script'), t = document.getElementsByTagName('script')[0];
17
  s.type = 'text/javascript';
19
  s.src = '<?php echo $flattr_api; ?>';
20
  t.parentNode.insertBefore(s, t);
21
  })();
 
22
  </script>
23
  <style type="text/css">
24
  #about{ float: right; width:350px; background: #ffc; border: 1px solid #333; padding: 5px; text-align: justify; font-family:verdana; font-size:11px; }
jquery.lightbox.js CHANGED
@@ -1,11 +1,13 @@
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-
7
  * plugin (http://wordpress.org/extend/plugins/wp-jquery-lightbox/)
8
  * Modifications include:
 
 
9
  * . added "support" for WordPress admin bar.
10
  * . improved the resizing code to respect aspect ratio
11
  * . improved scaling routines to maximize images while taking captions into account
@@ -34,7 +36,22 @@
34
  **/
35
  /** toyNN: davidtg@comtrya.com: fixed IE7-8 incompatabilities in 1.3.* branch **/
36
  (function($){
37
- $.fn.lightbox = function(options) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  var opts = $.extend({}, $.fn.lightbox.defaults, options);
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.
@@ -44,7 +61,7 @@
44
  start(this);
45
  return false;
46
  }
47
- if(parseFloat($().jquery) >= 1.7){
48
  return $(this).on("click", onClick);
49
  }else{
50
  return $(this).live("click", onClick); //deprecated since 1.7
@@ -82,7 +99,7 @@
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) {
@@ -174,7 +191,7 @@
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
@@ -207,6 +224,7 @@
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) {
@@ -215,24 +233,25 @@
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();
226
- $('#nextLink').hide();
227
- doChangeImage();
228
- }
 
229
  };
230
  function doChangeImage() {
231
  opts.imgPreloader = new Image();
232
  opts.imgPreloader.onload = function () {
233
  $('#lightboxImage').attr('src', opts.imageArray[opts.activeImage][0]);
234
  doScale(); // once image is preloaded, resize image container
235
- preloadNeighborImages();
236
  };
237
  opts.imgPreloader.src = opts.imageArray[opts.activeImage][0];
238
  };
@@ -250,7 +269,11 @@
250
  if (opts.fitToScreen){
251
  var displayHeight = maxHeight-opts.marginSize;
252
  var displayWidth = maxWidth-opts.marginSize;
253
- var ratio = 1;
 
 
 
 
254
  if (newHeight > displayHeight) {
255
  ratio = displayHeight / newHeight; //ex. 600/1024 = 0.58
256
  }
@@ -274,7 +297,7 @@
274
  function resizeImageContainer(imgWidth, imgHeight, lightboxTop, lightboxLeft) {
275
  opts.widthCurrent = $("#outerImageContainer").outerWidth();
276
  opts.heightCurrent = $("#outerImageContainer").outerHeight();
277
- var widthNew = Math.max(350, imgWidth + (opts.borderSize * 2));
278
  var heightNew = (imgHeight + (opts.borderSize * 2));
279
  // scalars based on change from old to new
280
  opts.xScale = (widthNew / opts.widthCurrent) * 100;
@@ -285,7 +308,11 @@
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() {
@@ -294,13 +321,24 @@
294
  $('#caption').show();
295
  $('#jqlb_loading').hide();
296
  if (opts.resizeSpeed > 0) {
297
- $('#lightboxImage').fadeIn("fast");
 
 
298
  } else {
299
  $('#lightboxImage').show();
 
300
  }
301
  opts.inprogress = false;
302
  };
303
 
 
 
 
 
 
 
 
 
304
  function preloadNeighborImages() {
305
  if (opts.imageArray.length > 1) {
306
  preloadNextImage = new Image();
@@ -326,10 +364,10 @@
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>';
@@ -342,44 +380,43 @@
342
  }
343
  if(pos != ''){
344
  $('#numberDisplay').html(pos).show();
345
- }
346
- if(opts.slidehowSpeed){
347
- $("#numberDisplay").unbind('click').click(function() {
348
- if(opts.auto != -1){
349
- $(this).children("a").text(txt.play);
350
- clearInterval(opts.auto);
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();
@@ -401,15 +438,17 @@
401
  }
402
  return false;
403
  };
 
404
  function enableKeyboardNav() {
405
- $(document).bind('keydown', {opts: opts}, keyboardAction);
406
  };
407
  function disableKeyboardNav() {
408
  $(document).unbind('keydown');
409
  };
410
  };
411
  $.fn.lightbox.defaults = {
412
- adminBarHeight:28,
 
413
  overlayOpacity: 0.8,
414
  borderSize: 10,
415
  imageArray: new Array,
@@ -453,6 +492,7 @@ function doLightBox(){
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,
1
  /**
2
  * WP jQuery Lightbox
3
+ * Version 1.4.5 - 2013-06-09
4
  * @author Ulf Benjaminsson (http://www.ulfben.com)
5
  *
6
  * This is a modified version of Warren Krevenkis Lightbox-port (see notice below) for use in the WP jQuery Lightbox-
7
  * plugin (http://wordpress.org/extend/plugins/wp-jquery-lightbox/)
8
  * Modifications include:
9
+ * . added slideshow
10
+ * . added swipe-support
11
  * . added "support" for WordPress admin bar.
12
  * . improved the resizing code to respect aspect ratio
13
  * . improved scaling routines to maximize images while taking captions into account
36
  **/
37
  /** toyNN: davidtg@comtrya.com: fixed IE7-8 incompatabilities in 1.3.* branch **/
38
  (function($){
39
+ //http://stackoverflow.com/a/16187766/347764
40
+ function versionCompare(a, b){
41
+ var i, l, d;
42
+ a = a.split('.');
43
+ b = b.split('.');
44
+ l = Math.min(a.length, b.length);
45
+ for (i=0; i<l; i++) {
46
+ d = parseInt(a[i], 10) - parseInt(b[i], 10);
47
+ if (d !== 0) {
48
+ return d;
49
+ }
50
+ }
51
+ return a.length - b.length;
52
+ }
53
+
54
+ $.fn.lightbox = function(options) {
55
  var opts = $.extend({}, $.fn.lightbox.defaults, options);
56
  if($("#overlay").is(':visible')){//to resize the overlay whenever doLightbox is invoked
57
  $(window).trigger('resize'); //we need this to deal with InfiniteScroll and similar.
61
  start(this);
62
  return false;
63
  }
64
+ if(versionCompare($.fn.jquery, '1.7') > 0){
65
  return $(this).on("click", onClick);
66
  }else{
67
  return $(this).live("click", onClick); //deprecated since 1.7
99
  if (!opts.imageClickClose) {
100
  $("#lightboxImage").click(function () { return false; });
101
  $("#hoverNav").click(function () { return false; });
102
+ }
103
  };
104
  //allow image to reposition & scale if orientation change or resize occurs.
105
  function resizeListener(e) {
191
  captionText = jqThis.next('.wp-caption-text').text();
192
  }
193
  title = $.trim(title);
194
+ captionText = $.trim(captionText).replace('&#8217;', '&#039;').replace('’', '\''); //http://nickjohnson.com/b/wordpress-apostrophe-vs-right-single-quote
195
  if (title.toLowerCase() == captionText.toLowerCase()) {
196
  title = caption; //to keep linked captions
197
  caption = ''; //but not duplicate the text
224
  opts.imageArray = images;
225
  setLightBoxPos(arrayPagePos[1], arrayPagePos[0]).show();// calculate top and left offset for the lightbox
226
  changeImage(imageNum);
227
+ setNav();
228
  };
229
  function setLightBoxPos(newTop, newLeft) {
230
  if (opts.resizeSpeed > 0) {
233
  return $('#lightbox').css({ top: newTop + 'px', left: newLeft + 'px' });
234
  }
235
  function changeImage(imageNum) {
236
+ if (opts.inprogress != false) {
237
+ return;
238
+ }
239
+ opts.inprogress = true;
240
+ opts.activeImage = imageNum;
241
+ // hide elements during transition
242
+ $('#jqlb_loading').show();
243
+ $('#lightboxImage').hide();
244
+ $('#hoverNav').hide();
245
+ $('#prevLink').hide();
246
+ $('#nextLink').hide();
247
+ doChangeImage();
248
  };
249
  function doChangeImage() {
250
  opts.imgPreloader = new Image();
251
  opts.imgPreloader.onload = function () {
252
  $('#lightboxImage').attr('src', opts.imageArray[opts.activeImage][0]);
253
  doScale(); // once image is preloaded, resize image container
254
+ preloadNeighborImages();
255
  };
256
  opts.imgPreloader.src = opts.imageArray[opts.activeImage][0];
257
  };
269
  if (opts.fitToScreen){
270
  var displayHeight = maxHeight-opts.marginSize;
271
  var displayWidth = maxWidth-opts.marginSize;
272
+ if($(window).width() > 500){ //high rez display
273
+ displayHeight -= opts.marginSize;
274
+ displayWidth -= opts.marginSize;
275
+ }
276
+ var ratio = 1;
277
  if (newHeight > displayHeight) {
278
  ratio = displayHeight / newHeight; //ex. 600/1024 = 0.58
279
  }
297
  function resizeImageContainer(imgWidth, imgHeight, lightboxTop, lightboxLeft) {
298
  opts.widthCurrent = $("#outerImageContainer").outerWidth();
299
  opts.heightCurrent = $("#outerImageContainer").outerHeight();
300
+ var widthNew = Math.max(300, imgWidth + (opts.borderSize * 2)); //300 = iphone. http://wordpress.org/support/topic/image-not-resized-correctly-with-wptouch?replies=6#post-4205735
301
  var heightNew = (imgHeight + (opts.borderSize * 2));
302
  // scalars based on change from old to new
303
  opts.xScale = (widthNew / opts.widthCurrent) * 100;
308
  $('#outerImageContainer').animate({width:widthNew,height:heightNew}, opts.resizeSpeed, 'linear', function () {
309
  showImage();
310
  });
311
+ if (opts.imageArray.length > 1) {
312
+ $('#hoverNav').show();
313
+ $('#prevLink').show();
314
+ $('#nextLink').show();
315
+ }
316
  $('#prevLink,#nextLink').height(imgHeight);
317
  };
318
  function showImage() {
321
  $('#caption').show();
322
  $('#jqlb_loading').hide();
323
  if (opts.resizeSpeed > 0) {
324
+ $('#lightboxImage').fadeIn("fast", function(){
325
+ onImageVisible();
326
+ });
327
  } else {
328
  $('#lightboxImage').show();
329
+ onImageVisible();
330
  }
331
  opts.inprogress = false;
332
  };
333
 
334
+ function onImageVisible(){
335
+ if(opts.auto != -1){
336
+ clearTimeout(opts.auto); //in case we came here after mouse/keyboard interaction
337
+ opts.auto = setTimeout(function(){changeImage((opts.activeImage == (opts.imageArray.length - 1)) ? 0 : opts.activeImage + 1);}, opts.slidehowSpeed);
338
+ }
339
+ enableKeyboardNav();
340
+ }
341
+
342
  function preloadNeighborImages() {
343
  if (opts.imageArray.length > 1) {
344
  preloadNextImage = new Image();
364
  var txt = opts.strings;
365
  var i = opts.activeImage;
366
  var downloadIndex = images[i][2];
367
+ if (images[i][1] && opts.showInfo) {
368
  $('#caption').html(images[i][1]).show();
369
  }
370
+ var pos = (images.length > 1 && opts.showInfo) ? txt.image + (i + 1) + txt.of + images.length : '';
371
  if(opts.slidehowSpeed && images.length > 1){
372
  var pp = (opts.auto === -1) ? txt.play : txt.pause;
373
  pos += ' <a id="playpause" href="#">' + pp + '</a>';
380
  }
381
  if(pos != ''){
382
  $('#numberDisplay').html(pos).show();
383
+ }
384
+ };
385
+ function setNav() {
386
+ if (opts.imageArray.length > 1) {
387
+ $('#prevLink').click(function () {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
388
  changeImage((opts.activeImage == 0) ? (opts.imageArray.length - 1) : opts.activeImage - 1); return false;
389
  });
390
+ $('#nextLink').click(function () {
391
  changeImage((opts.activeImage == (opts.imageArray.length - 1)) ? 0 : opts.activeImage + 1); return false;
392
  });
393
  if($.fn.touchwipe){
394
  $('#imageContainer').touchwipe({
395
+ wipeLeft: function() { changeImage((opts.activeImage == (opts.imageArray.length - 1)) ? 0 : opts.activeImage + 1); },
396
+ wipeRight: function() { changeImage((opts.activeImage == 0) ? (opts.imageArray.length - 1) : opts.activeImage - 1); },
397
+ min_move_x: 20,
398
+ preventDefaultEvents: true
399
  });
400
  }
401
+ if(opts.slidehowSpeed){
402
+ $("#numberDisplay").unbind('click').click(function() {
403
+ if(opts.auto != -1){
404
+ $(this).children("a").text(opts.strings.play);
405
+ clearTimeout(opts.auto);
406
+ opts.auto = -1;
407
+ }else{
408
+ $(this).children("a").text(opts.strings.pause);
409
+ opts.auto = setTimeout(function(){changeImage((opts.activeImage == (opts.imageArray.length - 1)) ? 0 : opts.activeImage + 1);}, opts.slidehowSpeed);
410
+ }
411
+ return false;
412
+ });
413
+ }
414
  enableKeyboardNav();
415
  }
416
  };
417
  function end() {
418
  disableKeyboardNav();
419
+ clearTimeout(opts.auto);
420
  opts.auto = -1;
421
  $('#lightbox').hide();
422
  $('#overlay').fadeOut();
438
  }
439
  return false;
440
  };
441
+
442
  function enableKeyboardNav() {
443
+ $(document).unbind('keydown').bind('keydown', {opts: opts}, keyboardAction);
444
  };
445
  function disableKeyboardNav() {
446
  $(document).unbind('keydown');
447
  };
448
  };
449
  $.fn.lightbox.defaults = {
450
+ showInfo:false,
451
+ adminBarHeight:0, //28
452
  overlayOpacity: 0.8,
453
  borderSize: 10,
454
  imageArray: new Array,
492
  jQuery('a[rel^="lightbox"]').lightbox({
493
  adminBarHeight: jQuery('#wpadminbar').height() || 0,
494
  linkTarget: (haveConf && JQLBSettings.linkTarget.length) ? JQLBSettings.linkTarget : '_self',
495
+ showInfo: (haveConf && JQLBSettings.showInfo == '0') ? false : true,
496
  displayHelp: (haveConf && JQLBSettings.help.length) ? true : false,
497
  marginSize: (haveConf && ms) ? ms : 0,
498
  fitToScreen: (haveConf && JQLBSettings.fitToScreen == '1') ? true : false,
jquery.lightbox.min.js CHANGED
@@ -1 +1 @@
1
- (function(a){a.fn.lightbox=function(k){var u=a.extend({},a.fn.lightbox.defaults,k);if(a("#overlay").is(":visible")){a(window).trigger("resize")}function p(){e();o(this);return false}if(parseFloat(a().jquery)>=1.7){return a(this).on("click",p)}else{return a(this).live("click",p)}function e(){a(window).bind("orientationchange",q);a(window).bind("resize",q);a("#overlay").remove();a("#lightbox").remove();u.isIE8=v();u.inprogress=false;u.auto=-1;var A=u.strings;var z='<div id="outerImageContainer"><div id="imageContainer"><iframe id="lightboxIframe" /><img id="lightboxImage"><div id="hoverNav"><a href="javascript://" title="'+A.prevLinkTitle+'" id="prevLink"></a><a href="javascript://" id="nextLink" title="'+A.nextLinkTitle+'"></a></div><div id="jqlb_loading"><a href="javascript://" id="loadingLink"><div id="jqlb_spinner"></div></a></div></div></div>';var C='<div id="imageDataContainer" class="clearfix"><div id="imageData"><div id="imageDetails"><span id="caption"></span><p id="controls"><span id="numberDisplay"></span> <span id="downloadLink"><a href="" target="'+u.linkTarget+'">'+A.download+'</a></span></p></div><div id="bottomNav">';if(u.displayHelp){C+='<span id="helpDisplay">'+A.help+"</span>"}C+='<a href="javascript://" id="bottomNavClose" title="'+A.closeTitle+'"><div id="jqlb_closelabel"></div></a></div></div></div>';var B;if(u.navbarOnTop){B='<div id="overlay"></div><div id="lightbox">'+C+z+"</div>";a("body").append(B);a("#imageDataContainer").addClass("ontop")}else{B='<div id="overlay"></div><div id="lightbox">'+z+C+"</div>";a("body").append(B)}a("#overlay").click(function(){h()}).hide();a("#lightbox").click(function(){h()}).hide();a("#loadingLink").click(function(){h();return false});a("#bottomNavClose").click(function(){h();return false});a("#outerImageContainer").width(u.widthCurrent).height(u.heightCurrent);a("#imageDataContainer").width(u.widthCurrent);if(!u.imageClickClose){a("#lightboxImage").click(function(){return false});a("#hoverNav").click(function(){return false})}}function q(z){if(u.resizeTimeout){clearTimeout(u.resizeTimeout);u.resizeTimeout=false}u.resizeTimeout=setTimeout(function(){y()},50)}function x(){var A=a(document).height();if(u.isIE8&&A>4096){A=4096}var z=a(window).height()-u.adminBarHeight;return new Array(a(document).width(),A,a(window).width(),z,a(document).height())}function v(){var A=false;if(document.createElement){var z=document.createElement("div");if(z&&z.querySelectorAll){z.innerHTML='<object><param name=""></object>';A=z.querySelectorAll("param").length!=1}z=null}return A}function g(){var A=0;var z=0;if(self.pageYOffset){z=self.pageYOffset;A=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){z=document.documentElement.scrollTop;A=document.documentElement.scrollLeft}else{if(document.body){z=document.body.scrollTop;A=document.body.scrollLeft}}}if(u.adminBarHeight&&parseInt(a("#wpadminbar").css("top"),10)===0){z+=u.adminBarHeight}return new Array(A,z)}function o(E){var D=x();var A=g();var B=0;a("#overlay").hide().css({width:D[0]+"px",height:D[1]+"px",opacity:u.overlayOpacity}).fadeIn(400);if(u.isIE8&&D[1]==4096){if(A[1]>=1000){B=A[1]-1000;if((D[4]-(A[1]+3096))<0){B-=(A[1]+3096)-D[4]}a("#overlay").css({top:B+"px"})}}var C=0;var z=[];u.downloads={};a("a").each(function(){if(!this.href||(this.rel!=E.rel)){return}var J="";var G="";var L="";var F=a(this);var I=F.children("img:first-child");if(this.title){J=this.title}else{if(I.attr("title")){J=I.attr("title")}else{if(I.attr("alt")){J=I.attr("alt")}}}if(F.parent().next(".gallery-caption").html()){var K=F.parent().next(".gallery-caption");G=K.html();L=K.text()}else{if(F.next(".wp-caption-text").html()){G=F.next(".wp-caption-text").html();L=F.next(".wp-caption-text").text()}}J=a.trim(J);L=a.trim(L);if(J.toLowerCase()==L.toLowerCase()){J=G;G=""}var H="";if(J!=""){H='<span id="titleText">'+J+"</span>"}if(G!=""){if(J!=""){H+="<br />"}H+='<span id="captionText">'+G+"</span>"}if(u.displayDownloadLink||F.attr("data-download")){u.downloads[z.length]=F.attr("data-download")}z.push(new Array(this.href,u.displayTitle?H:"",z.length))});if(z.length>1){for(i=0;i<z.length;i++){for(j=z.length-1;j>i;j--){if(z[i][0]==z[j][0]){z.splice(j,1)}}}while(z[C][0]!=E.href){C++}}u.imageArray=z;m(A[1],A[0]).show();w(C)}function m(z,A){if(u.resizeSpeed>0){return a("#lightbox").animate({top:z+"px",left:A+"px"},250,"linear")}return a("#lightbox").css({top:z+"px",left:A+"px"})}function w(z){if(u.inprogress==false){u.inprogress=true;u.activeImage=z;a("#jqlb_loading").show();a("#lightboxImage").hide();a("#hoverNav").hide();a("#prevLink").hide();a("#nextLink").hide();l()}}function l(){u.imgPreloader=new Image();u.imgPreloader.onload=function(){a("#lightboxImage").attr("src",u.imageArray[u.activeImage][0]);y();f()};u.imgPreloader.src=u.imageArray[u.activeImage][0]}function y(){if(!u.imgPreloader){return}var C=u.imgPreloader.width;var z=u.imgPreloader.height;var E=x();var K=(E[2]<E[0])?E[0]:E[2];a("#overlay").css({width:K+"px",height:E[1]+"px"});var I=(E[3])-(a("#imageDataContainer").height()+(2*u.borderSize));var J=(E[2])-(2*u.borderSize);if(u.fitToScreen){var A=I-u.marginSize;var L=J-u.marginSize;var F=1;if(z>A){F=A/z}C=C*F;z=z*F;F=1;if(C>L){F=L/C}C=Math.round(C*F);z=Math.round(z*F)}var D=g();var B=D[1]+(I*0.5);var G=B-z*0.5;var H=D[0];a("#lightboxImage").width(C).height(z);n(C,z,G,H)}function n(C,A,E,D){u.widthCurrent=a("#outerImageContainer").outerWidth();u.heightCurrent=a("#outerImageContainer").outerHeight();var z=Math.max(350,C+(u.borderSize*2));var B=(A+(u.borderSize*2));u.xScale=(z/u.widthCurrent)*100;u.yScale=(B/u.heightCurrent)*100;m(E,D);c();a("#imageDataContainer").animate({width:z},u.resizeSpeed,"linear");a("#outerImageContainer").animate({width:z,height:B},u.resizeSpeed,"linear",function(){d()});s();a("#prevLink,#nextLink").height(A)}function d(){a("#imageData").show();a("#caption").show();a("#jqlb_loading").hide();if(u.resizeSpeed>0){a("#lightboxImage").fadeIn("fast")}else{a("#lightboxImage").show()}u.inprogress=false}function f(){if(u.imageArray.length>1){preloadNextImage=new Image();preloadNextImage.src=u.imageArray[(u.activeImage==(u.imageArray.length-1))?0:u.activeImage+1][0];preloadPrevImage=new Image();preloadPrevImage.src=u.imageArray[(u.activeImage==0)?(u.imageArray.length-1):u.activeImage-1][0]}else{if((u.imageArray.length-1)>u.activeImage){preloadNextImage=new Image();preloadNextImage.src=u.imageArray[u.activeImage+1][0]}if(u.activeImage>0){preloadPrevImage=new Image();preloadPrevImage.src=u.imageArray[u.activeImage-1][0]}}}function c(){a("#numberDisplay").html("");a("#caption").html("").hide();var A=u.imageArray;var z=u.strings;var E=u.activeImage;var D=A[E][2];if(A[E][1]){a("#caption").html(A[E][1]).show()}var F=(A.length>1)?z.image+(E+1)+z.of+A.length:"";if(u.slidehowSpeed&&A.length>1){var B=(u.auto===-1)?z.play:z.pause;F+=' <a id="playpause" href="#">'+B+"</a>"}if(u.displayDownloadLink||u.downloads[D]){var C=u.downloads[D]?u.downloads[D]:A[E][0];a("#downloadLink").show().children().attr("href",C)}else{a("#downloadLink").hide()}if(F!=""){a("#numberDisplay").html(F).show()}if(u.slidehowSpeed){a("#numberDisplay").unbind("click").click(function(){if(u.auto!=-1){a(this).children("a").text(z.play);clearInterval(u.auto);u.auto=-1}else{a(this).children("a").text(z.pause);u.auto=setInterval(function(){w((u.activeImage==(u.imageArray.length-1))?0:u.activeImage+1)},u.slidehowSpeed)}return false})}}function s(){if(u.imageArray.length>1){a("#hoverNav").show();a("#prevLink").show().click(function(){w((u.activeImage==0)?(u.imageArray.length-1):u.activeImage-1);return false});a("#nextLink").show().click(function(){w((u.activeImage==(u.imageArray.length-1))?0:u.activeImage+1);return false});if(a.fn.touchwipe){a("#imageContainer").touchwipe({wipeLeft:function(){w((u.activeImage==0)?(u.imageArray.length-1):u.activeImage-1)},wipeRight:function(){w((u.activeImage==(u.imageArray.length-1))?0:u.activeImage+1)},min_move_x:20,preventDefaultEvents:true})}b()}}function h(){r();clearInterval(u.auto);u.auto=-1;a("#lightbox").hide();a("#overlay").fadeOut()}function t(C){var D=C.data.opts;var z=C.keyCode;var A=27;var B=String.fromCharCode(z).toLowerCase();if((B=="x")||(B=="o")||(B=="c")||(z==A)){h()}else{if((B=="p")||(z==37)){r();w((D.activeImage==0)?(D.imageArray.length-1):D.activeImage-1)}else{if((B=="n")||(z==39)){r();w((D.activeImage==(D.imageArray.length-1))?0:D.activeImage+1)}}}return false}function b(){a(document).bind("keydown",{opts:u},t)}function r(){a(document).unbind("keydown")}};a.fn.lightbox.defaults={adminBarHeight:28,overlayOpacity:0.8,borderSize:10,imageArray:new Array,activeImage:null,inprogress:false,widthCurrent:250,heightCurrent:250,xScale:1,yScale:1,displayTitle:true,imageClickClose:true,followScroll:false,isIE8:false};a(document).ready(doLightBox)})(jQuery);function doLightBox(){var a=(typeof JQLBSettings=="object");var d,b,c=0;if(a&&JQLBSettings.slideshowSpeed){d=parseInt(JQLBSettings.slideshowSpeed)}if(a&&JQLBSettings.resizeSpeed){b=parseInt(JQLBSettings.resizeSpeed)}if(a&&JQLBSettings.marginSize){c=parseInt(JQLBSettings.marginSize)}var e={help:" Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close.",prevLinkTitle:"previous image",nextLinkTitle:"next image",closeTitle:"close image gallery",image:"Image ",of:" of ",download:"Download",pause:"(pause slideshow)",play:"(play slideshow)"};jQuery('a[rel^="lightbox"]').lightbox({adminBarHeight:jQuery("#wpadminbar").height()||0,linkTarget:(a&&JQLBSettings.linkTarget.length)?JQLBSettings.linkTarget:"_self",displayHelp:(a&&JQLBSettings.help.length)?true:false,marginSize:(a&&c)?c:0,fitToScreen:(a&&JQLBSettings.fitToScreen=="1")?true:false,resizeSpeed:(a&&b>=0)?b:400,slidehowSpeed:(a&&d>=0)?d:4000,displayDownloadLink:(a&&JQLBSettings.displayDownloadLink=="0")?false:true,navbarOnTop:(a&&JQLBSettings.navbarOnTop=="0")?false:true,strings:(a&&typeof JQLBSettings.help=="string")?JQLBSettings:e})};
1
+ (function(a){function b(f,c){var g,e,h;f=f.split(".");c=c.split(".");e=Math.min(f.length,c.length);for(g=0;g<e;g++){h=parseInt(f[g],10)-parseInt(c[g],10);if(h!==0){return h}}return f.length-c.length}a.fn.lightbox=function(l){var w=a.extend({},a.fn.lightbox.defaults,l);if(a("#overlay").is(":visible")){a(window).trigger("resize")}function r(){f();q(this);return false}if(b(a.fn.jquery,"1.7")>0){return a(this).on("click",r)}else{return a(this).live("click",r)}function f(){a(window).bind("orientationchange",s);a(window).bind("resize",s);a("#overlay").remove();a("#lightbox").remove();w.isIE8=x();w.inprogress=false;w.auto=-1;var C=w.strings;var B='<div id="outerImageContainer"><div id="imageContainer"><iframe id="lightboxIframe" /><img id="lightboxImage"><div id="hoverNav"><a href="javascript://" title="'+C.prevLinkTitle+'" id="prevLink"></a><a href="javascript://" id="nextLink" title="'+C.nextLinkTitle+'"></a></div><div id="jqlb_loading"><a href="javascript://" id="loadingLink"><div id="jqlb_spinner"></div></a></div></div></div>';var E='<div id="imageDataContainer" class="clearfix"><div id="imageData"><div id="imageDetails"><span id="caption"></span><p id="controls"><span id="numberDisplay"></span> <span id="downloadLink"><a href="" target="'+w.linkTarget+'">'+C.download+'</a></span></p></div><div id="bottomNav">';if(w.displayHelp){E+='<span id="helpDisplay">'+C.help+"</span>"}E+='<a href="javascript://" id="bottomNavClose" title="'+C.closeTitle+'"><div id="jqlb_closelabel"></div></a></div></div></div>';var D;if(w.navbarOnTop){D='<div id="overlay"></div><div id="lightbox">'+E+B+"</div>";a("body").append(D);a("#imageDataContainer").addClass("ontop")}else{D='<div id="overlay"></div><div id="lightbox">'+B+E+"</div>";a("body").append(D)}a("#overlay").click(function(){k()}).hide();a("#lightbox").click(function(){k()}).hide();a("#loadingLink").click(function(){k();return false});a("#bottomNavClose").click(function(){k();return false});a("#outerImageContainer").width(w.widthCurrent).height(w.heightCurrent);a("#imageDataContainer").width(w.widthCurrent);if(!w.imageClickClose){a("#lightboxImage").click(function(){return false});a("#hoverNav").click(function(){return false})}}function s(B){if(w.resizeTimeout){clearTimeout(w.resizeTimeout);w.resizeTimeout=false}w.resizeTimeout=setTimeout(function(){A()},50)}function z(){var C=a(document).height();if(w.isIE8&&C>4096){C=4096}var B=a(window).height()-w.adminBarHeight;return new Array(a(document).width(),C,a(window).width(),B,a(document).height())}function x(){var C=false;if(document.createElement){var B=document.createElement("div");if(B&&B.querySelectorAll){B.innerHTML='<object><param name=""></object>';C=B.querySelectorAll("param").length!=1}B=null}return C}function h(){var C=0;var B=0;if(self.pageYOffset){B=self.pageYOffset;C=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){B=document.documentElement.scrollTop;C=document.documentElement.scrollLeft}else{if(document.body){B=document.body.scrollTop;C=document.body.scrollLeft}}}if(w.adminBarHeight&&parseInt(a("#wpadminbar").css("top"),10)===0){B+=w.adminBarHeight}return new Array(C,B)}function q(G){var F=z();var C=h();var D=0;a("#overlay").hide().css({width:F[0]+"px",height:F[1]+"px",opacity:w.overlayOpacity}).fadeIn(400);if(w.isIE8&&F[1]==4096){if(C[1]>=1000){D=C[1]-1000;if((F[4]-(C[1]+3096))<0){D-=(C[1]+3096)-F[4]}a("#overlay").css({top:D+"px"})}}var E=0;var B=[];w.downloads={};a("a").each(function(){if(!this.href||(this.rel!=G.rel)){return}var L="";var I="";var N="";var H=a(this);var K=H.children("img:first-child");if(this.title){L=this.title}else{if(K.attr("title")){L=K.attr("title")}else{if(K.attr("alt")){L=K.attr("alt")}}}if(H.parent().next(".gallery-caption").html()){var M=H.parent().next(".gallery-caption");I=M.html();N=M.text()}else{if(H.next(".wp-caption-text").html()){I=H.next(".wp-caption-text").html();N=H.next(".wp-caption-text").text()}}L=a.trim(L);N=a.trim(N).replace("&#8217;","&#039;").replace("’","'");if(L.toLowerCase()==N.toLowerCase()){L=I;I=""}var J="";if(L!=""){J='<span id="titleText">'+L+"</span>"}if(I!=""){if(L!=""){J+="<br />"}J+='<span id="captionText">'+I+"</span>"}if(w.displayDownloadLink||H.attr("data-download")){w.downloads[B.length]=H.attr("data-download")}B.push(new Array(this.href,w.displayTitle?J:"",B.length))});if(B.length>1){for(i=0;i<B.length;i++){for(j=B.length-1;j>i;j--){if(B[i][0]==B[j][0]){B.splice(j,1)}}}while(B[E][0]!=G.href){E++}}w.imageArray=B;n(C[1],C[0]).show();y(E);u()}function n(B,C){if(w.resizeSpeed>0){return a("#lightbox").animate({top:B+"px",left:C+"px"},250,"linear")}return a("#lightbox").css({top:B+"px",left:C+"px"})}function y(B){if(w.inprogress!=false){return}w.inprogress=true;w.activeImage=B;a("#jqlb_loading").show();a("#lightboxImage").hide();a("#hoverNav").hide();a("#prevLink").hide();a("#nextLink").hide();m()}function m(){w.imgPreloader=new Image();w.imgPreloader.onload=function(){a("#lightboxImage").attr("src",w.imageArray[w.activeImage][0]);A();g()};w.imgPreloader.src=w.imageArray[w.activeImage][0]}function A(){if(!w.imgPreloader){return}var E=w.imgPreloader.width;var B=w.imgPreloader.height;var G=z();var M=(G[2]<G[0])?G[0]:G[2];a("#overlay").css({width:M+"px",height:G[1]+"px"});var K=(G[3])-(a("#imageDataContainer").height()+(2*w.borderSize));var L=(G[2])-(2*w.borderSize);if(w.fitToScreen){var C=K-w.marginSize;var N=L-w.marginSize;if(a(window).width()>500){C-=w.marginSize;N-=w.marginSize}var H=1;if(B>C){H=C/B}E=E*H;B=B*H;H=1;if(E>N){H=N/E}E=Math.round(E*H);B=Math.round(B*H)}var F=h();var D=F[1]+(K*0.5);var I=D-B*0.5;var J=F[0];a("#lightboxImage").width(E).height(B);p(E,B,I,J)}function p(E,C,G,F){w.widthCurrent=a("#outerImageContainer").outerWidth();w.heightCurrent=a("#outerImageContainer").outerHeight();var B=Math.max(300,E+(w.borderSize*2));var D=(C+(w.borderSize*2));w.xScale=(B/w.widthCurrent)*100;w.yScale=(D/w.heightCurrent)*100;n(G,F);d();a("#imageDataContainer").animate({width:B},w.resizeSpeed,"linear");a("#outerImageContainer").animate({width:B,height:D},w.resizeSpeed,"linear",function(){e()});if(w.imageArray.length>1){a("#hoverNav").show();a("#prevLink").show();a("#nextLink").show()}a("#prevLink,#nextLink").height(C)}function e(){a("#imageData").show();a("#caption").show();a("#jqlb_loading").hide();if(w.resizeSpeed>0){a("#lightboxImage").fadeIn("fast",function(){o()})}else{a("#lightboxImage").show();o()}w.inprogress=false}function o(){if(w.auto!=-1){clearTimeout(w.auto);w.auto=setTimeout(function(){y((w.activeImage==(w.imageArray.length-1))?0:w.activeImage+1)},w.slidehowSpeed)}c()}function g(){if(w.imageArray.length>1){preloadNextImage=new Image();preloadNextImage.src=w.imageArray[(w.activeImage==(w.imageArray.length-1))?0:w.activeImage+1][0];preloadPrevImage=new Image();preloadPrevImage.src=w.imageArray[(w.activeImage==0)?(w.imageArray.length-1):w.activeImage-1][0]}else{if((w.imageArray.length-1)>w.activeImage){preloadNextImage=new Image();preloadNextImage.src=w.imageArray[w.activeImage+1][0]}if(w.activeImage>0){preloadPrevImage=new Image();preloadPrevImage.src=w.imageArray[w.activeImage-1][0]}}}function d(){a("#numberDisplay").html("");a("#caption").html("").hide();var C=w.imageArray;var B=w.strings;var G=w.activeImage;var F=C[G][2];if(C[G][1]&&w.showInfo){a("#caption").html(C[G][1]).show()}var H=(C.length>1&&w.showInfo)?B.image+(G+1)+B.of+C.length:"";if(w.slidehowSpeed&&C.length>1){var D=(w.auto===-1)?B.play:B.pause;H+=' <a id="playpause" href="#">'+D+"</a>"}if(w.displayDownloadLink||w.downloads[F]){var E=w.downloads[F]?w.downloads[F]:C[G][0];a("#downloadLink").show().children().attr("href",E)}else{a("#downloadLink").hide()}if(H!=""){a("#numberDisplay").html(H).show()}}function u(){if(w.imageArray.length>1){a("#prevLink").click(function(){y((w.activeImage==0)?(w.imageArray.length-1):w.activeImage-1);return false});a("#nextLink").click(function(){y((w.activeImage==(w.imageArray.length-1))?0:w.activeImage+1);return false});if(a.fn.touchwipe){a("#imageContainer").touchwipe({wipeLeft:function(){y((w.activeImage==(w.imageArray.length-1))?0:w.activeImage+1)},wipeRight:function(){y((w.activeImage==0)?(w.imageArray.length-1):w.activeImage-1)},min_move_x:20,preventDefaultEvents:true})}if(w.slidehowSpeed){a("#numberDisplay").unbind("click").click(function(){if(w.auto!=-1){a(this).children("a").text(w.strings.play);clearTimeout(w.auto);w.auto=-1}else{a(this).children("a").text(w.strings.pause);w.auto=setTimeout(function(){y((w.activeImage==(w.imageArray.length-1))?0:w.activeImage+1)},w.slidehowSpeed)}return false})}c()}}function k(){t();clearTimeout(w.auto);w.auto=-1;a("#lightbox").hide();a("#overlay").fadeOut()}function v(E){var F=E.data.opts;var B=E.keyCode;var C=27;var D=String.fromCharCode(B).toLowerCase();if((D=="x")||(D=="o")||(D=="c")||(B==C)){k()}else{if((D=="p")||(B==37)){t();y((F.activeImage==0)?(F.imageArray.length-1):F.activeImage-1)}else{if((D=="n")||(B==39)){t();y((F.activeImage==(F.imageArray.length-1))?0:F.activeImage+1)}}}return false}function c(){a(document).unbind("keydown").bind("keydown",{opts:w},v)}function t(){a(document).unbind("keydown")}};a.fn.lightbox.defaults={showInfo:false,adminBarHeight:0,overlayOpacity:0.8,borderSize:10,imageArray:new Array,activeImage:null,inprogress:false,widthCurrent:250,heightCurrent:250,xScale:1,yScale:1,displayTitle:true,imageClickClose:true,followScroll:false,isIE8:false};a(document).ready(doLightBox)})(jQuery);function doLightBox(){var a=(typeof JQLBSettings=="object");var d,b,c=0;if(a&&JQLBSettings.slideshowSpeed){d=parseInt(JQLBSettings.slideshowSpeed)}if(a&&JQLBSettings.resizeSpeed){b=parseInt(JQLBSettings.resizeSpeed)}if(a&&JQLBSettings.marginSize){c=parseInt(JQLBSettings.marginSize)}var e={help:" Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC for close.",prevLinkTitle:"previous image",nextLinkTitle:"next image",closeTitle:"close image gallery",image:"Image ",of:" of ",download:"Download",pause:"(pause slideshow)",play:"(play slideshow)"};jQuery('a[rel^="lightbox"]').lightbox({adminBarHeight:jQuery("#wpadminbar").height()||0,linkTarget:(a&&JQLBSettings.linkTarget.length)?JQLBSettings.linkTarget:"_self",showInfo:(a&&JQLBSettings.showInfo=="0")?false:true,displayHelp:(a&&JQLBSettings.help.length)?true:false,marginSize:(a&&c)?c:0,fitToScreen:(a&&JQLBSettings.fitToScreen=="1")?true:false,resizeSpeed:(a&&b>=0)?b:400,slidehowSpeed:(a&&d>=0)?d:4000,displayDownloadLink:(a&&JQLBSettings.displayDownloadLink=="0")?false:true,navbarOnTop:(a&&JQLBSettings.navbarOnTop=="0")?false:true,strings:(a&&typeof JQLBSettings.help=="string")?JQLBSettings:e})};
languages/jqlb-de_DE.mo CHANGED
Binary file
languages/jqlb-de_DE.po CHANGED
@@ -2,110 +2,106 @@ 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 "&laquo; Previous"
30
- msgstr "&laquo; 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&#8217; uh?"
40
- msgstr "Tricksen&#8217; 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 &raquo;"
55
- msgstr "Nächstes &raquo;"
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"
@@ -113,42 +109,63 @@ msgid ""
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
 
 
 
 
 
2
  msgstr ""
3
  "Project-Id-Version: wp-jquery-lightbox v1.3.4.2\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-05-23 17:41-0500\n"
6
+ "PO-Revision-Date: 2013-05-23 17:42-0500\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-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
15
+ "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
16
+ "X-Textdomain-Support: yes\n"
17
+ "X-Generator: Poedit 1.5.5\n"
18
  "X-Poedit-SearchPath-0: .\n"
 
19
 
20
+ # @ jqlb
21
+ #: wp-jquery-lightbox.php:42
22
+ msgid "Settings"
23
+ msgstr "Einstellungen"
24
 
25
+ # @ jqlb
26
+ #: wp-jquery-lightbox.php:112
27
+ msgid "previous image"
28
+ msgstr "Vorheriges Bild"
29
 
30
+ # @ jqlb
31
+ #: wp-jquery-lightbox.php:113
32
+ msgid "next image"
33
+ msgstr "Nächstes Bild"
34
 
35
+ # @ jqlb
36
+ #: wp-jquery-lightbox.php:114
37
+ msgid "close image gallery"
38
+ msgstr "Bildergalerie schließen"
39
 
40
+ # @ jqlb
41
+ #: wp-jquery-lightbox.php:115
42
  msgid "Image "
43
  msgstr "Bild "
44
 
45
+ # @ jqlb
46
+ #: wp-jquery-lightbox.php:116
47
+ msgid " of "
48
+ msgstr " von "
 
 
 
 
 
 
 
 
 
 
49
 
50
+ # @ jqlb
51
+ #: wp-jquery-lightbox.php:117
52
+ msgid "Download"
53
+ msgstr "Herunterladen"
54
 
55
+ # @ jqlb
56
+ #: wp-jquery-lightbox.php:118
57
+ msgid "(pause slideshow)"
58
+ msgstr "(Diashow anhalten)"
59
 
60
+ # @ jqlb
61
+ #: wp-jquery-lightbox.php:119
62
+ msgid "(play slideshow)"
63
+ msgstr "(Diashow starten)"
64
 
65
+ # @ jqlb
66
+ #: wp-jquery-lightbox.php:182
67
+ msgid "Cheatin&#8217; uh?"
68
+ msgstr "Tricksen&#8217; hm?"
69
 
70
+ # @ jqlb
71
+ #: wp-jquery-lightbox.php:197
72
+ msgid "Let the plugin add necessary html to image links"
73
+ msgstr "Plugin fügt selbst benötigtes HTML in Bild-Links ein"
74
 
75
+ # @ jqlb
76
+ #: wp-jquery-lightbox.php:197
77
+ msgid "Auto-lightbox image links"
78
+ msgstr "Auto-Lightbox Bild Verlinkung"
79
 
80
+ # @ jqlb
81
+ #: wp-jquery-lightbox.php:204
82
+ msgid ""
83
+ "Note: this will disable the nofollow-attribute of comment links, that "
84
+ "otherwise interfere with the lightbox."
85
+ msgstr ""
86
+ "Hinweis: Hierdurch wird das nofollow-Attribut für Kommentare deaktiviert da "
87
+ "dieses sonst die lightbox-Funktionsweise stören würde."
88
 
89
+ # @ jqlb
90
+ #: wp-jquery-lightbox.php:204
91
+ msgid ""
92
+ "Enable lightbox in comments (disables <a href=\"http://codex.wordpress.org/"
93
+ "Nofollow\">the nofollow attribute!</a>)"
94
+ msgstr ""
95
+ "Aktiviere lightbox für Kommentare (deaktiivert <a href=\"http://codex."
96
+ "wordpress.org/Nofollow\">das nofollow Attribut!</a>)"
97
 
98
+ # @ jqlb
99
+ #: wp-jquery-lightbox.php:211
100
  msgid "Show download link"
101
  msgstr "Zeige Link zum Herunterladen"
102
 
103
+ # @ jqlb
104
+ #: wp-jquery-lightbox.php:215
105
  msgid ""
106
  "_blank: open the image in a new window or tab\n"
107
  "_self: open the image in the same frame as it was clicked (default)\n"
109
  "_top: open the image in the full body of the window"
110
  msgstr ""
111
  "_blank: öffne das Bild in einem neuen Fenster oder Tab\n"
112
+ "_self: Öffne das Bild im gleichen Frame in dem es angeklickt wurde "
113
+ "(Voreinstellung)\n"
114
  "_parent: öffne das Bild im parent frameset\n"
115
  "_top: öffne das Bild im Hauptfenster"
116
 
117
+ # @ jqlb
118
+ #: wp-jquery-lightbox.php:218
119
  msgid "Target for download link:"
120
  msgstr "Ziel für Herunterladen-Link:"
121
 
122
+ # @ jqlb
123
+ #: wp-jquery-lightbox.php:232
124
  msgid "Show image info on top"
125
  msgstr "Zeige Bildinformationen oberhalb des Bildes"
126
 
127
+ # @ jqlb
128
+ #: wp-jquery-lightbox.php:240
129
+ msgid "Shrink large images to fit smaller screens"
130
+ msgstr "Große Bilder in Bildschirm einpassen"
131
+
132
+ # @ jqlb
133
+ #: wp-jquery-lightbox.php:245
134
  msgid "Keep a distance between the image and the screen edges."
135
  msgstr "Füge einen Abstand zwischen Bild und Rahmen ein."
136
 
137
+ # @ jqlb
138
+ #: wp-jquery-lightbox.php:245
139
  msgid "Minimum margin to screen edge (default: 0)"
140
  msgstr "Mindestabstand zum Rahmen des Bildschirms (Vorgabe: 0)"
141
 
142
+ # @ jqlb
143
+ #: wp-jquery-lightbox.php:252
144
  msgid "Animation duration (in milliseconds) "
145
  msgstr "Animationsdauer (in Millisekunden) "
146
 
147
+ # @ jqlb
148
+ #: wp-jquery-lightbox.php:258
149
+ msgid "Slideshow speed (in milliseconds). 0 to disable."
150
+ msgstr ""
151
+ "Verweilzeit der Bilder während der Diashow (in Millisekunden). 0 schaltet "
152
+ "Diashow ab."
153
+
154
+ # @ jqlb
155
+ #: wp-jquery-lightbox.php:264
156
  msgid "Help text (default: none) "
157
  msgstr "Hinweistext (Vorgabe: keiner) "
158
 
159
+ # @ jqlb
160
+ #: wp-jquery-lightbox.php:268
161
+ msgid ""
162
+ "Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC "
163
+ "for close."
164
+ msgstr ""
165
+ "Tastaturkürzel zum Bildwechsel: Pfeiltasten oder P(revious für vorheriges)/N"
166
+ "(ext für nächstes) und X/C/Esc zum schließen."
167
 
168
+ # @ jqlb
169
+ #: wp-jquery-lightbox.php:270
170
+ msgid "Save Changes"
171
+ msgstr "Änderungen speichern"
languages/jqlb-it_IT.mo ADDED
Binary file
languages/jqlb-it_IT.po ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP JQuery Lightbox\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-06-26 20:31+0100\n"
6
+ "PO-Revision-Date: 2013-04-10 20:01+0100\n"
7
+ "Last-Translator: Il Zio <zio069@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
+ "Language: fr_FR\n"
16
+ "X-Generator: Poedit 1.5.5\n"
17
+ "X-Poedit-SearchPath-0: G:\\@WINNEEDS\\Desktop\\wp-jquery-lightbox.1.3.3\\wp-"
18
+ "jquery-lightbox\n"
19
+
20
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:42
21
+ msgid "Settings"
22
+ msgstr "Impostazioni"
23
+
24
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:113
25
+ msgid "previous image"
26
+ msgstr "Immagine precedente"
27
+
28
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:114
29
+ msgid "next image"
30
+ msgstr "Image successiva"
31
+
32
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:115
33
+ msgid "&laquo; Previous"
34
+ msgstr "&laquo; Precedente"
35
+
36
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:116
37
+ msgid "Next &raquo;"
38
+ msgstr "Successiva&raquo;"
39
+
40
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:117
41
+ msgid "close image gallery"
42
+ msgstr "chiudi la galleria"
43
+
44
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:118
45
+ msgid "Image "
46
+ msgstr "Immagine "
47
+
48
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:119
49
+ msgid " of "
50
+ msgstr " di "
51
+
52
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:120
53
+ msgid "Download"
54
+ msgstr "Scarica"
55
+
56
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:166
57
+ msgid "Cheatin&#8217; uh?"
58
+ msgstr "Giochi sporco, eh ?"
59
+
60
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:179
61
+ msgid "Let the plugin add necessary html to image links"
62
+ msgstr "Lascia che il plugin aggiunga l'html necessario ai link delle immagini"
63
+
64
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:179
65
+ msgid "Auto-lightbox image links"
66
+ msgstr "Aggiungi automaticamente i link alle immagini"
67
+
68
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:186
69
+ msgid ""
70
+ "Note: this will disable the nofollow-attribute of comment links, that "
71
+ "otherwise interfere with the lightbox."
72
+ msgstr ""
73
+ "Nota: questo disattiverà l'attributo nofollow dei link ai commenti, che "
74
+ "altrimenti interferirebbero con lightbox"
75
+
76
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:186
77
+ msgid ""
78
+ "Enable lightbox in comments (disables <a href=\"http://codex.wordpress.org/"
79
+ "Nofollow\">the nofollow attribute!</a>)"
80
+ msgstr ""
81
+ "Attiva i commenti in Lightbox (disabilita <a href=\"http://codex.wordpress."
82
+ "org/Nofollow\">l'attributo nofollow !</a>)"
83
+
84
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:193
85
+ msgid "Show download link"
86
+ msgstr "Mostra il link di download"
87
+
88
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:197
89
+ msgid ""
90
+ "_blank: open the image in a new window or tab\n"
91
+ "_self: open the image in the same frame as it was clicked (default)\n"
92
+ "_parent: open the image in the parent frameset\n"
93
+ "_top: open the image in the full body of the window"
94
+ msgstr ""
95
+ "_blank: apre l'immagine in una nuova finestra o scheda_self: apre l'immagine "
96
+ "nello stessa scheda che la utilizza (default)\n"
97
+ "_parent: apre l'immagine nella finestra padre\n"
98
+ "_top: apre l'immagine nell'intera scheda"
99
+
100
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:200
101
+ msgid "Target for download link:"
102
+ msgstr "Destinazione per il link di download :"
103
+
104
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:214
105
+ msgid "Show image info on top"
106
+ msgstr "Mostra le informazioni sull'immagine sopra"
107
+
108
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:222
109
+ msgid "Shrink large images to fit smaller screens"
110
+ msgstr "Riduci le immagini grandi per entrare negli schermi più piccoli"
111
+
112
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:227
113
+ msgid "Keep a distance between the image and the screen edges."
114
+ msgstr "Mantieni distanza tra l'immagine ed i bordi dello schermo"
115
+
116
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:227
117
+ msgid "Minimum margin to screen edge (default: 0)"
118
+ msgstr "Margine minimo ai bordi dello schermo (di default: 0)"
119
+
120
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:234
121
+ msgid "Animation duration (in milliseconds) "
122
+ msgstr "Durata animazione (in millisecondes)"
123
+
124
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:240
125
+ msgid "Help text (default: none) "
126
+ msgstr "Testo di aiuto (default : nessuno)"
127
+
128
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:244
129
+ msgid ""
130
+ "Browse images with your keyboard: Arrows or P(revious)/N(ext) and X/C/ESC "
131
+ "for close."
132
+ msgstr ""
133
+ "Navigazione con la tastiera: frecce o (P)recedente / Segue(N)te ; X / C / "
134
+ "per chiudere."
135
+
136
+ #: G:\@WINNEEDS\Desktop\wp-jquery-lightbox.1.3.3\wp-jquery-lightbox/wp-jquery-lightbox.php:246
137
+ msgid "Save Changes"
138
+ msgstr "Salva le modifiche"
139
+
140
+ #~ msgid ""
141
+ #~ " \\u2190 / P - previous image\\u00a0\\u00a0\\u00a0\\u00a0\\u2192 / N - "
142
+ #~ "next image\\u00a0\\u00a0\\u00a0\\u00a0ESC / X - close image gallery"
143
+ #~ msgstr ""
144
+ #~ " \\u2190 / P - Image précédente\\u00a0\\u00a0\\u00a0\\u00a0\\u2192 / N - "
145
+ #~ "Image suivante\\u00a0\\u00a0\\u00a0\\u00a0ESC / X - fermer la galerie "
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://amzn.com/w/2QB6SQ5XX2U0N
4
  Tags: lightbox, jquery, nodal, image, display, ulfben
5
  Requires at least: 3.5.1
6
  Tested up to: 3.5.1
7
- Stable tag: 1.4.1
8
  License: GPLv2 or later
9
 
10
  A drop-in replacement for Lightbox 2 and similar plugins, shedding the bulk of Prototype and Scriptaculous. Improved for mobile devices.
@@ -30,6 +30,17 @@ If you value [my plugins](http://profiles.wordpress.org/users/ulfben/), please h
30
 
31
  *[//Ulf Benjaminsson](http://profiles.wordpress.org/users/ulfben/)*
32
 
 
 
 
 
 
 
 
 
 
 
 
33
  = 1.4.1 (2013-02-03) =
34
  * Added swipe gestures on touch devices
35
  * Added slideshow
@@ -128,6 +139,17 @@ Lastly:
128
  Still have problems? Post a link and describe what issue you're having, and tell us what of these steps you've already tried.
129
 
130
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
 
131
  = 1.4.1 (2013-02-03) =
132
  * Added swipe gestures on touch devices
133
  * Added slideshow
@@ -206,6 +228,9 @@ Still have problems? Post a link and describe what issue you're having, and tell
206
  * Release.
207
 
208
  == Upgrade Notice ==
 
 
 
209
  = 1.4.1 =
210
  Swipe gestures, slideshow, sets and lots of fixes. Check your config screen after update!
211
 
@@ -327,3 +352,20 @@ Indeed you can!
327
  Translations and help with implementing them would be nice. A read through and comments on my WordPress API usage would also be most welcome, as I'm not really able to keep on top of the frequent WordPress releases anymore.
328
 
329
  And of course; [a book or two](http://www.amazon.com/gp/registry/wishlist/2QB6SQ5XX2U0N/105-3209188-5640446?reveal=unpurchased&filter=all&sort=priority&layout=standard&x) always brightens my day! (used ones are fine!)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.5
8
  License: GPLv2 or later
9
 
10
  A drop-in replacement for Lightbox 2 and similar plugins, shedding the bulk of Prototype and Scriptaculous. Improved for mobile devices.
30
 
31
  *[//Ulf Benjaminsson](http://profiles.wordpress.org/users/ulfben/)*
32
 
33
+ = 1.4.5 (2013-06-09) =
34
+ * Fit to screen edge on low rez displays (<500px)
35
+ * Added global setting to hide title & caption
36
+ * Reduced the amount of code running for each image shown
37
+ * Updated German translation (thanks [Niko23](http://wordpress.org/support/topic/translation-of-client-side-text?replies=5#post-4230050))
38
+ * Fix: swipe direction
39
+ * Fix: slideshow now waits for images to display before starting timer.
40
+ * Fix: support for latest jQuery
41
+ * Fix: WordPress encoding wrong quote mark in captions, causing duplicate texts to display.
42
+
43
+
44
  = 1.4.1 (2013-02-03) =
45
  * Added swipe gestures on touch devices
46
  * Added slideshow
139
  Still have problems? Post a link and describe what issue you're having, and tell us what of these steps you've already tried.
140
 
141
  == Changelog ==
142
+ = 1.4.5 (2013-06-09) =
143
+ * Fit to screen edge on low rez displays (<500px)
144
+ * Added global setting to hide title & caption
145
+ * Reduced the amount of code running for each image shown
146
+ * Updated German translation (thanks [Niko23](http://wordpress.org/support/topic/translation-of-client-side-text?replies=5#post-4230050))
147
+ * Fix: swipe direction
148
+ * Fix: slideshow now waits for images to display before starting timer.
149
+ * Fix: support for latest jQuery
150
+ * Fix: WordPress encoding wrong quote mark in captions, causing duplicate texts to display.
151
+
152
+
153
  = 1.4.1 (2013-02-03) =
154
  * Added swipe gestures on touch devices
155
  * Added slideshow
228
  * Release.
229
 
230
  == Upgrade Notice ==
231
+ = 1.4.5 (2013-06-09) =
232
+ Support latest jQuery. Better use of small screen estate, fixed buggy features (slideshow, swipes) and reduced system load.
233
+
234
  = 1.4.1 =
235
  Swipe gestures, slideshow, sets and lots of fixes. Check your config screen after update!
236
 
352
  Translations and help with implementing them would be nice. A read through and comments on my WordPress API usage would also be most welcome, as I'm not really able to keep on top of the frequent WordPress releases anymore.
353
 
354
  And of course; [a book or two](http://www.amazon.com/gp/registry/wishlist/2QB6SQ5XX2U0N/105-3209188-5640446?reveal=unpurchased&filter=all&sort=priority&layout=standard&x) always brightens my day! (used ones are fine!)
355
+
356
+ == Other Notes ==
357
+ Copyright (C) 2010-2013 Ulf Benjaminsson (my first name at ulfben dot com).
358
+
359
+ This program is free software; you can redistribute it and/or modify
360
+ it under the terms of the GNU General Public License as published by
361
+ the Free Software Foundation; either version 2 of the License, or
362
+ (at your option) any later version.
363
+
364
+ This program is distributed in the hope that it will be useful,
365
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
366
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
367
+ GNU General Public License for more details.
368
+
369
+ You should have received a copy of the GNU General Public License
370
+ along with this program; if not, write to the Free Software
371
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
wp-jquery-lightbox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: wp-jquery-lightbox
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-jquery-lightbox/
5
  Description: A drop in replacement for LightBox-2 and similar plugins. Uses jQuery to save you from the JS-library mess in your header. :)
6
- Version: 1.4.1
7
  Author: Ulf Benjaminsson
8
  Author URI: http://www.ulfben.com
9
  License: GPLv2 or later
@@ -50,6 +50,7 @@ function jqlb_add_admin_footer(){ //shows some plugin info in the footer of the
50
  }
51
  function jqlb_register_settings(){
52
  register_setting( 'jqlb-settings-group', 'jqlb_automate', 'jqlb_bool_intval');
 
53
  register_setting( 'jqlb-settings-group', 'jqlb_comments', 'jqlb_bool_intval');
54
  register_setting( 'jqlb-settings-group', 'jqlb_resize_on_demand', 'jqlb_bool_intval');
55
  register_setting( 'jqlb-settings-group', 'jqlb_show_download', 'jqlb_bool_intval');
@@ -60,6 +61,7 @@ function jqlb_register_settings(){
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.
65
  add_option('jqlb_comments', 1);
@@ -93,12 +95,14 @@ function jqlb_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(), false, true);
99
  wp_enqueue_script('wp-jquery-lightbox-swipe', plugins_url(JQLB_TOUCH_SCRIPT, __FILE__), Array('jquery'), '1.4', true);
100
  wp_enqueue_script('wp-jquery-lightbox', plugins_url(JQLB_SCRIPT, __FILE__), Array('jquery'), '1.4', true);
101
  wp_localize_script('wp-jquery-lightbox', 'JQLBSettings', array(
 
102
  'fitToScreen' => get_option('jqlb_resize_on_demand'),
103
  'resizeSpeed' => get_option('jqlb_resize_speed'),
104
  'displayDownloadLink' => get_option('jqlb_show_download'),
@@ -131,7 +135,7 @@ function jqlb_lightbox_comment($comment){
131
  function jqlb_autoexpand_rel_wlightbox($content) {
132
  if(get_option('jqlb_automate') == 1){
133
  global $post;
134
- $id = ($post->ID) ? $post->ID : -1;
135
  $content = jqlb_do_regexp($content, $id);
136
  }
137
  return $content;
@@ -204,7 +208,14 @@ function jqlb_options_panel(){
204
  <label for="jqlb_comments" title="<?php _e('Note: this will disable the nofollow-attribute of comment links, that otherwise interfere with the lightbox.', 'jqlb') ?>"> <?php _e('Enable lightbox in comments (disables <a href="http://codex.wordpress.org/Nofollow">the nofollow attribute!</a>)', 'jqlb') ?></label>
205
  </td>
206
  </tr>
207
- <tr valign="baseline" colspan="2">
 
 
 
 
 
 
 
208
  <td>
209
  <?php $check = get_option('jqlb_show_download') ? ' checked="yes" ' : ''; ?>
210
  <input type="checkbox" id="jqlb_show_download" name="jqlb_show_download" value="1" <?php echo $check; ?> />
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.5
7
  Author: Ulf Benjaminsson
8
  Author URI: http://www.ulfben.com
9
  License: GPLv2 or later
50
  }
51
  function jqlb_register_settings(){
52
  register_setting( 'jqlb-settings-group', 'jqlb_automate', 'jqlb_bool_intval');
53
+ register_setting( 'jqlb-settings-group', 'jqlb_showinfo', 'jqlb_bool_intval');
54
  register_setting( 'jqlb-settings-group', 'jqlb_comments', 'jqlb_bool_intval');
55
  register_setting( 'jqlb-settings-group', 'jqlb_resize_on_demand', 'jqlb_bool_intval');
56
  register_setting( 'jqlb-settings-group', 'jqlb_show_download', 'jqlb_bool_intval');
61
  register_setting( 'jqlb-settings-group', 'jqlb_help_text');
62
  register_setting( 'jqlb-settings-group', 'jqlb_link_target');
63
  add_option('jqlb_help_text', '');
64
+ add_option('jqlb_showinfo', 1);
65
  add_option('jqlb_link_target', '_self');
66
  add_option('jqlb_automate', 1); //default is to auto-lightbox.
67
  add_option('jqlb_comments', 1);
95
  }
96
  wp_enqueue_style('jquery.lightbox.min.css', plugin_dir_url(__FILE__).'styles/'.$fileName, false, '1.4');
97
  }
98
+
99
  function jqlb_js() {
100
  if(is_admin() || is_feed()){return;}
101
  wp_enqueue_script('jquery', '', array(), false, true);
102
  wp_enqueue_script('wp-jquery-lightbox-swipe', plugins_url(JQLB_TOUCH_SCRIPT, __FILE__), Array('jquery'), '1.4', true);
103
  wp_enqueue_script('wp-jquery-lightbox', plugins_url(JQLB_SCRIPT, __FILE__), Array('jquery'), '1.4', true);
104
  wp_localize_script('wp-jquery-lightbox', 'JQLBSettings', array(
105
+ 'showInfo' => get_option('jqlb_showinfo'),
106
  'fitToScreen' => get_option('jqlb_resize_on_demand'),
107
  'resizeSpeed' => get_option('jqlb_resize_speed'),
108
  'displayDownloadLink' => get_option('jqlb_show_download'),
135
  function jqlb_autoexpand_rel_wlightbox($content) {
136
  if(get_option('jqlb_automate') == 1){
137
  global $post;
138
+ $id = isset($post->ID) ? $post->ID : -1;
139
  $content = jqlb_do_regexp($content, $id);
140
  }
141
  return $content;
208
  <label for="jqlb_comments" title="<?php _e('Note: this will disable the nofollow-attribute of comment links, that otherwise interfere with the lightbox.', 'jqlb') ?>"> <?php _e('Enable lightbox in comments (disables <a href="http://codex.wordpress.org/Nofollow">the nofollow attribute!</a>)', 'jqlb') ?></label>
209
  </td>
210
  </tr>
211
+ <tr>
212
+ <td>
213
+ <?php $check = get_option('jqlb_showinfo') ? ' checked="yes" ' : ''; ?>
214
+ <input type="checkbox" id="jqlb_showinfo" name="jqlb_showinfo" value="1" <?php echo $check; ?> />
215
+ <label for="jqlb_showinfo"> <?php _e('Show title & caption', 'jqlb') ?> </label>
216
+ </td>
217
+ </tr>
218
+ <tr valign="baseline" colspan="2">
219
  <td>
220
  <?php $check = get_option('jqlb_show_download') ? ' checked="yes" ' : ''; ?>
221
  <input type="checkbox" id="jqlb_show_download" name="jqlb_show_download" value="1" <?php echo $check; ?> />