Responsive Lightbox & Gallery - Version 1.4.11

Version Description

  • Tweak: Swipebox script updated to 1.3.0.2
  • Tweak: prettyPhoto CSS tweaks
  • Tweak: fancyBox IE patch
Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 Responsive Lightbox & Gallery
Version 1.4.11
Comparing to
See all releases

Code changes from version 1.4.9 to 1.4.11

assets/fancybox/jquery.fancybox-1.3.4.js CHANGED
@@ -28,7 +28,7 @@
28
 
29
  titleHeight = 0, titleStr = '', start_pos, final_pos, busy = false, fx = $.extend($('<div/>')[0], { prop: 0 }),
30
 
31
- isIE6 = $.browser.msie && $.browser.version < 7 && !window.XMLHttpRequest,
32
 
33
  /*
34
  * Private methods
28
 
29
  titleHeight = 0, titleStr = '', start_pos, final_pos, busy = false, fx = $.extend($('<div/>')[0], { prop: 0 }),
30
 
31
+ isIE6 = navigator.userAgent.match(/msie [6]/i) && !window.XMLHttpRequest,
32
 
33
  /*
34
  * Private methods
assets/imagelightbox/css/imagelightbox.css CHANGED
@@ -2,4 +2,7 @@
2
  {
3
  position: fixed;
4
  z-index: 9999;
 
 
 
5
  }
2
  {
3
  position: fixed;
4
  z-index: 9999;
5
+
6
+ -ms-touch-action: none;
7
+ touch-action: none;
8
  }
assets/imagelightbox/js/imagelightbox.min.js CHANGED
@@ -3,4 +3,4 @@
3
  Available for use under the MIT License
4
  */
5
 
6
- ;(function(e,t,n,r){"use strict";var i=function(){var e=n.body||n.documentElement,e=e.style;if(e.WebkitTransition=="")return"-webkit-";if(e.MozTransition=="")return"-moz-";if(e.OTransition=="")return"-o-";if(e.transition=="")return"";return false},s=i()===false?false:true,o=function(e,t,n){var r={},s=i();r[s+"transform"]="translateX("+t+")";r[s+"transition"]=s+"transform "+n+"s linear";e.css(r)},u="ontouchstart"in t,a=t.navigator.pointerEnabled||t.navigator.msPointerEnabled,f=function(e){if(u)return true;if(!a||typeof e==="undefined"||typeof e.pointerType==="undefined")return false;if(typeof e.MSPOINTER_TYPE_MOUSE!=="undefined"){if(e.MSPOINTER_TYPE_MOUSE!=e.pointerType)return true}else if(e.pointerType!="mouse")return true;return false};e.fn.imageLightbox=function(r){var r=e.extend({selector:'id="imagelightbox"',allowedTypes:"png|jpg|jpeg|gif",animationSpeed:250,preloadNext:true,enableKeyboard:true,quitOnEnd:false,quitOnImgClick:false,quitOnDocClick:true,onStart:false,onEnd:false,onLoadStart:false,onLoadEnd:false},r),i=e([]),l=e(),c=e(),h=0,p=0,d=0,v=false,m=function(t){return e(t).prop("tagName").toLowerCase()=="a"&&(new RegExp(".("+r.allowedTypes+")$","i")).test(e(t).attr("href"))},g=function(){if(!c.length)return false;var n=e(t).width()*.8,r=e(t).height()*.9,i=new Image;i.src=c.attr("src");i.onload=function(){h=i.width;p=i.height;if(h>n||p>r){var s=h/p>n/r?h/n:p/r;h/=s;p/=s}c.css({width:h+"px",height:p+"px",top:(e(t).height()-p)/2+"px",left:(e(t).width()-h)/2+"px"})}},y=function(t){if(v)return false;t=typeof t==="undefined"?false:t=="left"?1:-1;if(c.length){if(t!==false&&(i.length<2||r.quitOnEnd===true&&(t===-1&&i.index(l)==0||t===1&&i.index(l)==i.length-1))){w();return false}var n={opacity:0};if(s)o(c,100*t-d+"px",r.animationSpeed/1e3);else n.left=parseInt(c.css("left"))+100*t+"px";c.animate(n,r.animationSpeed,function(){b()});d=0}v=true;if(r.onLoadStart!==false)r.onLoadStart();setTimeout(function(){c=e("<img "+r.selector+" />").attr("src",l.attr("href")).load(function(){c.appendTo("body");g();var n={opacity:1};c.css("opacity",0);if(s){o(c,-100*t+"px",0);setTimeout(function(){o(c,0+"px",r.animationSpeed/1e3)},50)}else{var u=parseInt(c.css("left"));n.left=u+"px";c.css("left",u-100*t+"px")}c.animate(n,r.animationSpeed,function(){v=false;if(r.onLoadEnd!==false)r.onLoadEnd()});if(r.preloadNext){var a=i.eq(i.index(l)+1);if(!a.length)a=i.eq(0);e("<img />").attr("src",a.attr("href")).load()}}).error(function(){if(r.onLoadEnd!==false)r.onLoadEnd()});var n=0,u=0,p=0;c.on(a?"pointerup MSPointerUp":"click",function(e){e.preventDefault();if(r.quitOnImgClick){w();return false}if(f(e.originalEvent))return true;var t=(e.pageX||e.originalEvent.pageX)-e.target.offsetLeft;l=i.eq(i.index(l)-(h/2>t?1:-1));if(!l.length)l=i.eq(h/2>t?i.length:0);y(h/2>t?"left":"right")}).on("touchstart pointerdown MSPointerDown",function(e){if(!f(e.originalEvent)||r.quitOnImgClick)return true;if(s)p=parseInt(c.css("left"));n=e.originalEvent.pageX||e.originalEvent.touches[0].pageX}).on("touchmove pointermove MSPointerMove",function(e){if(!f(e.originalEvent)||r.quitOnImgClick)return true;e.preventDefault();u=e.originalEvent.pageX||e.originalEvent.touches[0].pageX;d=n-u;if(s)o(c,-d+"px",0);else c.css("left",p-d+"px")}).on("touchend touchcancel pointerup MSPointerUp",function(e){if(!f(e.originalEvent)||r.quitOnImgClick)return true;if(Math.abs(d)>50){l=i.eq(i.index(l)-(d<0?1:-1));if(!l.length)l=i.eq(d<0?i.length:0);y(d>0?"right":"left")}else{if(s)o(c,0+"px",r.animationSpeed/1e3);else c.animate({left:p+"px"},r.animationSpeed/2)}})},r.animationSpeed+100)},b=function(){if(!c.length)return false;c.remove();c=e()},w=function(){if(!c.length)return false;c.animate({opacity:0},r.animationSpeed,function(){b();v=false;if(r.onEnd!==false)r.onEnd()})};e(t).on("resize",g);if(r.quitOnDocClick){e(n).on(u?"touchend":"click",function(t){if(c.length&&!e(t.target).is(c))w()})}if(r.enableKeyboard){e(n).on("keyup",function(e){if(!c.length)return true;e.preventDefault();if(e.keyCode==27)w();if(e.keyCode==37||e.keyCode==39){l=i.eq(i.index(l)-(e.keyCode==37?1:-1));if(!l.length)l=i.eq(e.keyCode==37?i.length:0);y(e.keyCode==37?"left":"right")}})}e(n).on("click",this.selector,function(t){if(!m(this))return true;t.preventDefault();if(v)return false;v=false;if(r.onStart!==false)r.onStart();l=e(this);y()});this.each(function(){if(!m(this))return true;i=i.add(e(this))});this.switchImageLightbox=function(e){var t=i.eq(e);if(t.length){var n=i.index(l);l=t;y(e<n?"left":"right")}return this};this.quitImageLightbox=function(){w();return this};return this}})(jQuery,window,document);
3
  Available for use under the MIT License
4
  */
5
 
6
+ ;(function(e,t,n,r){"use strict";var i=function(){var e=n.body||n.documentElement,e=e.style;if(e.WebkitTransition=="")return"-webkit-";if(e.MozTransition=="")return"-moz-";if(e.OTransition=="")return"-o-";if(e.transition=="")return"";return false},s=i()===false?false:true,o=function(e,t,n){var r={},s=i();r[s+"transform"]="translateX("+t+")";r[s+"transition"]=s+"transform "+n+"s linear";e.css(r)},u="ontouchstart"in t,a=t.navigator.pointerEnabled||t.navigator.msPointerEnabled,f=function(e){if(u)return true;if(!a||typeof e==="undefined"||typeof e.pointerType==="undefined")return false;if(typeof e.MSPOINTER_TYPE_MOUSE!=="undefined"){if(e.MSPOINTER_TYPE_MOUSE!=e.pointerType)return true}else if(e.pointerType!="mouse")return true;return false};e.fn.imageLightbox=function(r){var r=e.extend({selector:'id="imagelightbox"',allowedTypes:"png|jpg|jpeg|gif",animationSpeed:250,preloadNext:true,enableKeyboard:true,quitOnEnd:false,quitOnImgClick:false,quitOnDocClick:true,onStart:false,onEnd:false,onLoadStart:false,onLoadEnd:false},r),i=e([]),l=e(),c=e(),h=0,p=0,d=0,v=false,m=function(t){return e(t).prop("tagName").toLowerCase()=="a"&&(new RegExp(".("+r.allowedTypes+")$","i")).test(e(t).attr("href"))},g=function(){if(!c.length)return true;var n=e(t).width()*.8,r=e(t).height()*.9,i=new Image;i.src=c.attr("src");i.onload=function(){h=i.width;p=i.height;if(h>n||p>r){var s=h/p>n/r?h/n:p/r;h/=s;p/=s}c.css({width:h+"px",height:p+"px",top:(e(t).height()-p)/2+"px",left:(e(t).width()-h)/2+"px"})}},y=function(t){if(v)return false;t=typeof t==="undefined"?false:t=="left"?1:-1;if(c.length){if(t!==false&&(i.length<2||r.quitOnEnd===true&&(t===-1&&i.index(l)==0||t===1&&i.index(l)==i.length-1))){w();return false}var n={opacity:0};if(s)o(c,100*t-d+"px",r.animationSpeed/1e3);else n.left=parseInt(c.css("left"))+100*t+"px";c.animate(n,r.animationSpeed,function(){b()});d=0}v=true;if(r.onLoadStart!==false)r.onLoadStart();setTimeout(function(){c=e("<img "+r.selector+" />").attr("src",l.attr("href")).load(function(){c.appendTo("body");g();var n={opacity:1};c.css("opacity",0);if(s){o(c,-100*t+"px",0);setTimeout(function(){o(c,0+"px",r.animationSpeed/1e3)},50)}else{var u=parseInt(c.css("left"));n.left=u+"px";c.css("left",u-100*t+"px")}c.animate(n,r.animationSpeed,function(){v=false;if(r.onLoadEnd!==false)r.onLoadEnd()});if(r.preloadNext){var a=i.eq(i.index(l)+1);if(!a.length)a=i.eq(0);e("<img />").attr("src",a.attr("href")).load()}}).error(function(){if(r.onLoadEnd!==false)r.onLoadEnd()});var n=0,u=0,p=0;c.on(a?"pointerup MSPointerUp":"click",function(e){e.preventDefault();if(r.quitOnImgClick){w();return false}if(f(e.originalEvent))return true;var t=(e.pageX||e.originalEvent.pageX)-e.target.offsetLeft;l=i.eq(i.index(l)-(h/2>t?1:-1));if(!l.length)l=i.eq(h/2>t?i.length:0);y(h/2>t?"left":"right")}).on("touchstart pointerdown MSPointerDown",function(e){if(!f(e.originalEvent)||r.quitOnImgClick)return true;if(s)p=parseInt(c.css("left"));n=e.originalEvent.pageX||e.originalEvent.touches[0].pageX}).on("touchmove pointermove MSPointerMove",function(e){if(!f(e.originalEvent)||r.quitOnImgClick)return true;e.preventDefault();u=e.originalEvent.pageX||e.originalEvent.touches[0].pageX;d=n-u;if(s)o(c,-d+"px",0);else c.css("left",p-d+"px")}).on("touchend touchcancel pointerup pointercancel MSPointerUp MSPointerCancel",function(e){if(!f(e.originalEvent)||r.quitOnImgClick)return true;if(Math.abs(d)>50){l=i.eq(i.index(l)-(d<0?1:-1));if(!l.length)l=i.eq(d<0?i.length:0);y(d>0?"right":"left")}else{if(s)o(c,0+"px",r.animationSpeed/1e3);else c.animate({left:p+"px"},r.animationSpeed/2)}})},r.animationSpeed+100)},b=function(){if(!c.length)return false;c.remove();c=e()},w=function(){if(!c.length)return false;c.animate({opacity:0},r.animationSpeed,function(){b();v=false;if(r.onEnd!==false)r.onEnd()})};e(t).on("resize",g);if(r.quitOnDocClick){e(n).on(u?"touchend":"click",function(t){if(c.length&&!e(t.target).is(c))w()})}if(r.enableKeyboard){e(n).on("keyup",function(e){if(!c.length)return true;e.preventDefault();if(e.keyCode==27)w();if(e.keyCode==37||e.keyCode==39){l=i.eq(i.index(l)-(e.keyCode==37?1:-1));if(!l.length)l=i.eq(e.keyCode==37?i.length:0);y(e.keyCode==37?"left":"right")}})}e(n).on("click",this.selector,function(t){if(!m(this))return true;t.preventDefault();if(v)return false;v=false;if(r.onStart!==false)r.onStart();l=e(this);y()});this.each(function(){if(!m(this))return true;i=i.add(e(this))});this.switchImageLightbox=function(e){var t=i.eq(e);if(t.length){var n=i.index(l);l=t;y(e<n?"left":"right")}return this};this.quitImageLightbox=function(){w();return this};return this}})(jQuery,window,document);
assets/nivo/nivo-lightbox.min.js CHANGED
@@ -6,4 +6,4 @@
6
  * Free to use and abuse under the MIT license.
7
  * http://www.opensource.org/licenses/mit-license.php
8
  */
9
- (function(e,t,n,r){function o(t,n){this.el=t;this.$el=e(this.el);this.options=e.extend({},s,n);this._defaults=s;this._name=i;this.init()}var i="nivoLightbox",s={effect:"fade",theme:"default",keyboardNav:true,clickOverlayToClose:true,onInit:function(){},beforeShowLightbox:function(){},afterShowLightbox:function(e){},beforeHideLightbox:function(){},afterHideLightbox:function(){},onPrev:function(e){},onNext:function(e){},errorMessage:"The requested content cannot be loaded. Please try again later."};o.prototype={init:function(){var t=this;if(!e("html").hasClass("nivo-lightbox-notouch"))e("html").addClass("nivo-lightbox-notouch");if("ontouchstart"in n)e("html").removeClass("nivo-lightbox-notouch");this.$el.on("click",function(e){t.showLightbox(e)});if(this.options.keyboardNav){e("body").off("keyup").on("keyup",function(n){var r=n.keyCode?n.keyCode:n.which;if(r==27)t.destructLightbox();if(r==37)e(".nivo-lightbox-prev").trigger("click");if(r==39)e(".nivo-lightbox-next").trigger("click")})}this.options.onInit.call(this)},showLightbox:function(t){var n=this,r=this.$el;var i=this.checkContent(r);if(!i)return;t.preventDefault();this.options.beforeShowLightbox.call(this);var s=this.constructLightbox();if(!s)return;var o=s.find(".nivo-lightbox-content");if(!o)return;e("body").addClass("nivo-lightbox-body-effect-"+this.options.effect);this.processContent(o,r);if(this.$el.attr("data-lightbox-gallery")){var u=e('[data-lightbox-gallery="'+this.$el.attr("data-lightbox-gallery")+'"]');e(".nivo-lightbox-nav").show();e(".nivo-lightbox-prev").off("click").on("click",function(t){t.preventDefault();var i=u.index(r);r=u.eq(i-1);if(!e(r).length)r=u.last();n.processContent(o,r);n.options.onPrev.call(this,[r])});e(".nivo-lightbox-next").off("click").on("click",function(t){t.preventDefault();var i=u.index(r);r=u.eq(i+1);if(!e(r).length)r=u.first();n.processContent(o,r);n.options.onNext.call(this,[r])})}setTimeout(function(){s.addClass("nivo-lightbox-open");n.options.afterShowLightbox.call(this,[s])},1)},checkContent:function(e){var t=this,n=e.attr("href"),r=n.match(/(youtube|youtu|vimeo)\.(com|be)\/(watch\?v=([\w-]+)|([\w-]+))/);if(n.match(/\.(jpeg|jpg|gif|png)$/i)!==null){return true}else if(r){return true}else if(e.attr("data-lightbox-type")=="ajax"){return true}else if(n.substring(0,1)=="#"&&e.attr("data-lightbox-type")=="inline"){return true}else if(e.attr("data-lightbox-type")=="iframe"){return true}return false},processContent:function(n,r){var i=this,s=r.attr("href"),o=s.match(/(youtube|youtu|vimeo)\.(com|be)\/(watch\?v=([\w-]+)|([\w-]+))/);n.html("").addClass("nivo-lightbox-loading");if(this.isHidpi()&&r.attr("data-lightbox-hidpi")){s=r.attr("data-lightbox-hidpi")}if(s.match(/\.(jpeg|jpg|gif|png)$/i)!==null){var u=e("<img>",{src:s});u.one("load",function(){var r=e('<div class="nivo-lightbox-image" />');r.append(u);n.html(r).removeClass("nivo-lightbox-loading");r.css({"line-height":e(".nivo-lightbox-content").height()+"px",height:e(".nivo-lightbox-content").height()+"px"});e(t).resize(function(){r.css({"line-height":e(".nivo-lightbox-content").height()+"px",height:e(".nivo-lightbox-content").height()+"px"})})}).each(function(){if(this.complete)e(this).load()});u.error(function(){var t=e('<div class="nivo-lightbox-error"><p>'+i.options.errorMessage+"</p></div>");n.html(t).removeClass("nivo-lightbox-loading")})}else if(o){var a="",f="nivo-lightbox-video";if(o[1]=="youtube"){a="//www.youtube.com/embed/"+o[4];f="nivo-lightbox-youtube"}if(o[1]=="youtu"){a="//www.youtube.com/embed/"+o[3];f="nivo-lightbox-youtube"}if(o[1]=="vimeo"){a="//player.vimeo.com/video/"+o[3];f="nivo-lightbox-vimeo"}if(a){var l=e("<iframe>",{src:a,"class":f,frameborder:0,vspace:0,hspace:0,scrolling:"auto"});n.html(l);l.load(function(){n.removeClass("nivo-lightbox-loading")})}}else if(r.attr("data-lightbox-type")=="ajax"){e.ajax({url:s,cache:false,success:function(r){var i=e('<div class="nivo-lightbox-ajax" />');i.append(r);n.html(i).removeClass("nivo-lightbox-loading");if(i.outerHeight()<n.height()){i.css({position:"relative",top:"50%","margin-top":-(i.outerHeight()/2)+"px"})}e(t).resize(function(){if(i.outerHeight()<n.height()){i.css({position:"relative",top:"50%","margin-top":-(i.outerHeight()/2)+"px"})}})},error:function(){var t=e('<div class="nivo-lightbox-error"><p>'+i.options.errorMessage+"</p></div>");n.html(t).removeClass("nivo-lightbox-loading")}})}else if(s.substring(0,1)=="#"&&r.attr("data-lightbox-type")=="inline"){if(e(s).length){var c=e('<div class="nivo-lightbox-inline" />');c.append(e(s).clone().show());n.html(c).removeClass("nivo-lightbox-loading");if(c.outerHeight()<n.height()){c.css({position:"relative",top:"50%","margin-top":-(c.outerHeight()/2)+"px"})}e(t).resize(function(){if(c.outerHeight()<n.height()){c.css({position:"relative",top:"50%","margin-top":-(c.outerHeight()/2)+"px"})}})}else{var h=e('<div class="nivo-lightbox-error"><p>'+i.options.errorMessage+"</p></div>");n.html(h).removeClass("nivo-lightbox-loading")}}else if(r.attr("data-lightbox-type")=="iframe"){var p=e("<iframe>",{src:s,"class":"nivo-lightbox-item",frameborder:0,vspace:0,hspace:0,scrolling:"auto"});n.html(p);p.load(function(){n.removeClass("nivo-lightbox-loading")})}else{return false}if(r.attr("title")){var d=e("<span>",{"class":"nivo-lightbox-title"});d.text(r.attr("title"));e(".nivo-lightbox-title-wrap").html(d)}else{e(".nivo-lightbox-title-wrap").html("")}},constructLightbox:function(){if(e(".nivo-lightbox-overlay").length)return e(".nivo-lightbox-overlay");var t=e("<div>",{"class":"nivo-lightbox-overlay nivo-lightbox-theme-"+this.options.theme+" nivo-lightbox-effect-"+this.options.effect});var n=e("<div>",{"class":"nivo-lightbox-wrap"});var r=e("<div>",{"class":"nivo-lightbox-content"});var i=e('<a href="#" class="nivo-lightbox-nav nivo-lightbox-prev">Previous</a><a href="#" class="nivo-lightbox-nav nivo-lightbox-next">Next</a>');var s=e('<a href="#" class="nivo-lightbox-close" title="Close">Close</a>');var o=e("<div>",{"class":"nivo-lightbox-title-wrap"});var u=0;if(u)t.addClass("nivo-lightbox-ie");n.append(r);n.append(o);t.append(n);t.append(i);t.append(s);e("body").append(t);var a=this;if(a.options.clickOverlayToClose){t.on("click",function(t){if(t.target===this||e(t.target).hasClass("nivo-lightbox-content")||e(t.target).hasClass("nivo-lightbox-image")){a.destructLightbox()}})}s.on("click",function(e){e.preventDefault();a.destructLightbox()});return t},destructLightbox:function(){var t=this;this.options.beforeHideLightbox.call(this);e(".nivo-lightbox-overlay").removeClass("nivo-lightbox-open");e(".nivo-lightbox-nav").hide();e("body").removeClass("nivo-lightbox-body-effect-"+t.options.effect);var n=0;if(n){e(".nivo-lightbox-overlay iframe").attr("src"," ");e(".nivo-lightbox-overlay iframe").remove()}e(".nivo-lightbox-prev").off("click");e(".nivo-lightbox-next").off("click");e(".nivo-lightbox-content").empty();this.options.afterHideLightbox.call(this)},isHidpi:function(){var e="(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)";if(t.devicePixelRatio>1)return true;if(t.matchMedia&&t.matchMedia(e).matches)return true;return false}};e.fn[i]=function(t){return this.each(function(){if(!e.data(this,i)){e.data(this,i,new o(this,t))}})}})(jQuery,window,document)
6
  * Free to use and abuse under the MIT license.
7
  * http://www.opensource.org/licenses/mit-license.php
8
  */
9
+ (function(e,t,n,r){function o(t,n){this.el=t;this.$el=e(this.el);this.options=e.extend({},s,n);this._defaults=s;this._name=i;this.init()}var i="nivoLightbox",s={effect:"fade",theme:"default",keyboardNav:true,clickOverlayToClose:true,onInit:function(){},beforeShowLightbox:function(){},afterShowLightbox:function(e){},beforeHideLightbox:function(){},afterHideLightbox:function(){},onPrev:function(e){},onNext:function(e){},errorMessage:"The requested content cannot be loaded. Please try again later."};o.prototype={init:function(){var t=this;if(!e("html").hasClass("nivo-lightbox-notouch"))e("html").addClass("nivo-lightbox-notouch");if("ontouchstart"in n)e("html").removeClass("nivo-lightbox-notouch");this.$el.on("click",function(e){t.showLightbox(e)});if(this.options.keyboardNav){e("body").off("keyup").on("keyup",function(n){var r=n.keyCode?n.keyCode:n.which;if(r==27)t.destructLightbox();if(r==37)e(".nivo-lightbox-prev").trigger("click");if(r==39)e(".nivo-lightbox-next").trigger("click")})}this.options.onInit.call(this)},showLightbox:function(t){var n=this,r=this.$el;var i=this.checkContent(r);if(!i)return;t.preventDefault();this.options.beforeShowLightbox.call(this);var s=this.constructLightbox();if(!s)return;var o=s.find(".nivo-lightbox-content");if(!o)return;e("body").addClass("nivo-lightbox-body-effect-"+this.options.effect);this.processContent(o,r);if(this.$el.attr("data-lightbox-gallery")){var u=e('[data-lightbox-gallery="'+this.$el.attr("data-lightbox-gallery")+'"]');e(".nivo-lightbox-nav").show();e(".nivo-lightbox-prev").off("click").on("click",function(t){t.preventDefault();var i=u.index(r);r=u.eq(i-1);if(!e(r).length)r=u.last();n.processContent(o,r);n.options.onPrev.call(this,[r])});e(".nivo-lightbox-next").off("click").on("click",function(t){t.preventDefault();var i=u.index(r);r=u.eq(i+1);if(!e(r).length)r=u.first();n.processContent(o,r);n.options.onNext.call(this,[r])})}setTimeout(function(){s.addClass("nivo-lightbox-open");n.options.afterShowLightbox.call(this,[s])},1)},checkContent:function(e){var t=this,n=e.attr("href"),r=n.match(/(youtube|youtu|vimeo)\.(com|be)\/(watch\?v=([\w-]+)|([\w-]+))/);if(n.match(/\.(jpeg|jpg|gif|png)$/i)!==null){return true}else if(r){return true}else if(e.attr("data-lightbox-type")=="ajax"){return true}else if(n.substring(0,1)=="#"&&e.attr("data-lightbox-type")=="inline"){return true}else if(e.attr("data-lightbox-type")=="iframe"){return true}return false},processContent:function(n,r){var i=this,s=r.attr("href"),o=s.match(/(youtube|youtu|vimeo)\.(com|be)\/(watch\?v=([\w-]+)|([\w-]+))/);n.html("").addClass("nivo-lightbox-loading");if(this.isHidpi()&&r.attr("data-lightbox-hidpi")){s=r.attr("data-lightbox-hidpi")}if(s.match(/\.(jpeg|jpg|gif|png)$/i)!==null){var u=e("<img>",{src:s});u.one("load",function(){var r=e('<div class="nivo-lightbox-image" />');r.append(u);n.html(r).removeClass("nivo-lightbox-loading");r.css({"line-height":e(".nivo-lightbox-content").height()+"px",height:e(".nivo-lightbox-content").height()+"px"});e(t).resize(function(){r.css({"line-height":e(".nivo-lightbox-content").height()+"px",height:e(".nivo-lightbox-content").height()+"px"})})}).each(function(){if(this.complete)e(this).load()});u.error(function(){var t=e('<div class="nivo-lightbox-error"><p>'+i.options.errorMessage+"</p></div>");n.html(t).removeClass("nivo-lightbox-loading")})}else if(o){var a="",f="nivo-lightbox-video";if(o[1]=="youtube"){a="http://www.youtube.com/embed/"+o[4];f="nivo-lightbox-youtube"}if(o[1]=="youtu"){a="http://www.youtube.com/embed/"+o[3];f="nivo-lightbox-youtube"}if(o[1]=="vimeo"){a="http://player.vimeo.com/video/"+o[3];f="nivo-lightbox-vimeo"}if(a){var l=e("<iframe>",{src:a,"class":f,frameborder:0,vspace:0,hspace:0,scrolling:"auto"});n.html(l);l.load(function(){n.removeClass("nivo-lightbox-loading")})}}else if(r.attr("data-lightbox-type")=="ajax"){e.ajax({url:s,cache:false,success:function(r){var i=e('<div class="nivo-lightbox-ajax" />');i.append(r);n.html(i).removeClass("nivo-lightbox-loading");if(i.outerHeight()<n.height()){i.css({position:"relative",top:"50%","margin-top":-(i.outerHeight()/2)+"px"})}e(t).resize(function(){if(i.outerHeight()<n.height()){i.css({position:"relative",top:"50%","margin-top":-(i.outerHeight()/2)+"px"})}})},error:function(){var t=e('<div class="nivo-lightbox-error"><p>'+i.options.errorMessage+"</p></div>");n.html(t).removeClass("nivo-lightbox-loading")}})}else if(s.substring(0,1)=="#"&&r.attr("data-lightbox-type")=="inline"){if(e(s).length){var c=e('<div class="nivo-lightbox-inline" />');c.append(e(s).clone().show());n.html(c).removeClass("nivo-lightbox-loading");if(c.outerHeight()<n.height()){c.css({position:"relative",top:"50%","margin-top":-(c.outerHeight()/2)+"px"})}e(t).resize(function(){if(c.outerHeight()<n.height()){c.css({position:"relative",top:"50%","margin-top":-(c.outerHeight()/2)+"px"})}})}else{var h=e('<div class="nivo-lightbox-error"><p>'+i.options.errorMessage+"</p></div>");n.html(h).removeClass("nivo-lightbox-loading")}}else if(r.attr("data-lightbox-type")=="iframe"){var p=e("<iframe>",{src:s,"class":"nivo-lightbox-item",frameborder:0,vspace:0,hspace:0,scrolling:"auto"});n.html(p);p.load(function(){n.removeClass("nivo-lightbox-loading")})}else{return false}if(r.attr("title")){var d=e("<span>",{"class":"nivo-lightbox-title"});d.text(r.attr("title"));e(".nivo-lightbox-title-wrap").html(d)}else{e(".nivo-lightbox-title-wrap").html("")}},constructLightbox:function(){if(e(".nivo-lightbox-overlay").length)return e(".nivo-lightbox-overlay");var t=e("<div>",{"class":"nivo-lightbox-overlay nivo-lightbox-theme-"+this.options.theme+" nivo-lightbox-effect-"+this.options.effect});var n=e("<div>",{"class":"nivo-lightbox-wrap"});var r=e("<div>",{"class":"nivo-lightbox-content"});var i=e('<a href="#" class="nivo-lightbox-nav nivo-lightbox-prev">Previous</a><a href="#" class="nivo-lightbox-nav nivo-lightbox-next">Next</a>');var s=e('<a href="#" class="nivo-lightbox-close" title="Close">Close</a>');var o=e("<div>",{"class":"nivo-lightbox-title-wrap"});var u=0;if(u)t.addClass("nivo-lightbox-ie");n.append(r);n.append(o);t.append(n);t.append(i);t.append(s);e("body").append(t);var a=this;if(a.options.clickOverlayToClose){t.on("click",function(t){if(t.target===this||e(t.target).hasClass("nivo-lightbox-content")||e(t.target).hasClass("nivo-lightbox-image")){a.destructLightbox()}})}s.on("click",function(e){e.preventDefault();a.destructLightbox()});return t},destructLightbox:function(){var t=this;this.options.beforeHideLightbox.call(this);e(".nivo-lightbox-overlay").removeClass("nivo-lightbox-open");e(".nivo-lightbox-nav").hide();e("body").removeClass("nivo-lightbox-body-effect-"+t.options.effect);var n=0;if(n){e(".nivo-lightbox-overlay iframe").attr("src"," ");e(".nivo-lightbox-overlay iframe").remove()}e(".nivo-lightbox-prev").off("click");e(".nivo-lightbox-next").off("click");e(".nivo-lightbox-content").empty();this.options.afterHideLightbox.call(this)},isHidpi:function(){var e="(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)";if(t.devicePixelRatio>1)return true;if(t.matchMedia&&t.matchMedia(e).matches)return true;return false}};e.fn[i]=function(t){return this.each(function(){if(!e.data(this,i)){e.data(this,i,new o(this,t))}})}})(jQuery,window,document)
assets/prettyphoto/css/prettyPhoto.css CHANGED
@@ -139,8 +139,10 @@ a.pp_arrow_previous,a.pp_arrow_next{display:block;float:left;height:15px;margin-
139
  .pp_gallery li{display:block;float:left;margin:0 5px 0 0;padding:0}
140
  .pp_gallery li.default a{background:url(../images/prettyPhoto/facebook/default_thumbnail.gif) 0 0 no-repeat;display:block;height:33px;width:50px}
141
  .pp_gallery .pp_arrow_previous,.pp_gallery .pp_arrow_next{margin-top:7px!important}
142
- a.pp_next{background:url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;display:block;float:right;height:100%;text-indent:-10000px;width:49%}
143
- a.pp_previous{background:url(../images/prettyPhoto/light_rounded/btnNext.png) 10000px 10000px no-repeat;display:block;float:left;height:100%;text-indent:-10000px;width:49%}
 
 
144
  a.pp_expand,a.pp_contract{cursor:pointer;display:none;height:20px;position:absolute;right:30px;text-indent:-10000px;top:10px;width:20px;z-index:20000}
145
  a.pp_close{position:absolute;right:0;top:0;display:block;line-height:22px;text-indent:-10000px}
146
  .pp_loaderIcon{display:block;height:24px;left:50%;position:absolute;top:50%;width:24px;margin:-12px 0 0 -12px}
139
  .pp_gallery li{display:block;float:left;margin:0 5px 0 0;padding:0}
140
  .pp_gallery li.default a{background:url(../images/prettyPhoto/facebook/default_thumbnail.gif) 0 0 no-repeat;display:block;height:33px;width:50px}
141
  .pp_gallery .pp_arrow_previous,.pp_gallery .pp_arrow_next{margin-top:7px!important}
142
+
143
+ a.pp_next{background:url(../images/prettyPhoto/light_rounded/btnNext.png) no-repeat 10000px center;display:block;float:right;height:100%;text-indent:-10000px;width:49%}
144
+ a.pp_previous{background:url(../images/prettyPhoto/light_rounded/btnPrevious.png) no-repeat -10000px center;display:block;float:left;height:100%;text-indent:-10000px;width:49%}
145
+
146
  a.pp_expand,a.pp_contract{cursor:pointer;display:none;height:20px;position:absolute;right:30px;text-indent:-10000px;top:10px;width:20px;z-index:20000}
147
  a.pp_close{position:absolute;right:0;top:0;display:block;line-height:22px;text-indent:-10000px}
148
  .pp_loaderIcon{display:block;height:24px;left:50%;position:absolute;top:50%;width:24px;margin:-12px 0 0 -12px}
assets/swipebox/README.md CHANGED
@@ -16,10 +16,11 @@ Swipebox is a jQuery "lightbox" plugin for desktop, mobile and tablet.
16
  - CSS transitions with jQuery fallback
17
  - Retina support for UI icons
18
  - Easy CSS customization
 
19
 
20
  ###Compatibility
21
 
22
- Chrome, Safari, Firefox, Opera, IE8+, IOS4+, Android, windows phone.
23
 
24
  ##Usage
25
 
@@ -29,7 +30,7 @@ Include jquery and the swipebox script in your head tags or right before your bo
29
 
30
  ```html
31
  <script src="lib/jquery-1.9.0.js"></script>
32
- <script src="source/jquery.swipebox.js"></script>
33
  ```
34
 
35
  ###CSS
@@ -37,7 +38,7 @@ Include jquery and the swipebox script in your head tags or right before your bo
37
  Include the swipebox CSS style in your head tags.
38
 
39
  ```html
40
- <link rel="stylesheet" href="source/swipebox.css">
41
  ```
42
 
43
  ###HTML
@@ -53,18 +54,30 @@ Use a specific class for your links and use the title attribute as caption.
53
  Bind the swipebox behaviour on every link with the "swipebox" class.
54
 
55
  ```javascript
56
- $(".swipebox").swipebox();
57
  ```
58
 
59
  ###Options
60
 
61
  ```javascript
62
  useCSS : true, // false will force the use of jQuery for animations
63
- hideBarsDelay : 3000, // 0 to always show caption and action bar
 
 
64
  videoMaxWidth : 1140, // videos max width
65
  beforeOpen: function(){} , // called before opening
66
- afterClose: function(){} // called after closing
 
 
 
 
 
67
  ```
68
 
69
- ####Credits
70
- Photos by [Daniele Zedda](http://www.flickr.com/photos/astragony/)
 
 
 
 
 
16
  - CSS transitions with jQuery fallback
17
  - Retina support for UI icons
18
  - Easy CSS customization
19
+ - Video, Images and Inline content
20
 
21
  ###Compatibility
22
 
23
+ Chrome, Safari, Firefox, Opera, IE9+, IOS4+, Android, windows phone.
24
 
25
  ##Usage
26
 
30
 
31
  ```html
32
  <script src="lib/jquery-1.9.0.js"></script>
33
+ <script src="src/js/jquery.swipebox.js"></script>
34
  ```
35
 
36
  ###CSS
38
  Include the swipebox CSS style in your head tags.
39
 
40
  ```html
41
+ <link rel="stylesheet" href="src/css/swipebox.css">
42
  ```
43
 
44
  ###HTML
54
  Bind the swipebox behaviour on every link with the "swipebox" class.
55
 
56
  ```javascript
57
+ $( '.swipebox' ).swipebox();
58
  ```
59
 
60
  ###Options
61
 
62
  ```javascript
63
  useCSS : true, // false will force the use of jQuery for animations
64
+ initialIndexOnArray: 0, // which image index to init when a array is passed
65
+ hideCloseButtonOnMobile : false, // true will hide the close button on mobile devices
66
+ hideBarsDelay : 3000, // delay before hiding bars on desktop
67
  videoMaxWidth : 1140, // videos max width
68
  beforeOpen: function(){} , // called before opening
69
+ afterOpen: null, // called after opening
70
+ afterClose: function(){}, // called after closing
71
+ loopAtEnd: false, // true will return to the first image after the last image is reached
72
+ autoplayVideos: false // true will autoplay Youtube and Vimeo videos
73
+ queryStringData: {} // plain object with custom query string arguments to pass/override for video URLs,
74
+ toggleClassOnLoad: '' // CSS class that can be toggled when the slide will be loaded (like 'hidden' of Bootstrap)
75
  ```
76
 
77
+ ###Pull Requests
78
+
79
+ I want to keep this plugin as simple as possible. I won't merge pull requests for additional features such as download buttons, social like buttons, IE8 compatibility etc... But feel free to fork the project and customize it to suit to your needs. Most wanted PR are for bug fixes. Also, a future improvement will be to allow zoom on touchable devices.
80
+
81
+ If you want to submit a pull request please be sure to grunt the whole thing (mostly jshintrc validation and minified file) and send me a demo URL. Also, please comment your code.
82
+
83
+ Thanks for your understanding and thank you all for your helpful support!
assets/swipebox/css/swipebox.css ADDED
@@ -0,0 +1,287 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*! Swipebox v1.3.0 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */
2
+ html.swipebox-html.swipebox-touch {
3
+ overflow: hidden !important;
4
+ }
5
+
6
+ #swipebox-overlay img {
7
+ border: none !important;
8
+ }
9
+
10
+ #swipebox-overlay {
11
+ width: 100%;
12
+ height: 100%;
13
+ position: fixed;
14
+ top: 0;
15
+ left: 0;
16
+ z-index: 99999 !important;
17
+ overflow: hidden;
18
+ -webkit-user-select: none;
19
+ -moz-user-select: none;
20
+ -ms-user-select: none;
21
+ user-select: none;
22
+ }
23
+
24
+ #swipebox-container {
25
+ position: relative;
26
+ width: 100%;
27
+ height: 100%;
28
+ }
29
+
30
+ #swipebox-slider {
31
+ -webkit-transition: -webkit-transform 0.4s ease;
32
+ transition: transform 0.4s ease;
33
+ height: 100%;
34
+ left: 0;
35
+ top: 0;
36
+ width: 100%;
37
+ white-space: nowrap;
38
+ position: absolute;
39
+ display: none;
40
+ cursor: pointer;
41
+ }
42
+ #swipebox-slider .slide {
43
+ height: 100%;
44
+ width: 100%;
45
+ line-height: 1px;
46
+ text-align: center;
47
+ display: inline-block;
48
+ }
49
+ #swipebox-slider .slide:before {
50
+ content: "";
51
+ display: inline-block;
52
+ height: 50%;
53
+ width: 1px;
54
+ margin-right: -1px;
55
+ }
56
+ #swipebox-slider .slide img,
57
+ #swipebox-slider .slide .swipebox-video-container,
58
+ #swipebox-slider .slide .swipebox-inline-container {
59
+ display: inline-block;
60
+ max-height: 100%;
61
+ max-width: 100%;
62
+ margin: 0;
63
+ padding: 0;
64
+ width: auto;
65
+ height: auto;
66
+ vertical-align: middle;
67
+ }
68
+ #swipebox-slider .slide .swipebox-video-container {
69
+ background: none;
70
+ max-width: 1140px;
71
+ max-height: 100%;
72
+ width: 100%;
73
+ padding: 5%;
74
+ -webkit-box-sizing: border-box;
75
+ box-sizing: border-box;
76
+ }
77
+ #swipebox-slider .slide .swipebox-video-container .swipebox-video {
78
+ width: 100%;
79
+ height: 0;
80
+ padding-bottom: 56.25%;
81
+ overflow: hidden;
82
+ position: relative;
83
+ }
84
+ #swipebox-slider .slide .swipebox-video-container .swipebox-video iframe {
85
+ width: 100% !important;
86
+ height: 100% !important;
87
+ position: absolute;
88
+ top: 0;
89
+ left: 0;
90
+ }
91
+ #swipebox-slider .slide-loading {
92
+ background: url(../img/loader.gif) no-repeat center center;
93
+ }
94
+
95
+ #swipebox-bottom-bar,
96
+ #swipebox-top-bar {
97
+ -webkit-transition: 0.5s;
98
+ transition: 0.5s;
99
+ position: absolute;
100
+ left: 0;
101
+ z-index: 999;
102
+ height: 50px;
103
+ width: 100%;
104
+ }
105
+
106
+ #swipebox-bottom-bar {
107
+ bottom: -50px;
108
+ }
109
+ #swipebox-bottom-bar.visible-bars {
110
+ -webkit-transform: translate3d(0, -50px, 0);
111
+ transform: translate3d(0, -50px, 0);
112
+ }
113
+
114
+ #swipebox-top-bar {
115
+ top: -50px;
116
+ }
117
+ #swipebox-top-bar.visible-bars {
118
+ -webkit-transform: translate3d(0, 50px, 0);
119
+ transform: translate3d(0, 50px, 0);
120
+ }
121
+
122
+ #swipebox-title {
123
+ display: block;
124
+ width: 100%;
125
+ text-align: center;
126
+ }
127
+
128
+ #swipebox-prev,
129
+ #swipebox-next,
130
+ #swipebox-close {
131
+ background-image: url(../img/icons.png);
132
+ background-repeat: no-repeat;
133
+ border: none !important;
134
+ text-decoration: none !important;
135
+ cursor: pointer;
136
+ width: 50px;
137
+ height: 50px;
138
+ top: 0;
139
+ }
140
+
141
+ #swipebox-arrows {
142
+ display: block;
143
+ margin: 0 auto;
144
+ width: 100%;
145
+ height: 50px;
146
+ }
147
+
148
+ #swipebox-prev {
149
+ background-position: -32px 13px;
150
+ float: left;
151
+ }
152
+
153
+ #swipebox-next {
154
+ background-position: -78px 13px;
155
+ float: right;
156
+ }
157
+
158
+ #swipebox-close {
159
+ top: 0;
160
+ right: 0;
161
+ position: absolute;
162
+ z-index: 9999;
163
+ background-position: 15px 12px;
164
+ }
165
+
166
+ .swipebox-no-close-button #swipebox-close {
167
+ display: none;
168
+ }
169
+
170
+ #swipebox-prev.disabled,
171
+ #swipebox-next.disabled {
172
+ opacity: 0.3;
173
+ }
174
+
175
+ .swipebox-no-touch #swipebox-overlay.rightSpring #swipebox-slider {
176
+ -webkit-animation: rightSpring 0.3s;
177
+ animation: rightSpring 0.3s;
178
+ }
179
+ .swipebox-no-touch #swipebox-overlay.leftSpring #swipebox-slider {
180
+ -webkit-animation: leftSpring 0.3s;
181
+ animation: leftSpring 0.3s;
182
+ }
183
+
184
+ .swipebox-touch #swipebox-container:before, .swipebox-touch #swipebox-container:after {
185
+ -webkit-backface-visibility: hidden;
186
+ backface-visibility: hidden;
187
+ -webkit-transition: all .3s ease;
188
+ transition: all .3s ease;
189
+ content: ' ';
190
+ position: absolute;
191
+ z-index: 999;
192
+ top: 0;
193
+ height: 100%;
194
+ width: 20px;
195
+ opacity: 0;
196
+ }
197
+ .swipebox-touch #swipebox-container:before {
198
+ left: 0;
199
+ -webkit-box-shadow: inset 10px 0px 10px -8px #656565;
200
+ box-shadow: inset 10px 0px 10px -8px #656565;
201
+ }
202
+ .swipebox-touch #swipebox-container:after {
203
+ right: 0;
204
+ -webkit-box-shadow: inset -10px 0px 10px -8px #656565;
205
+ box-shadow: inset -10px 0px 10px -8px #656565;
206
+ }
207
+ .swipebox-touch #swipebox-overlay.leftSpringTouch #swipebox-container:before {
208
+ opacity: 1;
209
+ }
210
+ .swipebox-touch #swipebox-overlay.rightSpringTouch #swipebox-container:after {
211
+ opacity: 1;
212
+ }
213
+
214
+ @-webkit-keyframes rightSpring {
215
+ 0% {
216
+ left: 0;
217
+ }
218
+ 50% {
219
+ left: -30px;
220
+ }
221
+ 100% {
222
+ left: 0;
223
+ }
224
+ }
225
+
226
+ @keyframes rightSpring {
227
+ 0% {
228
+ left: 0;
229
+ }
230
+ 50% {
231
+ left: -30px;
232
+ }
233
+ 100% {
234
+ left: 0;
235
+ }
236
+ }
237
+ @-webkit-keyframes leftSpring {
238
+ 0% {
239
+ left: 0;
240
+ }
241
+ 50% {
242
+ left: 30px;
243
+ }
244
+ 100% {
245
+ left: 0;
246
+ }
247
+ }
248
+ @keyframes leftSpring {
249
+ 0% {
250
+ left: 0;
251
+ }
252
+ 50% {
253
+ left: 30px;
254
+ }
255
+ 100% {
256
+ left: 0;
257
+ }
258
+ }
259
+ @media screen and (min-width: 800px) {
260
+ #swipebox-close {
261
+ right: 10px;
262
+ }
263
+
264
+ #swipebox-arrows {
265
+ width: 92%;
266
+ max-width: 800px;
267
+ }
268
+ }
269
+ /* Skin
270
+ --------------------------*/
271
+ #swipebox-overlay {
272
+ background: #0d0d0d;
273
+ }
274
+
275
+ #swipebox-bottom-bar,
276
+ #swipebox-top-bar {
277
+ text-shadow: 1px 1px 1px black;
278
+ background: #000;
279
+ opacity: 0.95;
280
+ }
281
+
282
+ #swipebox-top-bar {
283
+ color: white !important;
284
+ font-size: 15px;
285
+ line-height: 43px;
286
+ font-family: Helvetica, Arial, sans-serif;
287
+ }
assets/swipebox/css/swipebox.min.css ADDED
@@ -0,0 +1 @@
 
1
+ /*! Swipebox v1.3.0 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */html.swipebox-html.swipebox-touch{overflow:hidden!important}#swipebox-overlay img{border:none!important}#swipebox-overlay{width:100%;height:100%;position:fixed;top:0;left:0;z-index:99999!important;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#swipebox-container{position:relative;width:100%;height:100%}#swipebox-slider{-webkit-transition:-webkit-transform .4s ease;transition:transform .4s ease;height:100%;left:0;top:0;width:100%;white-space:nowrap;position:absolute;display:none;cursor:pointer}#swipebox-slider .slide{height:100%;width:100%;line-height:1px;text-align:center;display:inline-block}#swipebox-slider .slide:before{content:"";display:inline-block;height:50%;width:1px;margin-right:-1px}#swipebox-slider .slide .swipebox-inline-container,#swipebox-slider .slide .swipebox-video-container,#swipebox-slider .slide img{display:inline-block;max-height:100%;max-width:100%;margin:0;padding:0;width:auto;height:auto;vertical-align:middle}#swipebox-slider .slide .swipebox-video-container{background:0 0;max-width:1140px;max-height:100%;width:100%;padding:5%;-webkit-box-sizing:border-box;box-sizing:border-box}#swipebox-slider .slide .swipebox-video-container .swipebox-video{width:100%;height:0;padding-bottom:56.25%;overflow:hidden;position:relative}#swipebox-slider .slide .swipebox-video-container .swipebox-video iframe{width:100%!important;height:100%!important;position:absolute;top:0;left:0}#swipebox-slider .slide-loading{background:url(../img/loader.gif) center center no-repeat}#swipebox-bottom-bar,#swipebox-top-bar{-webkit-transition:.5s;transition:.5s;position:absolute;left:0;z-index:999;height:50px;width:100%}#swipebox-bottom-bar{bottom:-50px}#swipebox-bottom-bar.visible-bars{-webkit-transform:translate3d(0,-50px,0);transform:translate3d(0,-50px,0)}#swipebox-top-bar{top:-50px}#swipebox-top-bar.visible-bars{-webkit-transform:translate3d(0,50px,0);transform:translate3d(0,50px,0)}#swipebox-title{display:block;width:100%;text-align:center}#swipebox-close,#swipebox-next,#swipebox-prev{background-image:url(../img/icons.png);background-repeat:no-repeat;border:none!important;text-decoration:none!important;cursor:pointer;width:50px;height:50px;top:0}#swipebox-arrows{display:block;margin:0 auto;width:100%;height:50px}#swipebox-prev{background-position:-32px 13px;float:left}#swipebox-next{background-position:-78px 13px;float:right}#swipebox-close{top:0;right:0;position:absolute;z-index:9999;background-position:15px 12px}.swipebox-no-close-button #swipebox-close{display:none}#swipebox-next.disabled,#swipebox-prev.disabled{opacity:.3}.swipebox-no-touch #swipebox-overlay.rightSpring #swipebox-slider{-webkit-animation:rightSpring .3s;animation:rightSpring .3s}.swipebox-no-touch #swipebox-overlay.leftSpring #swipebox-slider{-webkit-animation:leftSpring .3s;animation:leftSpring .3s}.swipebox-touch #swipebox-container:after,.swipebox-touch #swipebox-container:before{-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition:all .3s ease;transition:all .3s ease;content:' ';position:absolute;z-index:999;top:0;height:100%;width:20px;opacity:0}.swipebox-touch #swipebox-container:before{left:0;-webkit-box-shadow:inset 10px 0 10px -8px #656565;box-shadow:inset 10px 0 10px -8px #656565}.swipebox-touch #swipebox-container:after{right:0;-webkit-box-shadow:inset -10px 0 10px -8px #656565;box-shadow:inset -10px 0 10px -8px #656565}.swipebox-touch #swipebox-overlay.leftSpringTouch #swipebox-container:before,.swipebox-touch #swipebox-overlay.rightSpringTouch #swipebox-container:after{opacity:1}@-webkit-keyframes rightSpring{0%{left:0}50%{left:-30px}100%{left:0}}@keyframes rightSpring{0%{left:0}50%{left:-30px}100%{left:0}}@-webkit-keyframes leftSpring{0%{left:0}50%{left:30px}100%{left:0}}@keyframes leftSpring{0%{left:0}50%{left:30px}100%{left:0}}@media screen and (min-width:800px){#swipebox-close{right:10px}#swipebox-arrows{width:92%;max-width:800px}}#swipebox-overlay{background:#0d0d0d}#swipebox-bottom-bar,#swipebox-top-bar{text-shadow:1px 1px 1px #000;background:#000;opacity:.95}#swipebox-top-bar{color:#fff!important;font-size:15px;line-height:43px;font-family:Helvetica,Arial,sans-serif}
assets/swipebox/img/icons.png ADDED
Binary file
assets/swipebox/img/icons.svg ADDED
@@ -0,0 +1 @@
 
1
+ <?xml version="1.0" encoding="utf-8"?> <!-- Generator: IcoMoon.io --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="120" height="24" viewBox="0 0 120 24" fill="#ffffff" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M 17.384,17.705q0.00,0.536 -0.375,0.911l-1.821,1.821q-0.375,0.375 -0.911,0.375t-0.911-0.375l-3.938-3.938l-3.938,3.938q-0.375,0.375 -0.911,0.375t-0.911-0.375l-1.821-1.821q-0.375-0.375 -0.375-0.911t 0.375-0.911l 3.938-3.938l-3.938-3.938q-0.375-0.375 -0.375-0.911t 0.375-0.911l 1.821-1.821q 0.375-0.375 0.911-0.375t 0.911,0.375l 3.938,3.938l 3.938-3.938q 0.375-0.375 0.911-0.375t 0.911,0.375l 1.821,1.821q 0.375,0.375 0.375,0.911 t-0.375,0.911l-3.938,3.938l 3.938,3.938q 0.375,0.375 0.375,0.911zM 57.938,21.067l-8.732-8.719q-0.496-0.496 -0.496-1.212t 0.496-1.212l 8.732-8.719q 0.496-0.496 1.212-0.496t 1.212,0.496l 1.004,1.004q 0.496,0.496 0.496,1.212t-0.496,1.212l-6.509,6.509l 6.509,6.496q 0.496,0.509 0.496,1.219t-0.496,1.205l-1.004,1.004q-0.496,0.496 -1.212,0.496t-1.212-0.496zM 110.719,11.143q0.00,0.696 -0.496,1.219l-8.732,8.719q-0.496,0.496 -1.205,0.496t-1.205-0.496l-1.018-1.004q-0.496-0.522 -0.496-1.219q0.00-0.71 0.496-1.205l 6.509-6.509l-6.509-6.496q-0.496-0.522 -0.496-1.219q0.00-0.71 0.496-1.205l 1.018-1.004q 0.482-0.509 1.205-0.509t 1.205,0.509l 8.732,8.719q 0.496,0.496 0.496,1.205z"></path></svg>
assets/swipebox/img/loader.gif ADDED
Binary file
assets/swipebox/js/jquery.swipebox.js ADDED
@@ -0,0 +1,929 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*! Swipebox v1.3.0.2 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */
2
+
3
+ ;( function ( window, document, $, undefined ) {
4
+
5
+ $.swipebox = function( elem, options ) {
6
+
7
+ // Default options
8
+ var ui,
9
+ defaults = {
10
+ useCSS : true,
11
+ useSVG : true,
12
+ initialIndexOnArray : 0,
13
+ removeBarsOnMobile : true,
14
+ hideCloseButtonOnMobile : false,
15
+ hideBarsDelay : 3000,
16
+ videoMaxWidth : 1140,
17
+ vimeoColor : 'cccccc',
18
+ beforeOpen: null,
19
+ afterOpen: null,
20
+ afterClose: null,
21
+ loopAtEnd: false,
22
+ autoplayVideos: false,
23
+ queryStringData: {},
24
+ toggleClassOnLoad: ''
25
+ },
26
+
27
+ plugin = this,
28
+ elements = [], // slides array [ { href:'...', title:'...' }, ...],
29
+ $elem,
30
+ selector = elem.selector,
31
+ $selector = $( selector ),
32
+ isMobile = navigator.userAgent.match( /(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i ),
33
+ isTouch = isMobile !== null || document.createTouch !== undefined || ( 'ontouchstart' in window ) || ( 'onmsgesturechange' in window ) || navigator.msMaxTouchPoints,
34
+ supportSVG = !! document.createElementNS && !! document.createElementNS( 'http://www.w3.org/2000/svg', 'svg').createSVGRect,
35
+ winWidth = window.innerWidth ? window.innerWidth : $( window ).width(),
36
+ winHeight = window.innerHeight ? window.innerHeight : $( window ).height(),
37
+ currentX = 0,
38
+ /* jshint multistr: true */
39
+ html = '<div id="swipebox-overlay">\
40
+ <div id="swipebox-container">\
41
+ <div id="swipebox-slider"></div>\
42
+ <div id="swipebox-top-bar">\
43
+ <div id="swipebox-title"></div>\
44
+ </div>\
45
+ <div id="swipebox-bottom-bar">\
46
+ <div id="swipebox-arrows">\
47
+ <a id="swipebox-prev"></a>\
48
+ <a id="swipebox-next"></a>\
49
+ </div>\
50
+ </div>\
51
+ <a id="swipebox-close"></a>\
52
+ </div>\
53
+ </div>';
54
+
55
+ plugin.settings = {};
56
+
57
+ $.swipebox.close = function () {
58
+ ui.closeSlide();
59
+ };
60
+
61
+ $.swipebox.extend = function () {
62
+ return ui;
63
+ };
64
+
65
+ plugin.init = function() {
66
+
67
+ plugin.settings = $.extend( {}, defaults, options );
68
+
69
+ if ( $.isArray( elem ) ) {
70
+
71
+ elements = elem;
72
+ ui.target = $( window );
73
+ ui.init( plugin.settings.initialIndexOnArray );
74
+
75
+ } else {
76
+
77
+ $( document ).on( 'click', selector, function( event ) {
78
+
79
+ // console.log( isTouch );
80
+
81
+ if ( event.target.parentNode.className === 'slide current' ) {
82
+
83
+ return false;
84
+ }
85
+
86
+ if ( ! $.isArray( elem ) ) {
87
+ ui.destroy();
88
+ $elem = $( selector );
89
+ ui.actions();
90
+ }
91
+
92
+ elements = [];
93
+ var index , relType, relVal;
94
+
95
+ // Allow for HTML5 compliant attribute before legacy use of rel
96
+ if ( ! relVal ) {
97
+ relType = 'data-rel';
98
+ relVal = $( this ).attr( relType );
99
+ }
100
+
101
+ if ( ! relVal ) {
102
+ relType = 'rel';
103
+ relVal = $( this ).attr( relType );
104
+ }
105
+
106
+ if ( relVal && relVal !== '' && relVal !== 'nofollow' ) {
107
+ $elem = $selector.filter( '[' + relType + '="' + relVal + '"]' );
108
+ } else {
109
+ $elem = $( selector );
110
+ }
111
+
112
+ $elem.each( function() {
113
+
114
+ var title = null,
115
+ href = null;
116
+
117
+ if ( $( this ).attr( 'title' ) ) {
118
+ title = $( this ).attr( 'title' );
119
+ }
120
+
121
+
122
+ if ( $( this ).attr( 'href' ) ) {
123
+ href = $( this ).attr( 'href' );
124
+ }
125
+
126
+ elements.push( {
127
+ href: href,
128
+ title: title
129
+ } );
130
+ } );
131
+
132
+ index = $elem.index( $( this ) );
133
+ event.preventDefault();
134
+ event.stopPropagation();
135
+ ui.target = $( event.target );
136
+ ui.init( index );
137
+ } );
138
+ }
139
+ };
140
+
141
+ ui = {
142
+
143
+ /**
144
+ * Initiate Swipebox
145
+ */
146
+ init : function( index ) {
147
+ if ( plugin.settings.beforeOpen ) {
148
+ plugin.settings.beforeOpen();
149
+ }
150
+ this.target.trigger( 'swipebox-start' );
151
+ $.swipebox.isOpen = true;
152
+ this.build();
153
+ this.openSlide( index );
154
+ this.openMedia( index );
155
+ this.preloadMedia( index+1 );
156
+ this.preloadMedia( index-1 );
157
+ if ( plugin.settings.afterOpen ) {
158
+ plugin.settings.afterOpen();
159
+ }
160
+ },
161
+
162
+ /**
163
+ * Built HTML containers and fire main functions
164
+ */
165
+ build : function () {
166
+ var $this = this, bg;
167
+
168
+ $( 'body' ).append( html );
169
+
170
+ if ( supportSVG && plugin.settings.useSVG === true ) {
171
+ bg = $( '#swipebox-close' ).css( 'background-image' );
172
+ bg = bg.replace( 'png', 'svg' );
173
+ $( '#swipebox-prev, #swipebox-next, #swipebox-close' ).css( {
174
+ 'background-image' : bg
175
+ } );
176
+ }
177
+
178
+ if ( isMobile && plugin.settings.removeBarsOnMobile ) {
179
+ $( '#swipebox-bottom-bar, #swipebox-top-bar' ).remove();
180
+ }
181
+
182
+ $.each( elements, function() {
183
+ $( '#swipebox-slider' ).append( '<div class="slide"></div>' );
184
+ } );
185
+
186
+ $this.setDim();
187
+ $this.actions();
188
+
189
+ if ( isTouch ) {
190
+ $this.gesture();
191
+ }
192
+
193
+ // Devices can have both touch and keyboard input so always allow key events
194
+ $this.keyboard();
195
+
196
+ $this.animBars();
197
+ $this.resize();
198
+
199
+ },
200
+
201
+ /**
202
+ * Set dimensions depending on windows width and height
203
+ */
204
+ setDim : function () {
205
+
206
+ var width, height, sliderCss = {};
207
+
208
+ // Reset dimensions on mobile orientation change
209
+ if ( 'onorientationchange' in window ) {
210
+
211
+ window.addEventListener( 'orientationchange', function() {
212
+ if ( window.orientation === 0 ) {
213
+ width = winWidth;
214
+ height = winHeight;
215
+ } else if ( window.orientation === 90 || window.orientation === -90 ) {
216
+ width = winHeight;
217
+ height = winWidth;
218
+ }
219
+ }, false );
220
+
221
+
222
+ } else {
223
+
224
+ width = window.innerWidth ? window.innerWidth : $( window ).width();
225
+ height = window.innerHeight ? window.innerHeight : $( window ).height();
226
+ }
227
+
228
+ sliderCss = {
229
+ width : width,
230
+ height : height
231
+ };
232
+
233
+ $( '#swipebox-overlay' ).css( sliderCss );
234
+
235
+ },
236
+
237
+ /**
238
+ * Reset dimensions on window resize envent
239
+ */
240
+ resize : function () {
241
+ var $this = this;
242
+
243
+ $( window ).resize( function() {
244
+ $this.setDim();
245
+ } ).resize();
246
+ },
247
+
248
+ /**
249
+ * Check if device supports CSS transitions
250
+ */
251
+ supportTransition : function () {
252
+
253
+ var prefixes = 'transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition'.split( ' ' ),
254
+ i;
255
+
256
+ for ( i = 0; i < prefixes.length; i++ ) {
257
+ if ( document.createElement( 'div' ).style[ prefixes[i] ] !== undefined ) {
258
+ return prefixes[i];
259
+ }
260
+ }
261
+ return false;
262
+ },
263
+
264
+ /**
265
+ * Check if CSS transitions are allowed (options + devicesupport)
266
+ */
267
+ doCssTrans : function () {
268
+ if ( plugin.settings.useCSS && this.supportTransition() ) {
269
+ return true;
270
+ }
271
+ },
272
+
273
+ /**
274
+ * Touch navigation
275
+ */
276
+ gesture : function () {
277
+
278
+ var $this = this,
279
+ index,
280
+ hDistance,
281
+ vDistance,
282
+ hDistanceLast,
283
+ vDistanceLast,
284
+ hDistancePercent,
285
+ vSwipe = false,
286
+ hSwipe = false,
287
+ hSwipMinDistance = 10,
288
+ vSwipMinDistance = 50,
289
+ startCoords = {},
290
+ endCoords = {},
291
+ bars = $( '#swipebox-top-bar, #swipebox-bottom-bar' ),
292
+ slider = $( '#swipebox-slider' );
293
+
294
+ bars.addClass( 'visible-bars' );
295
+ $this.setTimeout();
296
+
297
+ $( 'body' ).bind( 'touchstart', function( event ) {
298
+
299
+ $( this ).addClass( 'touching' );
300
+ index = $( '#swipebox-slider .slide' ).index( $( '#swipebox-slider .slide.current' ) );
301
+ endCoords = event.originalEvent.targetTouches[0];
302
+ startCoords.pageX = event.originalEvent.targetTouches[0].pageX;
303
+ startCoords.pageY = event.originalEvent.targetTouches[0].pageY;
304
+
305
+ $( '#swipebox-slider' ).css( {
306
+ '-webkit-transform' : 'translate3d(' + currentX +'%, 0, 0)',
307
+ 'transform' : 'translate3d(' + currentX + '%, 0, 0)'
308
+ } );
309
+
310
+ $( '.touching' ).bind( 'touchmove',function( event ) {
311
+ event.preventDefault();
312
+ event.stopPropagation();
313
+ endCoords = event.originalEvent.targetTouches[0];
314
+
315
+ if ( ! hSwipe ) {
316
+ vDistanceLast = vDistance;
317
+ vDistance = endCoords.pageY - startCoords.pageY;
318
+ if ( Math.abs( vDistance ) >= vSwipMinDistance || vSwipe ) {
319
+ var opacity = 0.75 - Math.abs(vDistance) / slider.height();
320
+
321
+ slider.css( { 'top': vDistance + 'px' } );
322
+ slider.css( { 'opacity': opacity } );
323
+
324
+ vSwipe = true;
325
+ }
326
+ }
327
+
328
+ hDistanceLast = hDistance;
329
+ hDistance = endCoords.pageX - startCoords.pageX;
330
+ hDistancePercent = hDistance * 100 / winWidth;
331
+
332
+ if ( ! hSwipe && ! vSwipe && Math.abs( hDistance ) >= hSwipMinDistance ) {
333
+ $( '#swipebox-slider' ).css( {
334
+ '-webkit-transition' : '',
335
+ 'transition' : ''
336
+ } );
337
+ hSwipe = true;
338
+ }
339
+
340
+ if ( hSwipe ) {
341
+
342
+ // swipe left
343
+ if ( 0 < hDistance ) {
344
+
345
+ // first slide
346
+ if ( 0 === index ) {
347
+ // console.log( 'first' );
348
+ $( '#swipebox-overlay' ).addClass( 'leftSpringTouch' );
349
+ } else {
350
+ // Follow gesture
351
+ $( '#swipebox-overlay' ).removeClass( 'leftSpringTouch' ).removeClass( 'rightSpringTouch' );
352
+ $( '#swipebox-slider' ).css( {
353
+ '-webkit-transform' : 'translate3d(' + ( currentX + hDistancePercent ) +'%, 0, 0)',
354
+ 'transform' : 'translate3d(' + ( currentX + hDistancePercent ) + '%, 0, 0)'
355
+ } );
356
+ }
357
+
358
+ // swipe rught
359
+ } else if ( 0 > hDistance ) {
360
+
361
+ // last Slide
362
+ if ( elements.length === index +1 ) {
363
+ // console.log( 'last' );
364
+ $( '#swipebox-overlay' ).addClass( 'rightSpringTouch' );
365
+ } else {
366
+ $( '#swipebox-overlay' ).removeClass( 'leftSpringTouch' ).removeClass( 'rightSpringTouch' );
367
+ $( '#swipebox-slider' ).css( {
368
+ '-webkit-transform' : 'translate3d(' + ( currentX + hDistancePercent ) +'%, 0, 0)',
369
+ 'transform' : 'translate3d(' + ( currentX + hDistancePercent ) + '%, 0, 0)'
370
+ } );
371
+ }
372
+
373
+ }
374
+ }
375
+ } );
376
+
377
+ return false;
378
+
379
+ } ).bind( 'touchend',function( event ) {
380
+ event.preventDefault();
381
+ event.stopPropagation();
382
+
383
+ $( '#swipebox-slider' ).css( {
384
+ '-webkit-transition' : '-webkit-transform 0.4s ease',
385
+ 'transition' : 'transform 0.4s ease'
386
+ } );
387
+
388
+ vDistance = endCoords.pageY - startCoords.pageY;
389
+ hDistance = endCoords.pageX - startCoords.pageX;
390
+ hDistancePercent = hDistance*100/winWidth;
391
+
392
+ // Swipe to bottom to close
393
+ if ( vSwipe ) {
394
+ vSwipe = false;
395
+ if ( Math.abs( vDistance ) >= 2 * vSwipMinDistance && Math.abs( vDistance ) > Math.abs( vDistanceLast ) ) {
396
+ var vOffset = vDistance > 0 ? slider.height() : - slider.height();
397
+ slider.animate( { top: vOffset + 'px', 'opacity': 0 },
398
+ 300,
399
+ function () {
400
+ $this.closeSlide();
401
+ } );
402
+ } else {
403
+ slider.animate( { top: 0, 'opacity': 1 }, 300 );
404
+ }
405
+
406
+ } else if ( hSwipe ) {
407
+
408
+ hSwipe = false;
409
+
410
+ // swipeLeft
411
+ if( hDistance >= hSwipMinDistance && hDistance >= hDistanceLast) {
412
+
413
+ $this.getPrev();
414
+
415
+ // swipeRight
416
+ } else if ( hDistance <= -hSwipMinDistance && hDistance <= hDistanceLast) {
417
+
418
+ $this.getNext();
419
+ }
420
+
421
+ } else { // Top and bottom bars have been removed on touchable devices
422
+ // tap
423
+ if ( ! bars.hasClass( 'visible-bars' ) ) {
424
+ $this.showBars();
425
+ $this.setTimeout();
426
+ } else {
427
+ $this.clearTimeout();
428
+ $this.hideBars();
429
+ }
430
+ }
431
+
432
+ $( '#swipebox-slider' ).css( {
433
+ '-webkit-transform' : 'translate3d(' + currentX + '%, 0, 0)',
434
+ 'transform' : 'translate3d(' + currentX + '%, 0, 0)'
435
+ } );
436
+
437
+ $( '#swipebox-overlay' ).removeClass( 'leftSpringTouch' ).removeClass( 'rightSpringTouch' );
438
+ $( '.touching' ).off( 'touchmove' ).removeClass( 'touching' );
439
+
440
+ } );
441
+ },
442
+
443
+ /**
444
+ * Set timer to hide the action bars
445
+ */
446
+ setTimeout: function () {
447
+ if ( plugin.settings.hideBarsDelay > 0 ) {
448
+ var $this = this;
449
+ $this.clearTimeout();
450
+ $this.timeout = window.setTimeout( function() {
451
+ $this.hideBars();
452
+ },
453
+
454
+ plugin.settings.hideBarsDelay
455
+ );
456
+ }
457
+ },
458
+
459
+ /**
460
+ * Clear timer
461
+ */
462
+ clearTimeout: function () {
463
+ window.clearTimeout( this.timeout );
464
+ this.timeout = null;
465
+ },
466
+
467
+ /**
468
+ * Show navigation and title bars
469
+ */
470
+ showBars : function () {
471
+ var bars = $( '#swipebox-top-bar, #swipebox-bottom-bar' );
472
+ if ( this.doCssTrans() ) {
473
+ bars.addClass( 'visible-bars' );
474
+ } else {
475
+ $( '#swipebox-top-bar' ).animate( { top : 0 }, 500 );
476
+ $( '#swipebox-bottom-bar' ).animate( { bottom : 0 }, 500 );
477
+ setTimeout( function() {
478
+ bars.addClass( 'visible-bars' );
479
+ }, 1000 );
480
+ }
481
+ },
482
+
483
+ /**
484
+ * Hide navigation and title bars
485
+ */
486
+ hideBars : function () {
487
+ var bars = $( '#swipebox-top-bar, #swipebox-bottom-bar' );
488
+ if ( this.doCssTrans() ) {
489
+ bars.removeClass( 'visible-bars' );
490
+ } else {
491
+ $( '#swipebox-top-bar' ).animate( { top : '-50px' }, 500 );
492
+ $( '#swipebox-bottom-bar' ).animate( { bottom : '-50px' }, 500 );
493
+ setTimeout( function() {
494
+ bars.removeClass( 'visible-bars' );
495
+ }, 1000 );
496
+ }
497
+ },
498
+
499
+ /**
500
+ * Animate navigation and top bars
501
+ */
502
+ animBars : function () {
503
+ var $this = this,
504
+ bars = $( '#swipebox-top-bar, #swipebox-bottom-bar' );
505
+
506
+ bars.addClass( 'visible-bars' );
507
+ $this.setTimeout();
508
+
509
+ $( '#swipebox-slider' ).click( function() {
510
+ if ( ! bars.hasClass( 'visible-bars' ) ) {
511
+ $this.showBars();
512
+ $this.setTimeout();
513
+ }
514
+ } );
515
+
516
+ $( '#swipebox-bottom-bar' ).hover( function() {
517
+ $this.showBars();
518
+ bars.addClass( 'visible-bars' );
519
+ $this.clearTimeout();
520
+
521
+ }, function() {
522
+ if ( plugin.settings.hideBarsDelay > 0 ) {
523
+ bars.removeClass( 'visible-bars' );
524
+ $this.setTimeout();
525
+ }
526
+
527
+ } );
528
+ },
529
+
530
+ /**
531
+ * Keyboard navigation
532
+ */
533
+ keyboard : function () {
534
+ var $this = this;
535
+ $( window ).bind( 'keyup', function( event ) {
536
+ event.preventDefault();
537
+ event.stopPropagation();
538
+
539
+ if ( event.keyCode === 37 ) {
540
+
541
+ $this.getPrev();
542
+
543
+ } else if ( event.keyCode === 39 ) {
544
+
545
+ $this.getNext();
546
+
547
+ } else if ( event.keyCode === 27 ) {
548
+
549
+ $this.closeSlide();
550
+ }
551
+ } );
552
+ },
553
+
554
+ /**
555
+ * Navigation events : go to next slide, go to prevous slide and close
556
+ */
557
+ actions : function () {
558
+ var $this = this,
559
+ action = 'touchend click'; // Just detect for both event types to allow for multi-input
560
+
561
+ if ( elements.length < 2 ) {
562
+
563
+ $( '#swipebox-bottom-bar' ).hide();
564
+
565
+ if ( undefined === elements[ 1 ] ) {
566
+ $( '#swipebox-top-bar' ).hide();
567
+ }
568
+
569
+ } else {
570
+ $( '#swipebox-prev' ).bind( action, function( event ) {
571
+ event.preventDefault();
572
+ event.stopPropagation();
573
+ $this.getPrev();
574
+ $this.setTimeout();
575
+ } );
576
+
577
+ $( '#swipebox-next' ).bind( action, function( event ) {
578
+ event.preventDefault();
579
+ event.stopPropagation();
580
+ $this.getNext();
581
+ $this.setTimeout();
582
+ } );
583
+ }
584
+
585
+ $( '#swipebox-close' ).bind( action, function() {
586
+ $this.closeSlide();
587
+ } );
588
+ },
589
+
590
+ /**
591
+ * Set current slide
592
+ */
593
+ setSlide : function ( index, isFirst ) {
594
+
595
+ isFirst = isFirst || false;
596
+
597
+ var slider = $( '#swipebox-slider' );
598
+
599
+ currentX = -index*100;
600
+
601
+ if ( this.doCssTrans() ) {
602
+ slider.css( {
603
+ '-webkit-transform' : 'translate3d(' + (-index*100)+'%, 0, 0)',
604
+ 'transform' : 'translate3d(' + (-index*100)+'%, 0, 0)'
605
+ } );
606
+ } else {
607
+ slider.animate( { left : ( -index*100 )+'%' } );
608
+ }
609
+
610
+ $( '#swipebox-slider .slide' ).removeClass( 'current' );
611
+ $( '#swipebox-slider .slide' ).eq( index ).addClass( 'current' );
612
+ this.setTitle( index );
613
+
614
+ if ( isFirst ) {
615
+ slider.fadeIn();
616
+ }
617
+
618
+ $( '#swipebox-prev, #swipebox-next' ).removeClass( 'disabled' );
619
+
620
+ if ( index === 0 ) {
621
+ $( '#swipebox-prev' ).addClass( 'disabled' );
622
+ } else if ( index === elements.length - 1 && plugin.settings.loopAtEnd !== true ) {
623
+ $( '#swipebox-next' ).addClass( 'disabled' );
624
+ }
625
+ },
626
+
627
+ /**
628
+ * Open slide
629
+ */
630
+ openSlide : function ( index ) {
631
+ $( 'html' ).addClass( 'swipebox-html' );
632
+ if ( isTouch ) {
633
+ $( 'html' ).addClass( 'swipebox-touch' );
634
+
635
+ if ( plugin.settings.hideCloseButtonOnMobile ) {
636
+ $( 'html' ).addClass( 'swipebox-no-close-button' );
637
+ }
638
+ } else {
639
+ $( 'html' ).addClass( 'swipebox-no-touch' );
640
+ }
641
+ $( window ).trigger( 'resize' ); // fix scroll bar visibility on desktop
642
+ this.setSlide( index, true );
643
+ },
644
+
645
+ /**
646
+ * Set a time out if the media is a video
647
+ */
648
+ preloadMedia : function ( index ) {
649
+ var $this = this,
650
+ src = null;
651
+
652
+ if ( elements[ index ] !== undefined ) {
653
+ src = elements[ index ].href;
654
+ }
655
+
656
+ if ( ! $this.isVideo( src ) ) {
657
+ setTimeout( function() {
658
+ $this.openMedia( index );
659
+ }, 1000);
660
+ } else {
661
+ $this.openMedia( index );
662
+ }
663
+ },
664
+
665
+ /**
666
+ * Open
667
+ */
668
+ openMedia : function ( index ) {
669
+ var $this = this,
670
+ src,
671
+ slide;
672
+
673
+ if ( elements[ index ] !== undefined ) {
674
+ src = elements[ index ].href;
675
+ }
676
+
677
+ if ( index < 0 || index >= elements.length ) {
678
+ return false;
679
+ }
680
+
681
+ slide = $( '#swipebox-slider .slide' ).eq( index );
682
+
683
+ if ( ! $this.isVideo( src ) ) {
684
+ slide.addClass( 'slide-loading' );
685
+ $this.loadMedia( src, function() {
686
+ slide.removeClass( 'slide-loading' );
687
+ slide.html( this );
688
+ } );
689
+ } else {
690
+ slide.html( $this.getVideo( src ) );
691
+ }
692
+
693
+ },
694
+
695
+ /**
696
+ * Set link title attribute as caption
697
+ */
698
+ setTitle : function ( index ) {
699
+ var title = null;
700
+
701
+ $( '#swipebox-title' ).empty();
702
+
703
+ if ( elements[ index ] !== undefined ) {
704
+ title = elements[ index ].title;
705
+ }
706
+
707
+ if ( title ) {
708
+ $( '#swipebox-top-bar' ).show();
709
+ $( '#swipebox-title' ).append( title );
710
+ } else {
711
+ $( '#swipebox-top-bar' ).hide();
712
+ }
713
+ },
714
+
715
+ /**
716
+ * Check if the URL is a video
717
+ */
718
+ isVideo : function ( src ) {
719
+
720
+ if ( src ) {
721
+ if ( src.match( /(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || src.match( /vimeo\.com\/([0-9]*)/ ) || src.match( /youtu\.be\/([a-zA-Z0-9\-_]+)/ ) ) {
722
+ return true;
723
+ }
724
+
725
+ if ( src.toLowerCase().indexOf( 'swipeboxvideo=1' ) >= 0 ) {
726
+
727
+ return true;
728
+ }
729
+ }
730
+
731
+ },
732
+
733
+ /**
734
+ * Parse URI querystring and:
735
+ * - overrides value provided via dictionary
736
+ * - rebuild it again returning a string
737
+ */
738
+ parseUri : function (uri, customData) {
739
+ var a = document.createElement('a'),
740
+ qs = {};
741
+
742
+ // Decode the URI
743
+ a.href = decodeURIComponent( uri );
744
+
745
+ // QueryString to Object
746
+ qs = JSON.parse( '{"' + a.search.toLowerCase().replace('?','').replace(/&/g,'","').replace(/=/g,'":"') + '"}' );
747
+
748
+ // Extend with custom data
749
+ if ( $.isPlainObject( customData ) ) {
750
+ qs = $.extend( qs, customData, plugin.settings.queryStringData ); // The dev has always the final word
751
+ }
752
+
753
+ // Return querystring as a string
754
+ return $
755
+ .map( qs, function (val, key) {
756
+ if ( val && val > '' ) {
757
+ return encodeURIComponent( key ) + '=' + encodeURIComponent( val );
758
+ }
759
+ })
760
+ .join('&');
761
+ },
762
+
763
+ /**
764
+ * Get video iframe code from URL
765
+ */
766
+ getVideo : function( url ) {
767
+ var iframe = '',
768
+ youtubeUrl = url.match( /((?:www\.)?youtube\.com|(?:www\.)?youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/ ),
769
+ youtubeShortUrl = url.match(/(?:www\.)?youtu\.be\/([a-zA-Z0-9\-_]+)/),
770
+ vimeoUrl = url.match( /(?:www\.)?vimeo\.com\/([0-9]*)/ ),
771
+ qs = '';
772
+ if ( youtubeUrl || youtubeShortUrl) {
773
+ if ( youtubeShortUrl ) {
774
+ youtubeUrl = youtubeShortUrl;
775
+ }
776
+ qs = ui.parseUri( url, {
777
+ 'autoplay' : ( plugin.settings.autoplayVideos ? '1' : '0' ),
778
+ 'v' : ''
779
+ });
780
+ iframe = '<iframe width="560" height="315" src="//' + youtubeUrl[1] + '/embed/' + youtubeUrl[2] + '?' + qs + '" frameborder="0" allowfullscreen></iframe>';
781
+
782
+ } else if ( vimeoUrl ) {
783
+ qs = ui.parseUri( url, {
784
+ 'autoplay' : ( plugin.settings.autoplayVideos ? '1' : '0' ),
785
+ 'byline' : '0',
786
+ 'portrait' : '0',
787
+ 'color': plugin.settings.vimeoColor
788
+ });
789
+ iframe = '<iframe width="560" height="315" src="//player.vimeo.com/video/' + vimeoUrl[1] + '?' + qs + '" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';
790
+
791
+ } else {
792
+ iframe = '<iframe width="560" height="315" src="' + url + '" frameborder="0" allowfullscreen></iframe>';
793
+ }
794
+
795
+ return '<div class="swipebox-video-container" style="max-width:' + plugin.settings.videoMaxWidth + 'px"><div class="swipebox-video">' + iframe + '</div></div>';
796
+ },
797
+
798
+ /**
799
+ * Load image
800
+ */
801
+ loadMedia : function ( src, callback ) {
802
+ // Inline content
803
+ if ( src.trim().indexOf('#') === 0 ) {
804
+ callback.call(
805
+ $('<div>', {
806
+ 'class' : 'swipebox-inline-container'
807
+ })
808
+ .append(
809
+ $(src)
810
+ .clone()
811
+ .toggleClass( plugin.settings.toggleClassOnLoad )
812
+ )
813
+ );
814
+ }
815
+ // Everything else
816
+ else {
817
+ if ( ! this.isVideo( src ) ) {
818
+ var img = $( '<img>' ).on( 'load', function() {
819
+ callback.call( img );
820
+ } );
821
+
822
+ img.attr( 'src', src );
823
+ }
824
+ }
825
+ },
826
+
827
+ /**
828
+ * Get next slide
829
+ */
830
+ getNext : function () {
831
+ var $this = this,
832
+ src,
833
+ index = $( '#swipebox-slider .slide' ).index( $( '#swipebox-slider .slide.current' ) );
834
+ if ( index + 1 < elements.length ) {
835
+
836
+ src = $( '#swipebox-slider .slide' ).eq( index ).contents().find( 'iframe' ).attr( 'src' );
837
+ $( '#swipebox-slider .slide' ).eq( index ).contents().find( 'iframe' ).attr( 'src', src );
838
+ index++;
839
+ $this.setSlide( index );
840
+ $this.preloadMedia( index+1 );
841
+ } else {
842
+
843
+ if ( plugin.settings.loopAtEnd === true ) {
844
+ src = $( '#swipebox-slider .slide' ).eq( index ).contents().find( 'iframe' ).attr( 'src' );
845
+ $( '#swipebox-slider .slide' ).eq( index ).contents().find( 'iframe' ).attr( 'src', src );
846
+ index = 0;
847
+ $this.preloadMedia( index );
848
+ $this.setSlide( index );
849
+ $this.preloadMedia( index + 1 );
850
+ } else {
851
+ $( '#swipebox-overlay' ).addClass( 'rightSpring' );
852
+ setTimeout( function() {
853
+ $( '#swipebox-overlay' ).removeClass( 'rightSpring' );
854
+ }, 500 );
855
+ }
856
+ }
857
+ },
858
+
859
+ /**
860
+ * Get previous slide
861
+ */
862
+ getPrev : function () {
863
+ var index = $( '#swipebox-slider .slide' ).index( $( '#swipebox-slider .slide.current' ) ),
864
+ src;
865
+ if ( index > 0 ) {
866
+ src = $( '#swipebox-slider .slide' ).eq( index ).contents().find( 'iframe').attr( 'src' );
867
+ $( '#swipebox-slider .slide' ).eq( index ).contents().find( 'iframe' ).attr( 'src', src );
868
+ index--;
869
+ this.setSlide( index );
870
+ this.preloadMedia( index-1 );
871
+ } else {
872
+ $( '#swipebox-overlay' ).addClass( 'leftSpring' );
873
+ setTimeout( function() {
874
+ $( '#swipebox-overlay' ).removeClass( 'leftSpring' );
875
+ }, 500 );
876
+ }
877
+ },
878
+
879
+ /**
880
+ * Close
881
+ */
882
+ closeSlide : function () {
883
+ $( 'html' ).removeClass( 'swipebox-html' );
884
+ $( 'html' ).removeClass( 'swipebox-touch' );
885
+ $( window ).trigger( 'resize' );
886
+ this.destroy();
887
+ },
888
+
889
+ /**
890
+ * Destroy the whole thing
891
+ */
892
+ destroy : function () {
893
+ $( window ).unbind( 'keyup' );
894
+ $( 'body' ).unbind( 'touchstart' );
895
+ $( 'body' ).unbind( 'touchmove' );
896
+ $( 'body' ).unbind( 'touchend' );
897
+ $( '#swipebox-slider' ).unbind();
898
+ $( '#swipebox-overlay' ).remove();
899
+
900
+ if ( ! $.isArray( elem ) ) {
901
+ elem.removeData( '_swipebox' );
902
+ }
903
+
904
+ if ( this.target ) {
905
+ this.target.trigger( 'swipebox-destroy' );
906
+ }
907
+
908
+ $.swipebox.isOpen = false;
909
+
910
+ if ( plugin.settings.afterClose ) {
911
+ plugin.settings.afterClose();
912
+ }
913
+ }
914
+ };
915
+
916
+ plugin.init();
917
+ };
918
+
919
+ $.fn.swipebox = function( options ) {
920
+
921
+ if ( ! $.data( this, '_swipebox' ) ) {
922
+ var swipebox = new $.swipebox( this, options );
923
+ this.data( '_swipebox', swipebox );
924
+ }
925
+ return this.data( '_swipebox' );
926
+
927
+ };
928
+
929
+ }( window, document, jQuery ) );
assets/swipebox/js/jquery.swipebox.min.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ /*! Swipebox v1.4.1 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */
2
+ !function(a,b,c,d){c.swipebox=function(e,f){var g,h,i={useCSS:!0,useSVG:!0,initialIndexOnArray:0,removeBarsOnMobile:!0,hideCloseButtonOnMobile:!1,hideBarsDelay:3e3,videoMaxWidth:1140,vimeoColor:"cccccc",beforeOpen:null,afterOpen:null,afterClose:null,loopAtEnd:!1,autoplayVideos:!1,queryStringData:{},toggleClassOnLoad:""},j=this,k=[],l=e.selector,m=c(l),n=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i),o=null!==n||b.createTouch!==d||"ontouchstart"in a||"onmsgesturechange"in a||navigator.msMaxTouchPoints,p=!!b.createElementNS&&!!b.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,q=a.innerWidth?a.innerWidth:c(a).width(),r=a.innerHeight?a.innerHeight:c(a).height(),s=0,t='<div id="swipebox-overlay"> <div id="swipebox-container"> <div id="swipebox-slider"></div> <div id="swipebox-top-bar"> <div id="swipebox-title"></div> </div> <div id="swipebox-bottom-bar"> <div id="swipebox-arrows"> <a id="swipebox-prev"></a> <a id="swipebox-next"></a> </div> </div> <a id="swipebox-close"></a> </div> </div>';j.settings={},c.swipebox.close=function(){g.closeSlide()},c.swipebox.extend=function(){return g},j.init=function(){j.settings=c.extend({},i,f),c.isArray(e)?(k=e,g.target=c(a),g.init(j.settings.initialIndexOnArray)):c(b).on("click",l,function(a){if("slide current"===a.target.parentNode.className)return!1;c.isArray(e)||(g.destroy(),h=c(l),g.actions()),k=[];var b,d,f;f||(d="data-rel",f=c(this).attr(d)),f||(d="rel",f=c(this).attr(d)),h=f&&""!==f&&"nofollow"!==f?m.filter("["+d+'="'+f+'"]'):c(l),h.each(function(){var a=null,b=null;c(this).attr("title")&&(a=c(this).attr("title")),c(this).attr("href")&&(b=c(this).attr("href")),k.push({href:b,title:a})}),b=h.index(c(this)),a.preventDefault(),a.stopPropagation(),g.target=c(a.target),g.init(b)})},g={init:function(a){j.settings.beforeOpen&&j.settings.beforeOpen(),this.target.trigger("swipebox-start"),c.swipebox.isOpen=!0,this.build(),this.openSlide(a),this.openMedia(a),this.preloadMedia(a+1),this.preloadMedia(a-1),j.settings.afterOpen&&j.settings.afterOpen()},build:function(){var a,b=this;c("body").append(t),p&&j.settings.useSVG===!0&&(a=c("#swipebox-close").css("background-image"),a=a.replace("png","svg"),c("#swipebox-prev, #swipebox-next, #swipebox-close").css({"background-image":a})),n&&j.settings.removeBarsOnMobile&&c("#swipebox-bottom-bar, #swipebox-top-bar").remove(),c.each(k,function(){c("#swipebox-slider").append('<div class="slide"></div>')}),b.setDim(),b.actions(),o&&b.gesture(),b.keyboard(),b.animBars(),b.resize()},setDim:function(){var b,d,e={};"onorientationchange"in a?a.addEventListener("orientationchange",function(){0===a.orientation?(b=q,d=r):(90===a.orientation||-90===a.orientation)&&(b=r,d=q)},!1):(b=a.innerWidth?a.innerWidth:c(a).width(),d=a.innerHeight?a.innerHeight:c(a).height()),e={width:b,height:d},c("#swipebox-overlay").css(e)},resize:function(){var b=this;c(a).resize(function(){b.setDim()}).resize()},supportTransition:function(){var a,c="transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition".split(" ");for(a=0;a<c.length;a++)if(b.createElement("div").style[c[a]]!==d)return c[a];return!1},doCssTrans:function(){return j.settings.useCSS&&this.supportTransition()?!0:void 0},gesture:function(){var a,b,d,e,f,g,h=this,i=!1,j=!1,l=10,m=50,n={},o={},p=c("#swipebox-top-bar, #swipebox-bottom-bar"),r=c("#swipebox-slider");p.addClass("visible-bars"),h.setTimeout(),c("body").bind("touchstart",function(h){return c(this).addClass("touching"),a=c("#swipebox-slider .slide").index(c("#swipebox-slider .slide.current")),o=h.originalEvent.targetTouches[0],n.pageX=h.originalEvent.targetTouches[0].pageX,n.pageY=h.originalEvent.targetTouches[0].pageY,c("#swipebox-slider").css({"-webkit-transform":"translate3d("+s+"%, 0, 0)",transform:"translate3d("+s+"%, 0, 0)"}),c(".touching").bind("touchmove",function(h){if(h.preventDefault(),h.stopPropagation(),o=h.originalEvent.targetTouches[0],!j&&(f=d,d=o.pageY-n.pageY,Math.abs(d)>=m||i)){var p=.75-Math.abs(d)/r.height();r.css({top:d+"px"}),r.css({opacity:p}),i=!0}e=b,b=o.pageX-n.pageX,g=100*b/q,!j&&!i&&Math.abs(b)>=l&&(c("#swipebox-slider").css({"-webkit-transition":"",transition:""}),j=!0),j&&(b>0?0===a?c("#swipebox-overlay").addClass("leftSpringTouch"):(c("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),c("#swipebox-slider").css({"-webkit-transform":"translate3d("+(s+g)+"%, 0, 0)",transform:"translate3d("+(s+g)+"%, 0, 0)"})):0>b&&(k.length===a+1?c("#swipebox-overlay").addClass("rightSpringTouch"):(c("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),c("#swipebox-slider").css({"-webkit-transform":"translate3d("+(s+g)+"%, 0, 0)",transform:"translate3d("+(s+g)+"%, 0, 0)"}))))}),!1}).bind("touchend",function(a){if(a.preventDefault(),a.stopPropagation(),c("#swipebox-slider").css({"-webkit-transition":"-webkit-transform 0.4s ease",transition:"transform 0.4s ease"}),d=o.pageY-n.pageY,b=o.pageX-n.pageX,g=100*b/q,i)if(i=!1,Math.abs(d)>=2*m&&Math.abs(d)>Math.abs(f)){var k=d>0?r.height():-r.height();r.animate({top:k+"px",opacity:0},300,function(){h.closeSlide()})}else r.animate({top:0,opacity:1},300);else j?(j=!1,b>=l&&b>=e?h.getPrev():-l>=b&&e>=b&&h.getNext()):p.hasClass("visible-bars")?(h.clearTimeout(),h.hideBars()):(h.showBars(),h.setTimeout());c("#swipebox-slider").css({"-webkit-transform":"translate3d("+s+"%, 0, 0)",transform:"translate3d("+s+"%, 0, 0)"}),c("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),c(".touching").off("touchmove").removeClass("touching")})},setTimeout:function(){if(j.settings.hideBarsDelay>0){var b=this;b.clearTimeout(),b.timeout=a.setTimeout(function(){b.hideBars()},j.settings.hideBarsDelay)}},clearTimeout:function(){a.clearTimeout(this.timeout),this.timeout=null},showBars:function(){var a=c("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?a.addClass("visible-bars"):(c("#swipebox-top-bar").animate({top:0},500),c("#swipebox-bottom-bar").animate({bottom:0},500),setTimeout(function(){a.addClass("visible-bars")},1e3))},hideBars:function(){var a=c("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?a.removeClass("visible-bars"):(c("#swipebox-top-bar").animate({top:"-50px"},500),c("#swipebox-bottom-bar").animate({bottom:"-50px"},500),setTimeout(function(){a.removeClass("visible-bars")},1e3))},animBars:function(){var a=this,b=c("#swipebox-top-bar, #swipebox-bottom-bar");b.addClass("visible-bars"),a.setTimeout(),c("#swipebox-slider").click(function(){b.hasClass("visible-bars")||(a.showBars(),a.setTimeout())}),c("#swipebox-bottom-bar").hover(function(){a.showBars(),b.addClass("visible-bars"),a.clearTimeout()},function(){j.settings.hideBarsDelay>0&&(b.removeClass("visible-bars"),a.setTimeout())})},keyboard:function(){var b=this;c(a).bind("keyup",function(a){a.preventDefault(),a.stopPropagation(),37===a.keyCode?b.getPrev():39===a.keyCode?b.getNext():27===a.keyCode&&b.closeSlide()})},actions:function(){var a=this,b="touchend click";k.length<2?(c("#swipebox-bottom-bar").hide(),d===k[1]&&c("#swipebox-top-bar").hide()):(c("#swipebox-prev").bind(b,function(b){b.preventDefault(),b.stopPropagation(),a.getPrev(),a.setTimeout()}),c("#swipebox-next").bind(b,function(b){b.preventDefault(),b.stopPropagation(),a.getNext(),a.setTimeout()})),c("#swipebox-close").bind(b,function(){a.closeSlide()})},setSlide:function(a,b){b=b||!1;var d=c("#swipebox-slider");s=100*-a,this.doCssTrans()?d.css({"-webkit-transform":"translate3d("+100*-a+"%, 0, 0)",transform:"translate3d("+100*-a+"%, 0, 0)"}):d.animate({left:100*-a+"%"}),c("#swipebox-slider .slide").removeClass("current"),c("#swipebox-slider .slide").eq(a).addClass("current"),this.setTitle(a),b&&d.fadeIn(),c("#swipebox-prev, #swipebox-next").removeClass("disabled"),0===a?c("#swipebox-prev").addClass("disabled"):a===k.length-1&&j.settings.loopAtEnd!==!0&&c("#swipebox-next").addClass("disabled")},openSlide:function(b){c("html").addClass("swipebox-html"),o?(c("html").addClass("swipebox-touch"),j.settings.hideCloseButtonOnMobile&&c("html").addClass("swipebox-no-close-button")):c("html").addClass("swipebox-no-touch"),c(a).trigger("resize"),this.setSlide(b,!0)},preloadMedia:function(a){var b=this,c=null;k[a]!==d&&(c=k[a].href),b.isVideo(c)?b.openMedia(a):setTimeout(function(){b.openMedia(a)},1e3)},openMedia:function(a){var b,e,f=this;return k[a]!==d&&(b=k[a].href),0>a||a>=k.length?!1:(e=c("#swipebox-slider .slide").eq(a),void(f.isVideo(b)?e.html(f.getVideo(b)):(e.addClass("slide-loading"),f.loadMedia(b,function(){e.removeClass("slide-loading"),e.html(this)}))))},setTitle:function(a){var b=null;c("#swipebox-title").empty(),k[a]!==d&&(b=k[a].title),b?(c("#swipebox-top-bar").show(),c("#swipebox-title").append(b)):c("#swipebox-top-bar").hide()},isVideo:function(a){if(a){if(a.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||a.match(/vimeo\.com\/([0-9]*)/)||a.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/))return!0;if(a.toLowerCase().indexOf("swipeboxvideo=1")>=0)return!0}},parseUri:function(a,d){var e=b.createElement("a"),f={};return e.href=decodeURIComponent(a),f=JSON.parse('{"'+e.search.toLowerCase().replace("?","").replace(/&/g,'","').replace(/=/g,'":"')+'"}'),c.isPlainObject(d)&&(f=c.extend(f,d,j.settings.queryStringData)),c.map(f,function(a,b){return a&&a>""?encodeURIComponent(b)+"="+encodeURIComponent(a):void 0}).join("&")},getVideo:function(a){var b="",c=a.match(/((?:www\.)?youtube\.com|(?:www\.)?youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/),d=a.match(/(?:www\.)?youtu\.be\/([a-zA-Z0-9\-_]+)/),e=a.match(/(?:www\.)?vimeo\.com\/([0-9]*)/),f="";return c||d?(d&&(c=d),f=g.parseUri(a,{autoplay:j.settings.autoplayVideos?"1":"0",v:""}),b='<iframe width="560" height="315" src="//'+c[1]+"/embed/"+c[2]+"?"+f+'" frameborder="0" allowfullscreen></iframe>'):e?(f=g.parseUri(a,{autoplay:j.settings.autoplayVideos?"1":"0",byline:"0",portrait:"0",color:j.settings.vimeoColor}),b='<iframe width="560" height="315" src="//player.vimeo.com/video/'+e[1]+"?"+f+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'):b='<iframe width="560" height="315" src="'+a+'" frameborder="0" allowfullscreen></iframe>','<div class="swipebox-video-container" style="max-width:'+j.settings.videoMaxWidth+'px"><div class="swipebox-video">'+b+"</div></div>"},loadMedia:function(a,b){if(0===a.trim().indexOf("#"))b.call(c("<div>",{"class":"swipebox-inline-container"}).append(c(a).clone().toggleClass(j.settings.toggleClassOnLoad)));else if(!this.isVideo(a)){var d=c("<img>").on("load",function(){b.call(d)});d.attr("src",a)}},getNext:function(){var a,b=this,d=c("#swipebox-slider .slide").index(c("#swipebox-slider .slide.current"));d+1<k.length?(a=c("#swipebox-slider .slide").eq(d).contents().find("iframe").attr("src"),c("#swipebox-slider .slide").eq(d).contents().find("iframe").attr("src",a),d++,b.setSlide(d),b.preloadMedia(d+1)):j.settings.loopAtEnd===!0?(a=c("#swipebox-slider .slide").eq(d).contents().find("iframe").attr("src"),c("#swipebox-slider .slide").eq(d).contents().find("iframe").attr("src",a),d=0,b.preloadMedia(d),b.setSlide(d),b.preloadMedia(d+1)):(c("#swipebox-overlay").addClass("rightSpring"),setTimeout(function(){c("#swipebox-overlay").removeClass("rightSpring")},500))},getPrev:function(){var a,b=c("#swipebox-slider .slide").index(c("#swipebox-slider .slide.current"));b>0?(a=c("#swipebox-slider .slide").eq(b).contents().find("iframe").attr("src"),c("#swipebox-slider .slide").eq(b).contents().find("iframe").attr("src",a),b--,this.setSlide(b),this.preloadMedia(b-1)):(c("#swipebox-overlay").addClass("leftSpring"),setTimeout(function(){c("#swipebox-overlay").removeClass("leftSpring")},500))},closeSlide:function(){c("html").removeClass("swipebox-html"),c("html").removeClass("swipebox-touch"),c(a).trigger("resize"),this.destroy()},destroy:function(){c(a).unbind("keyup"),c("body").unbind("touchstart"),c("body").unbind("touchmove"),c("body").unbind("touchend"),c("#swipebox-slider").unbind(),c("#swipebox-overlay").remove(),c.isArray(e)||e.removeData("_swipebox"),this.target&&this.target.trigger("swipebox-destroy"),c.swipebox.isOpen=!1,j.settings.afterClose&&j.settings.afterClose()}},j.init()},c.fn.swipebox=function(a){if(!c.data(this,"_swipebox")){var b=new c.swipebox(this,a);this.data("_swipebox",b)}return this.data("_swipebox")}}(window,document,jQuery);
assets/swipebox/lib/ios-orientationchange-fix.js CHANGED
@@ -1,56 +1,56 @@
1
- /*! A fix for the iOS orientationchange zoom bug.
2
- Script by @scottjehl, rebound by @wilto.
3
- MIT / GPLv2 License.
4
- */
5
- (function(w){
6
-
7
- // This fix addresses an iOS bug, so return early if the UA claims it's something else.
8
- var ua = navigator.userAgent;
9
- if( !( /iPhone|iPad|iPod/.test( navigator.platform ) && /OS [1-5]_[0-9_]* like Mac OS X/i.test(ua) && ua.indexOf( "AppleWebKit" ) > -1 ) ){
10
- return;
11
- }
12
-
13
- var doc = w.document;
14
-
15
- if( !doc.querySelector ){ return; }
16
-
17
- var meta = doc.querySelector( "meta[name=viewport]" ),
18
- initialContent = meta && meta.getAttribute( "content" ),
19
- disabledZoom = initialContent + ",maximum-scale=1",
20
- enabledZoom = initialContent + ",maximum-scale=10",
21
- enabled = true,
22
- x, y, z, aig;
23
-
24
- if( !meta ){ return; }
25
-
26
- function restoreZoom(){
27
- meta.setAttribute( "content", enabledZoom );
28
- enabled = true;
29
- }
30
-
31
- function disableZoom(){
32
- meta.setAttribute( "content", disabledZoom );
33
- enabled = false;
34
- }
35
-
36
- function checkTilt( e ){
37
- aig = e.accelerationIncludingGravity;
38
- x = Math.abs( aig.x );
39
- y = Math.abs( aig.y );
40
- z = Math.abs( aig.z );
41
-
42
- // If portrait orientation and in one of the danger zones
43
- if( (!w.orientation || w.orientation === 180) && ( x > 7 || ( ( z > 6 && y < 8 || z < 8 && y > 6 ) && x > 5 ) ) ){
44
- if( enabled ){
45
- disableZoom();
46
- }
47
- }
48
- else if( !enabled ){
49
- restoreZoom();
50
- }
51
- }
52
-
53
- w.addEventListener( "orientationchange", restoreZoom, false );
54
- w.addEventListener( "devicemotion", checkTilt, false );
55
-
56
  })( this );
1
+ /*! A fix for the iOS orientationchange zoom bug.
2
+ Script by @scottjehl, rebound by @wilto.
3
+ MIT / GPLv2 License.
4
+ */
5
+ (function(w){
6
+
7
+ // This fix addresses an iOS bug, so return early if the UA claims it's something else.
8
+ var ua = navigator.userAgent;
9
+ if( !( /iPhone|iPad|iPod/.test( navigator.platform ) && /OS [1-5]_[0-9_]* like Mac OS X/i.test(ua) && ua.indexOf( "AppleWebKit" ) > -1 ) ){
10
+ return;
11
+ }
12
+
13
+ var doc = w.document;
14
+
15
+ if( !doc.querySelector ){ return; }
16
+
17
+ var meta = doc.querySelector( "meta[name=viewport]" ),
18
+ initialContent = meta && meta.getAttribute( "content" ),
19
+ disabledZoom = initialContent + ",maximum-scale=1",
20
+ enabledZoom = initialContent + ",maximum-scale=10",
21
+ enabled = true,
22
+ x, y, z, aig;
23
+
24
+ if( !meta ){ return; }
25
+
26
+ function restoreZoom(){
27
+ meta.setAttribute( "content", enabledZoom );
28
+ enabled = true;
29
+ }
30
+
31
+ function disableZoom(){
32
+ meta.setAttribute( "content", disabledZoom );
33
+ enabled = false;
34
+ }
35
+
36
+ function checkTilt( e ){
37
+ aig = e.accelerationIncludingGravity;
38
+ x = Math.abs( aig.x );
39
+ y = Math.abs( aig.y );
40
+ z = Math.abs( aig.z );
41
+
42
+ // If portrait orientation and in one of the danger zones
43
+ if( (!w.orientation || w.orientation === 180) && ( x > 7 || ( ( z > 6 && y < 8 || z < 8 && y > 6 ) && x > 5 ) ) ){
44
+ if( enabled ){
45
+ disableZoom();
46
+ }
47
+ }
48
+ else if( !enabled ){
49
+ restoreZoom();
50
+ }
51
+ }
52
+
53
+ w.addEventListener( "orientationchange", restoreZoom, false );
54
+ w.addEventListener( "devicemotion", checkTilt, false );
55
+
56
  })( this );
assets/swipebox/source/jquery.swipebox.js ADDED
@@ -0,0 +1,451 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*---------------------------------------------------------------------------------------------
2
+
3
+ @author Constantin Saguin - @brutaldesign
4
+ @link http://bsign.co
5
+ @github http://github.com/brutaldesign/swipebox
6
+ @version 1.1.2
7
+ @license MIT License
8
+
9
+ ----------------------------------------------------------------------------------------------*/
10
+
11
+ ;(function (window, document, $, undefined) {
12
+
13
+ $.swipebox = function(elem, options) {
14
+
15
+ var defaults = {
16
+ useCSS : true,
17
+ hideBarsDelay : 3000
18
+ },
19
+
20
+ plugin = this,
21
+ $elem = $(elem),
22
+ elem = elem,
23
+ selector = elem.selector,
24
+ $selector = $(selector),
25
+ isTouch = document.createTouch !== undefined || ('ontouchstart' in window) || ('onmsgesturechange' in window) || navigator.msMaxTouchPoints,
26
+ supportSVG = !!(window.SVGSVGElement),
27
+ html = '<div id="swipebox-overlay">\
28
+ <div id="swipebox-slider"></div>\
29
+ <div id="swipebox-caption"></div>\
30
+ <div id="swipebox-action">\
31
+ <a id="swipebox-close"></a>\
32
+ <a id="swipebox-prev"></a>\
33
+ <a id="swipebox-next"></a>\
34
+ </div>\
35
+ </div>';
36
+
37
+ plugin.settings = {}
38
+
39
+ plugin.init = function(){
40
+
41
+ plugin.settings = $.extend({}, defaults, options);
42
+
43
+ $selector.click(function(e){
44
+ e.preventDefault();
45
+ e.stopPropagation();
46
+ index = $elem.index($(this));
47
+ ui.target = $(e.target);
48
+ ui.init(index);
49
+ });
50
+ }
51
+
52
+ var ui = {
53
+
54
+ init : function(index){
55
+ this.target.trigger('swipebox-start');
56
+ this.build();
57
+ this.openSlide(index);
58
+ this.openImg(index);
59
+ this.preloadImg(index+1);
60
+ this.preloadImg(index-1);
61
+ },
62
+
63
+ build : function(){
64
+ var $this = this;
65
+
66
+ $('body').append(html);
67
+
68
+ if($this.doCssTrans()){
69
+ $('#swipebox-slider').css({
70
+ '-webkit-transition' : 'left 0.4s ease',
71
+ '-moz-transition' : 'left 0.4s ease',
72
+ '-o-transition' : 'left 0.4s ease',
73
+ '-khtml-transition' : 'left 0.4s ease',
74
+ 'transition' : 'left 0.4s ease'
75
+ });
76
+ $('#swipebox-overlay').css({
77
+ '-webkit-transition' : 'opacity 1s ease',
78
+ '-moz-transition' : 'opacity 1s ease',
79
+ '-o-transition' : 'opacity 1s ease',
80
+ '-khtml-transition' : 'opacity 1s ease',
81
+ 'transition' : 'opacity 1s ease'
82
+ });
83
+ $('#swipebox-action, #swipebox-caption').css({
84
+ '-webkit-transition' : '0.5s',
85
+ '-moz-transition' : '0.5s',
86
+ '-o-transition' : '0.5s',
87
+ '-khtml-transition' : '0.5s',
88
+ 'transition' : '0.5s'
89
+ });
90
+ }
91
+
92
+
93
+ if(supportSVG){
94
+ var bg = $('#swipebox-action #swipebox-close').css('background-image');
95
+ bg = bg.replace('png', 'svg');
96
+ $('#swipebox-action #swipebox-prev,#swipebox-action #swipebox-next,#swipebox-action #swipebox-close').css({
97
+ 'background-image' : bg
98
+ });
99
+ }
100
+
101
+ $elem.each(function(){
102
+ $('#swipebox-slider').append('<div class="slide"></div>');
103
+ });
104
+
105
+ $this.setDim();
106
+ $this.actions();
107
+ $this.keyboard();
108
+ $this.gesture();
109
+ $this.animBars();
110
+
111
+ $(window).resize(function() {
112
+ $this.setDim();
113
+ }).resize();
114
+ },
115
+
116
+ setDim : function(){
117
+ var sliderCss = {
118
+ width : $(window).width(),
119
+ height : window.innerHeight ? window.innerHeight : $(window).height() // fix IOS bug
120
+ }
121
+
122
+ $('#swipebox-overlay').css(sliderCss);
123
+
124
+ },
125
+
126
+ supportTransition : function() {
127
+ var prefixes = 'transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition'.split(' ');
128
+ for(var i = 0; i < prefixes.length; i++) {
129
+ if(document.createElement('div').style[prefixes[i]] !== undefined) {
130
+ return prefixes[i];
131
+ }
132
+ }
133
+ return false;
134
+ },
135
+
136
+ doCssTrans : function(){
137
+ if(plugin.settings.useCSS && this.supportTransition() ){
138
+ return true;
139
+ }
140
+ },
141
+
142
+ gesture : function(){
143
+ if ( isTouch ){
144
+ var $this = this,
145
+ distance = null,
146
+ swipMinDistance = 10,
147
+ startCoords = {},
148
+ endCoords = {};
149
+ var b = $('#swipebox-caption, #swipebox-action');
150
+
151
+ b.addClass('visible-bars');
152
+ $this.setTimeout();
153
+
154
+ $('body').bind('touchstart', function(e){
155
+
156
+ $(this).addClass('touching');
157
+
158
+ endCoords = e.originalEvent.targetTouches[0];
159
+ startCoords.pageX = e.originalEvent.targetTouches[0].pageX;
160
+
161
+ $('.touching').bind('touchmove',function(e){
162
+ e.preventDefault();
163
+ e.stopPropagation();
164
+ endCoords = e.originalEvent.targetTouches[0];
165
+
166
+ });
167
+
168
+ return false;
169
+
170
+ }).bind('touchend',function(e){
171
+ e.preventDefault();
172
+ e.stopPropagation();
173
+
174
+ distance = endCoords.pageX - startCoords.pageX;
175
+
176
+ if( distance >= swipMinDistance ){
177
+ // swipeLeft
178
+ $this.getPrev();
179
+ }
180
+
181
+ else if( distance <= - swipMinDistance ){
182
+ // swipeRight
183
+ $this.getNext();
184
+
185
+ }else{
186
+ // tap
187
+ if(!b.hasClass('visible-bars')){
188
+ $this.showBars();
189
+ $this.setTimeout();
190
+ }else{
191
+ $this.clearTimeout();
192
+ $this.hideBars();
193
+ }
194
+
195
+ }
196
+
197
+ $('.touching').off('touchmove').removeClass('touching');
198
+
199
+ });
200
+
201
+ }
202
+ },
203
+
204
+ setTimeout: function(){
205
+ if(plugin.settings.hideBarsDelay > 0){
206
+ var $this = this;
207
+ $this.clearTimeout();
208
+ $this.timeout = window.setTimeout( function(){
209
+ $this.hideBars() },
210
+ plugin.settings.hideBarsDelay
211
+ );
212
+ }
213
+ },
214
+
215
+ clearTimeout: function(){
216
+ window.clearTimeout(this.timeout);
217
+ this.timeout = null;
218
+ },
219
+
220
+ showBars : function(){
221
+ var b = $('#swipebox-caption, #swipebox-action');
222
+ if(this.doCssTrans()){
223
+ b.addClass('visible-bars');
224
+ }else{
225
+ $('#swipebox-caption').animate({ top : 0 }, 500);
226
+ $('#swipebox-action').animate({ bottom : 0 }, 500);
227
+ setTimeout(function(){
228
+ b.addClass('visible-bars');
229
+ }, 1000);
230
+ }
231
+ },
232
+
233
+ hideBars : function(){
234
+ var b = $('#swipebox-caption, #swipebox-action');
235
+ if(this.doCssTrans()){
236
+ b.removeClass('visible-bars');
237
+ }else{
238
+ $('#swipebox-caption').animate({ top : '-50px' }, 500);
239
+ $('#swipebox-action').animate({ bottom : '-50px' }, 500);
240
+ setTimeout(function(){
241
+ b.removeClass('visible-bars');
242
+ }, 1000);
243
+ }
244
+ },
245
+
246
+ animBars : function(){
247
+ var $this = this;
248
+ var b = $('#swipebox-caption, #swipebox-action');
249
+
250
+ b.addClass('visible-bars');
251
+ $this.setTimeout();
252
+
253
+ $('#swipebox-slider').click(function(e){
254
+ if(!b.hasClass('visible-bars')){
255
+ $this.showBars();
256
+ $this.setTimeout();
257
+ }
258
+ });
259
+
260
+ $('#swipebox-action').hover(function() {
261
+ $this.showBars();
262
+ b.addClass('force-visible-bars');
263
+ $this.clearTimeout();
264
+
265
+ },function() {
266
+ b.removeClass('force-visible-bars');
267
+ $this.setTimeout();
268
+
269
+ });
270
+ },
271
+
272
+ keyboard : function(){
273
+ var $this = this;
274
+ $(window).bind('keyup', function(e){
275
+ e.preventDefault();
276
+ e.stopPropagation();
277
+ if (e.keyCode == 37){
278
+ $this.getPrev();
279
+ }
280
+ else if (e.keyCode==39){
281
+ $this.getNext();
282
+ }
283
+ else if (e.keyCode == 27) {
284
+ $this.closeSlide();
285
+ }
286
+ });
287
+ },
288
+
289
+ actions : function(){
290
+ var $this = this;
291
+
292
+ if( $elem.length < 2 ){
293
+ $('#swipebox-prev, #swipebox-next').hide();
294
+ }else{
295
+ $('#swipebox-prev').bind('click touchend', function(e){
296
+ e.preventDefault();
297
+ e.stopPropagation();
298
+ $this.getPrev();
299
+ $this.setTimeout();
300
+ });
301
+
302
+ $('#swipebox-next').bind('click touchend', function(e){
303
+ e.preventDefault();
304
+ e.stopPropagation();
305
+ $this.getNext();
306
+ $this.setTimeout();
307
+ });
308
+ }
309
+
310
+ $('#swipebox-close').bind('click touchend', function(e){
311
+ $this.closeSlide();
312
+ });
313
+ },
314
+
315
+ setSlide : function (index, isFirst){
316
+ isFirst = isFirst || false;
317
+
318
+ var slider = $('#swipebox-slider');
319
+
320
+ if(this.doCssTrans()){
321
+ slider.css({ left : (-index*100)+'%' });
322
+ }else{
323
+ slider.animate({ left : (-index*100)+'%' });
324
+ }
325
+
326
+ $('#swipebox-slider .slide').removeClass('current');
327
+ $('#swipebox-slider .slide').eq(index).addClass('current');
328
+ this.setTitle(index);
329
+
330
+ if( isFirst ){
331
+ slider.fadeIn();
332
+ }
333
+
334
+ $('#swipebox-prev, #swipebox-next').removeClass('disabled');
335
+ if(index == 0){
336
+ $('#swipebox-prev').addClass('disabled');
337
+ }else if( index == $elem.length - 1 ){
338
+ $('#swipebox-next').addClass('disabled');
339
+ }
340
+ },
341
+
342
+ openSlide : function (index){
343
+
344
+ $('html').addClass('swipebox');
345
+ $(window).trigger('resize'); // fix scroll bar visibility on desktop
346
+ this.setSlide(index, true);
347
+ },
348
+
349
+ preloadImg : function (index){
350
+ var $this = this;
351
+ setTimeout(function(){
352
+ $this.openImg(index);
353
+ }, 1000);
354
+ },
355
+
356
+ openImg : function (index){
357
+ var $this = this;
358
+ if(index < 0 || index >= $elem.length){
359
+ return false;
360
+ }
361
+
362
+ $this.loadImg($elem.eq(index).attr('href'), function(){
363
+ $('#swipebox-slider .slide').eq(index).html(this);
364
+ });
365
+ },
366
+
367
+
368
+ setTitle : function(index, isFirst){
369
+ $('#swipebox-caption').empty();
370
+
371
+ if($elem.eq(index).attr('title')){
372
+ $('#swipebox-caption').append($elem.eq(index).attr('title'));
373
+ }
374
+ },
375
+
376
+ loadImg : function (src, callback){
377
+ var img = $('<img>').on('load', function(){
378
+ callback.call(img);
379
+ });
380
+
381
+ img.attr('src',src);
382
+ },
383
+
384
+ getNext : function (){
385
+ var $this = this;
386
+ index = $('#swipebox-slider .slide').index($('#swipebox-slider .slide.current'));
387
+ if(index+1 < $elem.length){
388
+ index++;
389
+ $this.setSlide(index);
390
+ $this.preloadImg(index+1);
391
+ }
392
+ else{
393
+
394
+ $('#swipebox-slider').addClass('rightSpring');
395
+ setTimeout(function(){
396
+ $('#swipebox-slider').removeClass('rightSpring');
397
+ },500);
398
+ }
399
+ },
400
+
401
+ getPrev : function (){
402
+ var $this = this;
403
+ index = $('#swipebox-slider .slide').index($('#swipebox-slider .slide.current'));
404
+ if(index > 0){
405
+ index--;
406
+ $this.setSlide(index);
407
+ $this.preloadImg(index-1);
408
+ }
409
+ else{
410
+
411
+ $('#swipebox-slider').addClass('leftSpring');
412
+ setTimeout(function(){
413
+ $('#swipebox-slider').removeClass('leftSpring');
414
+ },500);
415
+ }
416
+ },
417
+
418
+
419
+ closeSlide : function (){
420
+ var $this = this;
421
+ $(window).trigger('resize');
422
+ $('html').removeClass('swipebox');
423
+ $this.destroy();
424
+ },
425
+
426
+ destroy : function(){
427
+ var $this = this;
428
+ $(window).unbind('keyup');
429
+ $('body').unbind('touchstart');
430
+ $('body').unbind('touchmove');
431
+ $('body').unbind('touchend');
432
+ $('#swipebox-slider').unbind();
433
+ $('#swipebox-overlay').remove();
434
+ $elem.removeData('_swipebox');
435
+ $this.target.trigger('swipebox-destroy');
436
+ }
437
+
438
+ }
439
+
440
+ plugin.init();
441
+
442
+ }
443
+
444
+ $.fn.swipebox = function(options){
445
+ if (!$.data(this, "_swipebox")) {
446
+ var swipebox = new $.swipebox(this, options);
447
+ this.data('_swipebox', swipebox);
448
+ }
449
+ }
450
+
451
+ }(window, document, jQuery));
assets/swipebox/source/jquery.swipebox.min.js CHANGED
@@ -1,12 +1 @@
1
- /**
2
- * Swipebox - A touchable jQuery lightbox
3
- *
4
- * @author Constantin Saguin - @brutaldesign
5
- * @author Arno Welzel
6
- * @link http://csag.co
7
- * @github http://github.com/brutaldesign/swipebox
8
- * @github https://github.com/arnowelzel/swipebox
9
- * @version 1.2.4
10
- * @license MIT License
11
- */
12
- (function(e,t,n,r){n.swipebox=function(i,s){var o={useCSS:true,initialIndexOnArray:0,hideBarsDelay:3e3,videoMaxWidth:1140,vimeoColor:"CCCCCC",beforeOpen:null,afterClose:null},u=this,a=[],i=i,f=i.selector,l=n(f),c=t.createTouch!==r||"ontouchstart"in e||"onmsgesturechange"in e||navigator.msMaxTouchPoints,h=!!e.SVGSVGElement,p=e.innerWidth?e.innerWidth:n(e).width(),d=e.innerHeight?e.innerHeight:n(e).height(),v='<div id="swipebox-overlay"> <div id="swipebox-slider"></div> <div id="swipebox-caption"></div> <div id="swipebox-action"> <a id="swipebox-close"></a> <a id="swipebox-prev"></a> <a id="swipebox-next"></a> </div> </div>',m=0,g=0;u.settings={};u.init=function(){u.settings=n.extend({},o,s);if(n.isArray(i)){a=i;y.target=n(e);y.init(u.settings.initialIndexOnArray)}else{l.click(function(e){u.refresh();a=[];var t,r,i;if(!i){r="rel";i=n(this).attr(r)}if(i&&i!==""&&i!=="nofollow"){$elem=l.filter("["+r+'="'+i+'"]')}else{$elem=n(f)}$elem.each(function(){var e=null,t=null;if(n(this).attr("title"))e=n(this).attr("title");else if(n(this).children("img").attr("alt"))e=n(this).children("img").attr("alt");if(n(this).attr("href"))t=n(this).attr("href");a.push({href:t,title:e})});t=$elem.index(n(this));e.preventDefault();e.stopPropagation();y.target=n(e.target);y.init(t)})}};u.refresh=function(){if(!n.isArray(i)){y.destroy();$elem=n(f);y.actions()}};var y={init:function(e){if(u.settings.beforeOpen)u.settings.beforeOpen();this.target.trigger("swipebox-start");n.swipebox.isOpen=true;this.build();this.openSlide(e);this.openMedia(e);this.preloadMedia(e+1);this.preloadMedia(e-1)},build:function(){var e=this;n("body").append(v);if(e.doCssTrans()){n("#swipebox-slider").css({"-webkit-transition":"left 0.4s ease","-moz-transition":"left 0.4s ease","-o-transition":"left 0.4s ease","-khtml-transition":"left 0.4s ease",transition:"left 0.4s ease"});n("#swipebox-overlay").css({"-webkit-transition":"opacity 1s ease","-moz-transition":"opacity 1s ease","-o-transition":"opacity 1s ease","-khtml-transition":"opacity 1s ease",transition:"opacity 1s ease"});n("#swipebox-action, #swipebox-caption").css({"-webkit-transition":"0.5s","-moz-transition":"0.5s","-o-transition":"0.5s","-khtml-transition":"0.5s",transition:"0.5s"})}if(h){var t=n("#swipebox-action #swipebox-close").css("background-image");t=t.replace("png","svg");n("#swipebox-action #swipebox-prev,#swipebox-action #swipebox-next,#swipebox-action #swipebox-close").css({"background-image":t})}n.each(a,function(){n("#swipebox-slider").append('<div class="slide"></div>')});e.setDim();e.actions();e.keyboard();e.gesture();e.animBars();e.resize()},setDim:function(){var t,r,i={};if("onorientationchange"in e){e.addEventListener("orientationchange",function(){if(e.orientation==0){t=p;r=d}else if(e.orientation==90||e.orientation==-90){t=d;r=p}},false)}else{t=e.innerWidth?e.innerWidth:n(e).width();r=e.innerHeight?e.innerHeight:n(e).height()}i={width:t,height:r};n("#swipebox-overlay").css(i)},resize:function(){var t=this;n(e).resize(function(){t.setDim()}).resize()},supportTransition:function(){var e="transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition".split(" ");for(var n=0;n<e.length;n++){if(t.createElement("div").style[e[n]]!==r){return e[n]}}return false},doCssTrans:function(){if(u.settings.useCSS&&this.supportTransition()){return true}},gesture:function(){if(c){var e=this,t=null,r=10,i={},s={};var o=n("#swipebox-caption, #swipebox-action");o.addClass("visible-bars");e.setTimeout();n("#swipebox-slider").bind("touchstart",function(e){n(this).addClass("touching");s=e.originalEvent.targetTouches[0];i.pageX=e.originalEvent.targetTouches[0].pageX;n(".touching").bind("touchmove",function(e){e.preventDefault();e.stopPropagation();s=e.originalEvent.targetTouches[0]});return false}).bind("touchend",function(u){u.preventDefault();u.stopPropagation();t=s.pageX-i.pageX;if(t>=r){e.getPrev()}else if(t<=-r){e.getNext()}else{if(!o.hasClass("visible-bars")){e.showBars();e.setTimeout()}else{e.clearTimeout();e.hideBars()}}n(".touching").off("touchmove").removeClass("touching")})}},setTimeout:function(){if(u.settings.hideBarsDelay>0){var t=this;t.clearTimeout();t.timeout=e.setTimeout(function(){t.hideBars()},u.settings.hideBarsDelay)}},clearTimeout:function(){e.clearTimeout(this.timeout);this.timeout=null},showBars:function(){var e=n("#swipebox-caption, #swipebox-action");if(this.doCssTrans()){e.addClass("visible-bars")}else{n("#swipebox-caption").animate({top:0},500);n("#swipebox-action").animate({bottom:0},500);setTimeout(function(){e.addClass("visible-bars")},1e3)}},hideBars:function(){var e=n("#swipebox-caption, #swipebox-action");if(this.doCssTrans()){e.removeClass("visible-bars")}else{n("#swipebox-caption").animate({top:"-50px"},500);n("#swipebox-action").animate({bottom:"-50px"},500);setTimeout(function(){e.removeClass("visible-bars")},1e3)}},animBars:function(){var e=this;var t=n("#swipebox-caption, #swipebox-action");t.addClass("visible-bars");e.setTimeout();if(!c){n("#swipebox-slider").click(function(n){if(!t.hasClass("visible-bars")){e.showBars();e.setTimeout()}else{e.clearTimeout();e.hideBars()}})}n("#swipebox-action").hover(function(){e.showBars();t.addClass("force-visible-bars");e.clearTimeout()},function(){t.removeClass("force-visible-bars");e.setTimeout()})},keyboard:function(){var t=this;n(e).bind("keyup",function(e){e.preventDefault();e.stopPropagation();if(e.keyCode==37){t.getPrev()}else if(e.keyCode==39){t.getNext()}else if(e.keyCode==27){t.closeSlide()}})},actions:function(){var e=this;if(a.length<2){n("#swipebox-prev, #swipebox-next").hide()}else{n("#swipebox-prev").bind("click",function(t){t.preventDefault();t.stopPropagation();e.getPrev();e.setTimeout()});n("#swipebox-next").bind("click",function(t){t.preventDefault();t.stopPropagation();e.getNext();e.setTimeout()})}n("#swipebox-close").bind("click",function(t){e.closeSlide()})},setSlide:function(e,t){t=t||false;var r=n("#swipebox-slider");if(this.doCssTrans()){r.css({left:-e*100+"%"})}else{r.animate({left:-e*100+"%"})}n("#swipebox-slider .slide").removeClass("current");n("#swipebox-slider .slide").eq(e).addClass("current");this.setTitle(e);if(t){r.fadeIn()}n("#swipebox-prev, #swipebox-next").removeClass("disabled");if(e==0){n("#swipebox-prev").addClass("disabled")}else if(e==a.length-1){n("#swipebox-next").addClass("disabled")}},openSlide:function(t){if(m==0&&g==0){m=n(e).scrollLeft();g=n(e).scrollTop()}n(e).scrollLeft(0);n(e).scrollTop(0);n("html").addClass("swipebox");n(e).trigger("resize");this.setSlide(t,true)},preloadMedia:function(e){var t=this,n=null;if(a[e]!==r)n=a[e].href;if(!t.isVideo(n)){setTimeout(function(){t.openMedia(e)},1e3)}else{t.openMedia(e)}},openMedia:function(e){var t=this,i=null;if(a[e]!==r)i=a[e].href;if(e<0||e>=a.length){return false}if(!t.isVideo(i)){t.loadMedia(i,function(){n("#swipebox-slider .slide").eq(e).html(this)})}else{n("#swipebox-slider .slide").eq(e).html(t.getVideo(i))}},setTitle:function(e,t){var i=null;n("#swipebox-caption").empty();if(a[e]!==r)i=a[e].title;if(i){n("#swipebox-caption").append(i)}},isVideo:function(e){if(e){if(e.match(/youtube\.com\/watch\?v=([a-zA-Z0-9\-_]+)/)||e.match(/vimeo\.com\/([0-9]*)/)){return true}}},getVideo:function(e){var t="";var n="";var r=e.match(/watch\?v=([a-zA-Z0-9\-_]+)/);var i=e.match(/vimeo\.com\/([0-9]*)/);if(r){t='<iframe width="560" height="315" src="//www.youtube.com/embed/'+r[1]+'" frameborder="0" allowfullscreen></iframe>'}else if(i){t='<iframe width="560" height="315" src="//player.vimeo.com/video/'+i[1]+"?byline=0&portrait=0&color="+u.settings.vimeoColor+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'}return'<div class="swipebox-video-container" style="max-width:'+u.settings.videoMaxWidth+'px"><div class="swipebox-video">'+t+"</div></div>"},loadMedia:function(e,t){if(!this.isVideo(e)){var r=n("<img>").on("load",function(){t.call(r)});r.attr("src",e)}},getNext:function(){var e=this;index=n("#swipebox-slider .slide").index(n("#swipebox-slider .slide.current"));if(index+1<a.length){index++;e.setSlide(index);e.preloadMedia(index+1)}else{n("#swipebox-slider").addClass("rightSpring");setTimeout(function(){n("#swipebox-slider").removeClass("rightSpring")},500)}},getPrev:function(){index=n("#swipebox-slider .slide").index(n("#swipebox-slider .slide.current"));if(index>0){index--;this.setSlide(index);this.preloadMedia(index-1)}else{n("#swipebox-slider").addClass("leftSpring");setTimeout(function(){n("#swipebox-slider").removeClass("leftSpring")},500)}},closeSlide:function(){n("html").removeClass("swipebox");n(e).trigger("resize");this.destroy();if(m!=0||g!=0){n(e).scrollLeft(m);n(e).scrollTop(g);m=0;g=0}},destroy:function(){n(e).unbind("keyup");n("#swipebox-slider").unbind("touchstart");n("#swipebox-slider").unbind("touchmove");n("#swipebox-slider").unbind("touchend");n("#swipebox-slider").unbind();n("#swipebox-overlay").remove();if(!n.isArray(i))i.removeData("_swipebox");if(this.target)this.target.trigger("swipebox-destroy");n.swipebox.isOpen=false;if(u.settings.afterClose)u.settings.afterClose()}};u.init()};n.fn.swipebox=function(e){if(!n.data(this,"_swipebox")){var t=new n.swipebox(this,e);this.data("_swipebox",t)}return this.data("_swipebox")}})(window,document,jQuery)
1
+ ;(function(e,t,n,r){n.swipebox=function(i,s){var o={useCSS:true,hideBarsDelay:3e3},u=this,a=n(i),i=i,f=i.selector,l=n(f),c=t.createTouch!==r||"ontouchstart"in e||"onmsgesturechange"in e||navigator.msMaxTouchPoints,h=!!e.SVGSVGElement,p='<div id="swipebox-overlay"> <div id="swipebox-slider"></div> <div id="swipebox-caption"></div> <div id="swipebox-action"> <a id="swipebox-close"></a> <a id="swipebox-prev"></a> <a id="swipebox-next"></a> </div> </div>';u.settings={};u.init=function(){u.settings=n.extend({},o,s);l.click(function(e){e.preventDefault();e.stopPropagation();index=a.index(n(this));d.target=n(e.target);d.init(index)})};var d={init:function(e){this.target.trigger("swipebox-start");this.build();this.openSlide(e);this.openImg(e);this.preloadImg(e+1);this.preloadImg(e-1)},build:function(){var t=this;n("body").append(p);if(t.doCssTrans()){n("#swipebox-slider").css({"-webkit-transition":"left 0.4s ease","-moz-transition":"left 0.4s ease","-o-transition":"left 0.4s ease","-khtml-transition":"left 0.4s ease",transition:"left 0.4s ease"});n("#swipebox-overlay").css({"-webkit-transition":"opacity 1s ease","-moz-transition":"opacity 1s ease","-o-transition":"opacity 1s ease","-khtml-transition":"opacity 1s ease",transition:"opacity 1s ease"});n("#swipebox-action, #swipebox-caption").css({"-webkit-transition":"0.5s","-moz-transition":"0.5s","-o-transition":"0.5s","-khtml-transition":"0.5s",transition:"0.5s"})}if(h){var r=n("#swipebox-action #swipebox-close").css("background-image");r=r.replace("png","svg");n("#swipebox-action #swipebox-prev,#swipebox-action #swipebox-next,#swipebox-action #swipebox-close").css({"background-image":r})}a.each(function(){n("#swipebox-slider").append('<div class="slide"></div>')});t.setDim();t.actions();t.keyboard();t.gesture();t.animBars();n(e).resize(function(){t.setDim()}).resize()},setDim:function(){var t={width:n(e).width(),height:e.innerHeight?e.innerHeight:n(e).height()};n("#swipebox-overlay").css(t)},supportTransition:function(){var e="transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition".split(" ");for(var n=0;n<e.length;n++){if(t.createElement("div").style[e[n]]!==r){return e[n]}}return false},doCssTrans:function(){if(u.settings.useCSS&&this.supportTransition()){return true}},gesture:function(){if(c){var e=this,t=null,r=10,i={},s={};var o=n("#swipebox-caption, #swipebox-action");o.addClass("visible-bars");e.setTimeout();n("body").bind("touchstart",function(e){n(this).addClass("touching");s=e.originalEvent.targetTouches[0];i.pageX=e.originalEvent.targetTouches[0].pageX;n(".touching").bind("touchmove",function(e){e.preventDefault();e.stopPropagation();s=e.originalEvent.targetTouches[0]});return false}).bind("touchend",function(u){u.preventDefault();u.stopPropagation();t=s.pageX-i.pageX;if(t>=r){e.getPrev()}else if(t<=-r){e.getNext()}else{if(!o.hasClass("visible-bars")){e.showBars();e.setTimeout()}else{e.clearTimeout();e.hideBars()}}n(".touching").off("touchmove").removeClass("touching")})}},setTimeout:function(){if(u.settings.hideBarsDelay>0){var t=this;t.clearTimeout();t.timeout=e.setTimeout(function(){t.hideBars()},u.settings.hideBarsDelay)}},clearTimeout:function(){e.clearTimeout(this.timeout);this.timeout=null},showBars:function(){var e=n("#swipebox-caption, #swipebox-action");if(this.doCssTrans()){e.addClass("visible-bars")}else{n("#swipebox-caption").animate({top:0},500);n("#swipebox-action").animate({bottom:0},500);setTimeout(function(){e.addClass("visible-bars")},1e3)}},hideBars:function(){var e=n("#swipebox-caption, #swipebox-action");if(this.doCssTrans()){e.removeClass("visible-bars")}else{n("#swipebox-caption").animate({top:"-50px"},500);n("#swipebox-action").animate({bottom:"-50px"},500);setTimeout(function(){e.removeClass("visible-bars")},1e3)}},animBars:function(){var e=this;var t=n("#swipebox-caption, #swipebox-action");t.addClass("visible-bars");e.setTimeout();n("#swipebox-slider").click(function(n){if(!t.hasClass("visible-bars")){e.showBars();e.setTimeout()}});n("#swipebox-action").hover(function(){e.showBars();t.addClass("force-visible-bars");e.clearTimeout()},function(){t.removeClass("force-visible-bars");e.setTimeout()})},keyboard:function(){var t=this;n(e).bind("keyup",function(e){e.preventDefault();e.stopPropagation();if(e.keyCode==37){t.getPrev()}else if(e.keyCode==39){t.getNext()}else if(e.keyCode==27){t.closeSlide()}})},actions:function(){var e=this;if(a.length<2){n("#swipebox-prev, #swipebox-next").hide()}else{n("#swipebox-prev").bind("click touchend",function(t){t.preventDefault();t.stopPropagation();e.getPrev();e.setTimeout()});n("#swipebox-next").bind("click touchend",function(t){t.preventDefault();t.stopPropagation();e.getNext();e.setTimeout()})}n("#swipebox-close").bind("click touchend",function(t){e.closeSlide()})},setSlide:function(e,t){t=t||false;var r=n("#swipebox-slider");if(this.doCssTrans()){r.css({left:-e*100+"%"})}else{r.animate({left:-e*100+"%"})}n("#swipebox-slider .slide").removeClass("current");n("#swipebox-slider .slide").eq(e).addClass("current");this.setTitle(e);if(t){r.fadeIn()}n("#swipebox-prev, #swipebox-next").removeClass("disabled");if(e==0){n("#swipebox-prev").addClass("disabled")}else if(e==a.length-1){n("#swipebox-next").addClass("disabled")}},openSlide:function(t){n("html").addClass("swipebox");n(e).trigger("resize");this.setSlide(t,true)},preloadImg:function(e){var t=this;setTimeout(function(){t.openImg(e)},1e3)},openImg:function(e){var t=this;if(e<0||e>=a.length){return false}t.loadImg(a.eq(e).attr("href"),function(){n("#swipebox-slider .slide").eq(e).html(this)})},setTitle:function(e,t){n("#swipebox-caption").empty();if(a.eq(e).attr("title")){n("#swipebox-caption").append(a.eq(e).attr("title"))}},loadImg:function(e,t){var r=n("<img>").on("load",function(){t.call(r)});r.attr("src",e)},getNext:function(){var e=this;index=n("#swipebox-slider .slide").index(n("#swipebox-slider .slide.current"));if(index+1<a.length){index++;e.setSlide(index);e.preloadImg(index+1)}else{n("#swipebox-slider").addClass("rightSpring");setTimeout(function(){n("#swipebox-slider").removeClass("rightSpring")},500)}},getPrev:function(){var e=this;index=n("#swipebox-slider .slide").index(n("#swipebox-slider .slide.current"));if(index>0){index--;e.setSlide(index);e.preloadImg(index-1)}else{n("#swipebox-slider").addClass("leftSpring");setTimeout(function(){n("#swipebox-slider").removeClass("leftSpring")},500)}},closeSlide:function(){var t=this;n(e).trigger("resize");n("html").removeClass("swipebox");t.destroy()},destroy:function(){var t=this;n(e).unbind("keyup");n("body").unbind("touchstart");n("body").unbind("touchmove");n("body").unbind("touchend");n("#swipebox-slider").unbind();n("#swipebox-overlay").remove();a.removeData("_swipebox");t.target.trigger("swipebox-destroy")}};u.init()};n.fn.swipebox=function(e){if(!n.data(this,"_swipebox")){var t=new n.swipebox(this,e);this.data("_swipebox",t)}}})(window,document,jQuery);
 
 
 
 
 
 
 
 
 
 
 
assets/swipebox/source/swipebox.css CHANGED
@@ -1,4 +1,4 @@
1
- html.swipebox {
2
  overflow: hidden!important;
3
  }
4
 
@@ -46,8 +46,7 @@ html.swipebox {
46
  margin-right: -1px;
47
  }
48
 
49
- #swipebox-slider .slide img,
50
- #swipebox-slider .slide .swipebox-video-container {
51
  display: inline-block;
52
  max-height: 100%;
53
  max-width: 100%;
@@ -58,40 +57,12 @@ html.swipebox {
58
  vertical-align: middle;
59
  }
60
 
61
- #swipebox-slider .slide .swipebox-video-container {
62
- background:none;
63
- max-width: 1140px;
64
- max-height: 100%;
65
- width: 100%;
66
- padding:5%;
67
- box-sizing: border-box;
68
- -webkit-box-sizing: border-box;
69
- -moz-box-sizing: border-box;
70
- }
71
-
72
-
73
- #swipebox-slider .slide .swipebox-video-container .swipebox-video{
74
- width: 100%;
75
- height: 0;
76
- padding-bottom: 56.25%;
77
- overflow: hidden;
78
- position: relative;
79
- }
80
-
81
- #swipebox-slider .slide .swipebox-video-container .swipebox-video iframe{
82
- width: 100%!important;
83
- height: 100%!important;
84
- position: absolute;
85
- top: 0; left: 0;
86
- }
87
-
88
  #swipebox-action, #swipebox-caption {
89
  position: absolute;
90
  left: 0;
91
  z-index: 999;
92
  height: 50px;
93
  width: 100%;
94
- overflow: hidden;
95
  }
96
 
97
  #swipebox-action {
@@ -217,21 +188,6 @@ html.swipebox {
217
  }
218
  }
219
 
220
- @media screen and (max-width: 800px) {
221
- #swipebox-action #swipebox-close {
222
- left: 0;
223
- }
224
-
225
- #swipebox-action #swipebox-prev {
226
- right: 60px;
227
- }
228
-
229
- #swipebox-action #swipebox-next {
230
- right: 0;
231
- }
232
- }
233
-
234
-
235
  /* Skin
236
  --------------------------*/
237
  #swipebox-overlay {
@@ -246,20 +202,22 @@ html.swipebox {
246
  background-image: -moz-linear-gradient(#0d0d0d, #000000);
247
  background-image: -o-linear-gradient(#0d0d0d, #000000);
248
  background-image: linear-gradient(#0d0d0d, #000000);
 
 
 
249
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=95);
250
  opacity: 0.95;
251
  }
252
 
253
  #swipebox-action {
254
- border-top: 1px solid rgba(255, 255, 255, 0.2);
 
 
255
  }
256
 
257
  #swipebox-caption {
258
- border-bottom: 1px solid rgba(255, 255, 255, 0.2);
259
  color: white!important;
260
  font-size: 15px;
261
  line-height: 43px;
262
  font-family: Helvetica, Arial, sans-serif;
263
  }
264
-
265
-
1
+ .swipebox {
2
  overflow: hidden!important;
3
  }
4
 
46
  margin-right: -1px;
47
  }
48
 
49
+ #swipebox-slider .slide img {
 
50
  display: inline-block;
51
  max-height: 100%;
52
  max-width: 100%;
57
  vertical-align: middle;
58
  }
59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  #swipebox-action, #swipebox-caption {
61
  position: absolute;
62
  left: 0;
63
  z-index: 999;
64
  height: 50px;
65
  width: 100%;
 
66
  }
67
 
68
  #swipebox-action {
188
  }
189
  }
190
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
  /* Skin
192
  --------------------------*/
193
  #swipebox-overlay {
202
  background-image: -moz-linear-gradient(#0d0d0d, #000000);
203
  background-image: -o-linear-gradient(#0d0d0d, #000000);
204
  background-image: linear-gradient(#0d0d0d, #000000);
205
+ -webkit-box-shadow: 0 1px 1px 1px #212121, inset 0 1px 1px 1px black;
206
+ -moz-box-shadow: 0 1px 1px 1px #212121, inset 0 1px 1px 1px black;
207
+ box-shadow: 0 1px 1px 1px #212121, inset 0 1px 1px 1px black;
208
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=95);
209
  opacity: 0.95;
210
  }
211
 
212
  #swipebox-action {
213
+ -webkit-box-shadow: 0 -1px -1px 1px #212121, inset 0 -1px -1px 1px black;
214
+ -moz-box-shadow: 0 -1px -1px 1px #212121, inset 0 -1px -1px 1px black;
215
+ box-shadow: 0 -1px -1px 1px #212121, inset 0 -1px -1px 1px black;
216
  }
217
 
218
  #swipebox-caption {
 
219
  color: white!important;
220
  font-size: 15px;
221
  line-height: 43px;
222
  font-family: Helvetica, Arial, sans-serif;
223
  }
 
 
css/admin.css CHANGED
@@ -1,22 +1,78 @@
1
  /* Responsive Lightbox settings */
2
- .df-credits { float: right; width: 280px; background: #fff; margin: 20px -300px 20px 20px; position: relative; }
3
- .df-credits .inner { padding-left: 10px; padding-right: 10px; }
4
- .df-credits h3 { font-size: 14px; line-height: 1.4; margin: 0; padding: 8px 12px; border-bottom: 1px solid #eee; }
5
- .df-credits .df-link { font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif; font-style:italic; padding-bottom: 10px; margin: 0; }
6
- .df-credits .df-link a { vertical-align: middle; padding: 5px 0 0 4px; }
7
- .responsive-lightbox-settings .df-credits form { min-width: 260px; margin-bottom: 1em; }
8
- .responsive-lightbox-settings .df-credits form input { margin: 0; padding: 0; }
9
- .responsive-lightbox-settings { margin-right: 300px; }
10
- .responsive-lightbox-settings hr, .df-credits hr { border: solid #eee; border-width: 1px 0 0; clear: both; height: 0; }
11
- .responsive-lightbox-settings form { float: left; min-width: 463px; width: auto; }
12
- .responsive-lightbox-settings fieldset span.description { margin-bottom: 8px; margin-top: 4px; display: block; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
14
- .wplike-slider span.middle { width: 150px; }
15
- .wplike-slider span.left { margin-right: 10px; }
16
- .wplike-slider span.right { margin-left: 10px; }
 
 
 
 
 
 
17
 
18
  /* All Mobile Sizes (devices and browser) */
19
  @media only screen and (max-width: 959px) {
20
- .df-credits { width: 100%; float: none; margin: 20px 0; }
21
- .responsive-lightbox-settings { margin-right: 0; }
 
 
 
 
 
 
22
  }
1
  /* Responsive Lightbox settings */
2
+ .df-credits {
3
+ float: right;
4
+ width: 280px;
5
+ background: #fff;
6
+ margin: 20px -300px 20px 20px;
7
+ position: relative;
8
+ }
9
+ .df-credits .inner {
10
+ padding-left: 10px;
11
+ padding-right: 10px;
12
+ }
13
+ .df-credits h3 {
14
+ font-size: 14px;
15
+ line-height: 1.4;
16
+ margin: 0;
17
+ padding: 8px 12px;
18
+ border-bottom: 1px solid #eee;
19
+ }
20
+ .df-credits .df-link {
21
+ font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
22
+ font-style: italic;
23
+ padding-bottom: 10px;
24
+ margin: 0;
25
+ }
26
+ .df-credits .df-link a {
27
+ vertical-align: middle;
28
+ padding: 5px 0 0 4px;
29
+ }
30
+ .responsive-lightbox-settings .df-credits form {
31
+ min-width: 260px;
32
+ margin-bottom: 1em;
33
+ }
34
+ .responsive-lightbox-settings .df-credits form input {
35
+ margin: 0;
36
+ padding: 0;
37
+ }
38
+ .responsive-lightbox-settings {
39
+ margin-right: 300px;
40
+ }
41
+ .responsive-lightbox-settings hr, .df-credits hr {
42
+ border: solid #eee;
43
+ border-width: 1px 0 0;
44
+ clear: both;
45
+ height: 0;
46
+ }
47
+ .responsive-lightbox-settings form {
48
+ float: left;
49
+ min-width: 463px;
50
+ width: auto;
51
+ }
52
+ .responsive-lightbox-settings fieldset span.description {
53
+ margin-bottom: 8px;
54
+ margin-top: 4px;
55
+ display: block;
56
+ }
57
 
58
+ .wplike-slider span.middle {
59
+ width: 150px;
60
+ }
61
+ .wplike-slider span.left {
62
+ margin-right: 10px;
63
+ }
64
+ .wplike-slider span.right {
65
+ margin-left: 10px;
66
+ }
67
 
68
  /* All Mobile Sizes (devices and browser) */
69
  @media only screen and (max-width: 959px) {
70
+ .df-credits {
71
+ width: 100%;
72
+ float: none;
73
+ margin: 20px 0;
74
+ }
75
+ .responsive-lightbox-settings {
76
+ margin-right: 0;
77
+ }
78
  }
js/admin.js CHANGED
@@ -1,105 +1,110 @@
1
- jQuery(document).ready(function($) {
2
 
3
- $('.wplikebtns').buttonset();
4
- $('#rl_fb_overlay_color_input').wpColorPicker();
5
 
6
- $(document).on('click', '#rl-fb-modal-yes', function(event) {
7
- $('#rl-fb-show-overlay-yes').trigger('click');
8
- $('#rl-fb-show-overlay-no').button('disable');
9
- $('#rl-fb-show-overlay-yes').button('disable');
10
- $('#rl-fb-show-close-button-no').trigger('click');
11
- $('#rl-fb-show-close-button-no').button('disable');
12
- $('#rl-fb-show-close-button-yes').button('disable');
13
- $('#rl-fb-enable-escape-button-no').trigger('click');
14
- $('#rl-fb-enable-escape-button-no').button('disable');
15
- $('#rl-fb-enable-escape-button-yes').button('disable');
16
- $('#rl-fb-hide-on-overlay-click-no').trigger('click');
17
- $('#rl-fb-hide-on-overlay-click-no').button('disable');
18
- $('#rl-fb-hide-on-overlay-click-yes').button('disable');
19
- $('#rl-fb-hide-on-content-click-no').trigger('click');
20
- $('#rl-fb-hide-on-content-click-no').button('disable');
21
- $('#rl-fb-hide-on-content-click-yes').button('disable');
22
- });
23
 
24
- $(document).on('click', '#rl-fb-modal-no', function(event) {
25
- $('#rl-fb-show-overlay-no').button('enable');
26
- $('#rl-fb-show-overlay-yes').button('enable');
27
- $('#rl-fb-show-overlay-yes').trigger('click');
28
- $('#rl-fb-show-close-button-no').button('enable');
29
- $('#rl-fb-show-close-button-yes').button('enable');
30
- $('#rl-fb-show-close-button-no').trigger('click');
31
- $('#rl-fb-enable-escape-button-no').button('enable');
32
- $('#rl-fb-enable-escape-button-yes').button('enable');
33
- $('#rl-fb-enable-escape-button-no').trigger('click');
34
- $('#rl-fb-hide-on-overlay-click-no').button('enable');
35
- $('#rl-fb-hide-on-overlay-click-yes').button('enable');
36
- $('#rl-fb-hide-on-overlay-click-no').trigger('click');
37
- $('#rl-fb-hide-on-content-click-no').button('enable');
38
- $('#rl-fb-hide-on-content-click-yes').button('enable');
39
- $('#rl-fb-hide-on-content-click-no').trigger('click');
40
- });
41
 
42
- $('#rl_pp_opacity_span').slider({
43
- value: rlArgs.opacity_pp,
44
- min: 0,
45
- max: 100,
46
- step: 1,
47
- orientation: 'horizontal',
48
- slide: function(e, ui) {
49
- $('#rl_pp_opacity_input').attr('value', ui.value);
50
- $('#rl_pp_opacity_span').attr('title', ui.value);
51
- }
52
- });
 
 
 
 
 
 
53
 
54
- $('#rl_fb_overlay_opacity_span').slider({
55
- value: rlArgs.opacity_fb,
56
- min: 0,
57
- max: 100,
58
- step: 1,
59
- orientation: 'horizontal',
60
- slide: function(e, ui) {
61
- $('#rl_fb_overlay_opacity_input').attr('value', ui.value);
62
- $('#rl_fb_overlay_opacity_span').attr('title', ui.value);
63
- }
64
- });
65
 
66
- $(document).on('change', '#rl-pp-slideshow-yes, #rl-pp-slideshow-no', function(event) {
67
- if($(this).val() === 'yes') {
68
- $('#rl_pp_slideshow_delay').fadeIn(300);
69
- } else {
70
- $('#rl_pp_slideshow_delay').fadeOut(300);
71
- }
72
- });
 
 
 
 
73
 
74
- $(document).on('change', '#rl-sb-hide-bars-yes, #rl-sb-hide-bars-no', function(event) {
75
- if($(this).val() === 'yes') {
76
- $('#rl_sb_hide_bars_delay').fadeIn(300);
77
- } else {
78
- $('#rl_sb_hide_bars_delay').fadeOut(300);
79
- }
80
- });
81
 
82
- $(document).on('change', '#rl-enable-custom-events-yes, #rl-enable-custom-events-no', function(event) {
83
- if($(this).val() === 'yes') {
84
- $('#rl_custom_events').fadeIn(300);
85
- } else {
86
- $('#rl_custom_events').fadeOut(300);
87
- }
88
- });
89
-
90
- $(document).on('change', '#rl-enable-gallery-image-size-yes, #rl-enable-gallery-image-size-no', function(event) {
91
- if($(this).val() === 'yes') {
92
- $('#rl_gallery_image_size').fadeIn(300);
93
- } else {
94
- $('#rl_gallery_image_size').fadeOut(300);
95
- }
96
- });
97
 
98
- $(document).on('click', 'input#reset_rl_configuration', function(event) {
99
- return confirm(rlArgs.resetScriptToDefaults);
100
- });
 
 
 
 
101
 
102
- $(document).on('click', 'input#reset_rl_settings', function(event) {
103
- return confirm(rlArgs.resetSettingsToDefaults);
104
- });
105
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ( function ( $ ) {
2
 
3
+ $( document ).ready( function () {
 
4
 
5
+ $( '.wplikebtns' ).buttonset();
6
+ $( '#rl_fb_overlay_color_input' ).wpColorPicker();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
+ $( document ).on( 'click', '#rl-fb-modal-yes', function ( event ) {
9
+ $( '#rl-fb-show-overlay-yes' ).trigger( 'click' );
10
+ $( '#rl-fb-show-overlay-no' ).button( 'disable' );
11
+ $( '#rl-fb-show-overlay-yes' ).button( 'disable' );
12
+ $( '#rl-fb-show-close-button-no' ).trigger( 'click' );
13
+ $( '#rl-fb-show-close-button-no' ).button( 'disable' );
14
+ $( '#rl-fb-show-close-button-yes' ).button( 'disable' );
15
+ $( '#rl-fb-enable-escape-button-no' ).trigger( 'click' );
16
+ $( '#rl-fb-enable-escape-button-no' ).button( 'disable' );
17
+ $( '#rl-fb-enable-escape-button-yes' ).button( 'disable' );
18
+ $( '#rl-fb-hide-on-overlay-click-no' ).trigger( 'click' );
19
+ $( '#rl-fb-hide-on-overlay-click-no' ).button( 'disable' );
20
+ $( '#rl-fb-hide-on-overlay-click-yes' ).button( 'disable' );
21
+ $( '#rl-fb-hide-on-content-click-no' ).trigger( 'click' );
22
+ $( '#rl-fb-hide-on-content-click-no' ).button( 'disable' );
23
+ $( '#rl-fb-hide-on-content-click-yes' ).button( 'disable' );
24
+ } );
25
 
26
+ $( document ).on( 'click', '#rl-fb-modal-no', function ( event ) {
27
+ $( '#rl-fb-show-overlay-no' ).button( 'enable' );
28
+ $( '#rl-fb-show-overlay-yes' ).button( 'enable' );
29
+ $( '#rl-fb-show-overlay-yes' ).trigger( 'click' );
30
+ $( '#rl-fb-show-close-button-no' ).button( 'enable' );
31
+ $( '#rl-fb-show-close-button-yes' ).button( 'enable' );
32
+ $( '#rl-fb-show-close-button-no' ).trigger( 'click' );
33
+ $( '#rl-fb-enable-escape-button-no' ).button( 'enable' );
34
+ $( '#rl-fb-enable-escape-button-yes' ).button( 'enable' );
35
+ $( '#rl-fb-enable-escape-button-no' ).trigger( 'click' );
36
+ $( '#rl-fb-hide-on-overlay-click-no' ).button( 'enable' );
37
+ $( '#rl-fb-hide-on-overlay-click-yes' ).button( 'enable' );
38
+ $( '#rl-fb-hide-on-overlay-click-no' ).trigger( 'click' );
39
+ $( '#rl-fb-hide-on-content-click-no' ).button( 'enable' );
40
+ $( '#rl-fb-hide-on-content-click-yes' ).button( 'enable' );
41
+ $( '#rl-fb-hide-on-content-click-no' ).trigger( 'click' );
42
+ } );
43
 
44
+ $( '#rl_pp_opacity_span' ).slider( {
45
+ value: rlArgs.opacity_pp,
46
+ min: 0,
47
+ max: 100,
48
+ step: 1,
49
+ orientation: 'horizontal',
50
+ slide: function ( e, ui ) {
51
+ $( '#rl_pp_opacity_input' ).attr( 'value', ui.value );
52
+ $( '#rl_pp_opacity_span' ).attr( 'title', ui.value );
53
+ }
54
+ } );
55
 
56
+ $( '#rl_fb_overlay_opacity_span' ).slider( {
57
+ value: rlArgs.opacity_fb,
58
+ min: 0,
59
+ max: 100,
60
+ step: 1,
61
+ orientation: 'horizontal',
62
+ slide: function ( e, ui ) {
63
+ $( '#rl_fb_overlay_opacity_input' ).attr( 'value', ui.value );
64
+ $( '#rl_fb_overlay_opacity_span' ).attr( 'title', ui.value );
65
+ }
66
+ } );
67
 
68
+ $( document ).on( 'change', '#rl-pp-slideshow-yes, #rl-pp-slideshow-no', function ( event ) {
69
+ if ( $( this ).val() === 'yes' ) {
70
+ $( '#rl_pp_slideshow_delay' ).fadeIn( 300 );
71
+ } else {
72
+ $( '#rl_pp_slideshow_delay' ).fadeOut( 300 );
73
+ }
74
+ } );
75
 
76
+ $( document ).on( 'change', '#rl-sb-hide-bars-yes, #rl-sb-hide-bars-no', function ( event ) {
77
+ if ( $( this ).val() === 'yes' ) {
78
+ $( '#rl_sb_hide_bars_delay' ).fadeIn( 300 );
79
+ } else {
80
+ $( '#rl_sb_hide_bars_delay' ).fadeOut( 300 );
81
+ }
82
+ } );
 
 
 
 
 
 
 
 
83
 
84
+ $( document ).on( 'change', '#rl-enable-custom-events-yes, #rl-enable-custom-events-no', function ( event ) {
85
+ if ( $( this ).val() === 'yes' ) {
86
+ $( '#rl_custom_events' ).fadeIn( 300 );
87
+ } else {
88
+ $( '#rl_custom_events' ).fadeOut( 300 );
89
+ }
90
+ } );
91
 
92
+ $( document ).on( 'change', '#rl-enable-gallery-image-size-yes, #rl-enable-gallery-image-size-no', function ( event ) {
93
+ if ( $( this ).val() === 'yes' ) {
94
+ $( '#rl_gallery_image_size' ).fadeIn( 300 );
95
+ } else {
96
+ $( '#rl_gallery_image_size' ).fadeOut( 300 );
97
+ }
98
+ } );
99
+
100
+ $( document ).on( 'click', 'input#reset_rl_configuration', function ( event ) {
101
+ return confirm( rlArgs.resetScriptToDefaults );
102
+ } );
103
+
104
+ $( document ).on( 'click', 'input#reset_rl_settings', function ( event ) {
105
+ return confirm( rlArgs.resetSettingsToDefaults );
106
+ } );
107
+
108
+ } );
109
+
110
+ } )( jQuery );
js/front.js CHANGED
@@ -1,95 +1,105 @@
1
- jQuery(document).ready(function($) {
2
 
3
- $(document).on('ready'+rlArgs.custom_events, function() {
4
- if(rlArgs.script === 'swipebox') {
5
- $('a[rel*="'+rlArgs.selector+'"]').swipebox({
6
- useCSS: (rlArgs.animation === '1' ? true : false),
7
- hideBarsDelay: (rlArgs.hideBars === '1' ? parseInt(rlArgs.hideBarsDelay) : 0),
8
- videoMaxWidth: parseInt(rlArgs.videoMaxWidth)
9
- });
10
- } else if(rlArgs.script === 'prettyphoto') {
11
- $('a[rel*="'+rlArgs.selector+'"]').prettyPhoto({
12
- animation_speed: rlArgs.animationSpeed,
13
- slideshow: (rlArgs.slideshow === '1' ? parseInt(rlArgs.slideshowDelay) : false),
14
- autoplay_slideshow: (rlArgs.slideshowAutoplay === '1' ? true : false),
15
- opacity: rlArgs.opacity,
16
- show_title: (rlArgs.showTitle === '1' ? true : false),
17
- allow_resize: (rlArgs.allowResize === '1' ? true : false),
18
- allow_expand: (rlArgs.allowExpand === '1' ? true : false),
19
- default_width: parseInt(rlArgs.width),
20
- default_height: parseInt(rlArgs.height),
21
- counter_separator_label: rlArgs.separator,
22
- theme: rlArgs.theme,
23
- horizontal_padding: parseInt(rlArgs.horizontalPadding),
24
- hideflash: (rlArgs.hideFlash === '1' ? true : false),
25
- wmode: rlArgs.wmode,
26
- autoplay: (rlArgs.videoAutoplay === '1' ? true : false),
27
- modal: (rlArgs.modal === '1' ? true : false),
28
- deeplinking: (rlArgs.deeplinking === '1' ? true : false),
29
- overlay_gallery: (rlArgs.overlayGallery === '1' ? true : false),
30
- keyboard_shortcuts: (rlArgs.keyboardShortcuts === '1' ? true : false),
31
- social_tools: (rlArgs.social === '1' ? '<div class="pp_social"><div class="twitter"><a href="//twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script></div><div class="facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href='+location.href+'&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div></div>' : ''),
32
- changepicturecallback: function(){},
33
- callback: function(){},
34
- ie6_fallback: true
35
- });
36
- } else if(rlArgs.script === 'fancybox') {
37
- $('a[rel*="'+rlArgs.selector+'"]').fancybox({
38
- modal: (rlArgs.modal === '1' ? true : false),
39
- overlayShow: (rlArgs.showOverlay === '1' ? true : false),
40
- showCloseButton: (rlArgs.showCloseButton === '1' ? true : false),
41
- enableEscapeButton: (rlArgs.enableEscapeButton === '1' ? true : false),
42
- hideOnOverlayClick: (rlArgs.hideOnOverlayClick === '1' ? true : false),
43
- hideOnContentClick: (rlArgs.hideOnContentClick === '1' ? true : false),
44
- cyclic: (rlArgs.cyclic === '1' ? true : false),
45
- showNavArrows: (rlArgs.showNavArrows === '1' ? true : false),
46
- autoScale: (rlArgs.autoScale === '1' ? true : false),
47
- scrolling: rlArgs.scrolling,
48
- centerOnScroll: (rlArgs.centerOnScroll === '1' ? true : false),
49
- opacity: (rlArgs.opacity === '1' ? true : false),
50
- overlayOpacity: parseFloat(rlArgs.overlayOpacity / 100),
51
- overlayColor: rlArgs.overlayColor,
52
- titleShow: (rlArgs.titleShow === '1' ? true : false),
53
- titlePosition: rlArgs.titlePosition,
54
- transitionIn: rlArgs.transitions,
55
- transitionOut: rlArgs.transitions,
56
- easingIn: rlArgs.easings,
57
- easingOut: rlArgs.easings,
58
- speedIn: parseInt(rlArgs.speeds),
59
- speedOut: parseInt(rlArgs.speeds),
60
- changeSpeed: parseInt(rlArgs.changeSpeed),
61
- changeFade: parseInt(rlArgs.changeFade),
62
- padding: parseInt(rlArgs.padding),
63
- margin: parseInt(rlArgs.margin),
64
- width: parseInt(rlArgs.videoWidth),
65
- height: parseInt(rlArgs.videoHeight)
66
- });
67
- } else if(rlArgs.script === 'nivo') {
68
- $.each($('a[rel*="'+rlArgs.selector+'"]'), function() {
69
- var match = $(this).attr('rel').match(new RegExp(rlArgs.selector+'\\[(gallery\\-(?:[\\da-z]{1,4}))\\]', 'ig'));
70
 
71
- if(match !== null) {
72
- $(this).attr('data-lightbox-gallery', match[0]);
73
- }
74
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
 
76
- $('a[rel*="'+rlArgs.selector+'"]').nivoLightbox({
77
- effect: rlArgs.effect,
78
- clickOverlayToClose: (rlArgs.clickOverlayToClose === '1' ? true : false),
79
- keyboardNav: (rlArgs.keyboardNav === '1' ? true : false),
80
- errorMessage: rlArgs.errorMessage
81
- });
82
- } else if(rlArgs.script === 'imagelightbox') {
83
- $('a[rel*="'+rlArgs.selector+'"]').each(function(i, item) {
84
- $('a[rel="'+item.rel+'"]').imageLightbox({
85
- animationSpeed: parseInt(rlArgs.animationSpeed),
86
- preloadNext: (rlArgs.preloadNext === '1' ? true : false),
87
- enableKeyboard: (rlArgs.enableKeyboard === '1' ? true : false),
88
- quitOnEnd: (rlArgs.quitOnEnd === '1' ? true : false),
89
- quitOnImgClick: (rlArgs.quitOnImageClick === '1' ? true : false),
90
- quitOnDocClick: (rlArgs.quitOnDocumentClick === '1' ? true : false)
91
- });
92
- });
93
- }
94
- });
95
- });
 
 
 
 
 
 
 
 
1
+ ( function ( $ ) {
2
 
3
+ $( document ).ready( function () {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
+ $( document ).on( 'ready' + rlArgs.custom_events, function () {
6
+ if ( rlArgs.script === 'swipebox' ) {
7
+ $( 'a[rel*="' + rlArgs.selector + '"]' ).swipebox( {
8
+ useCSS: ( rlArgs.animation === '1' ? true : false ),
9
+ useSVG: ( rlArgs.useSVG === '1' ? true : false ),
10
+ hideCloseButtonOnMobile: ( rlArgs.hideCloseButtonOnMobile === '1' ? true : false ),
11
+ hideBarsDelay: ( rlArgs.hideBars === '1' ? parseInt( rlArgs.hideBarsDelay ) : 0 ),
12
+ videoMaxWidth: parseInt( rlArgs.videoMaxWidth ),
13
+ loopAtEnd: ( rlArgs.loopAtEnd === '1' ? true : false )
14
+ } );
15
+ } else if ( rlArgs.script === 'prettyphoto' ) {
16
+ $( 'a[rel*="' + rlArgs.selector + '"]' ).prettyPhoto( {
17
+ animation_speed: rlArgs.animationSpeed,
18
+ slideshow: ( rlArgs.slideshow === '1' ? parseInt( rlArgs.slideshowDelay ) : false ),
19
+ autoplay_slideshow: ( rlArgs.slideshowAutoplay === '1' ? true : false ),
20
+ opacity: rlArgs.opacity,
21
+ show_title: ( rlArgs.showTitle === '1' ? true : false ),
22
+ allow_resize: ( rlArgs.allowResize === '1' ? true : false ),
23
+ allow_expand: ( rlArgs.allowExpand === '1' ? true : false ),
24
+ default_width: parseInt( rlArgs.width ),
25
+ default_height: parseInt( rlArgs.height ),
26
+ counter_separator_label: rlArgs.separator,
27
+ theme: rlArgs.theme,
28
+ horizontal_padding: parseInt( rlArgs.horizontalPadding ),
29
+ hideflash: ( rlArgs.hideFlash === '1' ? true : false ),
30
+ wmode: rlArgs.wmode,
31
+ autoplay: ( rlArgs.videoAutoplay === '1' ? true : false ),
32
+ modal: ( rlArgs.modal === '1' ? true : false ),
33
+ deeplinking: ( rlArgs.deeplinking === '1' ? true : false ),
34
+ overlay_gallery: ( rlArgs.overlayGallery === '1' ? true : false ),
35
+ keyboard_shortcuts: ( rlArgs.keyboardShortcuts === '1' ? true : false ),
36
+ social_tools: ( rlArgs.social === '1' ? '<div class="pp_social"><div class="twitter"><a href="//twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script></div><div class="facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href=' + location.href + '&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div></div>' : '' ),
37
+ changepicturecallback: function () {
38
+ },
39
+ callback: function () {
40
+ },
41
+ ie6_fallback: true
42
+ } );
43
+ } else if ( rlArgs.script === 'fancybox' ) {
44
+ $( 'a[rel*="' + rlArgs.selector + '"]' ).fancybox( {
45
+ modal: ( rlArgs.modal === '1' ? true : false ),
46
+ overlayShow: ( rlArgs.showOverlay === '1' ? true : false ),
47
+ showCloseButton: ( rlArgs.showCloseButton === '1' ? true : false ),
48
+ enableEscapeButton: ( rlArgs.enableEscapeButton === '1' ? true : false ),
49
+ hideOnOverlayClick: ( rlArgs.hideOnOverlayClick === '1' ? true : false ),
50
+ hideOnContentClick: ( rlArgs.hideOnContentClick === '1' ? true : false ),
51
+ cyclic: ( rlArgs.cyclic === '1' ? true : false ),
52
+ showNavArrows: ( rlArgs.showNavArrows === '1' ? true : false ),
53
+ autoScale: ( rlArgs.autoScale === '1' ? true : false ),
54
+ scrolling: rlArgs.scrolling,
55
+ centerOnScroll: ( rlArgs.centerOnScroll === '1' ? true : false ),
56
+ opacity: ( rlArgs.opacity === '1' ? true : false ),
57
+ overlayOpacity: parseFloat( rlArgs.overlayOpacity / 100 ),
58
+ overlayColor: rlArgs.overlayColor,
59
+ titleShow: ( rlArgs.titleShow === '1' ? true : false ),
60
+ titlePosition: rlArgs.titlePosition,
61
+ transitionIn: rlArgs.transitions,
62
+ transitionOut: rlArgs.transitions,
63
+ easingIn: rlArgs.easings,
64
+ easingOut: rlArgs.easings,
65
+ speedIn: parseInt( rlArgs.speeds ),
66
+ speedOut: parseInt( rlArgs.speeds ),
67
+ changeSpeed: parseInt( rlArgs.changeSpeed ),
68
+ changeFade: parseInt( rlArgs.changeFade ),
69
+ padding: parseInt( rlArgs.padding ),
70
+ margin: parseInt( rlArgs.margin ),
71
+ width: parseInt( rlArgs.videoWidth ),
72
+ height: parseInt( rlArgs.videoHeight )
73
+ } );
74
+ } else if ( rlArgs.script === 'nivo' ) {
75
+ $.each( $( 'a[rel*="' + rlArgs.selector + '"]' ), function () {
76
+ var match = $( this ).attr( 'rel' ).match( new RegExp( rlArgs.selector + '\\[(gallery\\-(?:[\\da-z]{1,4}))\\]', 'ig' ) );
77
 
78
+ if ( match !== null ) {
79
+ $( this ).attr( 'data-lightbox-gallery', match[0] );
80
+ }
81
+ } );
82
+
83
+ $( 'a[rel*="' + rlArgs.selector + '"]' ).nivoLightbox( {
84
+ effect: rlArgs.effect,
85
+ clickOverlayToClose: ( rlArgs.clickOverlayToClose === '1' ? true : false ),
86
+ keyboardNav: ( rlArgs.keyboardNav === '1' ? true : false ),
87
+ errorMessage: rlArgs.errorMessage
88
+ } );
89
+ } else if ( rlArgs.script === 'imagelightbox' ) {
90
+ $( 'a[rel*="' + rlArgs.selector + '"]' ).each( function ( i, item ) {
91
+ $( 'a[rel="' + item.rel + '"]' ).imageLightbox( {
92
+ animationSpeed: parseInt( rlArgs.animationSpeed ),
93
+ preloadNext: ( rlArgs.preloadNext === '1' ? true : false ),
94
+ enableKeyboard: ( rlArgs.enableKeyboard === '1' ? true : false ),
95
+ quitOnEnd: ( rlArgs.quitOnEnd === '1' ? true : false ),
96
+ quitOnImgClick: ( rlArgs.quitOnImageClick === '1' ? true : false ),
97
+ quitOnDocClick: ( rlArgs.quitOnDocumentClick === '1' ? true : false )
98
+ } );
99
+ } );
100
+ }
101
+ } );
102
+
103
+ } );
104
+
105
+ } )( jQuery );
languages/responsive-lightbox-nl_NL.mo CHANGED
Binary file
languages/responsive-lightbox-nl_NL.po CHANGED
@@ -1,744 +1,842 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: Responsive Lightbox\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2014-02-17 00:03+0100\n"
6
- "PO-Revision-Date: 2014-02-19 00:51+0100\n"
7
- "Last-Translator: basbva\n"
8
- "Language-Team: basbva.nl\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "Language: de_DE\n"
13
- "X-Generator: Poedit 1.6.3\n"
14
- "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e\n"
15
- "X-Poedit-Basepath: .\n"
16
- "X-Poedit-SourceCharset: UTF-8\n"
17
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
- "X-Poedit-Language: Dutch\n"
19
- "X-Poedit-Country: NETHERLANDS\n"
20
- "X-Poedit-SearchPath-0: ..\n"
21
-
22
- #: ../responsive-lightbox.php:276
23
- msgid "prettyPhoto"
24
- msgstr "prettyPhoto"
25
-
26
- #: ../responsive-lightbox.php:278
27
- msgid "slow"
28
- msgstr "langzaam"
29
-
30
- #: ../responsive-lightbox.php:279
31
- msgid "normal"
32
- msgstr "normaal"
33
-
34
- #: ../responsive-lightbox.php:280
35
- msgid "fast"
36
- msgstr "snel"
37
-
38
- #: ../responsive-lightbox.php:283
39
- msgid "default"
40
- msgstr "standaard"
41
-
42
- #: ../responsive-lightbox.php:284
43
- msgid "light rounded"
44
- msgstr "afgerond licht"
45
-
46
- #: ../responsive-lightbox.php:285
47
- msgid "dark rounded"
48
- msgstr "afgerond donker"
49
-
50
- #: ../responsive-lightbox.php:286
51
- msgid "light square"
52
- msgstr "hoekig licht"
53
-
54
- #: ../responsive-lightbox.php:287
55
- msgid "dark square"
56
- msgstr "hoekig donker"
57
-
58
- #: ../responsive-lightbox.php:288
59
- msgid "facebook"
60
- msgstr "facebook"
61
-
62
- #: ../responsive-lightbox.php:291
63
- msgid "window"
64
- msgstr "venster"
65
-
66
- #: ../responsive-lightbox.php:292
67
- msgid "transparent"
68
- msgstr "transparant"
69
-
70
- #: ../responsive-lightbox.php:293
71
- msgid "opaque"
72
- msgstr "opaak"
73
-
74
- #: ../responsive-lightbox.php:294
75
- msgid "direct"
76
- msgstr "direct"
77
-
78
- #: ../responsive-lightbox.php:295
79
- msgid "gpu"
80
- msgstr "GPU"
81
-
82
- #: ../responsive-lightbox.php:299
83
- msgid "SwipeBox"
84
- msgstr "SwipeBox"
85
-
86
- #: ../responsive-lightbox.php:301
87
- msgid "CSS"
88
- msgstr "CSS"
89
-
90
- #: ../responsive-lightbox.php:302
91
- msgid "jQuery"
92
- msgstr "jQuery"
93
-
94
- #: ../responsive-lightbox.php:306
95
- msgid "FancyBox"
96
- msgstr "FancyBox"
97
-
98
- #: ../responsive-lightbox.php:308
99
- msgid "elastic"
100
- msgstr "elastisch"
101
-
102
- #: ../responsive-lightbox.php:309
103
- #: ../responsive-lightbox.php:330
104
- msgid "fade"
105
- msgstr "vervagen"
106
-
107
- #: ../responsive-lightbox.php:310
108
- msgid "none"
109
- msgstr "geen"
110
-
111
- #: ../responsive-lightbox.php:313
112
- msgid "auto"
113
- msgstr "automatisch"
114
-
115
- #: ../responsive-lightbox.php:314
116
- msgid "yes"
117
- msgstr "ja"
118
-
119
- #: ../responsive-lightbox.php:315
120
- msgid "no"
121
- msgstr "nee"
122
-
123
- #: ../responsive-lightbox.php:318
124
- msgid "swing"
125
- msgstr "swing"
126
-
127
- #: ../responsive-lightbox.php:319
128
- msgid "linear"
129
- msgstr "lineair"
130
-
131
- #: ../responsive-lightbox.php:322
132
- msgid "outside"
133
- msgstr "buiten"
134
-
135
- #: ../responsive-lightbox.php:323
136
- msgid "inside"
137
- msgstr "binnen"
138
-
139
- #: ../responsive-lightbox.php:324
140
- msgid "over"
141
- msgstr "over"
142
-
143
- #: ../responsive-lightbox.php:328
144
- msgid "Nivo Lightbox"
145
- msgstr "Nivo Lightbox"
146
-
147
- #: ../responsive-lightbox.php:331
148
- msgid "fade scale"
149
- msgstr "fade scale"
150
-
151
- #: ../responsive-lightbox.php:332
152
- msgid "slide left"
153
- msgstr "linksom"
154
-
155
- #: ../responsive-lightbox.php:333
156
- msgid "slide right"
157
- msgstr "rechtsom"
158
-
159
- #: ../responsive-lightbox.php:334
160
- msgid "slide up"
161
- msgstr "omhoog"
162
-
163
- #: ../responsive-lightbox.php:335
164
- msgid "slide down"
165
- msgstr "omlaag"
166
-
167
- #: ../responsive-lightbox.php:336
168
- msgid "fall"
169
- msgstr "vallen"
170
-
171
- #: ../responsive-lightbox.php:342
172
- msgid "Enable"
173
- msgstr "Inschakelen"
174
-
175
- #: ../responsive-lightbox.php:343
176
- msgid "Disable"
177
- msgstr "Uitschakelen"
178
-
179
- #: ../responsive-lightbox.php:348
180
- #: ../responsive-lightbox.php:449
181
- msgid "General settings"
182
- msgstr "Algemene instellingen"
183
-
184
- #: ../responsive-lightbox.php:354
185
- #: ../responsive-lightbox.php:461
186
- msgid "Lightbox settings"
187
- msgstr "Lightbox instellingen"
188
-
189
- #: ../responsive-lightbox.php:450
190
- msgid "Lightbox script"
191
- msgstr "Lightbox-script"
192
-
193
- #: ../responsive-lightbox.php:451
194
- msgid "Selector"
195
- msgstr "Selecteerder"
196
-
197
- #: ../responsive-lightbox.php:452
198
- msgid "Galleries"
199
- msgstr "Galerijen"
200
-
201
- #: ../responsive-lightbox.php:453
202
- msgid "Video links"
203
- msgstr "Video Links"
204
-
205
- #: ../responsive-lightbox.php:454
206
- msgid "Image links"
207
- msgstr "Links naar afbeeldingen"
208
-
209
- #: ../responsive-lightbox.php:455
210
- msgid "Single images as gallery"
211
- msgstr "Losse afbeeldingen als galerij"
212
-
213
- #: ../responsive-lightbox.php:456
214
- msgid "Custom events"
215
- msgstr "Custom events"
216
-
217
- #: ../responsive-lightbox.php:457
218
- msgid "Deactivation"
219
- msgstr "Deactivatie"
220
-
221
- #: ../responsive-lightbox.php:465
222
- msgid "Animation type"
223
- msgstr "Animatietype"
224
-
225
- #: ../responsive-lightbox.php:466
226
- msgid "Force PNG icons"
227
- msgstr "Forceer PNG symbolen"
228
-
229
- #: ../responsive-lightbox.php:467
230
- msgid "Top and bottom bars"
231
- msgstr "Boven- en onderbalken"
232
-
233
- #: ../responsive-lightbox.php:468
234
- msgid "Video max width"
235
- msgstr "Video (grootste breedte)"
236
-
237
- #: ../responsive-lightbox.php:472
238
- msgid "Animation speed"
239
- msgstr "Animatiesnelheid"
240
-
241
- #: ../responsive-lightbox.php:473
242
- msgid "Slideshow"
243
- msgstr "Diashow"
244
-
245
- #: ../responsive-lightbox.php:474
246
- msgid "Slideshow autoplay"
247
- msgstr "Autostart diashow"
248
-
249
- #: ../responsive-lightbox.php:475
250
- #: ../responsive-lightbox.php:504
251
- msgid "Opacity"
252
- msgstr "Opaciteit"
253
-
254
- #: ../responsive-lightbox.php:476
255
- msgid "Show title"
256
- msgstr "Toon titel"
257
-
258
- #: ../responsive-lightbox.php:477
259
- msgid "Allow resize big images"
260
- msgstr "Verkleinen van grote afbeeldingen toestaan"
261
-
262
- #: ../responsive-lightbox.php:478
263
- #: ../responsive-lightbox.php:516
264
- msgid "Video width"
265
- msgstr "Videobreedte"
266
-
267
- #: ../responsive-lightbox.php:479
268
- #: ../responsive-lightbox.php:517
269
- msgid "Video height"
270
- msgstr "Videohoogte"
271
-
272
- #: ../responsive-lightbox.php:480
273
- msgid "Theme"
274
- msgstr "Thema"
275
-
276
- #: ../responsive-lightbox.php:481
277
- msgid "Horizontal padding"
278
- msgstr "Horizontale padding"
279
-
280
- #: ../responsive-lightbox.php:482
281
- msgid "Hide Flash"
282
- msgstr "Verberg Flash"
283
-
284
- #: ../responsive-lightbox.php:483
285
- msgid "Flash Window Mode (wmode)"
286
- msgstr "Flash-venstermodus (wmode)"
287
-
288
- #: ../responsive-lightbox.php:484
289
- msgid "Video autoplay"
290
- msgstr "Autostart video"
291
-
292
- #: ../responsive-lightbox.php:485
293
- #: ../responsive-lightbox.php:493
294
- msgid "Modal"
295
- msgstr "Modus"
296
-
297
- #: ../responsive-lightbox.php:486
298
- msgid "Deeplinking"
299
- msgstr "Dieplinken"
300
-
301
- #: ../responsive-lightbox.php:487
302
- msgid "Overlay gallery"
303
- msgstr "Overlay-galerij"
304
-
305
- #: ../responsive-lightbox.php:488
306
- msgid "Keyboard shortcuts"
307
- msgstr "Sneltoetsen"
308
-
309
- #: ../responsive-lightbox.php:489
310
- msgid "Social (Twitter, Facebook)"
311
- msgstr "Sociaal (Twitter, Facebook)"
312
-
313
- #: ../responsive-lightbox.php:494
314
- msgid "Show overlay"
315
- msgstr "Toon overlay"
316
-
317
- #: ../responsive-lightbox.php:495
318
- msgid "Show close button"
319
- msgstr "Toon sluitknop"
320
-
321
- #: ../responsive-lightbox.php:496
322
- msgid "Enable escape button"
323
- msgstr "esc-toets inschakelen"
324
-
325
- #: ../responsive-lightbox.php:497
326
- msgid "Hide on overlay click"
327
- msgstr "Verbergen bij overlay-klik"
328
-
329
- #: ../responsive-lightbox.php:498
330
- msgid "Hide on content click"
331
- msgstr "Verbergen bij inhoud-klik"
332
-
333
- #: ../responsive-lightbox.php:499
334
- msgid "Cyclic"
335
- msgstr "Cyclisch"
336
-
337
- #: ../responsive-lightbox.php:500
338
- msgid "Show nav arrows"
339
- msgstr "Toon navigatiepijlen"
340
-
341
- #: ../responsive-lightbox.php:501
342
- msgid "Auto scale"
343
- msgstr "Automatisch schalen"
344
-
345
- #: ../responsive-lightbox.php:502
346
- msgid "Scrolling (in/out)"
347
- msgstr "Scrollen (in/uit)"
348
-
349
- #: ../responsive-lightbox.php:503
350
- msgid "Center on scroll"
351
- msgstr "Centreer bij scrollen"
352
-
353
- #: ../responsive-lightbox.php:505
354
- msgid "Overlay opacity"
355
- msgstr "Overlay-opaciteit"
356
-
357
- #: ../responsive-lightbox.php:506
358
- msgid "Overlay color"
359
- msgstr "Overlay-kleur"
360
-
361
- #: ../responsive-lightbox.php:507
362
- msgid "Title show"
363
- msgstr "Titel tonen"
364
-
365
- #: ../responsive-lightbox.php:508
366
- msgid "Title position"
367
- msgstr "Titelpositie"
368
-
369
- #: ../responsive-lightbox.php:509
370
- msgid "Transition (in/out)"
371
- msgstr "Overgang (in/uit)"
372
-
373
- #: ../responsive-lightbox.php:510
374
- msgid "Easings (in/out)"
375
- msgstr "Beweging (in/uit)"
376
-
377
- #: ../responsive-lightbox.php:511
378
- msgid "Speed (in/out)"
379
- msgstr "Snelheid (in/uit)"
380
-
381
- #: ../responsive-lightbox.php:512
382
- msgid "Change speed"
383
- msgstr "Veranderingssnelheid"
384
-
385
- #: ../responsive-lightbox.php:513
386
- msgid "Change fade"
387
- msgstr "Snelheid van vervagen"
388
-
389
- #: ../responsive-lightbox.php:514
390
- msgid "Padding"
391
- msgstr "Padding"
392
-
393
- #: ../responsive-lightbox.php:515
394
- msgid "Margin"
395
- msgstr "Marge"
396
-
397
- #: ../responsive-lightbox.php:521
398
- msgid "Effect"
399
- msgstr "Effect"
400
-
401
- #: ../responsive-lightbox.php:522
402
- msgid "Keyboard navigation"
403
- msgstr "Toetsenbordnavigatie"
404
-
405
- #: ../responsive-lightbox.php:523
406
- msgid "Error message"
407
- msgstr "Foutmelding"
408
-
409
- #: ../responsive-lightbox.php:541
410
- msgid "Select your preffered ligthbox effect script."
411
- msgstr "Selecteer het Lightbox effect-script van je voorkeur."
412
-
413
- #: ../responsive-lightbox.php:551
414
- msgid "Select to which rel selector lightbox effect will be applied to."
415
- msgstr "Geef een rel selecteerder op voor het Lightbox-effect."
416
-
417
- #: ../responsive-lightbox.php:569
418
- msgid "Enable triggering lightbox on custom jquery events."
419
- msgstr "Schakel openen van Lightbox bij 'custom jquery events' in."
420
-
421
- #: ../responsive-lightbox.php:572
422
- msgid "Enter a space separated list of events."
423
- msgstr "Voer een spatiegescheiden lijst van 'events' in."
424
-
425
- #: ../responsive-lightbox.php:591
426
- msgid "Add lightbox to WordPress image galleries by default."
427
- msgstr "Lightbox standaard toewijzen aan Wordpress beeldgalerijen."
428
-
429
- #: ../responsive-lightbox.php:609
430
- msgid "Add lightbox to YouTube and Vimeo video links by default."
431
- msgstr "Lightbox standaard toewijzen aan YouTube- en Vimeo links."
432
-
433
- #: ../responsive-lightbox.php:627
434
- msgid "Add lightbox to WordPress image links by default."
435
- msgstr "Lightbox standaard toewijzen aan links naar afbeeldingen."
436
-
437
- #: ../responsive-lightbox.php:645
438
- msgid "Display single post images as a gallery."
439
- msgstr "Losse afbeeldingen in een bericht als galerij tonen."
440
-
441
- #: ../responsive-lightbox.php:663
442
- msgid "Delete settings on plugin deactivation."
443
- msgstr "Instellingen wissen bij deactivatie van de plugin."
444
-
445
- #: ../responsive-lightbox.php:681
446
- msgid "Select a method of applying a lightbox effect."
447
- msgstr "Selecteer een methode om een Lightbox-effekt toe te passen."
448
-
449
- #: ../responsive-lightbox.php:699
450
- msgid "Disable if you don't want to top and bottom bars to be hidden after a period of time."
451
- msgstr "Schakel deze optie uit om de onder- en bovenbalken niet te verbergen."
452
-
453
- #: ../responsive-lightbox.php:702
454
- msgid "Enter the time after which the top and bottom bars will be hidden (when hiding is enabled)."
455
- msgstr "Voer de tijd in waarna de boven- en onderbalk worden verborgen (als verbergen is ingeschakeld)."
456
-
457
- #: ../responsive-lightbox.php:713
458
- msgid "Enter the max video width in a lightbox."
459
- msgstr "Geef de grootste breedte aan voor video in een Lightbox."
460
-
461
- #: ../responsive-lightbox.php:731
462
- msgid "Enable this if you're having problems with navigation icons not visible on some devices."
463
- msgstr "Inschakelen als je problemen hebt met de zichtbaarheid van navigatiepijlen op sommige apparaten."
464
-
465
- #: ../responsive-lightbox.php:749
466
- msgid "Select animation speed for lightbox effect."
467
- msgstr "Selecteer de animatiesnelheid van het Lightbox-effect."
468
-
469
- #: ../responsive-lightbox.php:767
470
- msgid "Display images as slideshow."
471
- msgstr "Afbeeldingen tonen als diashow."
472
-
473
- #: ../responsive-lightbox.php:770
474
- msgid "Enter time (in miliseconds)."
475
- msgstr "Tijd aangeven (in milliseconden)."
476
-
477
- #: ../responsive-lightbox.php:789
478
- msgid "Automatically start slideshow."
479
- msgstr "Diashow automatisch starten."
480
-
481
- #: ../responsive-lightbox.php:802
482
- msgid "Value between 0 and 100, 100 for no opacity."
483
- msgstr "Waarde tussen 0 en 100 (0 is transparant)."
484
-
485
- #: ../responsive-lightbox.php:820
486
- msgid "Display image tiltle."
487
- msgstr "Titel van de afbeelding tonen."
488
-
489
- #: ../responsive-lightbox.php:838
490
- msgid "Resize the photos bigger than viewport."
491
- msgstr "Foto's groter dan het zichtvenster verkleinen."
492
-
493
- #: ../responsive-lightbox.php:848
494
- #: ../responsive-lightbox.php:858
495
- msgid "in pixels"
496
- msgstr "in pixels"
497
-
498
- #: ../responsive-lightbox.php:876
499
- msgid "Select theme for lightbox effect."
500
- msgstr "Selecteer een thema voor het Lightbox-effect."
501
-
502
- #: ../responsive-lightbox.php:886
503
- msgid "Horizontal padding (in pixels)."
504
- msgstr "Horizontale padding (in pixels)."
505
-
506
- #: ../responsive-lightbox.php:904
507
- msgid "Hides all the flash object on a page. Enable this if flash appears over prettyPhoto."
508
- msgstr "Verbergt alle flash-objecten op een pagina. Pas toe wanneer flash over PrettyPhoto heen verschijnt."
509
-
510
- #: ../responsive-lightbox.php:922
511
- msgid "Select flash window mode."
512
- msgstr "Flash-venstermodus selecteren."
513
-
514
- #: ../responsive-lightbox.php:940
515
- msgid "Automatically start videos."
516
- msgstr "Start video's automatisch."
517
-
518
- #: ../responsive-lightbox.php:958
519
- msgid "If set to true, only the close button will close the window."
520
- msgstr "Indien actief kan het venster alleen met de sluitknop gesloten worden."
521
-
522
- #: ../responsive-lightbox.php:976
523
- msgid "Allow prettyPhoto to update the url to enable deeplinking."
524
- msgstr "PrettyPhoto toestaan de URL te actualiseren om te kunnen dieplinken."
525
-
526
- #: ../responsive-lightbox.php:994
527
- msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
528
- msgstr "Schakelt een galerij-overlay in bij muizen over de Lightbox afbeelding."
529
-
530
- #: ../responsive-lightbox.php:1012
531
- msgid "Set to false if you open forms inside prettyPhoto."
532
- msgstr "Deactiveer om formulieren in prettyPhoto te openen."
533
-
534
- #: ../responsive-lightbox.php:1030
535
- msgid "Display links to Facebook and Twitter."
536
- msgstr "Toon links naar Facebook en Twitter."
537
-
538
- #: ../responsive-lightbox.php:1048
539
- msgid "The transition type."
540
- msgstr "Type van overgang."
541
-
542
- #: ../responsive-lightbox.php:1058
543
- msgid "Space between FancyBox wrapper and content."
544
- msgstr "Ruimte tussen de Fancybox omtrek en inhoud."
545
-
546
- #: ../responsive-lightbox.php:1068
547
- msgid "Space between viewport and FancyBox wrapper."
548
- msgstr "Ruimte tussen de FancyBox omtrek en zichtvenster."
549
-
550
- #: ../responsive-lightbox.php:1086
551
- msgid "When true, \"overlayShow\" is set to TRUE and \"hideOnOverlayClick\", \"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set to FALSE."
552
- msgstr "Indien ingeschakeld is \"overlayShow\" actief en zijn \"showCloseButton\", \"enableEscapeButton\", \"hideOnOverlayClick\" en \"hideOnContentClick\" inactief."
553
-
554
- #: ../responsive-lightbox.php:1104
555
- msgid "Toggle overlay."
556
- msgstr "Overlay tonen (\"overlayShow\")."
557
-
558
- #: ../responsive-lightbox.php:1122
559
- msgid "Toggle close button."
560
- msgstr "Sluitknop tonen (\"showCloseButton\")."
561
-
562
- #: ../responsive-lightbox.php:1140
563
- msgid "Toggle if pressing Esc button closes FancyBox."
564
- msgstr "Esc-toets inschakelen om Fancybox te sluiten (\"enableEscapeButton\")."
565
-
566
- #: ../responsive-lightbox.php:1158
567
- msgid "Toggle if clicking the overlay should close FancyBox."
568
- msgstr "Inschakelen als klikken op de overlay Fancybox moet sluiten (\"hideOnOverlayClick\")."
569
-
570
- #: ../responsive-lightbox.php:1176
571
- msgid "Toggle if clicking the content should close FancyBox."
572
- msgstr "Inschakelen als klikken op de inhoud Fancybox moet sluiten (\"hideOnContentClick\")."
573
-
574
- #: ../responsive-lightbox.php:1194
575
- msgid "When true, galleries will be cyclic, allowing you to keep pressing next/back."
576
- msgstr "Toon galerijen als cycli, met de 'volgende/vorige'-functie nog steeds actief."
577
-
578
- #: ../responsive-lightbox.php:1212
579
- msgid "Toggle navigation arrows."
580
- msgstr "Navigatiepijlen inschakelen."
581
-
582
- #: ../responsive-lightbox.php:1230
583
- msgid "If true, FancyBox is scaled to fit in viewport."
584
- msgstr "FancyBox verschalen om in het zichtvenster te passen."
585
-
586
- #: ../responsive-lightbox.php:1248
587
- msgid "Set the overflow CSS property to create or hide scrollbars."
588
- msgstr "Stel de CSS-eigenschap 'overflow' in om schuifbalken te tonen of te verbergen."
589
-
590
- #: ../responsive-lightbox.php:1266
591
- msgid "When true, FancyBox is centered while scrolling page."
592
- msgstr "Fancybox centreren bij scrollen door de pagina."
593
-
594
- #: ../responsive-lightbox.php:1284
595
- msgid "When true, transparency of content is changed for elastic transitions."
596
- msgstr "Indien actief verandert de transparantie van inhoud bij elastische overgangen."
597
-
598
- #: ../responsive-lightbox.php:1297
599
- msgid "Opacity of the overlay."
600
- msgstr "Opaciteit van de overlay."
601
-
602
- #: ../responsive-lightbox.php:1307
603
- msgid "Color of the overlay."
604
- msgstr "Kleur van de overlay."
605
-
606
- #: ../responsive-lightbox.php:1325
607
- msgid "Toggle title."
608
- msgstr "Inschakelen om titel te tonen."
609
-
610
- #: ../responsive-lightbox.php:1343
611
- msgid "The position of title."
612
- msgstr "De positie van de titel."
613
-
614
- #: ../responsive-lightbox.php:1361
615
- msgid "Easing used for elastic animations."
616
- msgstr "Soort van beweging bij elastische animaties."
617
-
618
- #: ../responsive-lightbox.php:1371
619
- msgid "Speed of the fade and elastic transitions, in milliseconds."
620
- msgstr "Duur van vervagende en elastische overgangen, in milliseconden."
621
-
622
- #: ../responsive-lightbox.php:1381
623
- msgid "Speed of resizing when changing gallery items, in milliseconds."
624
- msgstr "Duur van verschalen bij wisselingen in de galerij, in milliseconden."
625
-
626
- #: ../responsive-lightbox.php:1391
627
- msgid "Speed of the content fading while changing gallery items."
628
- msgstr "Duur van vervagen bij wisselingen in de galerij."
629
-
630
- #: ../responsive-lightbox.php:1401
631
- msgid "Width of the video."
632
- msgstr "Breedte van de video."
633
-
634
- #: ../responsive-lightbox.php:1411
635
- msgid "Height of the video."
636
- msgstr "Hoogte van de video."
637
-
638
- #: ../responsive-lightbox.php:1429
639
- msgid "The effect to use when showing the lightbox."
640
- msgstr "Het te kiezen effect wanneer Lightbox wordt getoond."
641
-
642
- #: ../responsive-lightbox.php:1447
643
- msgid "Enable/Disable keyboard navigation (left/right/escape)."
644
- msgstr "Toetsenbordnavigatie in- of uitschakelen (links/rechts/esc)."
645
-
646
- #: ../responsive-lightbox.php:1457
647
- msgid "Error message if the content cannot be loaded."
648
- msgstr "Foutmelding als de inhoud niet geladen kan worden."
649
-
650
- #: ../responsive-lightbox.php:1661
651
- msgid "Changes were not saved because there was attempt to save settings of inactive script. The site has been reloaded to the proper script settings."
652
- msgstr "Wijzigingen zijn niet bewaard omdat geprobeerd is instellingen van een inactieve script te wijzigen. De site is herladen met de juiste scriptinstellingen."
653
-
654
- #: ../responsive-lightbox.php:1671
655
- msgid "Settings restored to defaults."
656
- msgstr "Standaard instellingen zijn hersteld."
657
-
658
- #: ../responsive-lightbox.php:1679
659
- msgid "Settings of SwipeBox script were restored to defaults."
660
- msgstr "Standaard instellingen van SwipeBox-script zijn hesteld."
661
-
662
- #: ../responsive-lightbox.php:1685
663
- msgid "Settings of prettyPhoto script were restored to defaults."
664
- msgstr "Standaard instellingen van prettyPhoto-script zijn hersteld."
665
-
666
- #: ../responsive-lightbox.php:1691
667
- msgid "Settings of FancyBox script were restored to defaults."
668
- msgstr "Standaard instellingen van FancyBox-script zijn hersteld."
669
-
670
- #: ../responsive-lightbox.php:1697
671
- msgid "Settings of Nivo script were restored to defaults."
672
- msgstr "Standaard instellingen van Nivo-script zijn hersteld."
673
-
674
- #: ../responsive-lightbox.php:1701
675
- msgid "Changes were not set to defaults because there was attempt to reset settings of inactive script. The site has been reloaded to the proper script settings."
676
- msgstr "Standaard instellingen zijn niet hersteld omdat geprobeerd is de instellingen van een inactieve script te herstellen. De site is herladen met de juiste scriptinstellingen."
677
-
678
- #: ../responsive-lightbox.php:1715
679
- #: ../responsive-lightbox.php:1716
680
- #: ../responsive-lightbox.php:1730
681
- #: ../responsive-lightbox.php:1744
682
- msgid "Responsive Lightbox"
683
- msgstr "Responsive Lightbox"
684
-
685
- #: ../responsive-lightbox.php:1746
686
- msgid "Need support?"
687
- msgstr "Hulp nodig?"
688
-
689
- #: ../responsive-lightbox.php:1747
690
- msgid "If you are having problems with this plugin, please talk about them in the"
691
- msgstr "Als je een probleem hebt met deze plugin meldt dit dan in het "
692
-
693
- #: ../responsive-lightbox.php:1747
694
- msgid "Support forum"
695
- msgstr "Support Forum"
696
-
697
- #: ../responsive-lightbox.php:1749
698
- msgid "Do you like this plugin?"
699
- msgstr "Bevalt deze plugin?"
700
-
701
- #: ../responsive-lightbox.php:1750
702
- msgid "Rate it 5"
703
- msgstr "Beoordeel met 5 sterren"
704
-
705
- #: ../responsive-lightbox.php:1750
706
- msgid "on WordPress.org"
707
- msgstr "op WordPress.org"
708
-
709
- #: ../responsive-lightbox.php:1751
710
- msgid "Blog about it & link to the"
711
- msgstr "Schijf erover & link naar de"
712
-
713
- #: ../responsive-lightbox.php:1751
714
- msgid "plugin page"
715
- msgstr "plugin pagina"
716
-
717
- #: ../responsive-lightbox.php:1752
718
- msgid "Check out our other"
719
- msgstr "Bekijk ook onze andere"
720
-
721
- #: ../responsive-lightbox.php:1752
722
- msgid "WordPress plugins"
723
- msgstr "WordPress Plugins"
724
-
725
- #: ../responsive-lightbox.php:1772
726
- msgid "Reset to defaults"
727
- msgstr "Herstel standaard instellingen"
728
-
729
- #: ../responsive-lightbox.php:1799
730
- msgid "Are you sure you want to reset these settings to defaults?"
731
- msgstr "Weet je zeker dat je de algemene standaardinstellingen wilt herstellen?"
732
-
733
- #: ../responsive-lightbox.php:1800
734
- msgid "Are you sure you want to reset scripts settings to defaults?"
735
- msgstr "Weet je zeker dat je de standaard scriptinstellingen wilt herstellen?"
736
-
737
- #: ../responsive-lightbox.php:2047
738
- msgid "Support"
739
- msgstr "Support"
740
-
741
- #: ../responsive-lightbox.php:2069
742
- msgid "Settings"
743
- msgstr "Instellingen"
744
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Responsive Lightbox\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2014-09-04 21:25+0100\n"
6
+ "PO-Revision-Date: 2015-02-09 15:37+0100\n"
7
+ "Last-Translator: basbva\n"
8
+ "Language-Team: basbva.nl\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Language: de_DE\n"
13
+ "X-Generator: Poedit 1.6.3\n"
14
+ "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e\n"
15
+ "X-Poedit-Basepath: .\n"
16
+ "X-Poedit-SourceCharset: UTF-8\n"
17
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
+ "X-Poedit-Language: Dutch\n"
19
+ "X-Poedit-Country: NETHERLANDS\n"
20
+ "X-Poedit-SearchPath-0: ..\n"
21
+
22
+ #: ../responsive-lightbox.php:294
23
+ msgid "prettyPhoto"
24
+ msgstr "prettyPhoto"
25
+
26
+ #: ../responsive-lightbox.php:296
27
+ msgid "slow"
28
+ msgstr "langzaam"
29
+
30
+ #: ../responsive-lightbox.php:297
31
+ msgid "normal"
32
+ msgstr "normaal"
33
+
34
+ #: ../responsive-lightbox.php:298
35
+ msgid "fast"
36
+ msgstr "snel"
37
+
38
+ #: ../responsive-lightbox.php:301
39
+ msgid "default"
40
+ msgstr "standaard"
41
+
42
+ #: ../responsive-lightbox.php:302
43
+ msgid "light rounded"
44
+ msgstr "afgerond licht"
45
+
46
+ #: ../responsive-lightbox.php:303
47
+ msgid "dark rounded"
48
+ msgstr "afgerond donker"
49
+
50
+ #: ../responsive-lightbox.php:304
51
+ msgid "light square"
52
+ msgstr "hoekig licht"
53
+
54
+ #: ../responsive-lightbox.php:305
55
+ msgid "dark square"
56
+ msgstr "hoekig donker"
57
+
58
+ #: ../responsive-lightbox.php:306
59
+ msgid "facebook"
60
+ msgstr "facebook"
61
+
62
+ #: ../responsive-lightbox.php:309
63
+ msgid "window"
64
+ msgstr "venster"
65
+
66
+ #: ../responsive-lightbox.php:310
67
+ msgid "transparent"
68
+ msgstr "transparant"
69
+
70
+ #: ../responsive-lightbox.php:311
71
+ msgid "opaque"
72
+ msgstr "opaak"
73
+
74
+ #: ../responsive-lightbox.php:312
75
+ msgid "direct"
76
+ msgstr "direct"
77
+
78
+ #: ../responsive-lightbox.php:313
79
+ msgid "gpu"
80
+ msgstr "GPU"
81
+
82
+ #: ../responsive-lightbox.php:317
83
+ msgid "SwipeBox"
84
+ msgstr "SwipeBox"
85
+
86
+ #: ../responsive-lightbox.php:319
87
+ msgid "CSS"
88
+ msgstr "CSS"
89
+
90
+ #: ../responsive-lightbox.php:320
91
+ msgid "jQuery"
92
+ msgstr "jQuery"
93
+
94
+ #: ../responsive-lightbox.php:324
95
+ msgid "FancyBox"
96
+ msgstr "FancyBox"
97
+
98
+ #: ../responsive-lightbox.php:326
99
+ msgid "elastic"
100
+ msgstr "elastisch"
101
+
102
+ #: ../responsive-lightbox.php:327
103
+ #: ../responsive-lightbox.php:348
104
+ msgid "fade"
105
+ msgstr "vervagen"
106
+
107
+ #: ../responsive-lightbox.php:328
108
+ msgid "none"
109
+ msgstr "geen"
110
+
111
+ #: ../responsive-lightbox.php:331
112
+ msgid "auto"
113
+ msgstr "automatisch"
114
+
115
+ #: ../responsive-lightbox.php:332
116
+ msgid "yes"
117
+ msgstr "ja"
118
+
119
+ #: ../responsive-lightbox.php:333
120
+ msgid "no"
121
+ msgstr "nee"
122
+
123
+ #: ../responsive-lightbox.php:336
124
+ msgid "swing"
125
+ msgstr "swing"
126
+
127
+ #: ../responsive-lightbox.php:337
128
+ msgid "linear"
129
+ msgstr "lineair"
130
+
131
+ #: ../responsive-lightbox.php:340
132
+ msgid "outside"
133
+ msgstr "buiten"
134
+
135
+ #: ../responsive-lightbox.php:341
136
+ msgid "inside"
137
+ msgstr "binnen"
138
+
139
+ #: ../responsive-lightbox.php:342
140
+ msgid "over"
141
+ msgstr "over"
142
+
143
+ #: ../responsive-lightbox.php:346
144
+ msgid "Nivo Lightbox"
145
+ msgstr "Nivo Lightbox"
146
+
147
+ #: ../responsive-lightbox.php:349
148
+ #, fuzzy
149
+ msgid "fade scale"
150
+ msgstr "fade scale"
151
+
152
+ #: ../responsive-lightbox.php:350
153
+ msgid "slide left"
154
+ msgstr "linksom"
155
+
156
+ #: ../responsive-lightbox.php:351
157
+ msgid "slide right"
158
+ msgstr "rechtsom"
159
+
160
+ #: ../responsive-lightbox.php:352
161
+ msgid "slide up"
162
+ msgstr "omhoog"
163
+
164
+ #: ../responsive-lightbox.php:353
165
+ msgid "slide down"
166
+ msgstr "omlaag"
167
+
168
+ #: ../responsive-lightbox.php:354
169
+ msgid "fall"
170
+ msgstr "vallen"
171
+
172
+ #: ../responsive-lightbox.php:358
173
+ msgid "Image Lightbox"
174
+ msgstr "Image Lightbox"
175
+
176
+ #: ../responsive-lightbox.php:363
177
+ msgid "Enable"
178
+ msgstr "Inschakelen"
179
+
180
+ #: ../responsive-lightbox.php:364
181
+ msgid "Disable"
182
+ msgstr "Uitschakelen"
183
+
184
+ #: ../responsive-lightbox.php:368
185
+ msgid "Header"
186
+ msgstr "Koptekst"
187
+
188
+ #: ../responsive-lightbox.php:369
189
+ msgid "Footer"
190
+ msgstr "Voettekst"
191
+
192
+ #: ../responsive-lightbox.php:374
193
+ #: ../responsive-lightbox.php:475
194
+ msgid "General settings"
195
+ msgstr "Algemene instellingen"
196
+
197
+ #: ../responsive-lightbox.php:380
198
+ #: ../responsive-lightbox.php:489
199
+ msgid "Lightbox settings"
200
+ msgstr "Lightbox instellingen"
201
+
202
+ #: ../responsive-lightbox.php:476
203
+ msgid "Lightbox script"
204
+ msgstr "Lightbox-script"
205
+
206
+ #: ../responsive-lightbox.php:477
207
+ msgid "Selector"
208
+ msgstr "Selecteerder"
209
+
210
+ #: ../responsive-lightbox.php:478
211
+ msgid "Galleries"
212
+ msgstr "Galerijen"
213
+
214
+ #: ../responsive-lightbox.php:479
215
+ msgid "Gallery image size"
216
+ msgstr "Galerij-afbeeldingsformaat"
217
+
218
+ #: ../responsive-lightbox.php:480
219
+ msgid "Video links"
220
+ msgstr "Video Links"
221
+
222
+ #: ../responsive-lightbox.php:481
223
+ msgid "Image links"
224
+ msgstr "Links naar afbeeldingen"
225
+
226
+ #: ../responsive-lightbox.php:482
227
+ msgid "Single images as gallery"
228
+ msgstr "Losse afbeeldingen als galerij"
229
+
230
+ #: ../responsive-lightbox.php:483
231
+ msgid "Custom events"
232
+ msgstr "Custom events"
233
+
234
+ #: ../responsive-lightbox.php:484
235
+ msgid "Loading place"
236
+ msgstr "Laadplaats"
237
+
238
+ #: ../responsive-lightbox.php:485
239
+ msgid "Deactivation"
240
+ msgstr "Deactivatie"
241
+
242
+ #: ../responsive-lightbox.php:493
243
+ msgid "Animation type"
244
+ msgstr "Animatietype"
245
+
246
+ #: ../responsive-lightbox.php:494
247
+ msgid "Force PNG icons"
248
+ msgstr "Forceer PNG symbolen"
249
+
250
+ #: ../responsive-lightbox.php:495
251
+ msgid "Top and bottom bars"
252
+ msgstr "Boven- en onderbalken"
253
+
254
+ #: ../responsive-lightbox.php:496
255
+ msgid "Video max width"
256
+ msgstr "Video (grootste breedte)"
257
+
258
+ #: ../responsive-lightbox.php:500
259
+ #: ../responsive-lightbox.php:557
260
+ msgid "Animation speed"
261
+ msgstr "Animatiesnelheid"
262
+
263
+ #: ../responsive-lightbox.php:501
264
+ msgid "Slideshow"
265
+ msgstr "Diashow"
266
+
267
+ #: ../responsive-lightbox.php:502
268
+ msgid "Slideshow autoplay"
269
+ msgstr "Autostart diashow"
270
+
271
+ #: ../responsive-lightbox.php:503
272
+ #: ../responsive-lightbox.php:533
273
+ msgid "Opacity"
274
+ msgstr "Opaciteit"
275
+
276
+ #: ../responsive-lightbox.php:504
277
+ msgid "Show title"
278
+ msgstr "Toon titel"
279
+
280
+ #: ../responsive-lightbox.php:505
281
+ msgid "Allow resize big images"
282
+ msgstr "Verkleinen van grote afbeeldingen toestaan"
283
+
284
+ #: ../responsive-lightbox.php:506
285
+ msgid "Allow expand"
286
+ msgstr "Sta expantie toe"
287
+
288
+ #: ../responsive-lightbox.php:507
289
+ #: ../responsive-lightbox.php:545
290
+ msgid "Video width"
291
+ msgstr "Videobreedte"
292
+
293
+ #: ../responsive-lightbox.php:508
294
+ #: ../responsive-lightbox.php:546
295
+ msgid "Video height"
296
+ msgstr "Videohoogte"
297
+
298
+ #: ../responsive-lightbox.php:509
299
+ msgid "Theme"
300
+ msgstr "Thema"
301
+
302
+ #: ../responsive-lightbox.php:510
303
+ msgid "Horizontal padding"
304
+ msgstr "Horizontale padding"
305
+
306
+ #: ../responsive-lightbox.php:511
307
+ msgid "Hide Flash"
308
+ msgstr "Verberg Flash"
309
+
310
+ #: ../responsive-lightbox.php:512
311
+ msgid "Flash Window Mode (wmode)"
312
+ msgstr "Flash-venstermodus (wmode)"
313
+
314
+ #: ../responsive-lightbox.php:513
315
+ msgid "Video autoplay"
316
+ msgstr "Autostart video"
317
+
318
+ #: ../responsive-lightbox.php:514
319
+ #: ../responsive-lightbox.php:522
320
+ msgid "Modal"
321
+ msgstr "Modus"
322
+
323
+ #: ../responsive-lightbox.php:515
324
+ msgid "Deeplinking"
325
+ msgstr "Dieplinken"
326
+
327
+ #: ../responsive-lightbox.php:516
328
+ msgid "Overlay gallery"
329
+ msgstr "Overlay-galerij"
330
+
331
+ #: ../responsive-lightbox.php:517
332
+ msgid "Keyboard shortcuts"
333
+ msgstr "Sneltoetsen"
334
+
335
+ #: ../responsive-lightbox.php:518
336
+ msgid "Social (Twitter, Facebook)"
337
+ msgstr "Sociaal (Twitter, Facebook)"
338
+
339
+ #: ../responsive-lightbox.php:523
340
+ msgid "Show overlay"
341
+ msgstr "Toon overlay"
342
+
343
+ #: ../responsive-lightbox.php:524
344
+ msgid "Show close button"
345
+ msgstr "Toon sluitknop"
346
+
347
+ #: ../responsive-lightbox.php:525
348
+ msgid "Enable escape button"
349
+ msgstr "esc-toets inschakelen"
350
+
351
+ #: ../responsive-lightbox.php:526
352
+ msgid "Hide on overlay click"
353
+ msgstr "Verbergen bij overlay-klik"
354
+
355
+ #: ../responsive-lightbox.php:527
356
+ msgid "Hide on content click"
357
+ msgstr "Verbergen bij inhoud-klik"
358
+
359
+ #: ../responsive-lightbox.php:528
360
+ msgid "Cyclic"
361
+ msgstr "Cyclisch"
362
+
363
+ #: ../responsive-lightbox.php:529
364
+ msgid "Show nav arrows"
365
+ msgstr "Toon navigatiepijlen"
366
+
367
+ #: ../responsive-lightbox.php:530
368
+ msgid "Auto scale"
369
+ msgstr "Automatisch schalen"
370
+
371
+ #: ../responsive-lightbox.php:531
372
+ msgid "Scrolling (in/out)"
373
+ msgstr "Scrollen (in/uit)"
374
+
375
+ #: ../responsive-lightbox.php:532
376
+ msgid "Center on scroll"
377
+ msgstr "Centreer bij scrollen"
378
+
379
+ #: ../responsive-lightbox.php:534
380
+ msgid "Overlay opacity"
381
+ msgstr "Overlay-opaciteit"
382
+
383
+ #: ../responsive-lightbox.php:535
384
+ msgid "Overlay color"
385
+ msgstr "Overlay-kleur"
386
+
387
+ #: ../responsive-lightbox.php:536
388
+ msgid "Title show"
389
+ msgstr "Titel tonen"
390
+
391
+ #: ../responsive-lightbox.php:537
392
+ msgid "Title position"
393
+ msgstr "Titelpositie"
394
+
395
+ #: ../responsive-lightbox.php:538
396
+ msgid "Transition (in/out)"
397
+ msgstr "Overgang (in/uit)"
398
+
399
+ #: ../responsive-lightbox.php:539
400
+ msgid "Easings (in/out)"
401
+ msgstr "Beweging (in/uit)"
402
+
403
+ #: ../responsive-lightbox.php:540
404
+ msgid "Speed (in/out)"
405
+ msgstr "Snelheid (in/uit)"
406
+
407
+ #: ../responsive-lightbox.php:541
408
+ msgid "Change speed"
409
+ msgstr "Veranderingssnelheid"
410
+
411
+ #: ../responsive-lightbox.php:542
412
+ msgid "Change fade"
413
+ msgstr "Snelheid van vervagen"
414
+
415
+ #: ../responsive-lightbox.php:543
416
+ msgid "Padding"
417
+ msgstr "Padding"
418
+
419
+ #: ../responsive-lightbox.php:544
420
+ msgid "Margin"
421
+ msgstr "Marge"
422
+
423
+ #: ../responsive-lightbox.php:550
424
+ msgid "Effect"
425
+ msgstr "Effect"
426
+
427
+ #: ../responsive-lightbox.php:551
428
+ msgid "Click overlay to close"
429
+ msgstr "Klik op overlay om te sluiten"
430
+
431
+ #: ../responsive-lightbox.php:552
432
+ msgid "Keyboard navigation"
433
+ msgstr "Toetsenbordnavigatie"
434
+
435
+ #: ../responsive-lightbox.php:553
436
+ msgid "Error message"
437
+ msgstr "Foutmelding"
438
+
439
+ #: ../responsive-lightbox.php:558
440
+ msgid "Preload next image"
441
+ msgstr "Laad de volgende afbeelding vooraf"
442
+
443
+ #: ../responsive-lightbox.php:559
444
+ msgid "Enable keyboard keys"
445
+ msgstr "Schakel toetsenbordtoetsen in"
446
+
447
+ #: ../responsive-lightbox.php:560
448
+ msgid "Quit after last image"
449
+ msgstr "Sluit af na laatste afbeelding"
450
+
451
+ #: ../responsive-lightbox.php:561
452
+ msgid "Quit when image is clicked"
453
+ msgstr "Sluit af bij klikken op afbeelding"
454
+
455
+ #: ../responsive-lightbox.php:562
456
+ msgid "Quit when anything but image is clicked"
457
+ msgstr "Sluit af bij klikken buiten de afbeelding"
458
+
459
+ #: ../responsive-lightbox.php:582
460
+ msgid "Select your preffered ligthbox effect script."
461
+ msgstr "Selecteer het Lightbox effect-script van je voorkeur."
462
+
463
+ #: ../responsive-lightbox.php:592
464
+ msgid "Select to which rel selector lightbox effect will be applied to."
465
+ msgstr "Geef een rel selecteerder op voor het Lightbox-effect."
466
+
467
+ #: ../responsive-lightbox.php:612
468
+ msgid "Enable triggering lightbox on custom jquery events."
469
+ msgstr "Schakel openen van Lightbox bij 'custom jquery events' in."
470
+
471
+ #: ../responsive-lightbox.php:615
472
+ msgid "Enter a space separated list of events."
473
+ msgstr "Voer een spatiegescheiden lijst van 'events' in."
474
+
475
+ #: ../responsive-lightbox.php:636
476
+ msgid "Select where all the lightbox scripts should be placed."
477
+ msgstr "Selecteer waar alle Lightbox scripts moeten worden geplaatst."
478
+
479
+ #: ../responsive-lightbox.php:654
480
+ msgid "Add lightbox to WordPress image galleries by default."
481
+ msgstr "Lightbox standaard toewijzen aan Wordpress beeldgalerijen."
482
+
483
+ #: ../responsive-lightbox.php:674
484
+ msgid "By default WP gallery links point to full size images only. Enable that to modify the image size of native WP gallery image links."
485
+ msgstr "WP galerij-links wijzen standaard alleen naar vol formaat afbeeldingen. Schakel in om het afbeeldingformaat van WP gallerij-links te wijzigen."
486
+
487
+ #: ../responsive-lightbox.php:684
488
+ msgid "full"
489
+ msgstr "vol"
490
+
491
+ #: ../responsive-lightbox.php:693
492
+ msgid "Select image size for gallery image links."
493
+ msgstr "Selecteer het afbeeldingsformaat voor links van galerij-afbeeldingen."
494
+
495
+ #: ../responsive-lightbox.php:712
496
+ msgid "Add lightbox to YouTube and Vimeo video links by default."
497
+ msgstr "Lightbox standaard toewijzen aan YouTube- en Vimeo links."
498
+
499
+ #: ../responsive-lightbox.php:730
500
+ msgid "Add lightbox to WordPress image links by default."
501
+ msgstr "Lightbox standaard toewijzen aan links naar afbeeldingen."
502
+
503
+ #: ../responsive-lightbox.php:748
504
+ msgid "Display single post images as a gallery."
505
+ msgstr "Losse afbeeldingen in een bericht als galerij tonen."
506
+
507
+ #: ../responsive-lightbox.php:766
508
+ msgid "Delete settings on plugin deactivation."
509
+ msgstr "Instellingen wissen bij deactivatie van de plugin."
510
+
511
+ #: ../responsive-lightbox.php:784
512
+ msgid "Select a method of applying a lightbox effect."
513
+ msgstr "Selecteer een methode om een Lightbox-effekt toe te passen."
514
+
515
+ #: ../responsive-lightbox.php:802
516
+ msgid "Disable if you don't want to top and bottom bars to be hidden after a period of time."
517
+ msgstr "Schakel deze optie uit om de onder- en bovenbalken niet te verbergen."
518
+
519
+ #: ../responsive-lightbox.php:805
520
+ msgid "Enter the time after which the top and bottom bars will be hidden (when hiding is enabled)."
521
+ msgstr "Voer de tijd in waarna de boven- en onderbalk worden verborgen (als verbergen is ingeschakeld)."
522
+
523
+ #: ../responsive-lightbox.php:816
524
+ msgid "Enter the max video width in a lightbox."
525
+ msgstr "Geef de grootste breedte aan voor video in een Lightbox."
526
+
527
+ #: ../responsive-lightbox.php:834
528
+ msgid "Enable this if you're having problems with navigation icons not visible on some devices."
529
+ msgstr "Inschakelen als je problemen hebt met de zichtbaarheid van navigatiepijlen op sommige apparaten."
530
+
531
+ #: ../responsive-lightbox.php:852
532
+ msgid "Select animation speed for lightbox effect."
533
+ msgstr "Selecteer de animatiesnelheid van het Lightbox-effect."
534
+
535
+ #: ../responsive-lightbox.php:870
536
+ msgid "Display images as slideshow."
537
+ msgstr "Afbeeldingen tonen als diashow."
538
+
539
+ #: ../responsive-lightbox.php:873
540
+ msgid "Enter time (in miliseconds)."
541
+ msgstr "Tijd aangeven (in milliseconden)."
542
+
543
+ #: ../responsive-lightbox.php:892
544
+ msgid "Automatically start slideshow."
545
+ msgstr "Diashow automatisch starten."
546
+
547
+ #: ../responsive-lightbox.php:905
548
+ msgid "Value between 0 and 100, 100 for no opacity."
549
+ msgstr "Waarde tussen 0 en 100 (0 is transparant)."
550
+
551
+ #: ../responsive-lightbox.php:923
552
+ msgid "Display image tiltle."
553
+ msgstr "Titel van de afbeelding tonen."
554
+
555
+ #: ../responsive-lightbox.php:941
556
+ msgid "Resize the photos bigger than viewport."
557
+ msgstr "Foto's groter dan het zichtvenster verkleinen."
558
+
559
+ #: ../responsive-lightbox.php:959
560
+ msgid "Expands something."
561
+ msgstr "Staat expantie van afbeelding toe."
562
+
563
+ #: ../responsive-lightbox.php:969
564
+ #: ../responsive-lightbox.php:979
565
+ msgid "in pixels"
566
+ msgstr "in pixels"
567
+
568
+ #: ../responsive-lightbox.php:997
569
+ msgid "Select theme for lightbox effect."
570
+ msgstr "Selecteer een thema voor het Lightbox-effect."
571
+
572
+ #: ../responsive-lightbox.php:1007
573
+ msgid "Horizontal padding (in pixels)."
574
+ msgstr "Horizontale padding (in pixels)."
575
+
576
+ #: ../responsive-lightbox.php:1025
577
+ msgid "Hides all the flash object on a page. Enable this if flash appears over prettyPhoto."
578
+ msgstr "Verbergt alle flash-objecten op een pagina. Pas toe wanneer flash over PrettyPhoto heen verschijnt."
579
+
580
+ #: ../responsive-lightbox.php:1043
581
+ msgid "Select flash window mode."
582
+ msgstr "Flash-venstermodus selecteren."
583
+
584
+ #: ../responsive-lightbox.php:1061
585
+ msgid "Automatically start videos."
586
+ msgstr "Start video's automatisch."
587
+
588
+ #: ../responsive-lightbox.php:1079
589
+ msgid "If set to true, only the close button will close the window."
590
+ msgstr "Indien actief kan het venster alleen met de sluitknop gesloten worden."
591
+
592
+ #: ../responsive-lightbox.php:1097
593
+ msgid "Allow prettyPhoto to update the url to enable deeplinking."
594
+ msgstr "PrettyPhoto toestaan de URL te actualiseren om te kunnen dieplinken."
595
+
596
+ #: ../responsive-lightbox.php:1115
597
+ msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
598
+ msgstr "Schakelt een galerij-overlay in bij muizen over de Lightbox afbeelding."
599
+
600
+ #: ../responsive-lightbox.php:1133
601
+ msgid "Set to false if you open forms inside prettyPhoto."
602
+ msgstr "Deactiveer om formulieren in prettyPhoto te openen."
603
+
604
+ #: ../responsive-lightbox.php:1151
605
+ msgid "Display links to Facebook and Twitter."
606
+ msgstr "Toon links naar Facebook en Twitter."
607
+
608
+ #: ../responsive-lightbox.php:1169
609
+ msgid "The transition type."
610
+ msgstr "Type van overgang."
611
+
612
+ #: ../responsive-lightbox.php:1179
613
+ msgid "Space between FancyBox wrapper and content."
614
+ msgstr "Ruimte tussen de Fancybox omtrek en inhoud."
615
+
616
+ #: ../responsive-lightbox.php:1189
617
+ msgid "Space between viewport and FancyBox wrapper."
618
+ msgstr "Ruimte tussen de FancyBox omtrek en zichtvenster."
619
+
620
+ #: ../responsive-lightbox.php:1207
621
+ msgid "When true, \"overlayShow\" is set to TRUE and \"hideOnOverlayClick\", \"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set to FALSE."
622
+ msgstr "Indien ingeschakeld is \"overlayShow\" actief en zijn \"showCloseButton\", \"enableEscapeButton\", \"hideOnOverlayClick\" en \"hideOnContentClick\" inactief."
623
+
624
+ #: ../responsive-lightbox.php:1225
625
+ msgid "Toggle overlay."
626
+ msgstr "Overlay tonen (\"overlayShow\")."
627
+
628
+ #: ../responsive-lightbox.php:1243
629
+ msgid "Toggle close button."
630
+ msgstr "Sluitknop tonen (\"showCloseButton\")."
631
+
632
+ #: ../responsive-lightbox.php:1261
633
+ msgid "Toggle if pressing Esc button closes FancyBox."
634
+ msgstr "Esc-toets inschakelen om Fancybox te sluiten (\"enableEscapeButton\")."
635
+
636
+ #: ../responsive-lightbox.php:1279
637
+ msgid "Toggle if clicking the overlay should close FancyBox."
638
+ msgstr "Inschakelen als klikken op de overlay Fancybox moet sluiten (\"hideOnOverlayClick\")."
639
+
640
+ #: ../responsive-lightbox.php:1297
641
+ msgid "Toggle if clicking the content should close FancyBox."
642
+ msgstr "Inschakelen als klikken op de inhoud Fancybox moet sluiten (\"hideOnContentClick\")."
643
+
644
+ #: ../responsive-lightbox.php:1315
645
+ msgid "When true, galleries will be cyclic, allowing you to keep pressing next/back."
646
+ msgstr "Toon galerijen als cycli, met de 'volgende/vorige'-functie nog steeds actief."
647
+
648
+ #: ../responsive-lightbox.php:1333
649
+ msgid "Toggle navigation arrows."
650
+ msgstr "Navigatiepijlen inschakelen."
651
+
652
+ #: ../responsive-lightbox.php:1351
653
+ msgid "If true, FancyBox is scaled to fit in viewport."
654
+ msgstr "FancyBox verschalen om in het zichtvenster te passen."
655
+
656
+ #: ../responsive-lightbox.php:1369
657
+ msgid "Set the overflow CSS property to create or hide scrollbars."
658
+ msgstr "Stel de CSS-eigenschap 'overflow' in om schuifbalken te tonen of te verbergen."
659
+
660
+ #: ../responsive-lightbox.php:1387
661
+ msgid "When true, FancyBox is centered while scrolling page."
662
+ msgstr "Fancybox centreren bij scrollen door de pagina."
663
+
664
+ #: ../responsive-lightbox.php:1405
665
+ msgid "When true, transparency of content is changed for elastic transitions."
666
+ msgstr "Indien actief verandert de transparantie van inhoud bij elastische overgangen."
667
+
668
+ #: ../responsive-lightbox.php:1418
669
+ msgid "Opacity of the overlay."
670
+ msgstr "Opaciteit van de overlay."
671
+
672
+ #: ../responsive-lightbox.php:1428
673
+ msgid "Color of the overlay."
674
+ msgstr "Kleur van de overlay."
675
+
676
+ #: ../responsive-lightbox.php:1446
677
+ msgid "Toggle title."
678
+ msgstr "Inschakelen om titel te tonen."
679
+
680
+ #: ../responsive-lightbox.php:1464
681
+ msgid "The position of title."
682
+ msgstr "De positie van de titel."
683
+
684
+ #: ../responsive-lightbox.php:1482
685
+ msgid "Easing used for elastic animations."
686
+ msgstr "Soort van beweging bij elastische animaties."
687
+
688
+ #: ../responsive-lightbox.php:1492
689
+ msgid "Speed of the fade and elastic transitions, in milliseconds."
690
+ msgstr "Duur van vervagende en elastische overgangen, in milliseconden."
691
+
692
+ #: ../responsive-lightbox.php:1502
693
+ msgid "Speed of resizing when changing gallery items, in milliseconds."
694
+ msgstr "Duur van verschalen bij wisselingen in de galerij, in milliseconden."
695
+
696
+ #: ../responsive-lightbox.php:1512
697
+ msgid "Speed of the content fading while changing gallery items."
698
+ msgstr "Duur van vervagen bij wisselingen in de galerij."
699
+
700
+ #: ../responsive-lightbox.php:1522
701
+ msgid "Width of the video."
702
+ msgstr "Breedte van de video."
703
+
704
+ #: ../responsive-lightbox.php:1532
705
+ msgid "Height of the video."
706
+ msgstr "Hoogte van de video."
707
+
708
+ #: ../responsive-lightbox.php:1550
709
+ msgid "The effect to use when showing the lightbox."
710
+ msgstr "Het te kiezen effect wanneer Lightbox wordt getoond."
711
+
712
+ #: ../responsive-lightbox.php:1568
713
+ msgid "Enable/Disable keyboard navigation (left/right/escape)."
714
+ msgstr "Toetsenbordnavigatie in- of uitschakelen (links/rechts/esc)."
715
+
716
+ #: ../responsive-lightbox.php:1586
717
+ msgid "Eneble to close lightbox on overlay click."
718
+ msgstr "Schakel in om lightbox te sluiten bij klik op overlay."
719
+
720
+ #: ../responsive-lightbox.php:1596
721
+ msgid "Error message if the content cannot be loaded."
722
+ msgstr "Foutmelding als de inhoud niet geladen kan worden."
723
+
724
+ #: ../responsive-lightbox.php:1606
725
+ msgid "Animation speed."
726
+ msgstr "Animatiesnelheid."
727
+
728
+ #: ../responsive-lightbox.php:1624
729
+ msgid "Silently preload the next image."
730
+ msgstr "Laad de volgende afbeelding stil vooraf."
731
+
732
+ #: ../responsive-lightbox.php:1642
733
+ msgid "Enable keyboard shortcuts (arrows Left/Right and Esc)."
734
+ msgstr "Schakel sneltoetsen in (links/rechts-toets en Esc)."
735
+
736
+ #: ../responsive-lightbox.php:1660
737
+ msgid "Quit after viewing the last image."
738
+ msgstr "Sluit af na weergave van de laatste afbeelding."
739
+
740
+ #: ../responsive-lightbox.php:1678
741
+ msgid "Quit when the viewed image is clicked."
742
+ msgstr "Sluit af bij klikken op de weergegeven afbeelding."
743
+
744
+ #: ../responsive-lightbox.php:1696
745
+ msgid "Quit when anything but the viewed image is clicked."
746
+ msgstr "Sluit af bij klikken buiten de weergegeven afbeelding."
747
+
748
+ #: ../responsive-lightbox.php:1938
749
+ msgid "Changes were not saved because there was attempt to save settings of inactive script. The site has been reloaded to the proper script settings."
750
+ msgstr "Wijzigingen zijn niet bewaard omdat geprobeerd is instellingen van een inactieve script te wijzigen. De site is herladen met de juiste scriptinstellingen."
751
+
752
+ #: ../responsive-lightbox.php:1948
753
+ msgid "Settings restored to defaults."
754
+ msgstr "Standaard instellingen zijn hersteld."
755
+
756
+ #: ../responsive-lightbox.php:1956
757
+ msgid "Settings of SwipeBox script were restored to defaults."
758
+ msgstr "Standaard instellingen van SwipeBox-script zijn hesteld."
759
+
760
+ #: ../responsive-lightbox.php:1962
761
+ msgid "Settings of prettyPhoto script were restored to defaults."
762
+ msgstr "Standaard instellingen van prettyPhoto-script zijn hersteld."
763
+
764
+ #: ../responsive-lightbox.php:1968
765
+ msgid "Settings of FancyBox script were restored to defaults."
766
+ msgstr "Standaard instellingen van FancyBox-script zijn hersteld."
767
+
768
+ #: ../responsive-lightbox.php:1974
769
+ msgid "Settings of Nivo script were restored to defaults."
770
+ msgstr "Standaard instellingen van Nivo-script zijn hersteld."
771
+
772
+ #: ../responsive-lightbox.php:1978
773
+ msgid "Changes were not set to defaults because there was attempt to reset settings of inactive script. The site has been reloaded to the proper script settings."
774
+ msgstr "Standaard instellingen zijn niet hersteld omdat geprobeerd is de instellingen van een inactieve script te herstellen. De site is herladen met de juiste scriptinstellingen."
775
+
776
+ #: ../responsive-lightbox.php:1992
777
+ #: ../responsive-lightbox.php:1993
778
+ #: ../responsive-lightbox.php:2007
779
+ #: ../responsive-lightbox.php:2021
780
+ msgid "Responsive Lightbox"
781
+ msgstr "Responsive Lightbox"
782
+
783
+ #: ../responsive-lightbox.php:2023
784
+ msgid "Need support?"
785
+ msgstr "Hulp nodig?"
786
+
787
+ #: ../responsive-lightbox.php:2024
788
+ msgid "If you are having problems with this plugin, please talk about them in the"
789
+ msgstr "Als je een probleem hebt met deze plugin meldt dit dan in het "
790
+
791
+ #: ../responsive-lightbox.php:2024
792
+ msgid "Support forum"
793
+ msgstr "Support Forum"
794
+
795
+ #: ../responsive-lightbox.php:2026
796
+ msgid "Do you like this plugin?"
797
+ msgstr "Bevalt deze plugin?"
798
+
799
+ #: ../responsive-lightbox.php:2027
800
+ msgid "Rate it 5"
801
+ msgstr "Beoordeel met 5 sterren"
802
+
803
+ #: ../responsive-lightbox.php:2027
804
+ msgid "on WordPress.org"
805
+ msgstr "op WordPress.org"
806
+
807
+ #: ../responsive-lightbox.php:2028
808
+ msgid "Blog about it & link to the"
809
+ msgstr "Schijf erover & link naar de"
810
+
811
+ #: ../responsive-lightbox.php:2028
812
+ msgid "plugin page"
813
+ msgstr "plugin pagina"
814
+
815
+ #: ../responsive-lightbox.php:2029
816
+ msgid "Check out our other"
817
+ msgstr "Bekijk ook onze andere"
818
+
819
+ #: ../responsive-lightbox.php:2029
820
+ msgid "WordPress plugins"
821
+ msgstr "WordPress Plugins"
822
+
823
+ #: ../responsive-lightbox.php:2055
824
+ msgid "Reset to defaults"
825
+ msgstr "Herstel standaard instellingen"
826
+
827
+ #: ../responsive-lightbox.php:2082
828
+ msgid "Are you sure you want to reset these settings to defaults?"
829
+ msgstr "Weet je zeker dat je de algemene standaardinstellingen wilt herstellen?"
830
+
831
+ #: ../responsive-lightbox.php:2083
832
+ msgid "Are you sure you want to reset scripts settings to defaults?"
833
+ msgstr "Weet je zeker dat je de standaard scriptinstellingen wilt herstellen?"
834
+
835
+ #: ../responsive-lightbox.php:2373
836
+ msgid "Support"
837
+ msgstr "Support"
838
+
839
+ #: ../responsive-lightbox.php:2395
840
+ msgid "Settings"
841
+ msgstr "Instellingen"
842
+
languages/responsive-lightbox-pl_PL.mo CHANGED
Binary file
languages/responsive-lightbox-pl_PL.po CHANGED
@@ -1,473 +1,481 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Responsive Lightbox\n"
4
- "POT-Creation-Date: 2014-09-04 21:25+0100\n"
5
- "PO-Revision-Date: 2014-09-04 21:26+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
7
  "Language-Team: dFactory <info@dfactory.eu>\n"
8
  "Language: pl\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.6.7\n"
13
  "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e\n"
14
  "X-Poedit-Basepath: .\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
- #: ../responsive-lightbox.php:294
19
  msgid "prettyPhoto"
20
  msgstr "prettyPhoto"
21
 
22
- #: ../responsive-lightbox.php:296
23
  msgid "slow"
24
  msgstr "wolno"
25
 
26
- #: ../responsive-lightbox.php:297
27
  msgid "normal"
28
  msgstr "normalnie"
29
 
30
- #: ../responsive-lightbox.php:298
31
  msgid "fast"
32
  msgstr "szybko"
33
 
34
- #: ../responsive-lightbox.php:301
35
  msgid "default"
36
  msgstr ""
37
 
38
- #: ../responsive-lightbox.php:302
39
  msgid "light rounded"
40
  msgstr ""
41
 
42
- #: ../responsive-lightbox.php:303
43
  msgid "dark rounded"
44
  msgstr ""
45
 
46
- #: ../responsive-lightbox.php:304
47
  msgid "light square"
48
  msgstr ""
49
 
50
- #: ../responsive-lightbox.php:305
51
  msgid "dark square"
52
  msgstr ""
53
 
54
- #: ../responsive-lightbox.php:306
55
  msgid "facebook"
56
  msgstr ""
57
 
58
- #: ../responsive-lightbox.php:309
59
  msgid "window"
60
  msgstr ""
61
 
62
- #: ../responsive-lightbox.php:310
63
  msgid "transparent"
64
  msgstr ""
65
 
66
- #: ../responsive-lightbox.php:311
67
  msgid "opaque"
68
  msgstr ""
69
 
70
- #: ../responsive-lightbox.php:312
71
  msgid "direct"
72
  msgstr ""
73
 
74
- #: ../responsive-lightbox.php:313
75
  msgid "gpu"
76
  msgstr ""
77
 
78
- #: ../responsive-lightbox.php:317
79
  msgid "SwipeBox"
80
  msgstr "SwipeBox"
81
 
82
- #: ../responsive-lightbox.php:319
83
  msgid "CSS"
84
  msgstr "CSS"
85
 
86
- #: ../responsive-lightbox.php:320
87
  msgid "jQuery"
88
  msgstr "jQuery"
89
 
90
- #: ../responsive-lightbox.php:324
91
  msgid "FancyBox"
92
  msgstr "FancyBox"
93
 
94
- #: ../responsive-lightbox.php:326
95
  msgid "elastic"
96
  msgstr ""
97
 
98
- #: ../responsive-lightbox.php:327 ../responsive-lightbox.php:348
99
  msgid "fade"
100
  msgstr ""
101
 
102
- #: ../responsive-lightbox.php:328
103
  msgid "none"
104
  msgstr "brak"
105
 
106
- #: ../responsive-lightbox.php:331
107
  msgid "auto"
108
  msgstr "automatycznie"
109
 
110
- #: ../responsive-lightbox.php:332
111
  msgid "yes"
112
  msgstr "tak"
113
 
114
- #: ../responsive-lightbox.php:333
115
  msgid "no"
116
  msgstr "nie"
117
 
118
- #: ../responsive-lightbox.php:336
119
  msgid "swing"
120
  msgstr ""
121
 
122
- #: ../responsive-lightbox.php:337
123
  msgid "linear"
124
  msgstr ""
125
 
126
- #: ../responsive-lightbox.php:340
127
  msgid "outside"
128
  msgstr ""
129
 
130
- #: ../responsive-lightbox.php:341
131
  msgid "inside"
132
  msgstr ""
133
 
134
- #: ../responsive-lightbox.php:342
135
  msgid "over"
136
  msgstr ""
137
 
138
- #: ../responsive-lightbox.php:346
139
  msgid "Nivo Lightbox"
140
  msgstr "Nivo Lightbox"
141
 
142
- #: ../responsive-lightbox.php:349
143
  msgid "fade scale"
144
  msgstr "fade scale"
145
 
146
- #: ../responsive-lightbox.php:350
147
  msgid "slide left"
148
  msgstr ""
149
 
150
- #: ../responsive-lightbox.php:351
151
  msgid "slide right"
152
  msgstr "slide right"
153
 
154
- #: ../responsive-lightbox.php:352
155
  msgid "slide up"
156
  msgstr ""
157
 
158
- #: ../responsive-lightbox.php:353
159
  msgid "slide down"
160
  msgstr "slide down"
161
 
162
- #: ../responsive-lightbox.php:354
163
  msgid "fall"
164
  msgstr ""
165
 
166
- #: ../responsive-lightbox.php:358
167
  msgid "Image Lightbox"
168
  msgstr "Image Lightbox"
169
 
170
- #: ../responsive-lightbox.php:363
171
  msgid "Enable"
172
  msgstr "Włącz"
173
 
174
- #: ../responsive-lightbox.php:364
175
  msgid "Disable"
176
  msgstr "Wyłącz"
177
 
178
- #: ../responsive-lightbox.php:368
179
  msgid "Header"
180
  msgstr "W nagłówku"
181
 
182
- #: ../responsive-lightbox.php:369
183
  msgid "Footer"
184
  msgstr "W stopce"
185
 
186
- #: ../responsive-lightbox.php:374 ../responsive-lightbox.php:475
187
  msgid "General settings"
188
  msgstr "Ustawienia ogólne"
189
 
190
- #: ../responsive-lightbox.php:380 ../responsive-lightbox.php:489
191
  msgid "Lightbox settings"
192
  msgstr "Ustawienia lightbox"
193
 
194
- #: ../responsive-lightbox.php:476
195
  msgid "Lightbox script"
196
  msgstr "Skrypt lightbox"
197
 
198
- #: ../responsive-lightbox.php:477
199
  msgid "Selector"
200
  msgstr "Znacznik"
201
 
202
- #: ../responsive-lightbox.php:478
203
  msgid "Galleries"
204
  msgstr "Galerie"
205
 
206
- #: ../responsive-lightbox.php:479
207
  msgid "Gallery image size"
208
  msgstr "WIelkość obrazka w galerii"
209
 
210
- #: ../responsive-lightbox.php:480
211
  msgid "Video links"
212
  msgstr "Linki video"
213
 
214
- #: ../responsive-lightbox.php:481
215
  msgid "Image links"
216
  msgstr "Linki obrazków"
217
 
218
- #: ../responsive-lightbox.php:482
219
  msgid "Single images as gallery"
220
  msgstr "Galeria pojedynczych obrazków"
221
 
222
- #: ../responsive-lightbox.php:483
223
  msgid "Custom events"
224
  msgstr "Własne zdarzenia"
225
 
226
- #: ../responsive-lightbox.php:484
227
  msgid "Loading place"
228
  msgstr "Ładowanie"
229
 
230
- #: ../responsive-lightbox.php:485
231
  msgid "Deactivation"
232
  msgstr "Deaktywacja"
233
 
234
- #: ../responsive-lightbox.php:493
235
  msgid "Animation type"
236
  msgstr "Typ animacji"
237
 
238
- #: ../responsive-lightbox.php:494
239
  msgid "Force PNG icons"
240
  msgstr "Wymuszanie ikon PNG"
241
 
242
- #: ../responsive-lightbox.php:495
 
 
 
 
243
  msgid "Top and bottom bars"
244
  msgstr "Górne i dolne paski"
245
 
246
- #: ../responsive-lightbox.php:496
247
  msgid "Video max width"
248
  msgstr "Maksymalna szerokość video"
249
 
250
- #: ../responsive-lightbox.php:500 ../responsive-lightbox.php:557
 
 
 
 
251
  msgid "Animation speed"
252
  msgstr "Szybkość animacji"
253
 
254
- #: ../responsive-lightbox.php:501
255
  msgid "Slideshow"
256
  msgstr "Pokaz slidów"
257
 
258
- #: ../responsive-lightbox.php:502
259
  msgid "Slideshow autoplay"
260
  msgstr "Automatyczne odtwarzanie pokazu slajdów"
261
 
262
- #: ../responsive-lightbox.php:503 ../responsive-lightbox.php:533
263
  msgid "Opacity"
264
  msgstr "Przezroczystość"
265
 
266
- #: ../responsive-lightbox.php:504
267
  msgid "Show title"
268
  msgstr "Wyświetlanie tytułu"
269
 
270
- #: ../responsive-lightbox.php:505
271
  msgid "Allow resize big images"
272
  msgstr "Powiększanie dużych zdjęć"
273
 
274
- #: ../responsive-lightbox.php:506
275
  msgid "Allow expand"
276
  msgstr "Zezwól na powiększanie"
277
 
278
- #: ../responsive-lightbox.php:507 ../responsive-lightbox.php:545
279
  msgid "Video width"
280
  msgstr "Szerokość video"
281
 
282
- #: ../responsive-lightbox.php:508 ../responsive-lightbox.php:546
283
  msgid "Video height"
284
  msgstr "Wysokość video"
285
 
286
- #: ../responsive-lightbox.php:509
287
  msgid "Theme"
288
  msgstr "Motyw"
289
 
290
- #: ../responsive-lightbox.php:510
291
  msgid "Horizontal padding"
292
  msgstr "Odstępy w poziomie"
293
 
294
- #: ../responsive-lightbox.php:511
295
  msgid "Hide Flash"
296
  msgstr "Ukrywanie flash"
297
 
298
- #: ../responsive-lightbox.php:512
299
  msgid "Flash Window Mode (wmode)"
300
  msgstr "Tryb okna flash (wmode)"
301
 
302
- #: ../responsive-lightbox.php:513
303
  msgid "Video autoplay"
304
  msgstr "Automatyczne odtwarzanie wideo"
305
 
306
- #: ../responsive-lightbox.php:514 ../responsive-lightbox.php:522
307
  msgid "Modal"
308
  msgstr "Tryb modal"
309
 
310
- #: ../responsive-lightbox.php:515
311
  msgid "Deeplinking"
312
  msgstr "Głębokie linki"
313
 
314
- #: ../responsive-lightbox.php:516
315
  msgid "Overlay gallery"
316
  msgstr "Efekt overlay galerii"
317
 
318
- #: ../responsive-lightbox.php:517
319
  msgid "Keyboard shortcuts"
320
  msgstr "Skróty klawiaturowe"
321
 
322
- #: ../responsive-lightbox.php:518
323
  msgid "Social (Twitter, Facebook)"
324
  msgstr "Linki społeczności (Twitter, Facebook)"
325
 
326
- #: ../responsive-lightbox.php:523
327
  msgid "Show overlay"
328
  msgstr "Wyświetlanie tła"
329
 
330
- #: ../responsive-lightbox.php:524
331
  msgid "Show close button"
332
  msgstr "Wyświetlanie przycisku Zamknij"
333
 
334
- #: ../responsive-lightbox.php:525
335
  msgid "Enable escape button"
336
  msgstr "Wyświetlanie przycisku Wyjdź"
337
 
338
- #: ../responsive-lightbox.php:526
339
  msgid "Hide on overlay click"
340
  msgstr "Ukryj po kliknięciu w tło"
341
 
342
- #: ../responsive-lightbox.php:527
343
  msgid "Hide on content click"
344
  msgstr "Ukryj po kliknięciu w treść"
345
 
346
- #: ../responsive-lightbox.php:528
347
  msgid "Cyclic"
348
  msgstr "Cykliczność"
349
 
350
- #: ../responsive-lightbox.php:529
351
  msgid "Show nav arrows"
352
  msgstr "Wyświetlanie strzałek"
353
 
354
- #: ../responsive-lightbox.php:530
355
  msgid "Auto scale"
356
  msgstr "Automatyczne skalowanie"
357
 
358
- #: ../responsive-lightbox.php:531
359
  msgid "Scrolling (in/out)"
360
  msgstr "Przewijanie"
361
 
362
- #: ../responsive-lightbox.php:532
363
  msgid "Center on scroll"
364
  msgstr "Centrowanie przy przewijaniu"
365
 
366
- #: ../responsive-lightbox.php:534
367
  msgid "Overlay opacity"
368
  msgstr "Przezroczystość tła"
369
 
370
- #: ../responsive-lightbox.php:535
371
  msgid "Overlay color"
372
  msgstr "Kolor tła"
373
 
374
- #: ../responsive-lightbox.php:536
375
  msgid "Title show"
376
  msgstr "Wyświetlanie tytułu"
377
 
378
- #: ../responsive-lightbox.php:537
379
  msgid "Title position"
380
  msgstr "Pozycja tytułu"
381
 
382
- #: ../responsive-lightbox.php:538
383
  msgid "Transition (in/out)"
384
  msgstr "Efekty przejścia"
385
 
386
- #: ../responsive-lightbox.php:539
387
  msgid "Easings (in/out)"
388
  msgstr "Wygładzanie animacji"
389
 
390
- #: ../responsive-lightbox.php:540
391
  msgid "Speed (in/out)"
392
  msgstr "Szybkość"
393
 
394
- #: ../responsive-lightbox.php:541
395
  msgid "Change speed"
396
  msgstr "Zmień szybkość"
397
 
398
- #: ../responsive-lightbox.php:542
399
  msgid "Change fade"
400
  msgstr "Zmień zanikanie"
401
 
402
- #: ../responsive-lightbox.php:543
403
  msgid "Padding"
404
  msgstr "Odstęp (padding)"
405
 
406
- #: ../responsive-lightbox.php:544
407
  msgid "Margin"
408
  msgstr "Margines (margin)"
409
 
410
- #: ../responsive-lightbox.php:550
411
  msgid "Effect"
412
  msgstr "Efekt"
413
 
414
- #: ../responsive-lightbox.php:551
415
  msgid "Click overlay to close"
416
  msgstr "Kliknięcie poza obrazek"
417
 
418
- #: ../responsive-lightbox.php:552
419
  msgid "Keyboard navigation"
420
  msgstr "Nawigacja klawiaturą"
421
 
422
- #: ../responsive-lightbox.php:553
423
  msgid "Error message"
424
  msgstr "Treść komunikatu o błędzie"
425
 
426
- #: ../responsive-lightbox.php:558
427
  msgid "Preload next image"
428
  msgstr "Wstępne ładowanie kolejnego obrazka"
429
 
430
- #: ../responsive-lightbox.php:559
431
  msgid "Enable keyboard keys"
432
  msgstr "Obługa klawiaturą"
433
 
434
- #: ../responsive-lightbox.php:560
435
  msgid "Quit after last image"
436
  msgstr "Wyjście po ostanim obrazku"
437
 
438
- #: ../responsive-lightbox.php:561
439
  msgid "Quit when image is clicked"
440
  msgstr "Wyjście po kliknięciu w obrazek"
441
 
442
- #: ../responsive-lightbox.php:562
443
  msgid "Quit when anything but image is clicked"
444
  msgstr "Wyjście po kliknięciu w coś innego niż obrazek"
445
 
446
- #: ../responsive-lightbox.php:582
447
  msgid "Select your preffered ligthbox effect script."
448
  msgstr "Wybierz preferowany efekt lightbox."
449
 
450
- #: ../responsive-lightbox.php:592
451
  msgid "Select to which rel selector lightbox effect will be applied to."
452
  msgstr "Wybierz dla któego znacznika będzie dodawany efekt lightbox."
453
 
454
- #: ../responsive-lightbox.php:612
455
  msgid "Enable triggering lightbox on custom jquery events."
456
  msgstr "Włącz uruchamianie efektu lightbox przy własnych zdarzeniach jquery."
457
 
458
- #: ../responsive-lightbox.php:615
459
  msgid "Enter a space separated list of events."
460
  msgstr "Wpisz oddzieloną spacją listę wydarzeń."
461
 
462
- #: ../responsive-lightbox.php:636
463
  msgid "Select where all the lightbox scripts should be placed."
464
  msgstr "Wybierz w którym miejscu chcesz wczytywać skrypty efektu lightbox."
465
 
466
- #: ../responsive-lightbox.php:654
467
  msgid "Add lightbox to WordPress image galleries by default."
468
  msgstr "Dodaj efekt lightbox do galerii obrazków WordPressa."
469
 
470
- #: ../responsive-lightbox.php:674
471
  msgid ""
472
  "By default WP gallery links point to full size images only. Enable that to "
473
  "modify the image size of native WP gallery image links."
@@ -475,41 +483,41 @@ msgstr ""
475
  "Domyślnie galerie w WordPressie linkują do obrazków o pełnym rozmiarze. "
476
  "Włącze tę opcję, jeśli chcesz to zmodyfikwać. "
477
 
478
- #: ../responsive-lightbox.php:684
479
  msgid "full"
480
  msgstr ""
481
 
482
- #: ../responsive-lightbox.php:693
483
  msgid "Select image size for gallery image links."
484
  msgstr "Wybierz rozmiar obrazka, jaki ma być zastosowany w linkach galerii."
485
 
486
- #: ../responsive-lightbox.php:712
487
  msgid "Add lightbox to YouTube and Vimeo video links by default."
488
  msgstr "Dodaj efekt lightbox do linków video (YouTube i Vimeo) WordPressa."
489
 
490
- #: ../responsive-lightbox.php:730
491
  msgid "Add lightbox to WordPress image links by default."
492
  msgstr "Dodaj efekt lightbox do pojedynczych obrazków WordPressa."
493
 
494
- #: ../responsive-lightbox.php:748
495
  msgid "Display single post images as a gallery."
496
  msgstr "Wyświetl pojedyncze obrazki jako pokaz sladów."
497
 
498
- #: ../responsive-lightbox.php:766
499
  msgid "Delete settings on plugin deactivation."
500
  msgstr "Usuń ustawienia przy deaktywacji wtyczki."
501
 
502
- #: ../responsive-lightbox.php:784
503
  msgid "Select a method of applying a lightbox effect."
504
  msgstr "Wybierz sposób dodawania efekty lightbox."
505
 
506
- #: ../responsive-lightbox.php:802
507
  msgid ""
508
  "Disable if you don't want to top and bottom bars to be hidden after a period "
509
  "of time."
510
  msgstr "Wyłącz to, jeśli nie chcesz ukrywać górnego i dolnego paska."
511
 
512
- #: ../responsive-lightbox.php:805
513
  msgid ""
514
  "Enter the time after which the top and bottom bars will be hidden (when "
515
  "hiding is enabled)."
@@ -517,61 +525,71 @@ msgstr ""
517
  "Podaj czas po którym chcesz ukryć górny i dolny pasek (jeśli opcja ukrywania "
518
  "jest włączona)."
519
 
520
- #: ../responsive-lightbox.php:816
521
  msgid "Enter the max video width in a lightbox."
522
  msgstr "Podaj maksymalną szerokość video."
523
 
524
- #: ../responsive-lightbox.php:834
 
 
 
 
 
525
  msgid ""
526
  "Enable this if you're having problems with navigation icons not visible on "
527
  "some devices."
528
  msgstr "Włącz tę opcję jeśli masz problemy z wyświetlaniem ikon nawigacji."
529
 
530
- #: ../responsive-lightbox.php:852
 
 
 
 
 
531
  msgid "Select animation speed for lightbox effect."
532
  msgstr "Wybierz szybkość animacji efektu lightbox."
533
 
534
- #: ../responsive-lightbox.php:870
535
  msgid "Display images as slideshow."
536
  msgstr "Wyświetl obrazki jako pokaz sladów ."
537
 
538
- #: ../responsive-lightbox.php:873
539
  msgid "Enter time (in miliseconds)."
540
  msgstr "Podaj czas (w milisekundach)."
541
 
542
- #: ../responsive-lightbox.php:892
543
  msgid "Automatically start slideshow."
544
  msgstr "Automatyczne rozpoczynanie pokazu slajdów."
545
 
546
- #: ../responsive-lightbox.php:905
547
  msgid "Value between 0 and 100, 100 for no opacity."
548
  msgstr "Wartość pomiędzy 0 i 100 (100 oznacza brak przezroczystości)."
549
 
550
- #: ../responsive-lightbox.php:923
551
  msgid "Display image tiltle."
552
  msgstr "Wyświetlanie tytułu obrazka."
553
 
554
- #: ../responsive-lightbox.php:941
555
  msgid "Resize the photos bigger than viewport."
556
  msgstr "Zmiana wielkość zdjęć większych niż aktualny ekran."
557
 
558
- #: ../responsive-lightbox.php:959
559
  msgid "Expands something."
560
  msgstr "Powiększeniei okna."
561
 
562
- #: ../responsive-lightbox.php:969 ../responsive-lightbox.php:979
563
  msgid "in pixels"
564
  msgstr "w pikselach"
565
 
566
- #: ../responsive-lightbox.php:997
567
  msgid "Select theme for lightbox effect."
568
  msgstr "Wybierz motyw dla efektu lightbox."
569
 
570
- #: ../responsive-lightbox.php:1007
571
  msgid "Horizontal padding (in pixels)."
572
  msgstr "Odstępy w poziomie (w pikselach)."
573
 
574
- #: ../responsive-lightbox.php:1025
575
  msgid ""
576
  "Hides all the flash object on a page. Enable this if flash appears over "
577
  "prettyPhoto."
@@ -579,193 +597,190 @@ msgstr ""
579
  "Ukywa wszystkie obiekty flash na stronie. Włącz to jeśli animacje flash "
580
  "wyświetlane są nad lightboxem."
581
 
582
- #: ../responsive-lightbox.php:1043
583
  msgid "Select flash window mode."
584
  msgstr "Wybierz tryb okna flash."
585
 
586
- #: ../responsive-lightbox.php:1061
587
  msgid "Automatically start videos."
588
  msgstr "Automatycznie rozpoczynaj video."
589
 
590
- #: ../responsive-lightbox.php:1079
591
  msgid "If set to true, only the close button will close the window."
592
  msgstr ""
593
  "Jeśli będzie włączone, tylko kliknięcie przycisku spowoduje zamknięcie okna."
594
 
595
- #: ../responsive-lightbox.php:1097
596
  msgid "Allow prettyPhoto to update the url to enable deeplinking."
597
  msgstr "Zezwól prettyPhoto na aktualizacje adresów URL i głębokie linkowanie."
598
 
599
- #: ../responsive-lightbox.php:1115
600
  msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
601
  msgstr ""
602
  "Jeśli będzie włączone, galeria będzie wyświetlana na cały ekran po "
603
  "najechaniu myszką."
604
 
605
- #: ../responsive-lightbox.php:1133
606
  msgid "Set to false if you open forms inside prettyPhoto."
607
  msgstr "Wyłącz to jeśli chcesz otwierać formularze wewnątrz prettyPhoto."
608
 
609
- #: ../responsive-lightbox.php:1151
610
  msgid "Display links to Facebook and Twitter."
611
  msgstr "Wyświetl linki do Facebboka i Twittera."
612
 
613
- #: ../responsive-lightbox.php:1169
614
  msgid "The transition type."
615
  msgstr "Typ animacji."
616
 
617
- #: ../responsive-lightbox.php:1179
618
  msgid "Space between FancyBox wrapper and content."
619
  msgstr "Przestrzeń między FancyBox a treścią"
620
 
621
- #: ../responsive-lightbox.php:1189
622
  msgid "Space between viewport and FancyBox wrapper."
623
  msgstr "Przestrzeń między ekranem a Fancybox"
624
 
625
- #: ../responsive-lightbox.php:1207
626
  msgid ""
627
- "When true, \"overlayShow\" is set to TRUE and \"hideOnOverlayClick\", "
628
  "\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set "
629
- "to FALSE."
630
  msgstr ""
631
- "Jeśli będzie włączone, opcja \"overlayShow\" także zostanie ustawiona na "
632
- "TRUE, natomiast \"hideOnOverlayClick\", \"hideOnContentClick\", "
633
- "\"enableEscapeButton\", \"showCloseButton\" zostaną ustawione na FALSE."
634
 
635
- #: ../responsive-lightbox.php:1225
636
  msgid "Toggle overlay."
637
  msgstr "Włącz tło."
638
 
639
- #: ../responsive-lightbox.php:1243
640
  msgid "Toggle close button."
641
  msgstr "Włącz przycisk Zamknij."
642
 
643
- #: ../responsive-lightbox.php:1261
644
  msgid "Toggle if pressing Esc button closes FancyBox."
645
  msgstr "Włącz zamykanie FancyBox przy pomocy Esc."
646
 
647
- #: ../responsive-lightbox.php:1279
648
  msgid "Toggle if clicking the overlay should close FancyBox."
649
  msgstr "Włącz zamykanie FancyBox kliknięciem w tło."
650
 
651
- #: ../responsive-lightbox.php:1297
652
  msgid "Toggle if clicking the content should close FancyBox."
653
  msgstr "Włącz zamykanie FancyBox kliknięciem w treść."
654
 
655
- #: ../responsive-lightbox.php:1315
656
  msgid ""
657
  "When true, galleries will be cyclic, allowing you to keep pressing next/back."
658
  msgstr "Jeśli będzie włączone, galerie będą wyświetlane cyklicznie."
659
 
660
- #: ../responsive-lightbox.php:1333
661
  msgid "Toggle navigation arrows."
662
  msgstr "Włącz strzałki nawigacyjne."
663
 
664
- #: ../responsive-lightbox.php:1351
665
  msgid "If true, FancyBox is scaled to fit in viewport."
666
  msgstr "Jeśli będzie włączone, FancyBox będzie skalowany do rozmiaru okna."
667
 
668
- #: ../responsive-lightbox.php:1369
669
  msgid "Set the overflow CSS property to create or hide scrollbars."
670
  msgstr ""
671
  "Ustaw parametr overflow dw CSS aby tworzyć lub ukrywać elementy nawigacji."
672
 
673
- #: ../responsive-lightbox.php:1387
674
  msgid "When true, FancyBox is centered while scrolling page."
675
  msgstr ""
676
  "Jeśli będzie zaznaczone, FancyBox będzie wycentrowany w trakcie przewijania "
677
  "strony."
678
 
679
- #: ../responsive-lightbox.php:1405
680
  msgid "When true, transparency of content is changed for elastic transitions."
681
  msgstr ""
682
  "Jeśli będzie zaznaczone, przezroczystość treści zmieni się w trakcie "
683
  "animacji."
684
 
685
- #: ../responsive-lightbox.php:1418
686
  msgid "Opacity of the overlay."
687
  msgstr "Przezroczystość tła."
688
 
689
- #: ../responsive-lightbox.php:1428
690
  msgid "Color of the overlay."
691
  msgstr "Kolor tła."
692
 
693
- #: ../responsive-lightbox.php:1446
694
  msgid "Toggle title."
695
  msgstr "Wyświetlanie tytułu."
696
 
697
- #: ../responsive-lightbox.php:1464
698
  msgid "The position of title."
699
  msgstr "Pozycja tytułu."
700
 
701
- #: ../responsive-lightbox.php:1482
702
  msgid "Easing used for elastic animations."
703
  msgstr "Wygładzanie animacji dla trybu elastic."
704
 
705
- #: ../responsive-lightbox.php:1492
706
  msgid "Speed of the fade and elastic transitions, in milliseconds."
707
  msgstr "Podaj czas trwania animacji fade i elastic (w milisekundach)"
708
 
709
- #: ../responsive-lightbox.php:1502
710
  msgid "Speed of resizing when changing gallery items, in milliseconds."
711
  msgstr ""
712
  "Szybkość zmiany wielkości okna w trakcie przechodzenia między obrazkami (w "
713
  "milisekundach)."
714
 
715
- #: ../responsive-lightbox.php:1512
716
  msgid "Speed of the content fading while changing gallery items."
717
  msgstr "Szybkość zanikania elementów w trakcie przechodzenia między obrazkami."
718
 
719
- #: ../responsive-lightbox.php:1522
720
  msgid "Width of the video."
721
  msgstr "Szerokość video."
722
 
723
- #: ../responsive-lightbox.php:1532
724
  msgid "Height of the video."
725
  msgstr "Wysokość video."
726
 
727
- #: ../responsive-lightbox.php:1550
728
  msgid "The effect to use when showing the lightbox."
729
  msgstr "Wybierz efekt, który chcesz zastosować do wyświetlania lightboxa."
730
 
731
- #: ../responsive-lightbox.php:1568
732
  msgid "Enable/Disable keyboard navigation (left/right/escape)."
733
  msgstr ""
734
  "Włącz / Wyłącz nawigację klawiaturą (strzałka w lewo, w prawo i przycisk ESC)"
735
 
736
- #: ../responsive-lightbox.php:1586
737
  msgid "Eneble to close lightbox on overlay click."
738
  msgstr "Włącz aby zamykać lightbox po kliknięciu w obzar poza obrazkiem."
739
 
740
- #: ../responsive-lightbox.php:1596
741
  msgid "Error message if the content cannot be loaded."
742
  msgstr "Komunikat w przypadku gdy nie można załądować treści."
743
 
744
- #: ../responsive-lightbox.php:1606
745
  msgid "Animation speed."
746
  msgstr "Szybkość animacji."
747
 
748
- #: ../responsive-lightbox.php:1624
749
  msgid "Silently preload the next image."
750
  msgstr "W niezauważalny sposób ładuje kolejny obrazek."
751
 
752
- #: ../responsive-lightbox.php:1642
753
  msgid "Enable keyboard shortcuts (arrows Left/Right and Esc)."
754
  msgstr "Włącza skróty klawiaturowe (strzałki lewo/prawo oraz Esc)"
755
 
756
- #: ../responsive-lightbox.php:1660
757
  msgid "Quit after viewing the last image."
758
  msgstr "Powoduje wyjście z lightboxa po obejrzeniu ostatniego obrazka."
759
 
760
- #: ../responsive-lightbox.php:1678
761
  msgid "Quit when the viewed image is clicked."
762
  msgstr "Powoduje wyjście z lightboxa po kliknięciu w przeglądany obrazek."
763
 
764
- #: ../responsive-lightbox.php:1696
765
  msgid "Quit when anything but the viewed image is clicked."
766
  msgstr "Powoduje wyjście z lightboxa po kliknięciu w coś innego niż obrazek."
767
 
768
- #: ../responsive-lightbox.php:1938
769
  msgid ""
770
  "Changes were not saved because there was attempt to save settings of "
771
  "inactive script. The site has been reloaded to the proper script settings."
@@ -773,27 +788,27 @@ msgstr ""
773
  "Zmiany nie zostały zapisane ponieważ wykryto próbę zapisu ustawień "
774
  "nieaktywnego skryptu. Strona została odświeżona z prawidłowymi ustawieniami."
775
 
776
- #: ../responsive-lightbox.php:1948
777
  msgid "Settings restored to defaults."
778
  msgstr "Ustawienia zostały przywrócone do domyślnych."
779
 
780
- #: ../responsive-lightbox.php:1956
781
  msgid "Settings of SwipeBox script were restored to defaults."
782
  msgstr "Ustawienia skryptu SwipeBox zostały przywrócone."
783
 
784
- #: ../responsive-lightbox.php:1962
785
  msgid "Settings of prettyPhoto script were restored to defaults."
786
  msgstr "Ustawienia skryptu prettyPhoto zostały przywrócone."
787
 
788
- #: ../responsive-lightbox.php:1968
789
  msgid "Settings of FancyBox script were restored to defaults."
790
  msgstr "Ustawienia skryptu FancyBox zostały przywrócone."
791
 
792
- #: ../responsive-lightbox.php:1974
793
  msgid "Settings of Nivo script were restored to defaults."
794
  msgstr "Ustawienia skryptu Nivo Lightbox zostały przywrócone."
795
 
796
- #: ../responsive-lightbox.php:1978
797
  msgid ""
798
  "Changes were not set to defaults because there was attempt to reset settings "
799
  "of inactive script. The site has been reloaded to the proper script settings."
@@ -802,68 +817,77 @@ msgstr ""
802
  "resetowania ustawień nieaktywnego skryptu. Strona została odświeżona z "
803
  "prawidłowymi ustawieniami."
804
 
805
- #: ../responsive-lightbox.php:1992 ../responsive-lightbox.php:1993
806
- #: ../responsive-lightbox.php:2007 ../responsive-lightbox.php:2021
807
  msgid "Responsive Lightbox"
808
  msgstr "Efekt Lightbox"
809
 
810
- #: ../responsive-lightbox.php:2023
811
  msgid "Need support?"
812
  msgstr "Potrzebujesz pomocy?"
813
 
814
- #: ../responsive-lightbox.php:2024
815
  msgid ""
816
  "If you are having problems with this plugin, please talk about them in the"
817
  msgstr "Jeśli masz jakiekolwiek problemy z tą wtyczką, powiedz o nich na"
818
 
819
- #: ../responsive-lightbox.php:2024
820
  msgid "Support forum"
821
  msgstr "Forum pomocy"
822
 
823
- #: ../responsive-lightbox.php:2026
824
  msgid "Do you like this plugin?"
825
  msgstr "Lubisz tę wtyczkę?"
826
 
827
- #: ../responsive-lightbox.php:2027
828
  msgid "Rate it 5"
829
  msgstr "Oceń ją na 5"
830
 
831
- #: ../responsive-lightbox.php:2027
832
  msgid "on WordPress.org"
833
  msgstr "na WordPress.org"
834
 
835
- #: ../responsive-lightbox.php:2028
836
  msgid "Blog about it & link to the"
837
  msgstr "Napisz o niej i dodaj link"
838
 
839
- #: ../responsive-lightbox.php:2028
840
  msgid "plugin page"
841
  msgstr "do strony wtyczki"
842
 
843
- #: ../responsive-lightbox.php:2029
844
  msgid "Check out our other"
845
  msgstr "Sprawdź nasze pozostałe"
846
 
847
- #: ../responsive-lightbox.php:2029
848
  msgid "WordPress plugins"
849
  msgstr "wtyczki do WordPress'a"
850
 
851
- #: ../responsive-lightbox.php:2055
852
  msgid "Reset to defaults"
853
  msgstr "Resetuj do domyślnych"
854
 
855
- #: ../responsive-lightbox.php:2082
856
  msgid "Are you sure you want to reset these settings to defaults?"
857
  msgstr "Jesteś pewny, że chcesz zresetować ustawienia do domyślnych?"
858
 
859
- #: ../responsive-lightbox.php:2083
860
  msgid "Are you sure you want to reset scripts settings to defaults?"
861
  msgstr "Jesteś pewny, że chcesz zresetować ustawienia?"
862
 
863
- #: ../responsive-lightbox.php:2373
864
  msgid "Support"
865
  msgstr "Pomoc"
866
 
867
- #: ../responsive-lightbox.php:2395
868
  msgid "Settings"
869
  msgstr "Ustawienia"
 
 
 
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Responsive Lightbox\n"
4
+ "POT-Creation-Date: 2015-05-12 12:02+0100\n"
5
+ "PO-Revision-Date: 2015-05-12 12:05+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
7
  "Language-Team: dFactory <info@dfactory.eu>\n"
8
  "Language: pl\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.7.5\n"
13
  "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e\n"
14
  "X-Poedit-Basepath: .\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
+ #: ../responsive-lightbox.php:269
19
  msgid "prettyPhoto"
20
  msgstr "prettyPhoto"
21
 
22
+ #: ../responsive-lightbox.php:271
23
  msgid "slow"
24
  msgstr "wolno"
25
 
26
+ #: ../responsive-lightbox.php:272
27
  msgid "normal"
28
  msgstr "normalnie"
29
 
30
+ #: ../responsive-lightbox.php:273
31
  msgid "fast"
32
  msgstr "szybko"
33
 
34
+ #: ../responsive-lightbox.php:276
35
  msgid "default"
36
  msgstr ""
37
 
38
+ #: ../responsive-lightbox.php:277
39
  msgid "light rounded"
40
  msgstr ""
41
 
42
+ #: ../responsive-lightbox.php:278
43
  msgid "dark rounded"
44
  msgstr ""
45
 
46
+ #: ../responsive-lightbox.php:279
47
  msgid "light square"
48
  msgstr ""
49
 
50
+ #: ../responsive-lightbox.php:280
51
  msgid "dark square"
52
  msgstr ""
53
 
54
+ #: ../responsive-lightbox.php:281
55
  msgid "facebook"
56
  msgstr ""
57
 
58
+ #: ../responsive-lightbox.php:284
59
  msgid "window"
60
  msgstr ""
61
 
62
+ #: ../responsive-lightbox.php:285
63
  msgid "transparent"
64
  msgstr ""
65
 
66
+ #: ../responsive-lightbox.php:286
67
  msgid "opaque"
68
  msgstr ""
69
 
70
+ #: ../responsive-lightbox.php:287
71
  msgid "direct"
72
  msgstr ""
73
 
74
+ #: ../responsive-lightbox.php:288
75
  msgid "gpu"
76
  msgstr ""
77
 
78
+ #: ../responsive-lightbox.php:292
79
  msgid "SwipeBox"
80
  msgstr "SwipeBox"
81
 
82
+ #: ../responsive-lightbox.php:294
83
  msgid "CSS"
84
  msgstr "CSS"
85
 
86
+ #: ../responsive-lightbox.php:295
87
  msgid "jQuery"
88
  msgstr "jQuery"
89
 
90
+ #: ../responsive-lightbox.php:299
91
  msgid "FancyBox"
92
  msgstr "FancyBox"
93
 
94
+ #: ../responsive-lightbox.php:301
95
  msgid "elastic"
96
  msgstr ""
97
 
98
+ #: ../responsive-lightbox.php:302 ../responsive-lightbox.php:323
99
  msgid "fade"
100
  msgstr ""
101
 
102
+ #: ../responsive-lightbox.php:303
103
  msgid "none"
104
  msgstr "brak"
105
 
106
+ #: ../responsive-lightbox.php:306
107
  msgid "auto"
108
  msgstr "automatycznie"
109
 
110
+ #: ../responsive-lightbox.php:307
111
  msgid "yes"
112
  msgstr "tak"
113
 
114
+ #: ../responsive-lightbox.php:308
115
  msgid "no"
116
  msgstr "nie"
117
 
118
+ #: ../responsive-lightbox.php:311
119
  msgid "swing"
120
  msgstr ""
121
 
122
+ #: ../responsive-lightbox.php:312
123
  msgid "linear"
124
  msgstr ""
125
 
126
+ #: ../responsive-lightbox.php:315
127
  msgid "outside"
128
  msgstr ""
129
 
130
+ #: ../responsive-lightbox.php:316
131
  msgid "inside"
132
  msgstr ""
133
 
134
+ #: ../responsive-lightbox.php:317
135
  msgid "over"
136
  msgstr ""
137
 
138
+ #: ../responsive-lightbox.php:321
139
  msgid "Nivo Lightbox"
140
  msgstr "Nivo Lightbox"
141
 
142
+ #: ../responsive-lightbox.php:324
143
  msgid "fade scale"
144
  msgstr "fade scale"
145
 
146
+ #: ../responsive-lightbox.php:325
147
  msgid "slide left"
148
  msgstr ""
149
 
150
+ #: ../responsive-lightbox.php:326
151
  msgid "slide right"
152
  msgstr "slide right"
153
 
154
+ #: ../responsive-lightbox.php:327
155
  msgid "slide up"
156
  msgstr ""
157
 
158
+ #: ../responsive-lightbox.php:328
159
  msgid "slide down"
160
  msgstr "slide down"
161
 
162
+ #: ../responsive-lightbox.php:329
163
  msgid "fall"
164
  msgstr ""
165
 
166
+ #: ../responsive-lightbox.php:333
167
  msgid "Image Lightbox"
168
  msgstr "Image Lightbox"
169
 
170
+ #: ../responsive-lightbox.php:338
171
  msgid "Enable"
172
  msgstr "Włącz"
173
 
174
+ #: ../responsive-lightbox.php:339
175
  msgid "Disable"
176
  msgstr "Wyłącz"
177
 
178
+ #: ../responsive-lightbox.php:343
179
  msgid "Header"
180
  msgstr "W nagłówku"
181
 
182
+ #: ../responsive-lightbox.php:344
183
  msgid "Footer"
184
  msgstr "W stopce"
185
 
186
+ #: ../responsive-lightbox.php:349 ../responsive-lightbox.php:431
187
  msgid "General settings"
188
  msgstr "Ustawienia ogólne"
189
 
190
+ #: ../responsive-lightbox.php:355 ../responsive-lightbox.php:445
191
  msgid "Lightbox settings"
192
  msgstr "Ustawienia lightbox"
193
 
194
+ #: ../responsive-lightbox.php:432
195
  msgid "Lightbox script"
196
  msgstr "Skrypt lightbox"
197
 
198
+ #: ../responsive-lightbox.php:433
199
  msgid "Selector"
200
  msgstr "Znacznik"
201
 
202
+ #: ../responsive-lightbox.php:434
203
  msgid "Galleries"
204
  msgstr "Galerie"
205
 
206
+ #: ../responsive-lightbox.php:435
207
  msgid "Gallery image size"
208
  msgstr "WIelkość obrazka w galerii"
209
 
210
+ #: ../responsive-lightbox.php:436
211
  msgid "Video links"
212
  msgstr "Linki video"
213
 
214
+ #: ../responsive-lightbox.php:437
215
  msgid "Image links"
216
  msgstr "Linki obrazków"
217
 
218
+ #: ../responsive-lightbox.php:438
219
  msgid "Single images as gallery"
220
  msgstr "Galeria pojedynczych obrazków"
221
 
222
+ #: ../responsive-lightbox.php:439
223
  msgid "Custom events"
224
  msgstr "Własne zdarzenia"
225
 
226
+ #: ../responsive-lightbox.php:440
227
  msgid "Loading place"
228
  msgstr "Ładowanie"
229
 
230
+ #: ../responsive-lightbox.php:441
231
  msgid "Deactivation"
232
  msgstr "Deaktywacja"
233
 
234
+ #: ../responsive-lightbox.php:448
235
  msgid "Animation type"
236
  msgstr "Typ animacji"
237
 
238
+ #: ../responsive-lightbox.php:449
239
  msgid "Force PNG icons"
240
  msgstr "Wymuszanie ikon PNG"
241
 
242
+ #: ../responsive-lightbox.php:450
243
+ msgid "Hide close on mobile"
244
+ msgstr "Ukrywanie przycisku zamknij"
245
+
246
+ #: ../responsive-lightbox.php:451
247
  msgid "Top and bottom bars"
248
  msgstr "Górne i dolne paski"
249
 
250
+ #: ../responsive-lightbox.php:452
251
  msgid "Video max width"
252
  msgstr "Maksymalna szerokość video"
253
 
254
+ #: ../responsive-lightbox.php:453
255
+ msgid "Loop at end"
256
+ msgstr "Zapętlenie galerii"
257
+
258
+ #: ../responsive-lightbox.php:455 ../responsive-lightbox.php:506
259
  msgid "Animation speed"
260
  msgstr "Szybkość animacji"
261
 
262
+ #: ../responsive-lightbox.php:456
263
  msgid "Slideshow"
264
  msgstr "Pokaz slidów"
265
 
266
+ #: ../responsive-lightbox.php:457
267
  msgid "Slideshow autoplay"
268
  msgstr "Automatyczne odtwarzanie pokazu slajdów"
269
 
270
+ #: ../responsive-lightbox.php:458 ../responsive-lightbox.php:486
271
  msgid "Opacity"
272
  msgstr "Przezroczystość"
273
 
274
+ #: ../responsive-lightbox.php:459
275
  msgid "Show title"
276
  msgstr "Wyświetlanie tytułu"
277
 
278
+ #: ../responsive-lightbox.php:460
279
  msgid "Allow resize big images"
280
  msgstr "Powiększanie dużych zdjęć"
281
 
282
+ #: ../responsive-lightbox.php:461
283
  msgid "Allow expand"
284
  msgstr "Zezwól na powiększanie"
285
 
286
+ #: ../responsive-lightbox.php:462 ../responsive-lightbox.php:498
287
  msgid "Video width"
288
  msgstr "Szerokość video"
289
 
290
+ #: ../responsive-lightbox.php:463 ../responsive-lightbox.php:499
291
  msgid "Video height"
292
  msgstr "Wysokość video"
293
 
294
+ #: ../responsive-lightbox.php:464
295
  msgid "Theme"
296
  msgstr "Motyw"
297
 
298
+ #: ../responsive-lightbox.php:465
299
  msgid "Horizontal padding"
300
  msgstr "Odstępy w poziomie"
301
 
302
+ #: ../responsive-lightbox.php:466
303
  msgid "Hide Flash"
304
  msgstr "Ukrywanie flash"
305
 
306
+ #: ../responsive-lightbox.php:467
307
  msgid "Flash Window Mode (wmode)"
308
  msgstr "Tryb okna flash (wmode)"
309
 
310
+ #: ../responsive-lightbox.php:468
311
  msgid "Video autoplay"
312
  msgstr "Automatyczne odtwarzanie wideo"
313
 
314
+ #: ../responsive-lightbox.php:469 ../responsive-lightbox.php:475
315
  msgid "Modal"
316
  msgstr "Tryb modal"
317
 
318
+ #: ../responsive-lightbox.php:470
319
  msgid "Deeplinking"
320
  msgstr "Głębokie linki"
321
 
322
+ #: ../responsive-lightbox.php:471
323
  msgid "Overlay gallery"
324
  msgstr "Efekt overlay galerii"
325
 
326
+ #: ../responsive-lightbox.php:472
327
  msgid "Keyboard shortcuts"
328
  msgstr "Skróty klawiaturowe"
329
 
330
+ #: ../responsive-lightbox.php:473
331
  msgid "Social (Twitter, Facebook)"
332
  msgstr "Linki społeczności (Twitter, Facebook)"
333
 
334
+ #: ../responsive-lightbox.php:476
335
  msgid "Show overlay"
336
  msgstr "Wyświetlanie tła"
337
 
338
+ #: ../responsive-lightbox.php:477
339
  msgid "Show close button"
340
  msgstr "Wyświetlanie przycisku Zamknij"
341
 
342
+ #: ../responsive-lightbox.php:478
343
  msgid "Enable escape button"
344
  msgstr "Wyświetlanie przycisku Wyjdź"
345
 
346
+ #: ../responsive-lightbox.php:479
347
  msgid "Hide on overlay click"
348
  msgstr "Ukryj po kliknięciu w tło"
349
 
350
+ #: ../responsive-lightbox.php:480
351
  msgid "Hide on content click"
352
  msgstr "Ukryj po kliknięciu w treść"
353
 
354
+ #: ../responsive-lightbox.php:481
355
  msgid "Cyclic"
356
  msgstr "Cykliczność"
357
 
358
+ #: ../responsive-lightbox.php:482
359
  msgid "Show nav arrows"
360
  msgstr "Wyświetlanie strzałek"
361
 
362
+ #: ../responsive-lightbox.php:483
363
  msgid "Auto scale"
364
  msgstr "Automatyczne skalowanie"
365
 
366
+ #: ../responsive-lightbox.php:484
367
  msgid "Scrolling (in/out)"
368
  msgstr "Przewijanie"
369
 
370
+ #: ../responsive-lightbox.php:485
371
  msgid "Center on scroll"
372
  msgstr "Centrowanie przy przewijaniu"
373
 
374
+ #: ../responsive-lightbox.php:487
375
  msgid "Overlay opacity"
376
  msgstr "Przezroczystość tła"
377
 
378
+ #: ../responsive-lightbox.php:488
379
  msgid "Overlay color"
380
  msgstr "Kolor tła"
381
 
382
+ #: ../responsive-lightbox.php:489
383
  msgid "Title show"
384
  msgstr "Wyświetlanie tytułu"
385
 
386
+ #: ../responsive-lightbox.php:490
387
  msgid "Title position"
388
  msgstr "Pozycja tytułu"
389
 
390
+ #: ../responsive-lightbox.php:491
391
  msgid "Transition (in/out)"
392
  msgstr "Efekty przejścia"
393
 
394
+ #: ../responsive-lightbox.php:492
395
  msgid "Easings (in/out)"
396
  msgstr "Wygładzanie animacji"
397
 
398
+ #: ../responsive-lightbox.php:493
399
  msgid "Speed (in/out)"
400
  msgstr "Szybkość"
401
 
402
+ #: ../responsive-lightbox.php:494
403
  msgid "Change speed"
404
  msgstr "Zmień szybkość"
405
 
406
+ #: ../responsive-lightbox.php:495
407
  msgid "Change fade"
408
  msgstr "Zmień zanikanie"
409
 
410
+ #: ../responsive-lightbox.php:496
411
  msgid "Padding"
412
  msgstr "Odstęp (padding)"
413
 
414
+ #: ../responsive-lightbox.php:497
415
  msgid "Margin"
416
  msgstr "Margines (margin)"
417
 
418
+ #: ../responsive-lightbox.php:501
419
  msgid "Effect"
420
  msgstr "Efekt"
421
 
422
+ #: ../responsive-lightbox.php:502
423
  msgid "Click overlay to close"
424
  msgstr "Kliknięcie poza obrazek"
425
 
426
+ #: ../responsive-lightbox.php:503
427
  msgid "Keyboard navigation"
428
  msgstr "Nawigacja klawiaturą"
429
 
430
+ #: ../responsive-lightbox.php:504
431
  msgid "Error message"
432
  msgstr "Treść komunikatu o błędzie"
433
 
434
+ #: ../responsive-lightbox.php:507
435
  msgid "Preload next image"
436
  msgstr "Wstępne ładowanie kolejnego obrazka"
437
 
438
+ #: ../responsive-lightbox.php:508
439
  msgid "Enable keyboard keys"
440
  msgstr "Obługa klawiaturą"
441
 
442
+ #: ../responsive-lightbox.php:509
443
  msgid "Quit after last image"
444
  msgstr "Wyjście po ostanim obrazku"
445
 
446
+ #: ../responsive-lightbox.php:510
447
  msgid "Quit when image is clicked"
448
  msgstr "Wyjście po kliknięciu w obrazek"
449
 
450
+ #: ../responsive-lightbox.php:511
451
  msgid "Quit when anything but image is clicked"
452
  msgstr "Wyjście po kliknięciu w coś innego niż obrazek"
453
 
454
+ #: ../responsive-lightbox.php:528
455
  msgid "Select your preffered ligthbox effect script."
456
  msgstr "Wybierz preferowany efekt lightbox."
457
 
458
+ #: ../responsive-lightbox.php:536
459
  msgid "Select to which rel selector lightbox effect will be applied to."
460
  msgstr "Wybierz dla któego znacznika będzie dodawany efekt lightbox."
461
 
462
+ #: ../responsive-lightbox.php:553
463
  msgid "Enable triggering lightbox on custom jquery events."
464
  msgstr "Włącz uruchamianie efektu lightbox przy własnych zdarzeniach jquery."
465
 
466
+ #: ../responsive-lightbox.php:556
467
  msgid "Enter a space separated list of events."
468
  msgstr "Wpisz oddzieloną spacją listę wydarzeń."
469
 
470
+ #: ../responsive-lightbox.php:574
471
  msgid "Select where all the lightbox scripts should be placed."
472
  msgstr "Wybierz w którym miejscu chcesz wczytywać skrypty efektu lightbox."
473
 
474
+ #: ../responsive-lightbox.php:589
475
  msgid "Add lightbox to WordPress image galleries by default."
476
  msgstr "Dodaj efekt lightbox do galerii obrazków WordPressa."
477
 
478
+ #: ../responsive-lightbox.php:606
479
  msgid ""
480
  "By default WP gallery links point to full size images only. Enable that to "
481
  "modify the image size of native WP gallery image links."
483
  "Domyślnie galerie w WordPressie linkują do obrazków o pełnym rozmiarze. "
484
  "Włącze tę opcję, jeśli chcesz to zmodyfikwać. "
485
 
486
+ #: ../responsive-lightbox.php:614
487
  msgid "full"
488
  msgstr ""
489
 
490
+ #: ../responsive-lightbox.php:622
491
  msgid "Select image size for gallery image links."
492
  msgstr "Wybierz rozmiar obrazka, jaki ma być zastosowany w linkach galerii."
493
 
494
+ #: ../responsive-lightbox.php:638
495
  msgid "Add lightbox to YouTube and Vimeo video links by default."
496
  msgstr "Dodaj efekt lightbox do linków video (YouTube i Vimeo) WordPressa."
497
 
498
+ #: ../responsive-lightbox.php:653
499
  msgid "Add lightbox to WordPress image links by default."
500
  msgstr "Dodaj efekt lightbox do pojedynczych obrazków WordPressa."
501
 
502
+ #: ../responsive-lightbox.php:668
503
  msgid "Display single post images as a gallery."
504
  msgstr "Wyświetl pojedyncze obrazki jako pokaz sladów."
505
 
506
+ #: ../responsive-lightbox.php:683
507
  msgid "Delete settings on plugin deactivation."
508
  msgstr "Usuń ustawienia przy deaktywacji wtyczki."
509
 
510
+ #: ../responsive-lightbox.php:698
511
  msgid "Select a method of applying a lightbox effect."
512
  msgstr "Wybierz sposób dodawania efekty lightbox."
513
 
514
+ #: ../responsive-lightbox.php:713
515
  msgid ""
516
  "Disable if you don't want to top and bottom bars to be hidden after a period "
517
  "of time."
518
  msgstr "Wyłącz to, jeśli nie chcesz ukrywać górnego i dolnego paska."
519
 
520
+ #: ../responsive-lightbox.php:716
521
  msgid ""
522
  "Enter the time after which the top and bottom bars will be hidden (when "
523
  "hiding is enabled)."
525
  "Podaj czas po którym chcesz ukryć górny i dolny pasek (jeśli opcja ukrywania "
526
  "jest włączona)."
527
 
528
+ #: ../responsive-lightbox.php:725
529
  msgid "Enter the max video width in a lightbox."
530
  msgstr "Podaj maksymalną szerokość video."
531
 
532
+ #: ../responsive-lightbox.php:740
533
+ msgid "True will hide the close button on mobile devices."
534
+ msgstr ""
535
+ "Wybierz, jeśli chcesz ukryć przycisk zamykania na urządzeniach mobilnych."
536
+
537
+ #: ../responsive-lightbox.php:755
538
  msgid ""
539
  "Enable this if you're having problems with navigation icons not visible on "
540
  "some devices."
541
  msgstr "Włącz tę opcję jeśli masz problemy z wyświetlaniem ikon nawigacji."
542
 
543
+ #: ../responsive-lightbox.php:770
544
+ msgid "True will return to the first image after the last image is reached."
545
+ msgstr ""
546
+ "Wybierz, aby powrócić do pierwszego zdjęcia po ostatnim zdjęciu w galerii."
547
+
548
+ #: ../responsive-lightbox.php:785
549
  msgid "Select animation speed for lightbox effect."
550
  msgstr "Wybierz szybkość animacji efektu lightbox."
551
 
552
+ #: ../responsive-lightbox.php:800
553
  msgid "Display images as slideshow."
554
  msgstr "Wyświetl obrazki jako pokaz sladów ."
555
 
556
+ #: ../responsive-lightbox.php:803
557
  msgid "Enter time (in miliseconds)."
558
  msgstr "Podaj czas (w milisekundach)."
559
 
560
+ #: ../responsive-lightbox.php:819
561
  msgid "Automatically start slideshow."
562
  msgstr "Automatyczne rozpoczynanie pokazu slajdów."
563
 
564
+ #: ../responsive-lightbox.php:830
565
  msgid "Value between 0 and 100, 100 for no opacity."
566
  msgstr "Wartość pomiędzy 0 i 100 (100 oznacza brak przezroczystości)."
567
 
568
+ #: ../responsive-lightbox.php:845
569
  msgid "Display image tiltle."
570
  msgstr "Wyświetlanie tytułu obrazka."
571
 
572
+ #: ../responsive-lightbox.php:860
573
  msgid "Resize the photos bigger than viewport."
574
  msgstr "Zmiana wielkość zdjęć większych niż aktualny ekran."
575
 
576
+ #: ../responsive-lightbox.php:875
577
  msgid "Expands something."
578
  msgstr "Powiększeniei okna."
579
 
580
+ #: ../responsive-lightbox.php:883 ../responsive-lightbox.php:891
581
  msgid "in pixels"
582
  msgstr "w pikselach"
583
 
584
+ #: ../responsive-lightbox.php:906
585
  msgid "Select theme for lightbox effect."
586
  msgstr "Wybierz motyw dla efektu lightbox."
587
 
588
+ #: ../responsive-lightbox.php:914
589
  msgid "Horizontal padding (in pixels)."
590
  msgstr "Odstępy w poziomie (w pikselach)."
591
 
592
+ #: ../responsive-lightbox.php:929
593
  msgid ""
594
  "Hides all the flash object on a page. Enable this if flash appears over "
595
  "prettyPhoto."
597
  "Ukywa wszystkie obiekty flash na stronie. Włącz to jeśli animacje flash "
598
  "wyświetlane są nad lightboxem."
599
 
600
+ #: ../responsive-lightbox.php:944
601
  msgid "Select flash window mode."
602
  msgstr "Wybierz tryb okna flash."
603
 
604
+ #: ../responsive-lightbox.php:959
605
  msgid "Automatically start videos."
606
  msgstr "Automatycznie rozpoczynaj video."
607
 
608
+ #: ../responsive-lightbox.php:974
609
  msgid "If set to true, only the close button will close the window."
610
  msgstr ""
611
  "Jeśli będzie włączone, tylko kliknięcie przycisku spowoduje zamknięcie okna."
612
 
613
+ #: ../responsive-lightbox.php:989
614
  msgid "Allow prettyPhoto to update the url to enable deeplinking."
615
  msgstr "Zezwól prettyPhoto na aktualizacje adresów URL i głębokie linkowanie."
616
 
617
+ #: ../responsive-lightbox.php:1004
618
  msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
619
  msgstr ""
620
  "Jeśli będzie włączone, galeria będzie wyświetlana na cały ekran po "
621
  "najechaniu myszką."
622
 
623
+ #: ../responsive-lightbox.php:1019
624
  msgid "Set to false if you open forms inside prettyPhoto."
625
  msgstr "Wyłącz to jeśli chcesz otwierać formularze wewnątrz prettyPhoto."
626
 
627
+ #: ../responsive-lightbox.php:1034
628
  msgid "Display links to Facebook and Twitter."
629
  msgstr "Wyświetl linki do Facebboka i Twittera."
630
 
631
+ #: ../responsive-lightbox.php:1049
632
  msgid "The transition type."
633
  msgstr "Typ animacji."
634
 
635
+ #: ../responsive-lightbox.php:1057
636
  msgid "Space between FancyBox wrapper and content."
637
  msgstr "Przestrzeń między FancyBox a treścią"
638
 
639
+ #: ../responsive-lightbox.php:1065
640
  msgid "Space between viewport and FancyBox wrapper."
641
  msgstr "Przestrzeń między ekranem a Fancybox"
642
 
643
+ #: ../responsive-lightbox.php:1080
644
  msgid ""
645
+ "When true, \"overlayShow\" is set to true and \"hideOnOverlayClick\", "
646
  "\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set "
647
+ "to false."
648
  msgstr ""
 
 
 
649
 
650
+ #: ../responsive-lightbox.php:1095
651
  msgid "Toggle overlay."
652
  msgstr "Włącz tło."
653
 
654
+ #: ../responsive-lightbox.php:1110
655
  msgid "Toggle close button."
656
  msgstr "Włącz przycisk Zamknij."
657
 
658
+ #: ../responsive-lightbox.php:1125
659
  msgid "Toggle if pressing Esc button closes FancyBox."
660
  msgstr "Włącz zamykanie FancyBox przy pomocy Esc."
661
 
662
+ #: ../responsive-lightbox.php:1140
663
  msgid "Toggle if clicking the overlay should close FancyBox."
664
  msgstr "Włącz zamykanie FancyBox kliknięciem w tło."
665
 
666
+ #: ../responsive-lightbox.php:1155
667
  msgid "Toggle if clicking the content should close FancyBox."
668
  msgstr "Włącz zamykanie FancyBox kliknięciem w treść."
669
 
670
+ #: ../responsive-lightbox.php:1170
671
  msgid ""
672
  "When true, galleries will be cyclic, allowing you to keep pressing next/back."
673
  msgstr "Jeśli będzie włączone, galerie będą wyświetlane cyklicznie."
674
 
675
+ #: ../responsive-lightbox.php:1185
676
  msgid "Toggle navigation arrows."
677
  msgstr "Włącz strzałki nawigacyjne."
678
 
679
+ #: ../responsive-lightbox.php:1200
680
  msgid "If true, FancyBox is scaled to fit in viewport."
681
  msgstr "Jeśli będzie włączone, FancyBox będzie skalowany do rozmiaru okna."
682
 
683
+ #: ../responsive-lightbox.php:1215
684
  msgid "Set the overflow CSS property to create or hide scrollbars."
685
  msgstr ""
686
  "Ustaw parametr overflow dw CSS aby tworzyć lub ukrywać elementy nawigacji."
687
 
688
+ #: ../responsive-lightbox.php:1230
689
  msgid "When true, FancyBox is centered while scrolling page."
690
  msgstr ""
691
  "Jeśli będzie zaznaczone, FancyBox będzie wycentrowany w trakcie przewijania "
692
  "strony."
693
 
694
+ #: ../responsive-lightbox.php:1245
695
  msgid "When true, transparency of content is changed for elastic transitions."
696
  msgstr ""
697
  "Jeśli będzie zaznaczone, przezroczystość treści zmieni się w trakcie "
698
  "animacji."
699
 
700
+ #: ../responsive-lightbox.php:1256
701
  msgid "Opacity of the overlay."
702
  msgstr "Przezroczystość tła."
703
 
704
+ #: ../responsive-lightbox.php:1264
705
  msgid "Color of the overlay."
706
  msgstr "Kolor tła."
707
 
708
+ #: ../responsive-lightbox.php:1279
709
  msgid "Toggle title."
710
  msgstr "Wyświetlanie tytułu."
711
 
712
+ #: ../responsive-lightbox.php:1294
713
  msgid "The position of title."
714
  msgstr "Pozycja tytułu."
715
 
716
+ #: ../responsive-lightbox.php:1309
717
  msgid "Easing used for elastic animations."
718
  msgstr "Wygładzanie animacji dla trybu elastic."
719
 
720
+ #: ../responsive-lightbox.php:1317
721
  msgid "Speed of the fade and elastic transitions, in milliseconds."
722
  msgstr "Podaj czas trwania animacji fade i elastic (w milisekundach)"
723
 
724
+ #: ../responsive-lightbox.php:1325
725
  msgid "Speed of resizing when changing gallery items, in milliseconds."
726
  msgstr ""
727
  "Szybkość zmiany wielkości okna w trakcie przechodzenia między obrazkami (w "
728
  "milisekundach)."
729
 
730
+ #: ../responsive-lightbox.php:1333
731
  msgid "Speed of the content fading while changing gallery items."
732
  msgstr "Szybkość zanikania elementów w trakcie przechodzenia między obrazkami."
733
 
734
+ #: ../responsive-lightbox.php:1341
735
  msgid "Width of the video."
736
  msgstr "Szerokość video."
737
 
738
+ #: ../responsive-lightbox.php:1349
739
  msgid "Height of the video."
740
  msgstr "Wysokość video."
741
 
742
+ #: ../responsive-lightbox.php:1364
743
  msgid "The effect to use when showing the lightbox."
744
  msgstr "Wybierz efekt, który chcesz zastosować do wyświetlania lightboxa."
745
 
746
+ #: ../responsive-lightbox.php:1379
747
  msgid "Enable/Disable keyboard navigation (left/right/escape)."
748
  msgstr ""
749
  "Włącz / Wyłącz nawigację klawiaturą (strzałka w lewo, w prawo i przycisk ESC)"
750
 
751
+ #: ../responsive-lightbox.php:1394
752
  msgid "Eneble to close lightbox on overlay click."
753
  msgstr "Włącz aby zamykać lightbox po kliknięciu w obzar poza obrazkiem."
754
 
755
+ #: ../responsive-lightbox.php:1402
756
  msgid "Error message if the content cannot be loaded."
757
  msgstr "Komunikat w przypadku gdy nie można załądować treści."
758
 
759
+ #: ../responsive-lightbox.php:1410
760
  msgid "Animation speed."
761
  msgstr "Szybkość animacji."
762
 
763
+ #: ../responsive-lightbox.php:1425
764
  msgid "Silently preload the next image."
765
  msgstr "W niezauważalny sposób ładuje kolejny obrazek."
766
 
767
+ #: ../responsive-lightbox.php:1440
768
  msgid "Enable keyboard shortcuts (arrows Left/Right and Esc)."
769
  msgstr "Włącza skróty klawiaturowe (strzałki lewo/prawo oraz Esc)"
770
 
771
+ #: ../responsive-lightbox.php:1455
772
  msgid "Quit after viewing the last image."
773
  msgstr "Powoduje wyjście z lightboxa po obejrzeniu ostatniego obrazka."
774
 
775
+ #: ../responsive-lightbox.php:1470
776
  msgid "Quit when the viewed image is clicked."
777
  msgstr "Powoduje wyjście z lightboxa po kliknięciu w przeglądany obrazek."
778
 
779
+ #: ../responsive-lightbox.php:1485
780
  msgid "Quit when anything but the viewed image is clicked."
781
  msgstr "Powoduje wyjście z lightboxa po kliknięciu w coś innego niż obrazek."
782
 
783
+ #: ../responsive-lightbox.php:1715
784
  msgid ""
785
  "Changes were not saved because there was attempt to save settings of "
786
  "inactive script. The site has been reloaded to the proper script settings."
788
  "Zmiany nie zostały zapisane ponieważ wykryto próbę zapisu ustawień "
789
  "nieaktywnego skryptu. Strona została odświeżona z prawidłowymi ustawieniami."
790
 
791
+ #: ../responsive-lightbox.php:1723
792
  msgid "Settings restored to defaults."
793
  msgstr "Ustawienia zostały przywrócone do domyślnych."
794
 
795
+ #: ../responsive-lightbox.php:1728
796
  msgid "Settings of SwipeBox script were restored to defaults."
797
  msgstr "Ustawienia skryptu SwipeBox zostały przywrócone."
798
 
799
+ #: ../responsive-lightbox.php:1732
800
  msgid "Settings of prettyPhoto script were restored to defaults."
801
  msgstr "Ustawienia skryptu prettyPhoto zostały przywrócone."
802
 
803
+ #: ../responsive-lightbox.php:1736
804
  msgid "Settings of FancyBox script were restored to defaults."
805
  msgstr "Ustawienia skryptu FancyBox zostały przywrócone."
806
 
807
+ #: ../responsive-lightbox.php:1740
808
  msgid "Settings of Nivo script were restored to defaults."
809
  msgstr "Ustawienia skryptu Nivo Lightbox zostały przywrócone."
810
 
811
+ #: ../responsive-lightbox.php:1742
812
  msgid ""
813
  "Changes were not set to defaults because there was attempt to reset settings "
814
  "of inactive script. The site has been reloaded to the proper script settings."
817
  "resetowania ustawień nieaktywnego skryptu. Strona została odświeżona z "
818
  "prawidłowymi ustawieniami."
819
 
820
+ #: ../responsive-lightbox.php:1754 ../responsive-lightbox.php:1763
821
+ #: ../responsive-lightbox.php:1776
822
  msgid "Responsive Lightbox"
823
  msgstr "Efekt Lightbox"
824
 
825
+ #: ../responsive-lightbox.php:1778
826
  msgid "Need support?"
827
  msgstr "Potrzebujesz pomocy?"
828
 
829
+ #: ../responsive-lightbox.php:1779
830
  msgid ""
831
  "If you are having problems with this plugin, please talk about them in the"
832
  msgstr "Jeśli masz jakiekolwiek problemy z tą wtyczką, powiedz o nich na"
833
 
834
+ #: ../responsive-lightbox.php:1779
835
  msgid "Support forum"
836
  msgstr "Forum pomocy"
837
 
838
+ #: ../responsive-lightbox.php:1781
839
  msgid "Do you like this plugin?"
840
  msgstr "Lubisz tę wtyczkę?"
841
 
842
+ #: ../responsive-lightbox.php:1788
843
  msgid "Rate it 5"
844
  msgstr "Oceń ją na 5"
845
 
846
+ #: ../responsive-lightbox.php:1788
847
  msgid "on WordPress.org"
848
  msgstr "na WordPress.org"
849
 
850
+ #: ../responsive-lightbox.php:1789
851
  msgid "Blog about it & link to the"
852
  msgstr "Napisz o niej i dodaj link"
853
 
854
+ #: ../responsive-lightbox.php:1789
855
  msgid "plugin page"
856
  msgstr "do strony wtyczki"
857
 
858
+ #: ../responsive-lightbox.php:1790
859
  msgid "Check out our other"
860
  msgstr "Sprawdź nasze pozostałe"
861
 
862
+ #: ../responsive-lightbox.php:1790
863
  msgid "WordPress plugins"
864
  msgstr "wtyczki do WordPress'a"
865
 
866
+ #: ../responsive-lightbox.php:1810
867
  msgid "Reset to defaults"
868
  msgstr "Resetuj do domyślnych"
869
 
870
+ #: ../responsive-lightbox.php:1830
871
  msgid "Are you sure you want to reset these settings to defaults?"
872
  msgstr "Jesteś pewny, że chcesz zresetować ustawienia do domyślnych?"
873
 
874
+ #: ../responsive-lightbox.php:1831
875
  msgid "Are you sure you want to reset scripts settings to defaults?"
876
  msgstr "Jesteś pewny, że chcesz zresetować ustawienia?"
877
 
878
+ #: ../responsive-lightbox.php:2057
879
  msgid "Support"
880
  msgstr "Pomoc"
881
 
882
+ #: ../responsive-lightbox.php:2076
883
  msgid "Settings"
884
  msgstr "Ustawienia"
885
+
886
+ #~ msgid ""
887
+ #~ "When true, \"overlayShow\" is set to TRUE and \"hideOnOverlayClick\", "
888
+ #~ "\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are "
889
+ #~ "set to FALSE."
890
+ #~ msgstr ""
891
+ #~ "Jeśli będzie włączone, opcja \"overlayShow\" także zostanie ustawiona na "
892
+ #~ "TRUE, natomiast \"hideOnOverlayClick\", \"hideOnContentClick\", "
893
+ #~ "\"enableEscapeButton\", \"showCloseButton\" zostaną ustawione na FALSE."
languages/responsive-lightbox.pot CHANGED
@@ -1,844 +1,860 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Responsive Lightbox\n"
4
- "POT-Creation-Date: 2014-09-04 21:25+0100\n"
5
- "PO-Revision-Date: 2014-09-04 21:25+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
7
  "Language-Team: dFactory <info@dfactory.eu>\n"
8
  "Language: en\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.6.7\n"
13
  "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e\n"
14
  "X-Poedit-Basepath: .\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
- #: ../responsive-lightbox.php:294
19
  msgid "prettyPhoto"
20
  msgstr ""
21
 
22
- #: ../responsive-lightbox.php:296
23
  msgid "slow"
24
  msgstr ""
25
 
26
- #: ../responsive-lightbox.php:297
27
  msgid "normal"
28
  msgstr ""
29
 
30
- #: ../responsive-lightbox.php:298
31
  msgid "fast"
32
  msgstr ""
33
 
34
- #: ../responsive-lightbox.php:301
35
  msgid "default"
36
  msgstr ""
37
 
38
- #: ../responsive-lightbox.php:302
39
  msgid "light rounded"
40
  msgstr ""
41
 
42
- #: ../responsive-lightbox.php:303
43
  msgid "dark rounded"
44
  msgstr ""
45
 
46
- #: ../responsive-lightbox.php:304
47
  msgid "light square"
48
  msgstr ""
49
 
50
- #: ../responsive-lightbox.php:305
51
  msgid "dark square"
52
  msgstr ""
53
 
54
- #: ../responsive-lightbox.php:306
55
  msgid "facebook"
56
  msgstr ""
57
 
58
- #: ../responsive-lightbox.php:309
59
  msgid "window"
60
  msgstr ""
61
 
62
- #: ../responsive-lightbox.php:310
63
  msgid "transparent"
64
  msgstr ""
65
 
66
- #: ../responsive-lightbox.php:311
67
  msgid "opaque"
68
  msgstr ""
69
 
70
- #: ../responsive-lightbox.php:312
71
  msgid "direct"
72
  msgstr ""
73
 
74
- #: ../responsive-lightbox.php:313
75
  msgid "gpu"
76
  msgstr ""
77
 
78
- #: ../responsive-lightbox.php:317
79
  msgid "SwipeBox"
80
  msgstr ""
81
 
82
- #: ../responsive-lightbox.php:319
83
  msgid "CSS"
84
  msgstr ""
85
 
86
- #: ../responsive-lightbox.php:320
87
  msgid "jQuery"
88
  msgstr ""
89
 
90
- #: ../responsive-lightbox.php:324
91
  msgid "FancyBox"
92
  msgstr ""
93
 
94
- #: ../responsive-lightbox.php:326
95
  msgid "elastic"
96
  msgstr ""
97
 
98
- #: ../responsive-lightbox.php:327 ../responsive-lightbox.php:348
99
  msgid "fade"
100
  msgstr ""
101
 
102
- #: ../responsive-lightbox.php:328
103
  msgid "none"
104
  msgstr ""
105
 
106
- #: ../responsive-lightbox.php:331
107
  msgid "auto"
108
  msgstr ""
109
 
110
- #: ../responsive-lightbox.php:332
111
  msgid "yes"
112
  msgstr ""
113
 
114
- #: ../responsive-lightbox.php:333
115
  msgid "no"
116
  msgstr ""
117
 
118
- #: ../responsive-lightbox.php:336
119
  msgid "swing"
120
  msgstr ""
121
 
122
- #: ../responsive-lightbox.php:337
123
  msgid "linear"
124
  msgstr ""
125
 
126
- #: ../responsive-lightbox.php:340
127
  msgid "outside"
128
  msgstr ""
129
 
130
- #: ../responsive-lightbox.php:341
131
  msgid "inside"
132
  msgstr ""
133
 
134
- #: ../responsive-lightbox.php:342
135
  msgid "over"
136
  msgstr ""
137
 
138
- #: ../responsive-lightbox.php:346
139
  msgid "Nivo Lightbox"
140
  msgstr ""
141
 
142
- #: ../responsive-lightbox.php:349
143
  msgid "fade scale"
144
  msgstr ""
145
 
146
- #: ../responsive-lightbox.php:350
147
  msgid "slide left"
148
  msgstr ""
149
 
150
- #: ../responsive-lightbox.php:351
151
  msgid "slide right"
152
  msgstr ""
153
 
154
- #: ../responsive-lightbox.php:352
155
  msgid "slide up"
156
  msgstr ""
157
 
158
- #: ../responsive-lightbox.php:353
159
  msgid "slide down"
160
  msgstr ""
161
 
162
- #: ../responsive-lightbox.php:354
163
  msgid "fall"
164
  msgstr ""
165
 
166
- #: ../responsive-lightbox.php:358
167
  msgid "Image Lightbox"
168
  msgstr ""
169
 
170
- #: ../responsive-lightbox.php:363
171
  msgid "Enable"
172
  msgstr ""
173
 
174
- #: ../responsive-lightbox.php:364
175
  msgid "Disable"
176
  msgstr ""
177
 
178
- #: ../responsive-lightbox.php:368
179
  msgid "Header"
180
  msgstr ""
181
 
182
- #: ../responsive-lightbox.php:369
183
  msgid "Footer"
184
  msgstr ""
185
 
186
- #: ../responsive-lightbox.php:374 ../responsive-lightbox.php:475
187
  msgid "General settings"
188
  msgstr ""
189
 
190
- #: ../responsive-lightbox.php:380 ../responsive-lightbox.php:489
191
  msgid "Lightbox settings"
192
  msgstr ""
193
 
194
- #: ../responsive-lightbox.php:476
195
  msgid "Lightbox script"
196
  msgstr ""
197
 
198
- #: ../responsive-lightbox.php:477
199
  msgid "Selector"
200
  msgstr ""
201
 
202
- #: ../responsive-lightbox.php:478
203
  msgid "Galleries"
204
  msgstr ""
205
 
206
- #: ../responsive-lightbox.php:479
207
  msgid "Gallery image size"
208
  msgstr ""
209
 
210
- #: ../responsive-lightbox.php:480
211
  msgid "Video links"
212
  msgstr ""
213
 
214
- #: ../responsive-lightbox.php:481
215
  msgid "Image links"
216
  msgstr ""
217
 
218
- #: ../responsive-lightbox.php:482
219
  msgid "Single images as gallery"
220
  msgstr ""
221
 
222
- #: ../responsive-lightbox.php:483
223
  msgid "Custom events"
224
  msgstr ""
225
 
226
- #: ../responsive-lightbox.php:484
227
  msgid "Loading place"
228
  msgstr ""
229
 
230
- #: ../responsive-lightbox.php:485
231
  msgid "Deactivation"
232
  msgstr ""
233
 
234
- #: ../responsive-lightbox.php:493
235
  msgid "Animation type"
236
  msgstr ""
237
 
238
- #: ../responsive-lightbox.php:494
239
  msgid "Force PNG icons"
240
  msgstr ""
241
 
242
- #: ../responsive-lightbox.php:495
 
 
 
 
243
  msgid "Top and bottom bars"
244
  msgstr ""
245
 
246
- #: ../responsive-lightbox.php:496
247
  msgid "Video max width"
248
  msgstr ""
249
 
250
- #: ../responsive-lightbox.php:500 ../responsive-lightbox.php:557
 
 
 
 
251
  msgid "Animation speed"
252
  msgstr ""
253
 
254
- #: ../responsive-lightbox.php:501
255
  msgid "Slideshow"
256
  msgstr ""
257
 
258
- #: ../responsive-lightbox.php:502
259
  msgid "Slideshow autoplay"
260
  msgstr ""
261
 
262
- #: ../responsive-lightbox.php:503 ../responsive-lightbox.php:533
263
  msgid "Opacity"
264
  msgstr ""
265
 
266
- #: ../responsive-lightbox.php:504
267
  msgid "Show title"
268
  msgstr ""
269
 
270
- #: ../responsive-lightbox.php:505
271
  msgid "Allow resize big images"
272
  msgstr ""
273
 
274
- #: ../responsive-lightbox.php:506
275
  msgid "Allow expand"
276
  msgstr ""
277
 
278
- #: ../responsive-lightbox.php:507 ../responsive-lightbox.php:545
279
  msgid "Video width"
280
  msgstr ""
281
 
282
- #: ../responsive-lightbox.php:508 ../responsive-lightbox.php:546
283
  msgid "Video height"
284
  msgstr ""
285
 
286
- #: ../responsive-lightbox.php:509
287
  msgid "Theme"
288
  msgstr ""
289
 
290
- #: ../responsive-lightbox.php:510
291
  msgid "Horizontal padding"
292
  msgstr ""
293
 
294
- #: ../responsive-lightbox.php:511
295
  msgid "Hide Flash"
296
  msgstr ""
297
 
298
- #: ../responsive-lightbox.php:512
299
  msgid "Flash Window Mode (wmode)"
300
  msgstr ""
301
 
302
- #: ../responsive-lightbox.php:513
303
  msgid "Video autoplay"
304
  msgstr ""
305
 
306
- #: ../responsive-lightbox.php:514 ../responsive-lightbox.php:522
307
  msgid "Modal"
308
  msgstr ""
309
 
310
- #: ../responsive-lightbox.php:515
311
  msgid "Deeplinking"
312
  msgstr ""
313
 
314
- #: ../responsive-lightbox.php:516
315
  msgid "Overlay gallery"
316
  msgstr ""
317
 
318
- #: ../responsive-lightbox.php:517
319
  msgid "Keyboard shortcuts"
320
  msgstr ""
321
 
322
- #: ../responsive-lightbox.php:518
323
  msgid "Social (Twitter, Facebook)"
324
  msgstr ""
325
 
326
- #: ../responsive-lightbox.php:523
327
  msgid "Show overlay"
328
  msgstr ""
329
 
330
- #: ../responsive-lightbox.php:524
331
  msgid "Show close button"
332
  msgstr ""
333
 
334
- #: ../responsive-lightbox.php:525
335
  msgid "Enable escape button"
336
  msgstr ""
337
 
338
- #: ../responsive-lightbox.php:526
339
  msgid "Hide on overlay click"
340
  msgstr ""
341
 
342
- #: ../responsive-lightbox.php:527
343
  msgid "Hide on content click"
344
  msgstr ""
345
 
346
- #: ../responsive-lightbox.php:528
347
  msgid "Cyclic"
348
  msgstr ""
349
 
350
- #: ../responsive-lightbox.php:529
351
  msgid "Show nav arrows"
352
  msgstr ""
353
 
354
- #: ../responsive-lightbox.php:530
355
  msgid "Auto scale"
356
  msgstr ""
357
 
358
- #: ../responsive-lightbox.php:531
359
  msgid "Scrolling (in/out)"
360
  msgstr ""
361
 
362
- #: ../responsive-lightbox.php:532
363
  msgid "Center on scroll"
364
  msgstr ""
365
 
366
- #: ../responsive-lightbox.php:534
367
  msgid "Overlay opacity"
368
  msgstr ""
369
 
370
- #: ../responsive-lightbox.php:535
371
  msgid "Overlay color"
372
  msgstr ""
373
 
374
- #: ../responsive-lightbox.php:536
375
  msgid "Title show"
376
  msgstr ""
377
 
378
- #: ../responsive-lightbox.php:537
379
  msgid "Title position"
380
  msgstr ""
381
 
382
- #: ../responsive-lightbox.php:538
383
  msgid "Transition (in/out)"
384
  msgstr ""
385
 
386
- #: ../responsive-lightbox.php:539
387
  msgid "Easings (in/out)"
388
  msgstr ""
389
 
390
- #: ../responsive-lightbox.php:540
391
  msgid "Speed (in/out)"
392
  msgstr ""
393
 
394
- #: ../responsive-lightbox.php:541
395
  msgid "Change speed"
396
  msgstr ""
397
 
398
- #: ../responsive-lightbox.php:542
399
  msgid "Change fade"
400
  msgstr ""
401
 
402
- #: ../responsive-lightbox.php:543
403
  msgid "Padding"
404
  msgstr ""
405
 
406
- #: ../responsive-lightbox.php:544
407
  msgid "Margin"
408
  msgstr ""
409
 
410
- #: ../responsive-lightbox.php:550
411
  msgid "Effect"
412
  msgstr ""
413
 
414
- #: ../responsive-lightbox.php:551
415
  msgid "Click overlay to close"
416
  msgstr ""
417
 
418
- #: ../responsive-lightbox.php:552
419
  msgid "Keyboard navigation"
420
  msgstr ""
421
 
422
- #: ../responsive-lightbox.php:553
423
  msgid "Error message"
424
  msgstr ""
425
 
426
- #: ../responsive-lightbox.php:558
427
  msgid "Preload next image"
428
  msgstr ""
429
 
430
- #: ../responsive-lightbox.php:559
431
  msgid "Enable keyboard keys"
432
  msgstr ""
433
 
434
- #: ../responsive-lightbox.php:560
435
  msgid "Quit after last image"
436
  msgstr ""
437
 
438
- #: ../responsive-lightbox.php:561
439
  msgid "Quit when image is clicked"
440
  msgstr ""
441
 
442
- #: ../responsive-lightbox.php:562
443
  msgid "Quit when anything but image is clicked"
444
  msgstr ""
445
 
446
- #: ../responsive-lightbox.php:582
447
  msgid "Select your preffered ligthbox effect script."
448
  msgstr ""
449
 
450
- #: ../responsive-lightbox.php:592
451
  msgid "Select to which rel selector lightbox effect will be applied to."
452
  msgstr ""
453
 
454
- #: ../responsive-lightbox.php:612
455
  msgid "Enable triggering lightbox on custom jquery events."
456
  msgstr ""
457
 
458
- #: ../responsive-lightbox.php:615
459
  msgid "Enter a space separated list of events."
460
  msgstr ""
461
 
462
- #: ../responsive-lightbox.php:636
463
  msgid "Select where all the lightbox scripts should be placed."
464
  msgstr ""
465
 
466
- #: ../responsive-lightbox.php:654
467
  msgid "Add lightbox to WordPress image galleries by default."
468
  msgstr ""
469
 
470
- #: ../responsive-lightbox.php:674
471
  msgid ""
472
  "By default WP gallery links point to full size images only. Enable that to "
473
  "modify the image size of native WP gallery image links."
474
  msgstr ""
475
 
476
- #: ../responsive-lightbox.php:684
477
  msgid "full"
478
  msgstr ""
479
 
480
- #: ../responsive-lightbox.php:693
481
  msgid "Select image size for gallery image links."
482
  msgstr ""
483
 
484
- #: ../responsive-lightbox.php:712
485
  msgid "Add lightbox to YouTube and Vimeo video links by default."
486
  msgstr ""
487
 
488
- #: ../responsive-lightbox.php:730
489
  msgid "Add lightbox to WordPress image links by default."
490
  msgstr ""
491
 
492
- #: ../responsive-lightbox.php:748
493
  msgid "Display single post images as a gallery."
494
  msgstr ""
495
 
496
- #: ../responsive-lightbox.php:766
497
  msgid "Delete settings on plugin deactivation."
498
  msgstr ""
499
 
500
- #: ../responsive-lightbox.php:784
501
  msgid "Select a method of applying a lightbox effect."
502
  msgstr ""
503
 
504
- #: ../responsive-lightbox.php:802
505
  msgid ""
506
  "Disable if you don't want to top and bottom bars to be hidden after a period "
507
  "of time."
508
  msgstr ""
509
 
510
- #: ../responsive-lightbox.php:805
511
  msgid ""
512
  "Enter the time after which the top and bottom bars will be hidden (when "
513
  "hiding is enabled)."
514
  msgstr ""
515
 
516
- #: ../responsive-lightbox.php:816
517
  msgid "Enter the max video width in a lightbox."
518
  msgstr ""
519
 
520
- #: ../responsive-lightbox.php:834
 
 
 
 
521
  msgid ""
522
  "Enable this if you're having problems with navigation icons not visible on "
523
  "some devices."
524
  msgstr ""
525
 
526
- #: ../responsive-lightbox.php:852
 
 
 
 
527
  msgid "Select animation speed for lightbox effect."
528
  msgstr ""
529
 
530
- #: ../responsive-lightbox.php:870
531
  msgid "Display images as slideshow."
532
  msgstr ""
533
 
534
- #: ../responsive-lightbox.php:873
535
  msgid "Enter time (in miliseconds)."
536
  msgstr ""
537
 
538
- #: ../responsive-lightbox.php:892
539
  msgid "Automatically start slideshow."
540
  msgstr ""
541
 
542
- #: ../responsive-lightbox.php:905
543
  msgid "Value between 0 and 100, 100 for no opacity."
544
  msgstr ""
545
 
546
- #: ../responsive-lightbox.php:923
547
  msgid "Display image tiltle."
548
  msgstr ""
549
 
550
- #: ../responsive-lightbox.php:941
551
  msgid "Resize the photos bigger than viewport."
552
  msgstr ""
553
 
554
- #: ../responsive-lightbox.php:959
555
  msgid "Expands something."
556
  msgstr ""
557
 
558
- #: ../responsive-lightbox.php:969 ../responsive-lightbox.php:979
559
  msgid "in pixels"
560
  msgstr ""
561
 
562
- #: ../responsive-lightbox.php:997
563
  msgid "Select theme for lightbox effect."
564
  msgstr ""
565
 
566
- #: ../responsive-lightbox.php:1007
567
  msgid "Horizontal padding (in pixels)."
568
  msgstr ""
569
 
570
- #: ../responsive-lightbox.php:1025
571
  msgid ""
572
  "Hides all the flash object on a page. Enable this if flash appears over "
573
  "prettyPhoto."
574
  msgstr ""
575
 
576
- #: ../responsive-lightbox.php:1043
577
  msgid "Select flash window mode."
578
  msgstr ""
579
 
580
- #: ../responsive-lightbox.php:1061
581
  msgid "Automatically start videos."
582
  msgstr ""
583
 
584
- #: ../responsive-lightbox.php:1079
585
  msgid "If set to true, only the close button will close the window."
586
  msgstr ""
587
 
588
- #: ../responsive-lightbox.php:1097
589
  msgid "Allow prettyPhoto to update the url to enable deeplinking."
590
  msgstr ""
591
 
592
- #: ../responsive-lightbox.php:1115
593
  msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
594
  msgstr ""
595
 
596
- #: ../responsive-lightbox.php:1133
597
  msgid "Set to false if you open forms inside prettyPhoto."
598
  msgstr ""
599
 
600
- #: ../responsive-lightbox.php:1151
601
  msgid "Display links to Facebook and Twitter."
602
  msgstr ""
603
 
604
- #: ../responsive-lightbox.php:1169
605
  msgid "The transition type."
606
  msgstr ""
607
 
608
- #: ../responsive-lightbox.php:1179
609
  msgid "Space between FancyBox wrapper and content."
610
  msgstr ""
611
 
612
- #: ../responsive-lightbox.php:1189
613
  msgid "Space between viewport and FancyBox wrapper."
614
  msgstr ""
615
 
616
- #: ../responsive-lightbox.php:1207
617
  msgid ""
618
- "When true, \"overlayShow\" is set to TRUE and \"hideOnOverlayClick\", "
619
  "\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set "
620
- "to FALSE."
621
  msgstr ""
622
 
623
- #: ../responsive-lightbox.php:1225
624
  msgid "Toggle overlay."
625
  msgstr ""
626
 
627
- #: ../responsive-lightbox.php:1243
628
  msgid "Toggle close button."
629
  msgstr ""
630
 
631
- #: ../responsive-lightbox.php:1261
632
  msgid "Toggle if pressing Esc button closes FancyBox."
633
  msgstr ""
634
 
635
- #: ../responsive-lightbox.php:1279
636
  msgid "Toggle if clicking the overlay should close FancyBox."
637
  msgstr ""
638
 
639
- #: ../responsive-lightbox.php:1297
640
  msgid "Toggle if clicking the content should close FancyBox."
641
  msgstr ""
642
 
643
- #: ../responsive-lightbox.php:1315
644
  msgid ""
645
  "When true, galleries will be cyclic, allowing you to keep pressing next/back."
646
  msgstr ""
647
 
648
- #: ../responsive-lightbox.php:1333
649
  msgid "Toggle navigation arrows."
650
  msgstr ""
651
 
652
- #: ../responsive-lightbox.php:1351
653
  msgid "If true, FancyBox is scaled to fit in viewport."
654
  msgstr ""
655
 
656
- #: ../responsive-lightbox.php:1369
657
  msgid "Set the overflow CSS property to create or hide scrollbars."
658
  msgstr ""
659
 
660
- #: ../responsive-lightbox.php:1387
661
  msgid "When true, FancyBox is centered while scrolling page."
662
  msgstr ""
663
 
664
- #: ../responsive-lightbox.php:1405
665
  msgid "When true, transparency of content is changed for elastic transitions."
666
  msgstr ""
667
 
668
- #: ../responsive-lightbox.php:1418
669
  msgid "Opacity of the overlay."
670
  msgstr ""
671
 
672
- #: ../responsive-lightbox.php:1428
673
  msgid "Color of the overlay."
674
  msgstr ""
675
 
676
- #: ../responsive-lightbox.php:1446
677
  msgid "Toggle title."
678
  msgstr ""
679
 
680
- #: ../responsive-lightbox.php:1464
681
  msgid "The position of title."
682
  msgstr ""
683
 
684
- #: ../responsive-lightbox.php:1482
685
  msgid "Easing used for elastic animations."
686
  msgstr ""
687
 
688
- #: ../responsive-lightbox.php:1492
689
  msgid "Speed of the fade and elastic transitions, in milliseconds."
690
  msgstr ""
691
 
692
- #: ../responsive-lightbox.php:1502
693
  msgid "Speed of resizing when changing gallery items, in milliseconds."
694
  msgstr ""
695
 
696
- #: ../responsive-lightbox.php:1512
697
  msgid "Speed of the content fading while changing gallery items."
698
  msgstr ""
699
 
700
- #: ../responsive-lightbox.php:1522
701
  msgid "Width of the video."
702
  msgstr ""
703
 
704
- #: ../responsive-lightbox.php:1532
705
  msgid "Height of the video."
706
  msgstr ""
707
 
708
- #: ../responsive-lightbox.php:1550
709
  msgid "The effect to use when showing the lightbox."
710
  msgstr ""
711
 
712
- #: ../responsive-lightbox.php:1568
713
  msgid "Enable/Disable keyboard navigation (left/right/escape)."
714
  msgstr ""
715
 
716
- #: ../responsive-lightbox.php:1586
717
  msgid "Eneble to close lightbox on overlay click."
718
  msgstr ""
719
 
720
- #: ../responsive-lightbox.php:1596
721
  msgid "Error message if the content cannot be loaded."
722
  msgstr ""
723
 
724
- #: ../responsive-lightbox.php:1606
725
  msgid "Animation speed."
726
  msgstr ""
727
 
728
- #: ../responsive-lightbox.php:1624
729
  msgid "Silently preload the next image."
730
  msgstr ""
731
 
732
- #: ../responsive-lightbox.php:1642
733
  msgid "Enable keyboard shortcuts (arrows Left/Right and Esc)."
734
  msgstr ""
735
 
736
- #: ../responsive-lightbox.php:1660
737
  msgid "Quit after viewing the last image."
738
  msgstr ""
739
 
740
- #: ../responsive-lightbox.php:1678
741
  msgid "Quit when the viewed image is clicked."
742
  msgstr ""
743
 
744
- #: ../responsive-lightbox.php:1696
745
  msgid "Quit when anything but the viewed image is clicked."
746
  msgstr ""
747
 
748
- #: ../responsive-lightbox.php:1938
749
  msgid ""
750
  "Changes were not saved because there was attempt to save settings of "
751
  "inactive script. The site has been reloaded to the proper script settings."
752
  msgstr ""
753
 
754
- #: ../responsive-lightbox.php:1948
755
  msgid "Settings restored to defaults."
756
  msgstr ""
757
 
758
- #: ../responsive-lightbox.php:1956
759
  msgid "Settings of SwipeBox script were restored to defaults."
760
  msgstr ""
761
 
762
- #: ../responsive-lightbox.php:1962
763
  msgid "Settings of prettyPhoto script were restored to defaults."
764
  msgstr ""
765
 
766
- #: ../responsive-lightbox.php:1968
767
  msgid "Settings of FancyBox script were restored to defaults."
768
  msgstr ""
769
 
770
- #: ../responsive-lightbox.php:1974
771
  msgid "Settings of Nivo script were restored to defaults."
772
  msgstr ""
773
 
774
- #: ../responsive-lightbox.php:1978
775
  msgid ""
776
  "Changes were not set to defaults because there was attempt to reset settings "
777
  "of inactive script. The site has been reloaded to the proper script settings."
778
  msgstr ""
779
 
780
- #: ../responsive-lightbox.php:1992 ../responsive-lightbox.php:1993
781
- #: ../responsive-lightbox.php:2007 ../responsive-lightbox.php:2021
782
  msgid "Responsive Lightbox"
783
  msgstr ""
784
 
785
- #: ../responsive-lightbox.php:2023
786
  msgid "Need support?"
787
  msgstr ""
788
 
789
- #: ../responsive-lightbox.php:2024
790
  msgid ""
791
  "If you are having problems with this plugin, please talk about them in the"
792
  msgstr ""
793
 
794
- #: ../responsive-lightbox.php:2024
795
  msgid "Support forum"
796
  msgstr ""
797
 
798
- #: ../responsive-lightbox.php:2026
799
  msgid "Do you like this plugin?"
800
  msgstr ""
801
 
802
- #: ../responsive-lightbox.php:2027
803
  msgid "Rate it 5"
804
  msgstr ""
805
 
806
- #: ../responsive-lightbox.php:2027
807
  msgid "on WordPress.org"
808
  msgstr ""
809
 
810
- #: ../responsive-lightbox.php:2028
811
  msgid "Blog about it & link to the"
812
  msgstr ""
813
 
814
- #: ../responsive-lightbox.php:2028
815
  msgid "plugin page"
816
  msgstr ""
817
 
818
- #: ../responsive-lightbox.php:2029
819
  msgid "Check out our other"
820
  msgstr ""
821
 
822
- #: ../responsive-lightbox.php:2029
823
  msgid "WordPress plugins"
824
  msgstr ""
825
 
826
- #: ../responsive-lightbox.php:2055
827
  msgid "Reset to defaults"
828
  msgstr ""
829
 
830
- #: ../responsive-lightbox.php:2082
831
  msgid "Are you sure you want to reset these settings to defaults?"
832
  msgstr ""
833
 
834
- #: ../responsive-lightbox.php:2083
835
  msgid "Are you sure you want to reset scripts settings to defaults?"
836
  msgstr ""
837
 
838
- #: ../responsive-lightbox.php:2373
839
  msgid "Support"
840
  msgstr ""
841
 
842
- #: ../responsive-lightbox.php:2395
843
  msgid "Settings"
844
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Responsive Lightbox\n"
4
+ "POT-Creation-Date: 2015-05-12 12:06+0100\n"
5
+ "PO-Revision-Date: 2015-05-12 12:06+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
7
  "Language-Team: dFactory <info@dfactory.eu>\n"
8
  "Language: en\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.7.5\n"
13
  "X-Poedit-KeywordsList: gettext;gettext_noop;__;_e\n"
14
  "X-Poedit-Basepath: .\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
+ #: ../responsive-lightbox.php:269
19
  msgid "prettyPhoto"
20
  msgstr ""
21
 
22
+ #: ../responsive-lightbox.php:271
23
  msgid "slow"
24
  msgstr ""
25
 
26
+ #: ../responsive-lightbox.php:272
27
  msgid "normal"
28
  msgstr ""
29
 
30
+ #: ../responsive-lightbox.php:273
31
  msgid "fast"
32
  msgstr ""
33
 
34
+ #: ../responsive-lightbox.php:276
35
  msgid "default"
36
  msgstr ""
37
 
38
+ #: ../responsive-lightbox.php:277
39
  msgid "light rounded"
40
  msgstr ""
41
 
42
+ #: ../responsive-lightbox.php:278
43
  msgid "dark rounded"
44
  msgstr ""
45
 
46
+ #: ../responsive-lightbox.php:279
47
  msgid "light square"
48
  msgstr ""
49
 
50
+ #: ../responsive-lightbox.php:280
51
  msgid "dark square"
52
  msgstr ""
53
 
54
+ #: ../responsive-lightbox.php:281
55
  msgid "facebook"
56
  msgstr ""
57
 
58
+ #: ../responsive-lightbox.php:284
59
  msgid "window"
60
  msgstr ""
61
 
62
+ #: ../responsive-lightbox.php:285
63
  msgid "transparent"
64
  msgstr ""
65
 
66
+ #: ../responsive-lightbox.php:286
67
  msgid "opaque"
68
  msgstr ""
69
 
70
+ #: ../responsive-lightbox.php:287
71
  msgid "direct"
72
  msgstr ""
73
 
74
+ #: ../responsive-lightbox.php:288
75
  msgid "gpu"
76
  msgstr ""
77
 
78
+ #: ../responsive-lightbox.php:292
79
  msgid "SwipeBox"
80
  msgstr ""
81
 
82
+ #: ../responsive-lightbox.php:294
83
  msgid "CSS"
84
  msgstr ""
85
 
86
+ #: ../responsive-lightbox.php:295
87
  msgid "jQuery"
88
  msgstr ""
89
 
90
+ #: ../responsive-lightbox.php:299
91
  msgid "FancyBox"
92
  msgstr ""
93
 
94
+ #: ../responsive-lightbox.php:301
95
  msgid "elastic"
96
  msgstr ""
97
 
98
+ #: ../responsive-lightbox.php:302 ../responsive-lightbox.php:323
99
  msgid "fade"
100
  msgstr ""
101
 
102
+ #: ../responsive-lightbox.php:303
103
  msgid "none"
104
  msgstr ""
105
 
106
+ #: ../responsive-lightbox.php:306
107
  msgid "auto"
108
  msgstr ""
109
 
110
+ #: ../responsive-lightbox.php:307
111
  msgid "yes"
112
  msgstr ""
113
 
114
+ #: ../responsive-lightbox.php:308
115
  msgid "no"
116
  msgstr ""
117
 
118
+ #: ../responsive-lightbox.php:311
119
  msgid "swing"
120
  msgstr ""
121
 
122
+ #: ../responsive-lightbox.php:312
123
  msgid "linear"
124
  msgstr ""
125
 
126
+ #: ../responsive-lightbox.php:315
127
  msgid "outside"
128
  msgstr ""
129
 
130
+ #: ../responsive-lightbox.php:316
131
  msgid "inside"
132
  msgstr ""
133
 
134
+ #: ../responsive-lightbox.php:317
135
  msgid "over"
136
  msgstr ""
137
 
138
+ #: ../responsive-lightbox.php:321
139
  msgid "Nivo Lightbox"
140
  msgstr ""
141
 
142
+ #: ../responsive-lightbox.php:324
143
  msgid "fade scale"
144
  msgstr ""
145
 
146
+ #: ../responsive-lightbox.php:325
147
  msgid "slide left"
148
  msgstr ""
149
 
150
+ #: ../responsive-lightbox.php:326
151
  msgid "slide right"
152
  msgstr ""
153
 
154
+ #: ../responsive-lightbox.php:327
155
  msgid "slide up"
156
  msgstr ""
157
 
158
+ #: ../responsive-lightbox.php:328
159
  msgid "slide down"
160
  msgstr ""
161
 
162
+ #: ../responsive-lightbox.php:329
163
  msgid "fall"
164
  msgstr ""
165
 
166
+ #: ../responsive-lightbox.php:333
167
  msgid "Image Lightbox"
168
  msgstr ""
169
 
170
+ #: ../responsive-lightbox.php:338
171
  msgid "Enable"
172
  msgstr ""
173
 
174
+ #: ../responsive-lightbox.php:339
175
  msgid "Disable"
176
  msgstr ""
177
 
178
+ #: ../responsive-lightbox.php:343
179
  msgid "Header"
180
  msgstr ""
181
 
182
+ #: ../responsive-lightbox.php:344
183
  msgid "Footer"
184
  msgstr ""
185
 
186
+ #: ../responsive-lightbox.php:349 ../responsive-lightbox.php:431
187
  msgid "General settings"
188
  msgstr ""
189
 
190
+ #: ../responsive-lightbox.php:355 ../responsive-lightbox.php:445
191
  msgid "Lightbox settings"
192
  msgstr ""
193
 
194
+ #: ../responsive-lightbox.php:432
195
  msgid "Lightbox script"
196
  msgstr ""
197
 
198
+ #: ../responsive-lightbox.php:433
199
  msgid "Selector"
200
  msgstr ""
201
 
202
+ #: ../responsive-lightbox.php:434
203
  msgid "Galleries"
204
  msgstr ""
205
 
206
+ #: ../responsive-lightbox.php:435
207
  msgid "Gallery image size"
208
  msgstr ""
209
 
210
+ #: ../responsive-lightbox.php:436
211
  msgid "Video links"
212
  msgstr ""
213
 
214
+ #: ../responsive-lightbox.php:437
215
  msgid "Image links"
216
  msgstr ""
217
 
218
+ #: ../responsive-lightbox.php:438
219
  msgid "Single images as gallery"
220
  msgstr ""
221
 
222
+ #: ../responsive-lightbox.php:439
223
  msgid "Custom events"
224
  msgstr ""
225
 
226
+ #: ../responsive-lightbox.php:440
227
  msgid "Loading place"
228
  msgstr ""
229
 
230
+ #: ../responsive-lightbox.php:441
231
  msgid "Deactivation"
232
  msgstr ""
233
 
234
+ #: ../responsive-lightbox.php:448
235
  msgid "Animation type"
236
  msgstr ""
237
 
238
+ #: ../responsive-lightbox.php:449
239
  msgid "Force PNG icons"
240
  msgstr ""
241
 
242
+ #: ../responsive-lightbox.php:450
243
+ msgid "Hide close on mobile"
244
+ msgstr ""
245
+
246
+ #: ../responsive-lightbox.php:451
247
  msgid "Top and bottom bars"
248
  msgstr ""
249
 
250
+ #: ../responsive-lightbox.php:452
251
  msgid "Video max width"
252
  msgstr ""
253
 
254
+ #: ../responsive-lightbox.php:453
255
+ msgid "Loop at end"
256
+ msgstr ""
257
+
258
+ #: ../responsive-lightbox.php:455 ../responsive-lightbox.php:506
259
  msgid "Animation speed"
260
  msgstr ""
261
 
262
+ #: ../responsive-lightbox.php:456
263
  msgid "Slideshow"
264
  msgstr ""
265
 
266
+ #: ../responsive-lightbox.php:457
267
  msgid "Slideshow autoplay"
268
  msgstr ""
269
 
270
+ #: ../responsive-lightbox.php:458 ../responsive-lightbox.php:486
271
  msgid "Opacity"
272
  msgstr ""
273
 
274
+ #: ../responsive-lightbox.php:459
275
  msgid "Show title"
276
  msgstr ""
277
 
278
+ #: ../responsive-lightbox.php:460
279
  msgid "Allow resize big images"
280
  msgstr ""
281
 
282
+ #: ../responsive-lightbox.php:461
283
  msgid "Allow expand"
284
  msgstr ""
285
 
286
+ #: ../responsive-lightbox.php:462 ../responsive-lightbox.php:498
287
  msgid "Video width"
288
  msgstr ""
289
 
290
+ #: ../responsive-lightbox.php:463 ../responsive-lightbox.php:499
291
  msgid "Video height"
292
  msgstr ""
293
 
294
+ #: ../responsive-lightbox.php:464
295
  msgid "Theme"
296
  msgstr ""
297
 
298
+ #: ../responsive-lightbox.php:465
299
  msgid "Horizontal padding"
300
  msgstr ""
301
 
302
+ #: ../responsive-lightbox.php:466
303
  msgid "Hide Flash"
304
  msgstr ""
305
 
306
+ #: ../responsive-lightbox.php:467
307
  msgid "Flash Window Mode (wmode)"
308
  msgstr ""
309
 
310
+ #: ../responsive-lightbox.php:468
311
  msgid "Video autoplay"
312
  msgstr ""
313
 
314
+ #: ../responsive-lightbox.php:469 ../responsive-lightbox.php:475
315
  msgid "Modal"
316
  msgstr ""
317
 
318
+ #: ../responsive-lightbox.php:470
319
  msgid "Deeplinking"
320
  msgstr ""
321
 
322
+ #: ../responsive-lightbox.php:471
323
  msgid "Overlay gallery"
324
  msgstr ""
325
 
326
+ #: ../responsive-lightbox.php:472
327
  msgid "Keyboard shortcuts"
328
  msgstr ""
329
 
330
+ #: ../responsive-lightbox.php:473
331
  msgid "Social (Twitter, Facebook)"
332
  msgstr ""
333
 
334
+ #: ../responsive-lightbox.php:476
335
  msgid "Show overlay"
336
  msgstr ""
337
 
338
+ #: ../responsive-lightbox.php:477
339
  msgid "Show close button"
340
  msgstr ""
341
 
342
+ #: ../responsive-lightbox.php:478
343
  msgid "Enable escape button"
344
  msgstr ""
345
 
346
+ #: ../responsive-lightbox.php:479
347
  msgid "Hide on overlay click"
348
  msgstr ""
349
 
350
+ #: ../responsive-lightbox.php:480
351
  msgid "Hide on content click"
352
  msgstr ""
353
 
354
+ #: ../responsive-lightbox.php:481
355
  msgid "Cyclic"
356
  msgstr ""
357
 
358
+ #: ../responsive-lightbox.php:482
359
  msgid "Show nav arrows"
360
  msgstr ""
361
 
362
+ #: ../responsive-lightbox.php:483
363
  msgid "Auto scale"
364
  msgstr ""
365
 
366
+ #: ../responsive-lightbox.php:484
367
  msgid "Scrolling (in/out)"
368
  msgstr ""
369
 
370
+ #: ../responsive-lightbox.php:485
371
  msgid "Center on scroll"
372
  msgstr ""
373
 
374
+ #: ../responsive-lightbox.php:487
375
  msgid "Overlay opacity"
376
  msgstr ""
377
 
378
+ #: ../responsive-lightbox.php:488
379
  msgid "Overlay color"
380
  msgstr ""
381
 
382
+ #: ../responsive-lightbox.php:489
383
  msgid "Title show"
384
  msgstr ""
385
 
386
+ #: ../responsive-lightbox.php:490
387
  msgid "Title position"
388
  msgstr ""
389
 
390
+ #: ../responsive-lightbox.php:491
391
  msgid "Transition (in/out)"
392
  msgstr ""
393
 
394
+ #: ../responsive-lightbox.php:492
395
  msgid "Easings (in/out)"
396
  msgstr ""
397
 
398
+ #: ../responsive-lightbox.php:493
399
  msgid "Speed (in/out)"
400
  msgstr ""
401
 
402
+ #: ../responsive-lightbox.php:494
403
  msgid "Change speed"
404
  msgstr ""
405
 
406
+ #: ../responsive-lightbox.php:495
407
  msgid "Change fade"
408
  msgstr ""
409
 
410
+ #: ../responsive-lightbox.php:496
411
  msgid "Padding"
412
  msgstr ""
413
 
414
+ #: ../responsive-lightbox.php:497
415
  msgid "Margin"
416
  msgstr ""
417
 
418
+ #: ../responsive-lightbox.php:501
419
  msgid "Effect"
420
  msgstr ""
421
 
422
+ #: ../responsive-lightbox.php:502
423
  msgid "Click overlay to close"
424
  msgstr ""
425
 
426
+ #: ../responsive-lightbox.php:503
427
  msgid "Keyboard navigation"
428
  msgstr ""
429
 
430
+ #: ../responsive-lightbox.php:504
431
  msgid "Error message"
432
  msgstr ""
433
 
434
+ #: ../responsive-lightbox.php:507
435
  msgid "Preload next image"
436
  msgstr ""
437
 
438
+ #: ../responsive-lightbox.php:508
439
  msgid "Enable keyboard keys"
440
  msgstr ""
441
 
442
+ #: ../responsive-lightbox.php:509
443
  msgid "Quit after last image"
444
  msgstr ""
445
 
446
+ #: ../responsive-lightbox.php:510
447
  msgid "Quit when image is clicked"
448
  msgstr ""
449
 
450
+ #: ../responsive-lightbox.php:511
451
  msgid "Quit when anything but image is clicked"
452
  msgstr ""
453
 
454
+ #: ../responsive-lightbox.php:528
455
  msgid "Select your preffered ligthbox effect script."
456
  msgstr ""
457
 
458
+ #: ../responsive-lightbox.php:536
459
  msgid "Select to which rel selector lightbox effect will be applied to."
460
  msgstr ""
461
 
462
+ #: ../responsive-lightbox.php:553
463
  msgid "Enable triggering lightbox on custom jquery events."
464
  msgstr ""
465
 
466
+ #: ../responsive-lightbox.php:556
467
  msgid "Enter a space separated list of events."
468
  msgstr ""
469
 
470
+ #: ../responsive-lightbox.php:574
471
  msgid "Select where all the lightbox scripts should be placed."
472
  msgstr ""
473
 
474
+ #: ../responsive-lightbox.php:589
475
  msgid "Add lightbox to WordPress image galleries by default."
476
  msgstr ""
477
 
478
+ #: ../responsive-lightbox.php:606
479
  msgid ""
480
  "By default WP gallery links point to full size images only. Enable that to "
481
  "modify the image size of native WP gallery image links."
482
  msgstr ""
483
 
484
+ #: ../responsive-lightbox.php:614
485
  msgid "full"
486
  msgstr ""
487
 
488
+ #: ../responsive-lightbox.php:622
489
  msgid "Select image size for gallery image links."
490
  msgstr ""
491
 
492
+ #: ../responsive-lightbox.php:638
493
  msgid "Add lightbox to YouTube and Vimeo video links by default."
494
  msgstr ""
495
 
496
+ #: ../responsive-lightbox.php:653
497
  msgid "Add lightbox to WordPress image links by default."
498
  msgstr ""
499
 
500
+ #: ../responsive-lightbox.php:668
501
  msgid "Display single post images as a gallery."
502
  msgstr ""
503
 
504
+ #: ../responsive-lightbox.php:683
505
  msgid "Delete settings on plugin deactivation."
506
  msgstr ""
507
 
508
+ #: ../responsive-lightbox.php:698
509
  msgid "Select a method of applying a lightbox effect."
510
  msgstr ""
511
 
512
+ #: ../responsive-lightbox.php:713
513
  msgid ""
514
  "Disable if you don't want to top and bottom bars to be hidden after a period "
515
  "of time."
516
  msgstr ""
517
 
518
+ #: ../responsive-lightbox.php:716
519
  msgid ""
520
  "Enter the time after which the top and bottom bars will be hidden (when "
521
  "hiding is enabled)."
522
  msgstr ""
523
 
524
+ #: ../responsive-lightbox.php:725
525
  msgid "Enter the max video width in a lightbox."
526
  msgstr ""
527
 
528
+ #: ../responsive-lightbox.php:740
529
+ msgid "True will hide the close button on mobile devices."
530
+ msgstr ""
531
+
532
+ #: ../responsive-lightbox.php:755
533
  msgid ""
534
  "Enable this if you're having problems with navigation icons not visible on "
535
  "some devices."
536
  msgstr ""
537
 
538
+ #: ../responsive-lightbox.php:770
539
+ msgid "True will return to the first image after the last image is reached."
540
+ msgstr ""
541
+
542
+ #: ../responsive-lightbox.php:785
543
  msgid "Select animation speed for lightbox effect."
544
  msgstr ""
545
 
546
+ #: ../responsive-lightbox.php:800
547
  msgid "Display images as slideshow."
548
  msgstr ""
549
 
550
+ #: ../responsive-lightbox.php:803
551
  msgid "Enter time (in miliseconds)."
552
  msgstr ""
553
 
554
+ #: ../responsive-lightbox.php:819
555
  msgid "Automatically start slideshow."
556
  msgstr ""
557
 
558
+ #: ../responsive-lightbox.php:830
559
  msgid "Value between 0 and 100, 100 for no opacity."
560
  msgstr ""
561
 
562
+ #: ../responsive-lightbox.php:845
563
  msgid "Display image tiltle."
564
  msgstr ""
565
 
566
+ #: ../responsive-lightbox.php:860
567
  msgid "Resize the photos bigger than viewport."
568
  msgstr ""
569
 
570
+ #: ../responsive-lightbox.php:875
571
  msgid "Expands something."
572
  msgstr ""
573
 
574
+ #: ../responsive-lightbox.php:883 ../responsive-lightbox.php:891
575
  msgid "in pixels"
576
  msgstr ""
577
 
578
+ #: ../responsive-lightbox.php:906
579
  msgid "Select theme for lightbox effect."
580
  msgstr ""
581
 
582
+ #: ../responsive-lightbox.php:914
583
  msgid "Horizontal padding (in pixels)."
584
  msgstr ""
585
 
586
+ #: ../responsive-lightbox.php:929
587
  msgid ""
588
  "Hides all the flash object on a page. Enable this if flash appears over "
589
  "prettyPhoto."
590
  msgstr ""
591
 
592
+ #: ../responsive-lightbox.php:944
593
  msgid "Select flash window mode."
594
  msgstr ""
595
 
596
+ #: ../responsive-lightbox.php:959
597
  msgid "Automatically start videos."
598
  msgstr ""
599
 
600
+ #: ../responsive-lightbox.php:974
601
  msgid "If set to true, only the close button will close the window."
602
  msgstr ""
603
 
604
+ #: ../responsive-lightbox.php:989
605
  msgid "Allow prettyPhoto to update the url to enable deeplinking."
606
  msgstr ""
607
 
608
+ #: ../responsive-lightbox.php:1004
609
  msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
610
  msgstr ""
611
 
612
+ #: ../responsive-lightbox.php:1019
613
  msgid "Set to false if you open forms inside prettyPhoto."
614
  msgstr ""
615
 
616
+ #: ../responsive-lightbox.php:1034
617
  msgid "Display links to Facebook and Twitter."
618
  msgstr ""
619
 
620
+ #: ../responsive-lightbox.php:1049
621
  msgid "The transition type."
622
  msgstr ""
623
 
624
+ #: ../responsive-lightbox.php:1057
625
  msgid "Space between FancyBox wrapper and content."
626
  msgstr ""
627
 
628
+ #: ../responsive-lightbox.php:1065
629
  msgid "Space between viewport and FancyBox wrapper."
630
  msgstr ""
631
 
632
+ #: ../responsive-lightbox.php:1080
633
  msgid ""
634
+ "When true, \"overlayShow\" is set to true and \"hideOnOverlayClick\", "
635
  "\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set "
636
+ "to false."
637
  msgstr ""
638
 
639
+ #: ../responsive-lightbox.php:1095
640
  msgid "Toggle overlay."
641
  msgstr ""
642
 
643
+ #: ../responsive-lightbox.php:1110
644
  msgid "Toggle close button."
645
  msgstr ""
646
 
647
+ #: ../responsive-lightbox.php:1125
648
  msgid "Toggle if pressing Esc button closes FancyBox."
649
  msgstr ""
650
 
651
+ #: ../responsive-lightbox.php:1140
652
  msgid "Toggle if clicking the overlay should close FancyBox."
653
  msgstr ""
654
 
655
+ #: ../responsive-lightbox.php:1155
656
  msgid "Toggle if clicking the content should close FancyBox."
657
  msgstr ""
658
 
659
+ #: ../responsive-lightbox.php:1170
660
  msgid ""
661
  "When true, galleries will be cyclic, allowing you to keep pressing next/back."
662
  msgstr ""
663
 
664
+ #: ../responsive-lightbox.php:1185
665
  msgid "Toggle navigation arrows."
666
  msgstr ""
667
 
668
+ #: ../responsive-lightbox.php:1200
669
  msgid "If true, FancyBox is scaled to fit in viewport."
670
  msgstr ""
671
 
672
+ #: ../responsive-lightbox.php:1215
673
  msgid "Set the overflow CSS property to create or hide scrollbars."
674
  msgstr ""
675
 
676
+ #: ../responsive-lightbox.php:1230
677
  msgid "When true, FancyBox is centered while scrolling page."
678
  msgstr ""
679
 
680
+ #: ../responsive-lightbox.php:1245
681
  msgid "When true, transparency of content is changed for elastic transitions."
682
  msgstr ""
683
 
684
+ #: ../responsive-lightbox.php:1256
685
  msgid "Opacity of the overlay."
686
  msgstr ""
687
 
688
+ #: ../responsive-lightbox.php:1264
689
  msgid "Color of the overlay."
690
  msgstr ""
691
 
692
+ #: ../responsive-lightbox.php:1279
693
  msgid "Toggle title."
694
  msgstr ""
695
 
696
+ #: ../responsive-lightbox.php:1294
697
  msgid "The position of title."
698
  msgstr ""
699
 
700
+ #: ../responsive-lightbox.php:1309
701
  msgid "Easing used for elastic animations."
702
  msgstr ""
703
 
704
+ #: ../responsive-lightbox.php:1317
705
  msgid "Speed of the fade and elastic transitions, in milliseconds."
706
  msgstr ""
707
 
708
+ #: ../responsive-lightbox.php:1325
709
  msgid "Speed of resizing when changing gallery items, in milliseconds."
710
  msgstr ""
711
 
712
+ #: ../responsive-lightbox.php:1333
713
  msgid "Speed of the content fading while changing gallery items."
714
  msgstr ""
715
 
716
+ #: ../responsive-lightbox.php:1341
717
  msgid "Width of the video."
718
  msgstr ""
719
 
720
+ #: ../responsive-lightbox.php:1349
721
  msgid "Height of the video."
722
  msgstr ""
723
 
724
+ #: ../responsive-lightbox.php:1364
725
  msgid "The effect to use when showing the lightbox."
726
  msgstr ""
727
 
728
+ #: ../responsive-lightbox.php:1379
729
  msgid "Enable/Disable keyboard navigation (left/right/escape)."
730
  msgstr ""
731
 
732
+ #: ../responsive-lightbox.php:1394
733
  msgid "Eneble to close lightbox on overlay click."
734
  msgstr ""
735
 
736
+ #: ../responsive-lightbox.php:1402
737
  msgid "Error message if the content cannot be loaded."
738
  msgstr ""
739
 
740
+ #: ../responsive-lightbox.php:1410
741
  msgid "Animation speed."
742
  msgstr ""
743
 
744
+ #: ../responsive-lightbox.php:1425
745
  msgid "Silently preload the next image."
746
  msgstr ""
747
 
748
+ #: ../responsive-lightbox.php:1440
749
  msgid "Enable keyboard shortcuts (arrows Left/Right and Esc)."
750
  msgstr ""
751
 
752
+ #: ../responsive-lightbox.php:1455
753
  msgid "Quit after viewing the last image."
754
  msgstr ""
755
 
756
+ #: ../responsive-lightbox.php:1470
757
  msgid "Quit when the viewed image is clicked."
758
  msgstr ""
759
 
760
+ #: ../responsive-lightbox.php:1485
761
  msgid "Quit when anything but the viewed image is clicked."
762
  msgstr ""
763
 
764
+ #: ../responsive-lightbox.php:1715
765
  msgid ""
766
  "Changes were not saved because there was attempt to save settings of "
767
  "inactive script. The site has been reloaded to the proper script settings."
768
  msgstr ""
769
 
770
+ #: ../responsive-lightbox.php:1723
771
  msgid "Settings restored to defaults."
772
  msgstr ""
773
 
774
+ #: ../responsive-lightbox.php:1728
775
  msgid "Settings of SwipeBox script were restored to defaults."
776
  msgstr ""
777
 
778
+ #: ../responsive-lightbox.php:1732
779
  msgid "Settings of prettyPhoto script were restored to defaults."
780
  msgstr ""
781
 
782
+ #: ../responsive-lightbox.php:1736
783
  msgid "Settings of FancyBox script were restored to defaults."
784
  msgstr ""
785
 
786
+ #: ../responsive-lightbox.php:1740
787
  msgid "Settings of Nivo script were restored to defaults."
788
  msgstr ""
789
 
790
+ #: ../responsive-lightbox.php:1742
791
  msgid ""
792
  "Changes were not set to defaults because there was attempt to reset settings "
793
  "of inactive script. The site has been reloaded to the proper script settings."
794
  msgstr ""
795
 
796
+ #: ../responsive-lightbox.php:1754 ../responsive-lightbox.php:1763
797
+ #: ../responsive-lightbox.php:1776
798
  msgid "Responsive Lightbox"
799
  msgstr ""
800
 
801
+ #: ../responsive-lightbox.php:1778
802
  msgid "Need support?"
803
  msgstr ""
804
 
805
+ #: ../responsive-lightbox.php:1779
806
  msgid ""
807
  "If you are having problems with this plugin, please talk about them in the"
808
  msgstr ""
809
 
810
+ #: ../responsive-lightbox.php:1779
811
  msgid "Support forum"
812
  msgstr ""
813
 
814
+ #: ../responsive-lightbox.php:1781
815
  msgid "Do you like this plugin?"
816
  msgstr ""
817
 
818
+ #: ../responsive-lightbox.php:1788
819
  msgid "Rate it 5"
820
  msgstr ""
821
 
822
+ #: ../responsive-lightbox.php:1788
823
  msgid "on WordPress.org"
824
  msgstr ""
825
 
826
+ #: ../responsive-lightbox.php:1789
827
  msgid "Blog about it & link to the"
828
  msgstr ""
829
 
830
+ #: ../responsive-lightbox.php:1789
831
  msgid "plugin page"
832
  msgstr ""
833
 
834
+ #: ../responsive-lightbox.php:1790
835
  msgid "Check out our other"
836
  msgstr ""
837
 
838
+ #: ../responsive-lightbox.php:1790
839
  msgid "WordPress plugins"
840
  msgstr ""
841
 
842
+ #: ../responsive-lightbox.php:1810
843
  msgid "Reset to defaults"
844
  msgstr ""
845
 
846
+ #: ../responsive-lightbox.php:1830
847
  msgid "Are you sure you want to reset these settings to defaults?"
848
  msgstr ""
849
 
850
+ #: ../responsive-lightbox.php:1831
851
  msgid "Are you sure you want to reset scripts settings to defaults?"
852
  msgstr ""
853
 
854
+ #: ../responsive-lightbox.php:2057
855
  msgid "Support"
856
  msgstr ""
857
 
858
+ #: ../responsive-lightbox.php:2076
859
  msgid "Settings"
860
  msgstr ""
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: dfactory
3
  Donate link: http://www.dfactory.eu/
4
  Tags: gallery, images, lightbox, links, photos, template, theme, photo, image, picture, slideshow, modal, overlay, YouTube, Vimeo, video, videos
5
- Requires at least: 3.3
6
- Tested up to: 4.0.1
7
- Stable tag: 1.4.9
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -38,6 +38,7 @@ For more information, check out plugin page at [dFactory](http://www.dfactory.eu
38
  * Estonian - by Hugo Amtmann
39
  * French - by [Li-An](http://www.echodesplugins.li-an.fr/)
40
  * German - by [Andreas Reitberger](http://wdbase.de)
 
41
  * Japanese - by stranger-jp
42
  * Persian - by [Ali Mirzaei](http://alimir.ir/)
43
  * Polish - by Bartosz Arendt
@@ -64,6 +65,14 @@ No questions yet.
64
 
65
  == Changelog ==
66
 
 
 
 
 
 
 
 
 
67
  = 1.4.9 =
68
  * New: Hungarian translation, thanks to [Zsolt Boda](http://cmfrt.net/)
69
  * Tweak: Remove direct http calls from Javascript to improve https protocol compatibility
@@ -176,6 +185,7 @@ Initial release
176
 
177
  == Upgrade Notice ==
178
 
179
- = 1.4.9 =
180
- * New: Hungarian translation, thanks to [Zsolt Boda](http://cmfrt.net/)
181
- * Tweak: Remove direct http calls from Javascript to improve https protocole compatibility
 
2
  Contributors: dfactory
3
  Donate link: http://www.dfactory.eu/
4
  Tags: gallery, images, lightbox, links, photos, template, theme, photo, image, picture, slideshow, modal, overlay, YouTube, Vimeo, video, videos
5
+ Requires at least: 3.6
6
+ Tested up to: 4.2.2
7
+ Stable tag: 1.4.11
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
38
  * Estonian - by Hugo Amtmann
39
  * French - by [Li-An](http://www.echodesplugins.li-an.fr/)
40
  * German - by [Andreas Reitberger](http://wdbase.de)
41
+ * Hungarian - by [Zsolt Boda](http://cmfrt.net/)
42
  * Japanese - by stranger-jp
43
  * Persian - by [Ali Mirzaei](http://alimir.ir/)
44
  * Polish - by Bartosz Arendt
65
 
66
  == Changelog ==
67
 
68
+ = 1.4.11 =
69
+ * Tweak: Swipebox script updated to 1.3.0.2
70
+ * Tweak: prettyPhoto CSS tweaks
71
+ * Tweak: fancyBox IE patch
72
+
73
+ = 1.4.10 =
74
+ * Tweak: Image Lightbox updated
75
+
76
  = 1.4.9 =
77
  * New: Hungarian translation, thanks to [Zsolt Boda](http://cmfrt.net/)
78
  * Tweak: Remove direct http calls from Javascript to improve https protocol compatibility
185
 
186
  == Upgrade Notice ==
187
 
188
+ = 1.4.11 =
189
+ * Tweak: Swipebox script updated to 1.3.0.2
190
+ * Tweak: prettyPhoto CSS tweaks
191
+ * Tweak: fancyBox IE patch
responsive-lightbox.php CHANGED
@@ -1,9 +1,8 @@
1
  <?php
2
-
3
  /*
4
  Plugin Name: Responsive Lightbox
5
  Description: Responsive Lightbox allows users to view larger versions of images and galleries in a lightbox (overlay) effect optimized for mobile devices.
6
- Version: 1.4.9
7
  Author: dFactory
8
  Author URI: http://www.dfactory.eu/
9
  Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
@@ -13,7 +12,7 @@ Text Domain: responsive-lightbox
13
  Domain Path: /languages
14
 
15
  Responsive Lightbox
16
- Copyright (C) 2013, Digital Factory - info@digitalfactory.pl
17
 
18
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
19
 
@@ -22,2264 +21,2078 @@ The above copyright notice and this permission notice shall be included in all c
22
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
  */
24
 
25
-
26
- class Responsive_Lightbox
27
- {
28
- private $defaults = array(
29
- 'settings' => array(
30
- 'script' => 'swipebox',
31
- 'selector' => 'lightbox',
32
- 'galleries' => true,
33
- 'enable_gallery_image_size' => false,
34
- 'gallery_image_size' => 'full',
35
- 'videos' => true,
36
- 'image_links' => true,
37
- 'images_as_gallery' => false,
38
- 'deactivation_delete' => false,
39
- 'loading_place' => 'header',
40
- 'enable_custom_events' => false,
41
- 'custom_events' => 'ajaxComplete'
42
- ),
43
- 'configuration' => array(
44
- 'prettyphoto' => array(
45
- 'animation_speed' => 'normal',
46
- 'slideshow' => false,
47
- 'slideshow_delay' => 5000,
48
- 'slideshow_autoplay' => false,
49
- 'opacity' => 75,
50
- 'show_title' => true,
51
- 'allow_resize' => true,
52
- 'allow_expand' => true,
53
- 'width' => 1080,
54
- 'height' => 720,
55
- 'separator' => '/',
56
- 'theme' => 'pp_default',
57
- 'horizontal_padding' => 20,
58
- 'hide_flash' => false,
59
- 'wmode' => 'opaque',
60
- 'video_autoplay' => false,
61
- 'modal' => false,
62
- 'deeplinking' => false,
63
- 'overlay_gallery' => true,
64
- 'keyboard_shortcuts' => true,
65
- 'social' => false
66
- ),
67
- 'swipebox' => array(
68
- 'animation' => 'css',
69
- 'force_png_icons' => false,
70
- 'hide_bars' => true,
71
- 'hide_bars_delay' => 5000,
72
- 'video_max_width' => 1080
73
- ),
74
- 'fancybox' => array(
75
- 'modal' => false,
76
- 'show_overlay' => true,
77
- 'show_close_button' => true,
78
- 'enable_escape_button' => true,
79
- 'hide_on_overlay_click' => true,
80
- 'hide_on_content_click' => false,
81
- 'cyclic' => false,
82
- 'show_nav_arrows' => true,
83
- 'auto_scale' => true,
84
- 'scrolling' => 'yes',
85
- 'center_on_scroll' => true,
86
- 'opacity' => true,
87
- 'overlay_opacity' => 70,
88
- 'overlay_color' => '#666',
89
- 'title_show' => true,
90
- 'title_position' => 'outside',
91
- 'transitions' => 'fade',
92
- 'easings' => 'swing',
93
- 'speeds' => 300,
94
- 'change_speed' => 300,
95
- 'change_fade' => 100,
96
- 'padding' => 5,
97
- 'margin' => 5,
98
- 'video_width' => 1080,
99
- 'video_height' => 720
100
- ),
101
- 'nivo' => array(
102
- 'effect' => 'fade',
103
- 'click_overlay_to_close' => true,
104
- 'keyboard_nav' => true,
105
- 'error_message' => 'The requested content cannot be loaded. Please try again later.'
106
- ),
107
- 'imagelightbox' => array(
108
- 'animation_speed' => 250,
109
- 'preload_next' => true,
110
- 'enable_keyboard' => true,
111
- 'quit_on_end' => false,
112
- 'quit_on_image_click' => false,
113
- 'quit_on_document_click' => true
114
- )
115
- ),
116
- 'version' => '1.4.9'
117
- );
118
- private $scripts = array();
119
- private $options = array();
120
- private $tabs = array();
121
- private $choices = array();
122
- private $loading_places = array();
123
- private $gallery_no = 0;
124
-
125
-
126
- public function __construct()
127
- {
128
- register_activation_hook(__FILE__, array(&$this, 'multisite_activation'));
129
- register_deactivation_hook(__FILE__, array(&$this, 'multisite_deactivation'));
130
-
131
- //changes from older versions
132
- $db_version = get_option('responsive_lightbox_version');
133
-
134
- if (version_compare(($db_version === FALSE ? '1.0.0' : $db_version), '1.0.5', '<')) {
135
- if (($array = get_option('rl_settings')) !== FALSE) {
136
- update_option('responsive_lightbox_settings', $array);
137
- delete_option('rl_settings');
138
- }
139
-
140
- if (($array = get_option('rl_configuration')) !== FALSE) {
141
- update_option('responsive_lightbox_configuration', $array);
142
- delete_option('rl_configuration');
143
- }
144
- }
145
-
146
- //update plugin version
147
- update_option('responsive_lightbox_version', $this->defaults['version'], '', 'no');
148
-
149
- $this->options['settings'] = array_merge($this->defaults['settings'], (($array = get_option('responsive_lightbox_settings')) === FALSE ? array() : $array));
150
-
151
- //for multi arrays we have to merge them separately
152
- $db_conf_opts = (($base = get_option('responsive_lightbox_configuration')) === FALSE ? array() : $base);
153
-
154
- foreach ($this->defaults['configuration'] as $script => $settings) {
155
- $this->options['configuration'][$script] = array_merge($settings, (isset($db_conf_opts[$script]) ? $db_conf_opts[$script] : array()));
156
- }
157
-
158
- //actions
159
- add_action('plugins_loaded', array(&$this, 'load_textdomain'));
160
- add_action('plugins_loaded', array(&$this, 'load_defaults'));
161
- add_action('admin_init', array(&$this, 'register_settings'));
162
- add_action('admin_menu', array(&$this, 'admin_menu_options'));
163
- add_action('wp_enqueue_scripts', array(&$this, 'front_scripts_styles'));
164
- add_action('admin_enqueue_scripts', array(&$this, 'admin_scripts_styles'));
165
-
166
- //filters
167
- add_filter('plugin_action_links', array(&$this, 'plugin_settings_link'), 10, 2);
168
- add_filter('plugin_row_meta', array(&$this, 'plugin_extend_links'), 10, 2);
169
- add_filter('post_gallery', array(&$this, 'gallery_attributes'), 1000);
170
-
171
- if ($this->options['settings']['galleries'] === true)
172
- add_filter('wp_get_attachment_link', array(&$this, 'add_gallery_lightbox_selector'), 1000, 6);
173
-
174
- if ($this->options['settings']['enable_gallery_image_size'] === true)
175
- add_filter('wp_get_attachment_link', array(&$this, 'gallery_attachment_link_filter'), 1001, 6);
176
-
177
- if ($this->options['settings']['videos'] === true)
178
- add_filter('the_content', array(&$this, 'add_videos_lightbox_selector'));
179
-
180
- if ($this->options['settings']['image_links'] === true || $this->options['settings']['images_as_gallery'] === true)
181
- add_filter('the_content', array(&$this, 'add_links_lightbox_selector'));
182
- }
183
-
184
-
185
- public function add_videos_lightbox_selector($content)
186
- {
187
- preg_match_all('/<a(.*?)href=(?:\'|")((?:(?:http|https):\/\/)?(?:www\.)?((youtube\.com\/watch\?v=[a-z0-9_\-]+)|(vimeo\.com\/[0-9]{8,})))(?:\'|")(.*?)>/i', $content, $links);
188
-
189
- if (isset($links[0])) {
190
- foreach ($links[0] as $id => $link) {
191
- if (preg_match('/<a.*?rel=(?:\'|")(.*?)(?:\'|").*?>/', $link, $result) === 1) {
192
- if (isset($result[1])) {
193
- $new_rels = array();
194
- $rels = explode(' ', $result[1]);
195
-
196
- if (in_array($this->options['settings']['selector'], $rels, TRUE)) {
197
- foreach ($rels as $no => $rel) {
198
- if ($rel !== $this->options['settings']['selector'])
199
- $new_rels[] = $rel;
200
- }
201
-
202
- $content = str_replace($link, preg_replace('/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . (!empty($new_rel) ? simplode(' ', $new_rels) . ' ' : '') . $this->options['settings']['selector'] . '-video-' . $id . '"', $link), $content);
203
- } else
204
- $content = str_replace($link, preg_replace('/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . ($result[1] !== '' ? $result[1] . ' ' : '') . $this->options['settings']['selector'] . '-video-' . $id . '"', $link), $content);
205
- }
206
- } else
207
- $content = str_replace($link, '<a' . $links[1][$id] . 'href="' . $links[2][$id] . '"' . $links[6][$id] . ' rel="' . $this->options['settings']['selector'] . '-video-' . $id . '">', $content);
208
- }
209
- }
210
-
211
- return $content;
212
- }
213
-
214
-
215
- public function add_links_lightbox_selector($content)
216
- {
217
- preg_match_all('/<a(.*?)href=(?:\'|")([^<]*?).(bmp|gif|jpeg|jpg|png)(?:\'|")(.*?)>/i', $content, $links);
218
-
219
- if (isset($links[0])) {
220
- if ($this->options['settings']['images_as_gallery'] === TRUE)
221
- $rel_hash = '[gallery-' . wp_generate_password(4, FALSE, FALSE) . ']';
222
-
223
- foreach ($links[0] as $id => $link) {
224
- if (preg_match('/<a.*?rel=(?:\'|")(.*?)(?:\'|").*?>/', $link, $result) === 1) {
225
- if ($this->options['settings']['images_as_gallery'] === TRUE) {
226
- $content = str_replace($link, preg_replace('/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . $this->options['settings']['selector'] . $rel_hash . '"' . ($this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : ''), $link), $content);
227
- } else {
228
- if (isset($result[1])) {
229
- $new_rels = array();
230
- $rels = explode(' ', $result[1]);
231
-
232
- if (in_array($this->options['settings']['selector'], $rels, TRUE)) {
233
- foreach ($rels as $no => $rel) {
234
- if ($rel !== $this->options['settings']['selector'])
235
- $new_rels[] = $rel;
236
- }
237
-
238
- $content = str_replace($link, preg_replace('/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . (!empty($new_rels) ? implode(' ', $new_rels) . ' ' : '') . $this->options['settings']['selector'] . '-' . $id . '"' . ($this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : ''), $link), $content);
239
- } else
240
- $content = str_replace($link, preg_replace('/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . ($result[1] !== '' ? $result[1] . ' ' : '') . $this->options['settings']['selector'] . '-' . $id . '"' . ($this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : ''), $link), $content);
241
- }
242
- }
243
- } else
244
- $content = str_replace($link, '<a' . $links[1][$id] . 'href="' . $links[2][$id] . '.' . $links[3][$id] . '"' . $links[4][$id] . ' rel="' . $this->options['settings']['selector'] . ($this->options['settings']['images_as_gallery'] === TRUE ? $rel_hash : '-' . $id) . '"' . ($this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '') . '>', $content);
245
- }
246
- }
247
-
248
- return $content;
249
- }
250
-
251
-
252
- public function gallery_attributes($style)
253
- {
254
- ++$this->gallery_no;
255
-
256
- return $style;
257
- }
258
-
259
-
260
- public function add_gallery_lightbox_selector($link, $id, $size, $permalink, $icon, $text)
261
- {
262
- $link = (preg_match('/<a.*? rel=("|\').*?("|\')>/', $link) === 1 ? preg_replace('/(<a.*? rel=(?:"|\').*?)((?:"|\').*?>)/', '$1 ' . $this->options['settings']['selector'] . '[gallery-' . $this->gallery_no . ']' . '$2', $link) : preg_replace('/(<a.*?)>/', '$1 rel="' . $this->options['settings']['selector'] . '[gallery-' . $this->gallery_no . ']' . '">', $link));
263
-
264
- return (preg_match('/<a.*? href=("|\').*?("|\')>/', $link) === 1 ? preg_replace('/(<a.*? href=(?:"|\')).*?((?:"|\').*?>)/', '$1' . wp_get_attachment_url($id) . '$2', $link) : preg_replace('/(<a.*?)>/', '$1 href="' . wp_get_attachment_url($id) . '">', $link));
265
- }
266
-
267
-
268
- public function load_defaults()
269
- {
270
- $this->scripts = array(
271
- 'prettyphoto' => array(
272
- 'name' => __('prettyPhoto', 'responsive-lightbox'),
273
- 'animation_speeds' => array(
274
- 'slow' => __('slow', 'responsive-lightbox'),
275
- 'normal' => __('normal', 'responsive-lightbox'),
276
- 'fast' => __('fast', 'responsive-lightbox')
277
- ),
278
- 'themes' => array(
279
- 'pp_default' => __('default', 'responsive-lightbox'),
280
- 'light_rounded' => __('light rounded', 'responsive-lightbox'),
281
- 'dark_rounded' => __('dark rounded', 'responsive-lightbox'),
282
- 'light_square' => __('light square', 'responsive-lightbox'),
283
- 'dark_square' => __('dark square', 'responsive-lightbox'),
284
- 'facebook' => __('facebook', 'responsive-lightbox')
285
- ),
286
- 'wmodes' => array(
287
- 'window' => __('window', 'responsive-lightbox'),
288
- 'transparent' => __('transparent', 'responsive-lightbox'),
289
- 'opaque' => __('opaque', 'responsive-lightbox'),
290
- 'direct' => __('direct', 'responsive-lightbox'),
291
- 'gpu' => __('gpu', 'responsive-lightbox')
292
- )
293
- ),
294
- 'swipebox' => array(
295
- 'name' => __('SwipeBox', 'responsive-lightbox'),
296
- 'animations' => array(
297
- 'css' => __('CSS', 'responsive-lightbox'),
298
- 'jquery' => __('jQuery', 'responsive-lightbox')
299
- )
300
- ),
301
- 'fancybox' => array(
302
- 'name' => __('FancyBox', 'responsive-lightbox'),
303
- 'transitions' => array(
304
- 'elastic' => __('elastic', 'responsive-lightbox'),
305
- 'fade' => __('fade', 'responsive-lightbox'),
306
- 'none' => __('none', 'responsive-lightbox')
307
- ),
308
- 'scrollings' => array(
309
- 'auto' => __('auto', 'responsive-lightbox'),
310
- 'yes' => __('yes', 'responsive-lightbox'),
311
- 'no' => __('no', 'responsive-lightbox')
312
- ),
313
- 'easings' => array(
314
- 'swing' => __('swing', 'responsive-lightbox'),
315
- 'linear' => __('linear', 'responsive-lightbox')
316
- ),
317
- 'positions' => array(
318
- 'outside' => __('outside', 'responsive-lightbox'),
319
- 'inside' => __('inside', 'responsive-lightbox'),
320
- 'over' => __('over', 'responsive-lightbox')
321
- )
322
- ),
323
- 'nivo' => array(
324
- 'name' => __('Nivo Lightbox', 'responsive-lightbox'),
325
- 'effects' => array(
326
- 'fade' => __('fade', 'responsive-lightbox'),
327
- 'fadeScale' => __('fade scale', 'responsive-lightbox'),
328
- 'slideLeft' => __('slide left', 'responsive-lightbox'),
329
- 'slideRight' => __('slide right', 'responsive-lightbox'),
330
- 'slideUp' => __('slide up', 'responsive-lightbox'),
331
- 'slideDown' => __('slide down', 'responsive-lightbox'),
332
- 'fall' => __('fall', 'responsive-lightbox')
333
- )
334
- ),
335
- 'imagelightbox' => array(
336
- 'name' => __('Image Lightbox', 'responsive-lightbox')
337
- )
338
- );
339
-
340
- $this->choices = array(
341
- 'yes' => __('Enable', 'responsive-lightbox'),
342
- 'no' => __('Disable', 'responsive-lightbox')
343
- );
344
-
345
- $this->loading_places = array(
346
- 'header' => __('Header', 'responsive-lightbox'),
347
- 'footer' => __('Footer', 'responsive-lightbox')
348
- );
349
-
350
- $this->tabs = array(
351
- 'general-settings' => array(
352
- 'name' => __('General settings', 'responsive-lightbox'),
353
- 'key' => 'responsive_lightbox_settings',
354
- 'submit' => 'save_rl_settings',
355
- 'reset' => 'reset_rl_settings',
356
- ),
357
- 'configuration' => array(
358
- 'name' => __('Lightbox settings', 'responsive-lightbox'),
359
- 'key' => 'responsive_lightbox_configuration',
360
- 'submit' => 'save_rl_configuration',
361
- 'reset' => 'reset_rl_configuration'
362
- )
363
- );
364
- }
365
-
366
-
367
- public function multisite_activation($networkwide)
368
- {
369
- if (is_multisite() && $networkwide) {
370
- global $wpdb;
371
-
372
- $activated_blogs = array();
373
- $current_blog_id = $wpdb->blogid;
374
- $blogs_ids = $wpdb->get_col($wpdb->prepare('SELECT blog_id FROM ' . $wpdb->blogs, ''));
375
-
376
- foreach ($blogs_ids as $blog_id) {
377
- switch_to_blog($blog_id);
378
- $this->activate_single();
379
- $activated_blogs[] = (int)$blog_id;
380
- }
381
-
382
- switch_to_blog($current_blog_id);
383
- update_site_option('responsive_lightbox_activated_blogs', $activated_blogs, array());
384
- } else
385
- $this->activate_single();
386
- }
387
-
388
-
389
- public function activate_single()
390
- {
391
- add_option('responsive_lightbox_settings', $this->defaults['settings'], '', 'no');
392
- add_option('responsive_lightbox_configuration', $this->defaults['configuration'], '', 'no');
393
- add_option('responsive_lightbox_version', $this->defaults['version'], '', 'no');
394
- }
395
-
396
-
397
- public function multisite_deactivation($networkwide)
398
- {
399
- if (is_multisite() && $networkwide) {
400
- global $wpdb;
401
-
402
- $current_blog_id = $wpdb->blogid;
403
- $blogs_ids = $wpdb->get_col($wpdb->prepare('SELECT blog_id FROM ' . $wpdb->blogs, ''));
404
-
405
- if (($activated_blogs = get_site_option('responsive_lightbox_activated_blogs', FALSE, FALSE)) === FALSE)
406
- $activated_blogs = array();
407
-
408
- foreach ($blogs_ids as $blog_id) {
409
- switch_to_blog($blog_id);
410
- $this->deactivate_single(TRUE);
411
-
412
- if (in_array((int)$blog_id, $activated_blogs, TRUE))
413
- unset($activated_blogs[array_search($blog_id, $activated_blogs)]);
414
- }
415
-
416
- switch_to_blog($current_blog_id);
417
- update_site_option('responsive_lightbox_activated_blogs', $activated_blogs);
418
- } else
419
- $this->deactivate_single();
420
- }
421
-
422
-
423
- public function deactivate_single($multi = FALSE)
424
- {
425
- if ($multi === TRUE) {
426
- $options = get_option('responsive_lightbox_settings');
427
- $check = $options['deactivation_delete'];
428
- } else
429
- $check = $this->options['settings']['deactivation_delete'];
430
-
431
- if ($check === TRUE) {
432
- delete_option('responsive_lightbox_settings');
433
- delete_option('responsive_lightbox_configuration');
434
- delete_option('responsive_lightbox_version');
435
- }
436
- }
437
-
438
-
439
- public function register_settings()
440
- {
441
- register_setting('responsive_lightbox_settings', 'responsive_lightbox_settings', array(&$this, 'validate_options'));
442
-
443
- //general settings
444
- add_settings_section('responsive_lightbox_settings', __('General settings', 'responsive-lightbox'), '', 'responsive_lightbox_settings');
445
- add_settings_field('rl_script', __('Lightbox script', 'responsive-lightbox'), array(&$this, 'rl_script'), 'responsive_lightbox_settings', 'responsive_lightbox_settings');
446
- add_settings_field('rl_selector', __('Selector', 'responsive-lightbox'), array(&$this, 'rl_selector'), 'responsive_lightbox_settings', 'responsive_lightbox_settings');
447
- add_settings_field('rl_galleries', __('Galleries', 'responsive-lightbox'), array(&$this, 'rl_galleries'), 'responsive_lightbox_settings', 'responsive_lightbox_settings');
448
- add_settings_field('rl_enable_gallery_image_size', __('Gallery image size', 'responsive-lightbox'), array(&$this, 'rl_enable_gallery_image_size'), 'responsive_lightbox_settings', 'responsive_lightbox_settings');
449
- add_settings_field('rl_videos', __('Video links', 'responsive-lightbox'), array(&$this, 'rl_videos'), 'responsive_lightbox_settings', 'responsive_lightbox_settings');
450
- add_settings_field('rl_image_links', __('Image links', 'responsive-lightbox'), array(&$this, 'rl_image_links'), 'responsive_lightbox_settings', 'responsive_lightbox_settings');
451
- add_settings_field('rl_images_as_gallery', __('Single images as gallery', 'responsive-lightbox'), array(&$this, 'rl_images_as_gallery'), 'responsive_lightbox_settings', 'responsive_lightbox_settings');
452
- add_settings_field('rl_enable_custom_events', __('Custom events', 'responsive-lightbox'), array(&$this, 'rl_enable_custom_events'), 'responsive_lightbox_settings', 'responsive_lightbox_settings');
453
- add_settings_field('rl_loading_place', __('Loading place', 'responsive-lightbox'), array(&$this, 'rl_loading_place'), 'responsive_lightbox_settings', 'responsive_lightbox_settings');
454
- add_settings_field('rl_deactivation_delete', __('Deactivation', 'responsive-lightbox'), array(&$this, 'rl_deactivation_delete'), 'responsive_lightbox_settings', 'responsive_lightbox_settings');
455
-
456
- //configuration
457
- register_setting('responsive_lightbox_configuration', 'responsive_lightbox_configuration', array(&$this, 'validate_options'));
458
- add_settings_section('responsive_lightbox_configuration', __('Lightbox settings', 'responsive-lightbox') . ': ' . $this->scripts[$this->options['settings']['script']]['name'], '', 'responsive_lightbox_configuration');
459
-
460
- if ($this->options['settings']['script'] === 'swipebox') {
461
- add_settings_field('rl_sb_animation', __('Animation type', 'responsive-lightbox'), array(&$this, 'rl_sb_animation'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
462
- add_settings_field('rl_sb_force_png_icons', __('Force PNG icons', 'responsive-lightbox'), array(&$this, 'rl_sb_force_png_icons'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
463
- add_settings_field('rl_sb_hide_bars', __('Top and bottom bars', 'responsive-lightbox'), array(&$this, 'rl_sb_hide_bars'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
464
- add_settings_field('rl_sb_video_max_width', __('Video max width', 'responsive-lightbox'), array(&$this, 'rl_sb_video_max_width'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
465
- } elseif ($this->options['settings']['script'] === 'prettyphoto') {
466
- add_settings_field('rl_pp_animation_speed', __('Animation speed', 'responsive-lightbox'), array(&$this, 'rl_pp_animation_speed'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
467
- add_settings_field('rl_pp_slideshow', __('Slideshow', 'responsive-lightbox'), array(&$this, 'rl_pp_slideshow'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
468
- add_settings_field('rl_pp_slideshow_autoplay', __('Slideshow autoplay', 'responsive-lightbox'), array(&$this, 'rl_pp_slideshow_autoplay'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
469
- add_settings_field('rl_pp_opacity', __('Opacity', 'responsive-lightbox'), array(&$this, 'rl_pp_opacity'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
470
- add_settings_field('rl_pp_title', __('Show title', 'responsive-lightbox'), array(&$this, 'rl_pp_title'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
471
- add_settings_field('rl_pp_allow_resize', __('Allow resize big images', 'responsive-lightbox'), array(&$this, 'rl_pp_allow_resize'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
472
- add_settings_field('rl_pp_allow_expand', __('Allow expand', 'responsive-lightbox'), array(&$this, 'rl_pp_allow_expand'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
473
- add_settings_field('rl_pp_width', __('Video width', 'responsive-lightbox'), array(&$this, 'rl_pp_width'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
474
- add_settings_field('rl_pp_height', __('Video height', 'responsive-lightbox'), array(&$this, 'rl_pp_height'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
475
- add_settings_field('rl_pp_theme', __('Theme', 'responsive-lightbox'), array(&$this, 'rl_pp_theme'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
476
- add_settings_field('rl_pp_horizontal_padding', __('Horizontal padding', 'responsive-lightbox'), array(&$this, 'rl_pp_horizontal_padding'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
477
- add_settings_field('rl_pp_hide_flash', __('Hide Flash', 'responsive-lightbox'), array(&$this, 'rl_pp_hide_flash'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
478
- add_settings_field('rl_pp_wmode', __('Flash Window Mode (wmode)', 'responsive-lightbox'), array(&$this, 'rl_pp_wmode'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
479
- add_settings_field('rl_pp_video_autoplay', __('Video autoplay', 'responsive-lightbox'), array(&$this, 'rl_pp_video_autoplay'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
480
- add_settings_field('rl_pp_modal', __('Modal', 'responsive-lightbox'), array(&$this, 'rl_pp_modal'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
481
- add_settings_field('rl_pp_deeplinking', __('Deeplinking', 'responsive-lightbox'), array(&$this, 'rl_pp_deeplinking'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
482
- add_settings_field('rl_pp_overlay_gallery', __('Overlay gallery', 'responsive-lightbox'), array(&$this, 'rl_pp_overlay_gallery'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
483
- add_settings_field('rl_pp_keyboard_shortcuts', __('Keyboard shortcuts', 'responsive-lightbox'), array(&$this, 'rl_pp_keyboard_shortcuts'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
484
- add_settings_field('rl_pp_social', __('Social (Twitter, Facebook)', 'responsive-lightbox'), array(&$this, 'rl_pp_social'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
485
- } elseif ($this->options['settings']['script'] === 'fancybox') {
486
- add_settings_field('rl_fb_modal', __('Modal', 'responsive-lightbox'), array(&$this, 'rl_fb_modal'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
487
- add_settings_field('rl_fb_show_overlay', __('Show overlay', 'responsive-lightbox'), array(&$this, 'rl_fb_show_overlay'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
488
- add_settings_field('rl_fb_show_close_button', __('Show close button', 'responsive-lightbox'), array(&$this, 'rl_fb_show_close_button'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
489
- add_settings_field('rl_fb_enable_escape_button', __('Enable escape button', 'responsive-lightbox'), array(&$this, 'rl_fb_enable_escape_button'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
490
- add_settings_field('rl_fb_hide_on_overlay_click', __('Hide on overlay click', 'responsive-lightbox'), array(&$this, 'rl_fb_hide_on_overlay_click'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
491
- add_settings_field('rl_fb_hide_on_content_click', __('Hide on content click', 'responsive-lightbox'), array(&$this, 'rl_fb_hide_on_content_click'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
492
- add_settings_field('rl_fb_cyclic', __('Cyclic', 'responsive-lightbox'), array(&$this, 'rl_fb_cyclic'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
493
- add_settings_field('rl_fb_show_nav_arrows', __('Show nav arrows', 'responsive-lightbox'), array(&$this, 'rl_fb_show_nav_arrows'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
494
- add_settings_field('rl_fb_auto_scale', __('Auto scale', 'responsive-lightbox'), array(&$this, 'rl_fb_auto_scale'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
495
- add_settings_field('rl_fb_scrolling', __('Scrolling (in/out)', 'responsive-lightbox'), array(&$this, 'rl_fb_scrolling'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
496
- add_settings_field('rl_fb_center_on_scroll', __('Center on scroll', 'responsive-lightbox'), array(&$this, 'rl_fb_center_on_scroll'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
497
- add_settings_field('rl_fb_opacity', __('Opacity', 'responsive-lightbox'), array(&$this, 'rl_fb_opacity'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
498
- add_settings_field('rl_fb_overlay_opacity', __('Overlay opacity', 'responsive-lightbox'), array(&$this, 'rl_fb_overlay_opacity'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
499
- add_settings_field('rl_fb_overlay_color', __('Overlay color', 'responsive-lightbox'), array(&$this, 'rl_fb_overlay_color'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
500
- add_settings_field('rl_fb_title_show', __('Title show', 'responsive-lightbox'), array(&$this, 'rl_fb_title_show'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
501
- add_settings_field('rl_fb_title_position', __('Title position', 'responsive-lightbox'), array(&$this, 'rl_fb_title_position'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
502
- add_settings_field('rl_fb_transitions', __('Transition (in/out)', 'responsive-lightbox'), array(&$this, 'rl_fb_transitions'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
503
- add_settings_field('rl_fb_easings', __('Easings (in/out)', 'responsive-lightbox'), array(&$this, 'rl_fb_easings'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
504
- add_settings_field('rl_fb_speeds', __('Speed (in/out)', 'responsive-lightbox'), array(&$this, 'rl_fb_speeds'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
505
- add_settings_field('rl_fb_change_speed', __('Change speed', 'responsive-lightbox'), array(&$this, 'rl_fb_change_speed'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
506
- add_settings_field('rl_fb_change_fade', __('Change fade', 'responsive-lightbox'), array(&$this, 'rl_fb_change_fade'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
507
- add_settings_field('rl_fb_padding', __('Padding', 'responsive-lightbox'), array(&$this, 'rl_fb_padding'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
508
- add_settings_field('rl_fb_margin', __('Margin', 'responsive-lightbox'), array(&$this, 'rl_fb_margin'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
509
- add_settings_field('rl_fb_video_width', __('Video width', 'responsive-lightbox'), array(&$this, 'rl_fb_video_width'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
510
- add_settings_field('rl_fb_video_height', __('Video height', 'responsive-lightbox'), array(&$this, 'rl_fb_video_height'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
511
- } elseif ($this->options['settings']['script'] === 'nivo') {
512
- add_settings_field('rl_nv_effect', __('Effect', 'responsive-lightbox'), array(&$this, 'rl_nv_effect'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
513
- add_settings_field('rl_nv_click_overlay_to_close', __('Click overlay to close', 'responsive-lightbox'), array(&$this, 'rl_nv_click_overlay_to_close'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
514
- add_settings_field('rl_nv_keyboard_nav', __('Keyboard navigation', 'responsive-lightbox'), array(&$this, 'rl_nv_keyboard_nav'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
515
- add_settings_field('rl_nv_error_message', __('Error message', 'responsive-lightbox'), array(&$this, 'rl_nv_error_message'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
516
- } elseif ($this->options['settings']['script'] === 'imagelightbox') {
517
- add_settings_field('rl_il_animation_speed', __('Animation speed', 'responsive-lightbox'), array(&$this, 'rl_il_animation_speed'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
518
- add_settings_field('rl_il_preload_next', __('Preload next image', 'responsive-lightbox'), array(&$this, 'rl_il_preload_next'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
519
- add_settings_field('rl_il_enable_keyboard', __('Enable keyboard keys', 'responsive-lightbox'), array(&$this, 'rl_il_enable_keyboard'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
520
- add_settings_field('rl_il_quit_on_end', __('Quit after last image', 'responsive-lightbox'), array(&$this, 'rl_il_quit_on_end'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
521
- add_settings_field('rl_il_quit_on_image_click', __('Quit when image is clicked', 'responsive-lightbox'), array(&$this, 'rl_il_quit_on_image_click'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
522
- add_settings_field('rl_il_quit_on_document_click', __('Quit when anything but image is clicked', 'responsive-lightbox'), array(&$this, 'rl_il_quit_on_document_click'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
523
- }
524
- }
525
-
526
-
527
- public function rl_script()
528
- {
529
- echo '
530
  <div id="rl_script" class="wplikebtns">';
531
 
532
- foreach ($this->scripts as $val => $trans) {
533
- $val = esc_attr($val);
534
 
535
- echo '
536
- <input id="rl-script-' . $val . '" type="radio" name="responsive_lightbox_settings[script]" value="' . $val . '" ' . checked($val, $this->options['settings']['script'], false) . ' />
537
- <label for="rl-script-' . $val . '">' . esc_html($trans['name']) . '</label>';
538
- }
539
 
540
- echo '
541
- <p class="description">' . __('Select your preffered ligthbox effect script.', 'responsive-lightbox') . '</p>
542
  </div>';
543
- }
544
-
545
 
546
- public function rl_selector()
547
- {
548
- echo '
549
  <div id="rl_selector">
550
- <input type="text" value="' . esc_attr($this->options['settings']['selector']) . '" name="responsive_lightbox_settings[selector]" />
551
- <p class="description">' . __('Select to which rel selector lightbox effect will be applied to.', 'responsive-lightbox') . '</p>
552
  </div>';
553
- }
554
 
555
-
556
- public function rl_enable_custom_events()
557
- {
558
- echo '
559
  <div id="rl_enable_custom_events" class="wplikebtns">';
560
 
561
- foreach ($this->choices as $val => $trans) {
562
- $val = esc_attr($val);
563
 
564
- echo '
565
- <input id="rl-enable-custom-events-' . $val . '" type="radio" name="responsive_lightbox_settings[enable_custom_events]" value="' . $val . '" ' . checked(($val === 'yes' ? true : false), $this->options['settings']['enable_custom_events'], false) . ' />
566
- <label for="rl-enable-custom-events-' . $val . '">' . esc_html($trans) . '</label>';
567
- }
568
 
569
- echo '
570
- <p class="description">' . __('Enable triggering lightbox on custom jquery events.', 'responsive-lightbox') . '</p>
571
  <div id="rl_custom_events"' . ($this->options['settings']['enable_custom_events'] === false ? ' style="display: none;"' : '') . '>
572
- <input type="text" name="responsive_lightbox_settings[custom_events]" value="' . esc_attr($this->options['settings']['custom_events']) . '" />
573
- <p class="description">' . __('Enter a space separated list of events.', 'responsive-lightbox') . '</p>
574
  </div>
575
  </div>';
576
- }
577
-
578
 
579
- public function rl_loading_place()
580
- {
581
- echo '
582
  <div id="rl_loading_place" class="wplikebtns">';
583
 
584
- foreach ($this->loading_places as $val => $trans) {
585
- $val = esc_attr($val);
586
 
587
- echo '
588
- <input id="rl-loading-place-' . $val . '" type="radio" name="responsive_lightbox_settings[loading_place]" value="' . $val . '" ' . checked($val, $this->options['settings']['loading_place'], false) . ' />
589
- <label for="rl-loading-place-' . $val . '">' . esc_html($trans) . '</label>';
590
- }
591
 
592
- echo '
593
- <p class="description">' . __('Select where all the lightbox scripts should be placed.', 'responsive-lightbox') . '</p>
594
  </div>';
595
- }
596
-
597
 
598
- public function rl_galleries()
599
- {
600
- echo '
601
  <div id="rl_galleries" class="wplikebtns">';
602
 
603
- foreach ($this->choices as $val => $trans) {
604
- echo '
605
- <input id="rl-galleries-' . $val . '" type="radio" name="responsive_lightbox_settings[galleries]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['settings']['galleries'], FALSE) . ' />
606
  <label for="rl-galleries-' . $val . '">' . $trans . '</label>';
607
- }
608
 
609
- echo '
610
- <p class="description">' . __('Add lightbox to WordPress image galleries by default.', 'responsive-lightbox') . '</p>
611
  </div>';
612
- }
613
 
614
-
615
- public function rl_enable_gallery_image_size()
616
- {
617
- echo '
618
  <div id="rl_enable_gallery_image_size" class="wplikebtns">';
619
 
620
- foreach ($this->choices as $val => $trans) {
621
- $val = esc_attr($val);
622
-
623
- echo '
624
- <input id="rl-enable-gallery-image-size-' . $val . '" type="radio" name="responsive_lightbox_settings[enable_gallery_image_size]" value="' . $val . '" ' . checked(($val === 'yes' ? true : false), $this->options['settings']['enable_gallery_image_size'], false) . ' />
625
- <label for="rl-enable-gallery-image-size-' . $val . '">' . esc_html($trans) . '</label>';
626
- }
627
 
628
- echo '
629
- <p class="description">' . __('By default WP gallery links point to full size images only. Enable that to modify the image size of native WP gallery image links.', 'responsive-lightbox') . '</p>';
 
 
630
 
631
- // get available image sizes
632
- $image_sizes = get_intermediate_image_sizes();
633
 
634
- // print_r($image_sizes);
 
635
 
636
- echo '
637
  <div id="rl_gallery_image_size"' . ($this->options['settings']['enable_gallery_image_size'] === false ? ' style="display: none;"' : '') . '>
638
- <select name="responsive_lightbox_settings[gallery_image_size]" value="' . esc_attr($this->options['settings']['gallery_image_size']) . '" />
639
- <option value="full" ' . selected($this->options['settings']['gallery_image_size'], 'full', false) . '>' . esc_attr(__('full', 'responsive-lightbox')) . '</option>';
640
 
641
- foreach ($image_sizes as $image_size) {
642
- echo '<option value="' . esc_attr($image_size) . '" ' . selected($this->options['settings']['gallery_image_size'], esc_attr($image_size), false) . '>' . esc_attr($image_size) . '</option>';
643
- }
644
 
645
- echo '
646
  </select>
647
- <p class="description">' . __('Select image size for gallery image links.', 'responsive-lightbox') . '</p>
648
  </div>
649
  </div>';
650
- }
651
-
652
 
653
- public function rl_videos()
654
- {
655
- echo '
656
  <div id="rl_videos" class="wplikebtns">';
657
 
658
- foreach ($this->choices as $val => $trans) {
659
- echo '
660
- <input id="rl-videos-' . $val . '" type="radio" name="responsive_lightbox_settings[videos]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['settings']['videos'], FALSE) . ' />
661
  <label for="rl-videos-' . $val . '">' . $trans . '</label>';
662
- }
663
 
664
- echo '
665
- <p class="description">' . __('Add lightbox to YouTube and Vimeo video links by default.', 'responsive-lightbox') . '</p>
666
  </div>';
667
- }
668
 
669
-
670
- public function rl_image_links()
671
- {
672
- echo '
673
  <div id="rl_image_links" class="wplikebtns">';
674
 
675
- foreach ($this->choices as $val => $trans) {
676
- echo '
677
- <input id="rl-image-links-' . $val . '" type="radio" name="responsive_lightbox_settings[image_links]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['settings']['image_links'], FALSE) . ' />
678
  <label for="rl-image-links-' . $val . '">' . $trans . '</label>';
679
- }
680
 
681
- echo '
682
- <p class="description">' . __('Add lightbox to WordPress image links by default.', 'responsive-lightbox') . '</p>
683
  </div>';
684
- }
685
-
686
 
687
- public function rl_images_as_gallery()
688
- {
689
- echo '
690
  <div id="rl_images_as_gallery" class="wplikebtns">';
691
 
692
- foreach ($this->choices as $val => $trans) {
693
- echo '
694
- <input id="rl-images-as-gallery-' . $val . '" type="radio" name="responsive_lightbox_settings[images_as_gallery]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['settings']['images_as_gallery'], FALSE) . ' />
695
  <label for="rl-images-as-gallery-' . $val . '">' . $trans . '</label>';
696
- }
697
 
698
- echo '
699
- <p class="description">' . __('Display single post images as a gallery.', 'responsive-lightbox') . '</p>
700
  </div>';
701
- }
702
 
703
-
704
- public function rl_deactivation_delete()
705
- {
706
- echo '
707
  <div id="rl_deactivation_delete" class="wplikebtns">';
708
 
709
- foreach ($this->choices as $val => $trans) {
710
- echo '
711
- <input id="rl-deactivation-delete-' . $val . '" type="radio" name="responsive_lightbox_settings[deactivation_delete]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['settings']['deactivation_delete'], FALSE) . ' />
712
  <label for="rl-deactivation-delete-' . $val . '">' . $trans . '</label>';
713
- }
714
 
715
- echo '
716
- <p class="description">' . __('Delete settings on plugin deactivation.', 'responsive-lightbox') . '</p>
717
  </div>';
718
- }
719
-
720
 
721
- public function rl_sb_animation()
722
- {
723
- echo '
724
  <div id="rl_sb_animation" class="wplikebtns">';
725
 
726
- foreach ($this->scripts['swipebox']['animations'] as $val => $trans) {
727
- echo '
728
- <input id="rl-sb-animation-' . $val . '" type="radio" name="responsive_lightbox_configuration[swipebox][animation]" value="' . esc_attr($val) . '" ' . checked($val, $this->options['configuration']['swipebox']['animation'], FALSE) . ' />
729
  <label for="rl-sb-animation-' . $val . '">' . $trans . '</label>';
730
- }
731
 
732
- echo '
733
- <p class="description">' . __('Select a method of applying a lightbox effect.', 'responsive-lightbox') . '</p>
734
  </div>';
735
- }
736
-
737
 
738
- public function rl_sb_hide_bars()
739
- {
740
- echo '
741
  <div id="rl_sb_hide_bars" class="wplikebtns">';
742
 
743
- foreach ($this->choices as $val => $trans) {
744
- echo '
745
- <input id="rl-sb-hide-bars-' . $val . '" type="radio" name="responsive_lightbox_configuration[swipebox][hide_bars]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['swipebox']['hide_bars'], FALSE) . ' />
746
  <label for="rl-sb-hide-bars-' . $val . '">' . $trans . '</label>';
747
- }
748
 
749
- echo '
750
- <p class="description">' . __('Disable if you don\'t want to top and bottom bars to be hidden after a period of time.', 'responsive-lightbox') . '</p>
751
- <div id="rl_sb_hide_bars_delay"' . ($this->options['configuration']['swipebox']['hide_bars'] === FALSE ? ' style="display: none;"' : '') . '>
752
- <input type="text" name="responsive_lightbox_configuration[swipebox][hide_bars_delay]" value="' . esc_attr($this->options['configuration']['swipebox']['hide_bars_delay']) . '" /> <span>ms</span>
753
- <p class="description">' . __('Enter the time after which the top and bottom bars will be hidden (when hiding is enabled).', 'responsive-lightbox') . '</p>
754
  </div>
755
  </div>';
756
- }
757
 
758
-
759
- public function rl_sb_video_max_width()
760
- {
761
- echo '
762
  <div id="rl_sb_video_max_width">
763
- <input type="text" name="responsive_lightbox_configuration[swipebox][video_max_width]" value="' . esc_attr($this->options['configuration']['swipebox']['video_max_width']) . '" /> <span>px</span>
764
- <p class="description">' . __('Enter the max video width in a lightbox.', 'responsive-lightbox') . '</p>
765
  </div>';
766
- }
 
 
 
 
767
 
 
 
 
 
 
768
 
769
- public function rl_sb_force_png_icons()
770
- {
771
- echo '
 
 
 
 
772
  <div id="rl_sb_force_png_icons" class="wplikebtns">';
773
 
774
- foreach ($this->choices as $val => $trans) {
775
- echo '
776
- <input id="rl-sb-force-png-icons-' . $val . '" type="radio" name="responsive_lightbox_configuration[swipebox][force_png_icons]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['swipebox']['force_png_icons'], FALSE) . ' />
777
  <label for="rl-sb-force-png-icons-' . $val . '">' . $trans . '</label>';
778
- }
779
 
780
- echo '
781
- <p class="description">' . __('Enable this if you\'re having problems with navigation icons not visible on some devices.', 'responsive-lightbox') . '</p>
782
  </div>';
783
- }
 
 
 
 
784
 
 
 
 
 
 
 
 
 
 
 
785
 
786
- public function rl_pp_animation_speed()
787
- {
788
- echo '
789
  <div id="rl_pp_animation_speed" class="wplikebtns">';
790
 
791
- foreach ($this->scripts['prettyphoto']['animation_speeds'] as $val => $trans) {
792
- echo '
793
- <input id="rl-pp-animation-speed-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][animation_speed]" value="' . esc_attr($val) . '" ' . checked($val, $this->options['configuration']['prettyphoto']['animation_speed'], FALSE) . ' />
794
  <label for="rl-pp-animation-speed-' . $val . '">' . $trans . '</label>';
795
- }
796
 
797
- echo '
798
- <p class="description">' . __('Select animation speed for lightbox effect.', 'responsive-lightbox') . '</p>
799
  </div>';
800
- }
801
 
802
-
803
- public function rl_pp_slideshow()
804
- {
805
- echo '
806
  <div id="rl_pp_slideshow" class="wplikebtns">';
807
 
808
- foreach ($this->choices as $val => $trans) {
809
- echo '
810
- <input id="rl-pp-slideshow-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][slideshow]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['slideshow'], FALSE) . ' />
811
  <label for="rl-pp-slideshow-' . $val . '">' . $trans . '</label>';
812
- }
813
 
814
- echo '
815
- <p class="description">' . __('Display images as slideshow.', 'responsive-lightbox') . '</p>
816
- <div id="rl_pp_slideshow_delay"' . ($this->options['configuration']['prettyphoto']['slideshow'] === FALSE ? ' style="display: none;"' : '') . '>
817
- <input type="text" name="responsive_lightbox_configuration[prettyphoto][slideshow_delay]" value="' . esc_attr($this->options['configuration']['prettyphoto']['slideshow_delay']) . '" /> <span>ms</span>
818
- <p class="description">' . __('Enter time (in miliseconds).', 'responsive-lightbox') . '</p>
819
  </div>
820
  </div>';
821
- }
822
-
823
 
824
- public function rl_pp_slideshow_autoplay()
825
- {
826
- echo '
827
  <div id="rl_pp_slideshow_autoplay" class="wplikebtns">';
828
 
829
- foreach ($this->choices as $val => $trans) {
830
- echo '
831
- <input id="rl-pp-slideshow-autoplay-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][slideshow_autoplay]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['slideshow_autoplay'], FALSE) . ' />
832
  <label for="rl-pp-slideshow-autoplay-' . $val . '">' . $trans . '</label>';
833
- }
834
 
835
- echo '
836
- <p class="description">' . __('Automatically start slideshow.', 'responsive-lightbox') . '</p>
837
  </div>';
838
- }
839
-
840
 
841
- public function rl_pp_opacity()
842
- {
843
- echo '
844
  <div id="rl_pp_opacity">
845
- <input type="text" id="rl_pp_opacity_input" class="hide-if-js" name="responsive_lightbox_configuration[prettyphoto][opacity]" value="' . esc_attr($this->options['configuration']['prettyphoto']['opacity']) . '" />
846
  <div class="wplike-slider">
847
- <span class="left hide-if-no-js">0</span><span class="middle" id="rl_pp_opacity_span" title="' . esc_attr($this->options['configuration']['prettyphoto']['opacity']) . '"></span><span class="right hide-if-no-js">100</span>
848
  </div>
849
- <p class="description">' . __('Value between 0 and 100, 100 for no opacity.', 'responsive-lightbox') . '</p>
850
  </div>';
851
- }
852
 
853
-
854
- public function rl_pp_title()
855
- {
856
- echo '
857
  <div id="rl_pp_title" class="wplikebtns">';
858
 
859
- foreach ($this->choices as $val => $trans) {
860
- echo '
861
- <input id="rl-pp-show-title-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][show_title]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['show_title'], FALSE) . ' />
862
  <label for="rl-pp-show-title-' . $val . '">' . $trans . '</label>';
863
- }
864
 
865
- echo '
866
- <p class="description">' . __('Display image tiltle.', 'responsive-lightbox') . '</p>
867
  </div>';
868
- }
869
-
870
 
871
- public function rl_pp_allow_resize()
872
- {
873
- echo '
874
  <div id="rl_pp_allow_resize" class="wplikebtns">';
875
 
876
- foreach ($this->choices as $val => $trans) {
877
- echo '
878
- <input id="rl-pp-allow-resize-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][allow_resize]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['allow_resize'], FALSE) . ' />
879
  <label for="rl-pp-allow-resize-' . $val . '">' . $trans . '</label>';
880
- }
881
 
882
- echo '
883
- <p class="description">' . __('Resize the photos bigger than viewport.', 'responsive-lightbox') . '</p>
884
  </div>';
885
- }
886
 
887
-
888
- public function rl_pp_allow_expand()
889
- {
890
- echo '
891
  <div id="rl_pp_allow_expand" class="wplikebtns">';
892
 
893
- foreach ($this->choices as $val => $trans) {
894
- echo '
895
- <input id="rl-pp-allow-expand-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][allow_expand]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['allow_expand'], FALSE) . ' />
896
  <label for="rl-pp-allow-expand-' . $val . '">' . $trans . '</label>';
897
- }
898
 
899
- echo '
900
- <p class="description">' . __('Expands something.', 'responsive-lightbox') . '</p>
901
  </div>';
902
- }
903
-
904
 
905
- public function rl_pp_width()
906
- {
907
- echo '
908
  <div id="rl_pp_width">
909
- <input type="text" name="responsive_lightbox_configuration[prettyphoto][width]" value="' . esc_attr($this->options['configuration']['prettyphoto']['width']) . '" /> <span>px</span>
910
- <p class="description">' . __('in pixels', 'responsive-lightbox') . '</p>
911
  </div>';
912
- }
913
-
914
 
915
- public function rl_pp_height()
916
- {
917
- echo '
918
  <div id="rl_pp_height">
919
- <input type="text" name="responsive_lightbox_configuration[prettyphoto][height]" value="' . esc_attr($this->options['configuration']['prettyphoto']['height']) . '" /> <span>px</span>
920
- <p class="description">' . __('in pixels', 'responsive-lightbox') . '</p>
921
  </div>';
922
- }
923
 
924
-
925
- public function rl_pp_theme()
926
- {
927
- echo '
928
  <div id="rl_pp_theme" class="wplikebtns">';
929
 
930
- foreach ($this->scripts['prettyphoto']['themes'] as $val => $trans) {
931
- echo '
932
- <input id="rl-pp-theme-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][theme]" value="' . esc_attr($val) . '" ' . checked($val, $this->options['configuration']['prettyphoto']['theme'], FALSE) . ' />
933
  <label for="rl-pp-theme-' . $val . '">' . $trans . '</label>';
934
- }
935
 
936
- echo '
937
- <p class="description">' . __('Select theme for lightbox effect.', 'responsive-lightbox') . '</p>
938
  </div>';
939
- }
940
-
941
 
942
- public function rl_pp_horizontal_padding()
943
- {
944
- echo '
945
  <div id="rl_pp_horizontal_padding">
946
- <input type="text" name="responsive_lightbox_configuration[prettyphoto][horizontal_padding]" value="' . esc_attr($this->options['configuration']['prettyphoto']['horizontal_padding']) . '" /> <span>px</span>
947
- <p class="description">' . __('Horizontal padding (in pixels).', 'responsive-lightbox') . '</p>
948
  </div>';
949
- }
950
 
951
-
952
- public function rl_pp_hide_flash()
953
- {
954
- echo '
955
  <div id="rl_pp_hide_flash" class="wplikebtns">';
956
 
957
- foreach ($this->choices as $val => $trans) {
958
- echo '
959
- <input id="rl-pp-hide-flash-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][hide_flash]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['hide_flash'], FALSE) . ' />
960
  <label for="rl-pp-hide-flash-' . $val . '">' . $trans . '</label>';
961
- }
962
 
963
- echo '
964
- <p class="description">' . __('Hides all the flash object on a page. Enable this if flash appears over prettyPhoto.', 'responsive-lightbox') . '</p>
965
  </div>';
966
- }
967
-
968
 
969
- public function rl_pp_wmode()
970
- {
971
- echo '
972
  <div id="rl_pp_wmode" class="wplikebtns">';
973
 
974
- foreach ($this->scripts['prettyphoto']['wmodes'] as $val => $trans) {
975
- echo '
976
- <input id="rl-pp-wmode-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][wmode]" value="' . esc_attr($val) . '" ' . checked($val, $this->options['configuration']['prettyphoto']['wmode'], FALSE) . ' />
977
  <label for="rl-pp-wmode-' . $val . '">' . $trans . '</label>';
978
- }
979
 
980
- echo '
981
- <p class="description">' . __('Select flash window mode.', 'responsive-lightbox') . '</p>
982
  </div>';
983
- }
984
-
985
 
986
- public function rl_pp_video_autoplay()
987
- {
988
- echo '
989
  <div id="rl_pp_video_autoplay" class="wplikebtns">';
990
 
991
- foreach ($this->choices as $val => $trans) {
992
- echo '
993
- <input id="rl-pp-video-autoplay-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][video_autoplay]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['video_autoplay'], FALSE) . ' />
994
  <label for="rl-pp-video-autoplay-' . $val . '">' . $trans . '</label>';
995
- }
996
 
997
- echo '
998
- <p class="description">' . __('Automatically start videos.', 'responsive-lightbox') . '</p>
999
  </div>';
1000
- }
1001
 
1002
-
1003
- public function rl_pp_modal()
1004
- {
1005
- echo '
1006
  <div id="rl_pp_modal" class="wplikebtns">';
1007
 
1008
- foreach ($this->choices as $val => $trans) {
1009
- echo '
1010
- <input id="rl-pp-modal-close-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][modal]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['modal'], FALSE) . ' />
1011
  <label for="rl-pp-modal-close-' . $val . '">' . $trans . '</label>';
1012
- }
1013
 
1014
- echo '
1015
- <p class="description">' . __('If set to true, only the close button will close the window.', 'responsive-lightbox') . '</p>
1016
  </div>';
1017
- }
1018
-
1019
 
1020
- public function rl_pp_deeplinking()
1021
- {
1022
- echo '
1023
  <div id="rl_pp_deeplinking" class="wplikebtns">';
1024
 
1025
- foreach ($this->choices as $val => $trans) {
1026
- echo '
1027
- <input id="rl-pp-deeplinking-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][deeplinking]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['deeplinking'], FALSE) . ' />
1028
  <label for="rl-pp-deeplinking-' . $val . '">' . $trans . '</label>';
1029
- }
1030
 
1031
- echo '
1032
- <p class="description">' . __('Allow prettyPhoto to update the url to enable deeplinking.', 'responsive-lightbox') . '</p>
1033
  </div>';
1034
- }
1035
 
1036
-
1037
- public function rl_pp_overlay_gallery()
1038
- {
1039
- echo '
1040
  <div id="rl_pp_overlay_gallery" class="wplikebtns">';
1041
 
1042
- foreach ($this->choices as $val => $trans) {
1043
- echo '
1044
- <input id="rl-pp-overlay-gallery-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][overlay_gallery]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['overlay_gallery'], FALSE) . ' />
1045
  <label for="rl-pp-overlay-gallery-' . $val . '">' . $trans . '</label>';
1046
- }
1047
 
1048
- echo '
1049
- <p class="description">' . __('If enabled, a gallery will overlay the fullscreen image on mouse over.', 'responsive-lightbox') . '</p>
1050
  </div>';
1051
- }
1052
-
1053
 
1054
- public function rl_pp_keyboard_shortcuts()
1055
- {
1056
- echo '
1057
  <div id="rl_pp_keyboard_shortcuts" class="wplikebtns">';
1058
 
1059
- foreach ($this->choices as $val => $trans) {
1060
- echo '
1061
- <input id="rl-pp-keyboard-shortcuts-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][keyboard_shortcuts]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['keyboard_shortcuts'], FALSE) . ' />
1062
  <label for="rl-pp-keyboard-shortcuts-' . $val . '">' . $trans . '</label>';
1063
- }
1064
 
1065
- echo '
1066
- <p class="description">' . __('Set to false if you open forms inside prettyPhoto.', 'responsive-lightbox') . '</p>
1067
  </div>';
1068
- }
1069
-
1070
 
1071
- public function rl_pp_social()
1072
- {
1073
- echo '
1074
  <div id="rl_pp_social" class="wplikebtns">';
1075
 
1076
- foreach ($this->choices as $val => $trans) {
1077
- echo '
1078
- <input id="rl-pp-social-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][social]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['social'], FALSE) . ' />
1079
  <label for="rl-pp-social-' . $val . '">' . $trans . '</label>';
1080
- }
1081
 
1082
- echo '
1083
- <p class="description">' . __('Display links to Facebook and Twitter.', 'responsive-lightbox') . '</p>
1084
  </div>';
1085
- }
1086
 
1087
-
1088
- public function rl_fb_transitions()
1089
- {
1090
- echo '
1091
  <div id="rl_fb_transition" class="wplikebtns">';
1092
 
1093
- foreach ($this->scripts['fancybox']['transitions'] as $val => $trans) {
1094
- echo '
1095
- <input id="rl-fb-transitions-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][transitions]" value="' . esc_attr($val) . '" ' . checked($val, $this->options['configuration']['fancybox']['transitions'], FALSE) . ' />
1096
  <label for="rl-fb-transitions-' . $val . '">' . $trans . '</label>';
1097
- }
1098
 
1099
- echo '
1100
- <p class="description">' . __('The transition type.', 'responsive-lightbox') . '</p>
1101
  </div>';
1102
- }
1103
-
1104
 
1105
- public function rl_fb_padding()
1106
- {
1107
- echo '
1108
  <div id="rl_fb_padding">
1109
- <input type="text" name="responsive_lightbox_configuration[fancybox][padding]" value="' . esc_attr($this->options['configuration']['fancybox']['padding']) . '" /> <span>px</span>
1110
- <p class="description">' . __('Space between FancyBox wrapper and content.', 'responsive-lightbox') . '</p>
1111
  </div>';
1112
- }
1113
 
1114
-
1115
- public function rl_fb_margin()
1116
- {
1117
- echo '
1118
  <div id="rl_fb_margin">
1119
- <input type="text" name="responsive_lightbox_configuration[fancybox][margin]" value="' . esc_attr($this->options['configuration']['fancybox']['margin']) . '" /> <span>px</span>
1120
- <p class="description">' . __('Space between viewport and FancyBox wrapper.', 'responsive-lightbox') . '</p>
1121
  </div>';
1122
- }
1123
-
1124
 
1125
- public function rl_fb_modal()
1126
- {
1127
- echo '
1128
  <div id="rl_fb_modal" class="wplikebtns">';
1129
 
1130
- foreach ($this->choices as $val => $trans) {
1131
- echo '
1132
- <input id="rl-fb-modal-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][modal]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['modal'], FALSE) . ' />
1133
  <label for="rl-fb-modal-' . $val . '">' . $trans . '</label>';
1134
- }
1135
 
1136
- echo '
1137
- <p class="description">' . __('When true, "overlayShow" is set to TRUE and "hideOnOverlayClick", "hideOnContentClick", "enableEscapeButton", "showCloseButton" are set to FALSE.', 'responsive-lightbox') . '</p>
1138
  </div>';
1139
- }
1140
-
1141
 
1142
- public function rl_fb_show_overlay()
1143
- {
1144
- echo '
1145
  <div id="rl_fb_show_overlay" class="wplikebtns">';
1146
 
1147
- foreach ($this->choices as $val => $trans) {
1148
- echo '
1149
- <input id="rl-fb-show-overlay-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][show_overlay]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['show_overlay'], FALSE) . ' ' . disabled($this->options['configuration']['fancybox']['modal'], TRUE, FALSE) . ' />
1150
  <label for="rl-fb-show-overlay-' . $val . '">' . $trans . '</label>';
1151
- }
1152
 
1153
- echo '
1154
- <p class="description">' . __('Toggle overlay.', 'responsive-lightbox') . '</p>
1155
  </div>';
1156
- }
1157
 
1158
-
1159
- public function rl_fb_show_close_button()
1160
- {
1161
- echo '
1162
  <div id="rl_fb_show_close_button" class="wplikebtns">';
1163
 
1164
- foreach ($this->choices as $val => $trans) {
1165
- echo '
1166
- <input id="rl-fb-show-close-button-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][show_close_button]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['show_close_button'], FALSE) . ' ' . disabled($this->options['configuration']['fancybox']['modal'], TRUE, FALSE) . ' />
1167
  <label for="rl-fb-show-close-button-' . $val . '">' . $trans . '</label>';
1168
- }
1169
 
1170
- echo '
1171
- <p class="description">' . __('Toggle close button.', 'responsive-lightbox') . '</p>
1172
  </div>';
1173
- }
1174
-
1175
 
1176
- public function rl_fb_enable_escape_button()
1177
- {
1178
- echo '
1179
  <div id="rl_fb_enable_escape_button" class="wplikebtns">';
1180
 
1181
- foreach ($this->choices as $val => $trans) {
1182
- echo '
1183
- <input id="rl-fb-enable-escape-button-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][enable_escape_button]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['enable_escape_button'], FALSE) . ' ' . disabled($this->options['configuration']['fancybox']['modal'], TRUE, FALSE) . ' />
1184
  <label for="rl-fb-enable-escape-button-' . $val . '">' . $trans . '</label>';
1185
- }
1186
 
1187
- echo '
1188
- <p class="description">' . __('Toggle if pressing Esc button closes FancyBox.', 'responsive-lightbox') . '</p>
1189
  </div>';
1190
- }
1191
-
1192
 
1193
- public function rl_fb_hide_on_overlay_click()
1194
- {
1195
- echo '
1196
  <div id="rl_fb_hide_on_overlay_click" class="wplikebtns">';
1197
 
1198
- foreach ($this->choices as $val => $trans) {
1199
- echo '
1200
- <input id="rl-fb-hide-on-overlay-click-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][hide_on_overlay_click]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['hide_on_overlay_click'], FALSE) . ' ' . disabled($this->options['configuration']['fancybox']['modal'], TRUE, FALSE) . ' />
1201
  <label for="rl-fb-hide-on-overlay-click-' . $val . '">' . $trans . '</label>';
1202
- }
1203
 
1204
- echo '
1205
- <p class="description">' . __('Toggle if clicking the overlay should close FancyBox.', 'responsive-lightbox') . '</p>
1206
  </div>';
1207
- }
1208
 
1209
-
1210
- public function rl_fb_hide_on_content_click()
1211
- {
1212
- echo '
1213
  <div id="rl_fb_hide_on_content_click" class="wplikebtns">';
1214
 
1215
- foreach ($this->choices as $val => $trans) {
1216
- echo '
1217
- <input id="rl-fb-hide-on-content-click-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][hide_on_content_click]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['hide_on_content_click'], FALSE) . ' ' . disabled($this->options['configuration']['fancybox']['modal'], TRUE, FALSE) . ' />
1218
  <label for="rl-fb-hide-on-content-click-' . $val . '">' . $trans . '</label>';
1219
- }
1220
 
1221
- echo '
1222
- <p class="description">' . __('Toggle if clicking the content should close FancyBox.', 'responsive-lightbox') . '</p>
1223
  </div>';
1224
- }
1225
-
1226
 
1227
- public function rl_fb_cyclic()
1228
- {
1229
- echo '
1230
  <div id="rl_fb_cyclic" class="wplikebtns">';
1231
 
1232
- foreach ($this->choices as $val => $trans) {
1233
- echo '
1234
- <input id="rl-fb-cyclic-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][cyclic]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['cyclic'], FALSE) . ' />
1235
  <label for="rl-fb-cyclic-' . $val . '">' . $trans . '</label>';
1236
- }
1237
 
1238
- echo '
1239
- <p class="description">' . __('When true, galleries will be cyclic, allowing you to keep pressing next/back.', 'responsive-lightbox') . '</p>
1240
  </div>';
1241
- }
1242
-
1243
 
1244
- public function rl_fb_show_nav_arrows()
1245
- {
1246
- echo '
1247
  <div id="rl_fb_show_nav_arrows" class="wplikebtns">';
1248
 
1249
- foreach ($this->choices as $val => $trans) {
1250
- echo '
1251
- <input id="rl-fb-show-nav-arrows-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][show_nav_arrows]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['show_nav_arrows'], FALSE) . ' />
1252
  <label for="rl-fb-show-nav-arrows-' . $val . '">' . $trans . '</label>';
1253
- }
1254
 
1255
- echo '
1256
- <p class="description">' . __('Toggle navigation arrows.', 'responsive-lightbox') . '</p>
1257
  </div>';
1258
- }
1259
 
1260
-
1261
- public function rl_fb_auto_scale()
1262
- {
1263
- echo '
1264
  <div id="rl_fb_auto_scale" class="wplikebtns">';
1265
 
1266
- foreach ($this->choices as $val => $trans) {
1267
- echo '
1268
- <input id="rl-fb-auto-scale-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][auto_scale]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['auto_scale'], FALSE) . ' />
1269
  <label for="rl-fb-auto-scale-' . $val . '">' . $trans . '</label>';
1270
- }
1271
 
1272
- echo '
1273
- <p class="description">' . __('If true, FancyBox is scaled to fit in viewport.', 'responsive-lightbox') . '</p>
1274
  </div>';
1275
- }
1276
-
1277
 
1278
- public function rl_fb_scrolling()
1279
- {
1280
- echo '
1281
  <div id="rl_fb_scrolling" class="wplikebtns">';
1282
 
1283
- foreach ($this->scripts['fancybox']['scrollings'] as $val => $trans) {
1284
- echo '
1285
- <input id="rl-fb-scrolling-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][scrolling]" value="' . esc_attr($val) . '" ' . checked($val, $this->options['configuration']['fancybox']['scrolling'], FALSE) . ' />
1286
  <label for="rl-fb-scrolling-' . $val . '">' . $trans . '</label>';
1287
- }
1288
 
1289
- echo '
1290
- <p class="description">' . __('Set the overflow CSS property to create or hide scrollbars.', 'responsive-lightbox') . '</p>
1291
  </div>';
1292
- }
1293
 
1294
-
1295
- public function rl_fb_center_on_scroll()
1296
- {
1297
- echo '
1298
  <div id="rl_fb_center_on_scroll" class="wplikebtns">';
1299
 
1300
- foreach ($this->choices as $val => $trans) {
1301
- echo '
1302
- <input id="rl-fb-center-on-scroll-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][center_on_scroll]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['center_on_scroll'], FALSE) . ' />
1303
  <label for="rl-fb-center-on-scroll-' . $val . '">' . $trans . '</label>';
1304
- }
1305
 
1306
- echo '
1307
- <p class="description">' . __('When true, FancyBox is centered while scrolling page.', 'responsive-lightbox') . '</p>
1308
  </div>';
1309
- }
1310
-
1311
 
1312
- public function rl_fb_opacity()
1313
- {
1314
- echo '
1315
  <div id="rl_fb_opacity" class="wplikebtns">';
1316
 
1317
- foreach ($this->choices as $val => $trans) {
1318
- echo '
1319
- <input id="rl-fb-opacity-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][opacity]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['opacity'], FALSE) . ' />
1320
  <label for="rl-fb-opacity-' . $val . '">' . $trans . '</label>';
1321
- }
1322
 
1323
- echo '
1324
- <p class="description">' . __('When true, transparency of content is changed for elastic transitions.', 'responsive-lightbox') . '</p>
1325
  </div>';
1326
- }
1327
-
1328
 
1329
- public function rl_fb_overlay_opacity()
1330
- {
1331
- echo '
1332
  <div id="rl_fb_overlay_opacity">
1333
- <input type="text" id="rl_fb_overlay_opacity_input" class="hide-if-js" name="responsive_lightbox_configuration[fancybox][overlay_opacity]" value="' . esc_attr($this->options['configuration']['fancybox']['overlay_opacity']) . '" />
1334
  <div class="wplike-slider">
1335
- <span class="left hide-if-no-js">0</span><span class="middle" id="rl_fb_overlay_opacity_span" title="' . esc_attr($this->options['configuration']['fancybox']['overlay_opacity']) . '"></span><span class="right hide-if-no-js">100</span>
1336
  </div>
1337
- <p class="description">' . __('Opacity of the overlay.', 'responsive-lightbox') . '</p>
1338
  </div>';
1339
- }
1340
 
1341
-
1342
- public function rl_fb_overlay_color()
1343
- {
1344
- echo '
1345
  <div id="rl_fb_overlay_color">
1346
- <input type="text" value="' . esc_attr($this->options['configuration']['fancybox']['overlay_color']) . '" id="rl_fb_overlay_color_input" name="responsive_lightbox_configuration[fancybox][overlay_color]" data-default-color="' . $this->defaults['configuration']['fancybox']['overlay_color'] . '" />
1347
- <p class="description">' . __('Color of the overlay.', 'responsive-lightbox') . '</p>
1348
  </div>';
1349
- }
1350
-
1351
 
1352
- public function rl_fb_title_show()
1353
- {
1354
- echo '
1355
  <div id="rl_fb_title_show" class="wplikebtns">';
1356
 
1357
- foreach ($this->choices as $val => $trans) {
1358
- echo '
1359
- <input id="rl-fb-title-show-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][title_show]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['title_show'], FALSE) . ' />
1360
  <label for="rl-fb-title-show-' . $val . '">' . $trans . '</label>';
1361
- }
1362
 
1363
- echo '
1364
- <p class="description">' . __('Toggle title.', 'responsive-lightbox') . '</p>
1365
  </div>';
1366
- }
1367
 
1368
-
1369
- public function rl_fb_title_position()
1370
- {
1371
- echo '
1372
  <div id="rl_fb_title_position" class="wplikebtns">';
1373
 
1374
- foreach ($this->scripts['fancybox']['positions'] as $val => $trans) {
1375
- echo '
1376
- <input id="rl-fb-title-position-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][title_position]" value="' . esc_attr($val) . '" ' . checked($val, $this->options['configuration']['fancybox']['title_position'], FALSE) . ' />
1377
  <label for="rl-fb-title-position-' . $val . '">' . $trans . '</label>';
1378
- }
1379
 
1380
- echo '
1381
- <p class="description">' . __('The position of title.', 'responsive-lightbox') . '</p>
1382
  </div>';
1383
- }
1384
-
1385
 
1386
- public function rl_fb_easings()
1387
- {
1388
- echo '
1389
  <div id="rl_fb_easings" class="wplikebtns">';
1390
 
1391
- foreach ($this->scripts['fancybox']['easings'] as $val => $trans) {
1392
- echo '
1393
- <input id="rl-fb-easings-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][easings]" value="' . esc_attr($val) . '" ' . checked($val, $this->options['configuration']['fancybox']['easings'], FALSE) . ' />
1394
  <label for="rl-fb-easings-' . $val . '">' . $trans . '</label>';
1395
- }
1396
 
1397
- echo '
1398
- <p class="description">' . __('Easing used for elastic animations.', 'responsive-lightbox') . '</p>
1399
  </div>';
1400
- }
1401
-
1402
 
1403
- public function rl_fb_speeds()
1404
- {
1405
- echo '
1406
  <div id="rl_fb_speeds">
1407
- <input type="text" value="' . esc_attr($this->options['configuration']['fancybox']['speeds']) . '" name="responsive_lightbox_configuration[fancybox][speeds]" /> <span>ms</span>
1408
- <p class="description">' . __('Speed of the fade and elastic transitions, in milliseconds.', 'responsive-lightbox') . '</p>
1409
  </div>';
1410
- }
1411
 
1412
-
1413
- public function rl_fb_change_speed()
1414
- {
1415
- echo '
1416
  <div id="rl_fb_change_speed">
1417
- <input type="text" value="' . esc_attr($this->options['configuration']['fancybox']['change_speed']) . '" name="responsive_lightbox_configuration[fancybox][change_speed]" /> <span>ms</span>
1418
- <p class="description">' . __('Speed of resizing when changing gallery items, in milliseconds.', 'responsive-lightbox') . '</p>
1419
  </div>';
1420
- }
1421
-
1422
 
1423
- public function rl_fb_change_fade()
1424
- {
1425
- echo '
1426
  <div id="rl_fb_change_fade">
1427
- <input type="text" value="' . esc_attr($this->options['configuration']['fancybox']['change_fade']) . '" name="responsive_lightbox_configuration[fancybox][change_fade]" /> <span>ms</span>
1428
- <p class="description">' . __('Speed of the content fading while changing gallery items.', 'responsive-lightbox') . '</p>
1429
  </div>';
1430
- }
1431
 
1432
-
1433
- public function rl_fb_video_width()
1434
- {
1435
- echo '
1436
  <div id="rl_fb_video_width">
1437
- <input type="text" value="' . esc_attr($this->options['configuration']['fancybox']['video_width']) . '" name="responsive_lightbox_configuration[fancybox][video_width]" /> <span>px</span>
1438
- <p class="description">' . __('Width of the video.', 'responsive-lightbox') . '</p>
1439
  </div>';
1440
- }
1441
-
1442
 
1443
- public function rl_fb_video_height()
1444
- {
1445
- echo '
1446
  <div id="rl_fb_video_height">
1447
- <input type="text" value="' . esc_attr($this->options['configuration']['fancybox']['video_height']) . '" name="responsive_lightbox_configuration[fancybox][video_height]" /> <span>px</span>
1448
- <p class="description">' . __('Height of the video.', 'responsive-lightbox') . '</p>
1449
  </div>';
1450
- }
1451
-
1452
 
1453
- public function rl_nv_effect()
1454
- {
1455
- echo '
1456
  <div id="rl_nv_effect" class="wplikebtns">';
1457
 
1458
- foreach ($this->scripts['nivo']['effects'] as $val => $trans) {
1459
- echo '
1460
- <input id="rl-nv-effect-' . $val . '" type="radio" name="responsive_lightbox_configuration[nivo][effect]" value="' . esc_attr($val) . '" ' . checked($val, $this->options['configuration']['nivo']['effect'], FALSE) . ' />
1461
  <label for="rl-nv-effect-' . $val . '">' . $trans . '</label>';
1462
- }
1463
 
1464
- echo '
1465
- <p class="description">' . __('The effect to use when showing the lightbox.', 'responsive-lightbox') . '</p>
1466
  </div>';
1467
- }
1468
 
1469
-
1470
- public function rl_nv_keyboard_nav()
1471
- {
1472
- echo '
1473
  <div id="rl_nv_keyboard_nav" class="wplikebtns">';
1474
 
1475
- foreach ($this->choices as $val => $trans) {
1476
- echo '
1477
- <input id="rl-nv-keyboard-nav-' . $val . '" type="radio" name="responsive_lightbox_configuration[nivo][keyboard_nav]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['nivo']['keyboard_nav'], FALSE) . ' />
1478
  <label for="rl-nv-keyboard-nav-' . $val . '">' . $trans . '</label>';
1479
- }
1480
 
1481
- echo '
1482
- <p class="description">' . __('Enable/Disable keyboard navigation (left/right/escape).', 'responsive-lightbox') . '</p>
1483
  </div>';
1484
- }
1485
-
1486
 
1487
- public function rl_nv_click_overlay_to_close()
1488
- {
1489
- echo '
1490
  <div id="rl_nv_click_overlay_to_close" class="wplikebtns">';
1491
 
1492
- foreach ($this->choices as $val => $trans) {
1493
- echo '
1494
- <input id="rl-nv-click-overlay-to-close-' . $val . '" type="radio" name="responsive_lightbox_configuration[nivo][click_overlay_to_close]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['nivo']['click_overlay_to_close'], FALSE) . ' />
1495
  <label for="rl-nv-click-overlay-to-close-' . $val . '">' . $trans . '</label>';
1496
- }
1497
 
1498
- echo '
1499
- <p class="description">' . __('Eneble to close lightbox on overlay click.', 'responsive-lightbox') . '</p>
1500
  </div>';
1501
- }
1502
 
1503
-
1504
- public function rl_nv_error_message()
1505
- {
1506
- echo '
1507
  <div id="rl_nv_error_message">
1508
- <input type="text" class="large-text" value="' . esc_attr($this->options['configuration']['nivo']['error_message']) . '" name="responsive_lightbox_configuration[nivo][error_message]" />
1509
- <p class="description">' . __('Error message if the content cannot be loaded.', 'responsive-lightbox') . '</p>
1510
  </div>';
1511
- }
1512
-
1513
 
1514
- public function rl_il_animation_speed()
1515
- {
1516
- echo '
1517
  <div id="rl_il_animation_speed">
1518
- <input type="text" value="' . esc_attr($this->options['configuration']['imagelightbox']['animation_speed']) . '" name="responsive_lightbox_configuration[imagelightbox][animation_speed]" /> <span>ms</span>
1519
- <p class="description">' . __('Animation speed.', 'responsive-lightbox') . '</p>
1520
  </div>';
1521
- }
1522
-
1523
 
1524
- public function rl_il_preload_next()
1525
- {
1526
- echo '
1527
  <div id="rl_il_preload_next" class="wplikebtns">';
1528
 
1529
- foreach ($this->choices as $val => $trans) {
1530
- echo '
1531
- <input id="rl-il-preload-next-' . $val . '" type="radio" name="responsive_lightbox_configuration[imagelightbox][preload_next]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? true : false), $this->options['configuration']['imagelightbox']['preload_next'], false) . ' />
1532
  <label for="rl-il-preload-next-' . $val . '">' . $trans . '</label>';
1533
- }
1534
 
1535
- echo '
1536
- <p class="description">' . __('Silently preload the next image.', 'responsive-lightbox') . '</p>
1537
  </div>';
1538
- }
1539
 
1540
-
1541
- public function rl_il_enable_keyboard()
1542
- {
1543
- echo '
1544
  <div id="rl_il_enable_keyboard" class="wplikebtns">';
1545
 
1546
- foreach ($this->choices as $val => $trans) {
1547
- echo '
1548
- <input id="rl-il-enable-keyboard-' . $val . '" type="radio" name="responsive_lightbox_configuration[imagelightbox][enable_keyboard]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? true : false), $this->options['configuration']['imagelightbox']['enable_keyboard'], false) . ' />
1549
  <label for="rl-il-enable-keyboard-' . $val . '">' . $trans . '</label>';
1550
- }
1551
 
1552
- echo '
1553
- <p class="description">' . __('Enable keyboard shortcuts (arrows Left/Right and Esc).', 'responsive-lightbox') . '</p>
1554
  </div>';
1555
- }
1556
-
1557
 
1558
- public function rl_il_quit_on_end()
1559
- {
1560
- echo '
1561
  <div id="rl_il_quit_on_end" class="wplikebtns">';
1562
 
1563
- foreach ($this->choices as $val => $trans) {
1564
- echo '
1565
- <input id="rl-il-quit-on-end-' . $val . '" type="radio" name="responsive_lightbox_configuration[imagelightbox][quit_on_end]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? true : false), $this->options['configuration']['imagelightbox']['quit_on_end'], false) . ' />
1566
  <label for="rl-il-quit-on-end-' . $val . '">' . $trans . '</label>';
1567
- }
1568
 
1569
- echo '
1570
- <p class="description">' . __('Quit after viewing the last image.', 'responsive-lightbox') . '</p>
1571
  </div>';
1572
- }
1573
 
1574
-
1575
- public function rl_il_quit_on_image_click()
1576
- {
1577
- echo '
1578
  <div id="rl_il_quit_on_image_click" class="wplikebtns">';
1579
 
1580
- foreach ($this->choices as $val => $trans) {
1581
- echo '
1582
- <input id="rl-il-quit-on-image-click-' . $val . '" type="radio" name="responsive_lightbox_configuration[imagelightbox][quit_on_image_click]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? true : false), $this->options['configuration']['imagelightbox']['quit_on_image_click'], false) . ' />
1583
  <label for="rl-il-quit-on-image-click-' . $val . '">' . $trans . '</label>';
1584
- }
1585
 
1586
- echo '
1587
- <p class="description">' . __('Quit when the viewed image is clicked.', 'responsive-lightbox') . '</p>
1588
  </div>';
1589
- }
1590
-
1591
 
1592
- public function rl_il_quit_on_document_click()
1593
- {
1594
- echo '
1595
  <div id="rl_il_quit_on_document_click" class="wplikebtns">';
1596
 
1597
- foreach ($this->choices as $val => $trans) {
1598
- echo '
1599
- <input id="rl-il-quit-on-document-click-' . $val . '" type="radio" name="responsive_lightbox_configuration[imagelightbox][quit_on_document_click]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ? true : false), $this->options['configuration']['imagelightbox']['quit_on_document_click'], false) . ' />
1600
  <label for="rl-il-quit-on-document-click-' . $val . '">' . $trans . '</label>';
1601
- }
1602
-
1603
- echo '
1604
- <p class="description">' . __('Quit when anything but the viewed image is clicked.', 'responsive-lightbox') . '</p>
1605
- </div>';
1606
- }
1607
-
1608
 
1609
- /**
1610
- * Validates settings
1611
- */
1612
- public function validate_options($input)
1613
- {
1614
- if (isset($_POST['save_rl_settings'])) {
1615
- // script
1616
- $input['script'] = (isset($input['script'], $this->scripts[$input['script']]) ? $input['script'] : $this->defaults['settings']['script']);
1617
 
1618
- // selector
1619
- $input['selector'] = sanitize_text_field(isset($input['selector']) && $input['selector'] !== '' ? $input['selector'] : $this->defaults['settings']['selector']);
1620
 
1621
- // loading place
1622
- $input['loading_place'] = (isset($input['loading_place'], $this->loading_places[$input['loading_place']]) ? $input['loading_place'] : $this->defaults['settings']['loading_place']);
1623
 
1624
- // enable custom events
1625
- $input['enable_custom_events'] = (isset($input['enable_custom_events'], $this->choices[$input['enable_custom_events']]) ? ($input['enable_custom_events'] === 'yes' ? true : false) : $this->defaults['settings']['enable_custom_events']);
 
 
 
 
 
1626
 
1627
- // custom events
1628
- if ($input['enable_custom_events'] === true) {
1629
- $input['custom_events'] = sanitize_text_field(isset($input['custom_events']) && $input['custom_events'] !== '' ? $input['custom_events'] : $this->defaults['settings']['custom_events']);
1630
- }
1631
 
1632
- // enable gallery image size
1633
- $input['enable_gallery_image_size'] = (isset($input['enable_gallery_image_size'], $this->choices[$input['enable_gallery_image_size']]) ? ($input['enable_gallery_image_size'] === 'yes' ? true : false) : $this->defaults['settings']['enable_gallery_image_size']);
 
 
1634
 
1635
- // gallery image size
1636
- if ($input['enable_gallery_image_size'] === true) {
1637
- $input['gallery_image_size'] = esc_attr(isset($input['gallery_image_size']) && $input['gallery_image_size'] !== '' ? $input['gallery_image_size'] : $this->defaults['settings']['gallery_image_size']);
1638
- }
 
 
 
 
 
 
1639
 
1640
- // checkboxes
1641
- $input['galleries'] = (isset($input['galleries'], $this->choices[$input['galleries']]) ? ($input['galleries'] === 'yes' ? true : false) : $this->defaults['settings']['galleries']);
1642
- $input['videos'] = (isset($input['videos'], $this->choices[$input['videos']]) ? ($input['videos'] === 'yes' ? true : false) : $this->defaults['settings']['videos']);
1643
- $input['image_links'] = (isset($input['image_links'], $this->choices[$input['image_links']]) ? ($input['image_links'] === 'yes' ? true : false) : $this->defaults['settings']['image_links']);
1644
- $input['images_as_gallery'] = (isset($input['images_as_gallery'], $this->choices[$input['images_as_gallery']]) ? ($input['images_as_gallery'] === 'yes' ? true : false) : $this->defaults['settings']['images_as_gallery']);
1645
- $input['deactivation_delete'] = (isset($input['deactivation_delete'], $this->choices[$input['deactivation_delete']]) ? ($input['deactivation_delete'] === 'yes' ? true : false) : $this->defaults['settings']['deactivation_delete']);
1646
- } elseif (isset($_POST['save_rl_configuration'])) {
1647
- if ($this->options['settings']['script'] === 'swipebox' && $_POST['script_r'] === 'swipebox') {
1648
- //animation
1649
- $input['swipebox']['animation'] = (isset($input['swipebox']['animation']) && in_array($input['swipebox']['animation'], array_keys($this->scripts['swipebox']['animations'])) ? $input['swipebox']['animation'] : $this->defaults['configuration']['swipebox']['animation']);
1650
 
1651
- //force png icons
1652
- $input['swipebox']['force_png_icons'] = (isset($input['swipebox']['force_png_icons']) && in_array($input['swipebox']['force_png_icons'], array_keys($this->choices)) ? ($input['swipebox']['force_png_icons'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['swipebox']['force_png_icons']);
 
1653
 
1654
- //bars
1655
- $input['swipebox']['hide_bars'] = (isset($input['swipebox']['hide_bars']) && in_array($input['swipebox']['hide_bars'], array_keys($this->choices)) ? ($input['swipebox']['hide_bars'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['swipebox']['hide_bars']);
1656
- $input['swipebox']['hide_bars_delay'] = (int)($input['swipebox']['hide_bars_delay'] > 0 ? $input['swipebox']['hide_bars_delay'] : $this->defaults['configuration']['swipebox']['hide_bars_delay']);
 
 
1657
 
1658
- //video width
1659
- $input['swipebox']['video_max_width'] = (int)($input['swipebox']['video_max_width'] > 0 ? $input['swipebox']['video_max_width'] : $this->defaults['configuration']['swipebox']['video_max_width']);
1660
- } elseif ($this->options['settings']['script'] === 'prettyphoto' && $_POST['script_r'] === 'prettyphoto') {
1661
- //animation speed
1662
- $input['prettyphoto']['animation_speed'] = (isset($input['prettyphoto']['animation_speed']) && in_array($input['prettyphoto']['animation_speed'], array_keys($this->scripts['prettyphoto']['animation_speeds'])) ? $input['prettyphoto']['animation_speed'] : $this->defaults['configuration']['prettyphoto']['animation_speed']);
1663
 
1664
- //slideshows
1665
- $input['prettyphoto']['slideshow'] = (isset($input['prettyphoto']['slideshow']) && in_array($input['prettyphoto']['slideshow'], array_keys($this->choices)) ? ($input['prettyphoto']['slideshow'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['slideshow']);
1666
- $input['prettyphoto']['slideshow_delay'] = (int)($input['prettyphoto']['slideshow_delay'] > 0 ? $input['prettyphoto']['slideshow_delay'] : $this->defaults['configuration']['prettyphoto']['slideshow_delay']);
1667
- $input['prettyphoto']['slideshow_autoplay'] = (isset($input['prettyphoto']['slideshow_autoplay']) && in_array($input['prettyphoto']['slideshow_autoplay'], array_keys($this->choices)) ? ($input['prettyphoto']['slideshow_autoplay'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['slideshow_autoplay']);
1668
 
1669
- //opacity
1670
- $input['prettyphoto']['opacity'] = (int)$input['prettyphoto']['opacity'];
1671
 
1672
- if ($input['prettyphoto']['opacity'] < 0 || $input['prettyphoto']['opacity'] > 100)
1673
- $input['prettyphoto']['opacity'] = $this->defaults['configuration']['prettyphoto']['opacity'];
1674
 
1675
- //title
1676
- $input['prettyphoto']['show_title'] = (isset($input['prettyphoto']['show_title']) && in_array($input['prettyphoto']['show_title'], array_keys($this->choices)) ? ($input['prettyphoto']['show_title'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['show_title']);
1677
 
1678
- //resize
1679
- $input['prettyphoto']['allow_resize'] = (isset($input['prettyphoto']['allow_resize']) && in_array($input['prettyphoto']['allow_resize'], array_keys($this->choices)) ? ($input['prettyphoto']['allow_resize'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['allow_resize']);
1680
 
1681
- //expand
1682
- $input['prettyphoto']['allow_expand'] = (isset($input['prettyphoto']['allow_expand']) && in_array($input['prettyphoto']['allow_expand'], array_keys($this->choices)) ? ($input['prettyphoto']['allow_expand'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['allow_expand']);
 
1683
 
1684
- //dimensions
1685
- $input['prettyphoto']['width'] = (int)($input['prettyphoto']['width'] > 0 ? $input['prettyphoto']['width'] : $this->defaults['configuration']['prettyphoto']['width']);
1686
- $input['prettyphoto']['height'] = (int)($input['prettyphoto']['height'] > 0 ? $input['prettyphoto']['height'] : $this->defaults['configuration']['prettyphoto']['height']);
1687
 
1688
- //separator
1689
- $input['prettyphoto']['separator'] = sanitize_text_field(isset($input['prettyphoto']['separator']) && $input['prettyphoto']['separator'] !== '' ? $input['prettyphoto']['separator'] : $this->defaults['configuration']['prettyphoto']['separator']);
1690
 
1691
- //theme
1692
- $input['prettyphoto']['theme'] = (isset($input['prettyphoto']['theme']) && in_array($input['prettyphoto']['theme'], array_keys($this->scripts['prettyphoto']['themes'])) ? $input['prettyphoto']['theme'] : $this->defaults['configuration']['prettyphoto']['theme']);
1693
 
1694
- //padding
1695
- $input['prettyphoto']['horizontal_padding'] = (int)($input['prettyphoto']['horizontal_padding'] > 0 ? $input['prettyphoto']['horizontal_padding'] : $this->defaults['configuration']['prettyphoto']['horizontal_padding']);
 
1696
 
1697
- //flash
1698
- $input['prettyphoto']['hide_flash'] = (isset($input['prettyphoto']['hide_flash']) && in_array($input['prettyphoto']['hide_flash'], array_keys($this->choices)) ? ($input['prettyphoto']['hide_flash'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['hide_flash']);
1699
- $input['prettyphoto']['wmode'] = (isset($input['prettyphoto']['wmode']) && in_array($input['prettyphoto']['wmode'], array_keys($this->scripts['prettyphoto']['wmodes'])) ? $input['prettyphoto']['wmode'] : $this->defaults['configuration']['prettyphoto']['wmode']);
1700
 
1701
- //video autoplay
1702
- $input['prettyphoto']['video_autoplay'] = (isset($input['prettyphoto']['video_autoplay']) && in_array($input['prettyphoto']['video_autoplay'], array_keys($this->choices)) ? ($input['prettyphoto']['video_autoplay'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['video_autoplay']);
1703
 
1704
- //modal
1705
- $input['prettyphoto']['modal'] = (isset($input['prettyphoto']['modal']) && in_array($input['prettyphoto']['modal'], array_keys($this->choices)) ? ($input['prettyphoto']['modal'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['modal']);
1706
 
1707
- //deeplinking
1708
- $input['prettyphoto']['deeplinking'] = (isset($input['prettyphoto']['deeplinking']) && in_array($input['prettyphoto']['deeplinking'], array_keys($this->choices)) ? ($input['prettyphoto']['deeplinking'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['deeplinking']);
1709
 
1710
- //overlay gallery
1711
- $input['prettyphoto']['overlay_gallery'] = (isset($input['prettyphoto']['overlay_gallery']) && in_array($input['prettyphoto']['overlay_gallery'], array_keys($this->choices)) ? ($input['prettyphoto']['overlay_gallery'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['overlay_gallery']);
1712
 
1713
- //keyboard shortcuts
1714
- $input['prettyphoto']['keyboard_shortcuts'] = (isset($input['prettyphoto']['keyboard_shortcuts']) && in_array($input['prettyphoto']['keyboard_shortcuts'], array_keys($this->choices)) ? ($input['prettyphoto']['keyboard_shortcuts'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['keyboard_shortcuts']);
 
 
 
1715
 
1716
- //social
1717
- $input['prettyphoto']['social'] = (isset($input['prettyphoto']['social']) && in_array($input['prettyphoto']['social'], array_keys($this->choices)) ? ($input['prettyphoto']['social'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['social']);
1718
- } elseif ($this->options['settings']['script'] === 'fancybox' && $_POST['script_r'] === 'fancybox') {
1719
- //modal
1720
- $input['fancybox']['modal'] = (isset($input['fancybox']['modal']) && in_array($input['fancybox']['modal'], array_keys($this->choices)) ? ($input['fancybox']['modal'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['modal']);
1721
 
1722
- //show overlay
1723
- $input['fancybox']['show_overlay'] = (isset($input['fancybox']['show_overlay']) && in_array($input['fancybox']['show_overlay'], array_keys($this->choices)) ? ($input['fancybox']['show_overlay'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['show_overlay']);
1724
 
1725
- //show close button
1726
- $input['fancybox']['show_close_button'] = (isset($input['fancybox']['show_close_button']) && in_array($input['fancybox']['show_close_button'], array_keys($this->choices)) ? ($input['fancybox']['show_close_button'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['show_close_button']);
1727
 
1728
- //enable escape button
1729
- $input['fancybox']['enable_escape_button'] = (isset($input['fancybox']['enable_escape_button']) && in_array($input['fancybox']['enable_escape_button'], array_keys($this->choices)) ? ($input['fancybox']['enable_escape_button'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['enable_escape_button']);
1730
 
1731
- //hide on overlay click
1732
- $input['fancybox']['hide_on_overlay_click'] = (isset($input['fancybox']['hide_on_overlay_click']) && in_array($input['fancybox']['hide_on_overlay_click'], array_keys($this->choices)) ? ($input['fancybox']['hide_on_overlay_click'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['hide_on_overlay_click']);
1733
 
1734
- //hide on content click
1735
- $input['fancybox']['hide_on_content_click'] = (isset($input['fancybox']['hide_on_content_click']) && in_array($input['fancybox']['hide_on_content_click'], array_keys($this->choices)) ? ($input['fancybox']['hide_on_content_click'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['hide_on_content_click']);
1736
 
1737
- //cyclic
1738
- $input['fancybox']['cyclic'] = (isset($input['fancybox']['cyclic']) && in_array($input['fancybox']['cyclic'], array_keys($this->choices)) ? ($input['fancybox']['cyclic'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['cyclic']);
1739
 
1740
- //show nav arrows
1741
- $input['fancybox']['show_nav_arrows'] = (isset($input['fancybox']['show_nav_arrows']) && in_array($input['fancybox']['show_nav_arrows'], array_keys($this->choices)) ? ($input['fancybox']['show_nav_arrows'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['show_nav_arrows']);
1742
 
1743
- //auto scale
1744
- $input['fancybox']['auto_scale'] = (isset($input['fancybox']['auto_scale']) && in_array($input['fancybox']['auto_scale'], array_keys($this->choices)) ? ($input['fancybox']['auto_scale'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['auto_scale']);
1745
 
1746
- //scrolling
1747
- $input['fancybox']['scrolling'] = (isset($input['fancybox']['scrolling']) && in_array($input['fancybox']['scrolling'], array_keys($this->scripts['fancybox']['scrollings'])) ? $input['fancybox']['scrolling'] : $this->defaults['configuration']['fancybox']['scrolling']);
1748
 
1749
- //center on scroll
1750
- $input['fancybox']['center_on_scroll'] = (isset($input['fancybox']['center_on_scroll']) && in_array($input['fancybox']['center_on_scroll'], array_keys($this->choices)) ? ($input['fancybox']['center_on_scroll'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['center_on_scroll']);
1751
 
1752
- //opacity
1753
- $input['fancybox']['opacity'] = (isset($input['fancybox']['opacity']) && in_array($input['fancybox']['opacity'], array_keys($this->choices)) ? ($input['fancybox']['opacity'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['opacity']);
1754
 
1755
- //title_show
1756
- $input['fancybox']['title_show'] = (isset($input['fancybox']['title_show']) && in_array($input['fancybox']['title_show'], array_keys($this->choices)) ? ($input['fancybox']['title_show'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['title_show']);
1757
 
1758
- //overlay opacity
1759
- $input['fancybox']['overlay_opacity'] = (int)$input['fancybox']['overlay_opacity'];
1760
 
1761
- if ($input['fancybox']['overlay_opacity'] < 0 || $input['fancybox']['overlay_opacity'] > 100)
1762
- $input['fancybox']['overlay_opacity'] = $this->defaults['configuration']['fancybox']['overlay_opacity'];
1763
 
1764
- //overlay color
1765
- $input['fancybox']['overlay_color'] = sanitize_text_field($input['fancybox']['overlay_color']);
1766
 
1767
- //title position
1768
- $input['fancybox']['title_position'] = (isset($input['fancybox']['title_position']) && in_array($input['fancybox']['title_position'], array_keys($this->scripts['fancybox']['positions'])) ? $input['fancybox']['title_position'] : $this->defaults['configuration']['fancybox']['title_position']);
1769
 
1770
- //transitions
1771
- $input['fancybox']['transitions'] = (isset($input['fancybox']['transitions']) && in_array($input['fancybox']['transitions'], array_keys($this->scripts['fancybox']['transitions'])) ? $input['fancybox']['transitions'] : $this->defaults['configuration']['fancybox']['transitions']);
1772
 
1773
- //easings
1774
- $input['fancybox']['easings'] = (isset($input['fancybox']['easings']) && in_array($input['fancybox']['easings'], array_keys($this->scripts['fancybox']['easings'])) ? $input['fancybox']['easings'] : $this->defaults['configuration']['fancybox']['easings']);
1775
 
1776
- //speeds
1777
- $input['fancybox']['speeds'] = (int)($input['fancybox']['speeds'] > 0 ? $input['fancybox']['speeds'] : $this->defaults['configuration']['fancybox']['speeds']);
1778
 
1779
- //change speed
1780
- $input['fancybox']['change_speed'] = (int)($input['fancybox']['change_speed'] > 0 ? $input['fancybox']['change_speed'] : $this->defaults['configuration']['fancybox']['change_speed']);
1781
 
1782
- //change fade
1783
- $input['fancybox']['change_fade'] = (int)($input['fancybox']['change_fade'] > 0 ? $input['fancybox']['change_fade'] : $this->defaults['configuration']['fancybox']['change_fade']);
1784
 
1785
- //padding
1786
- $input['fancybox']['padding'] = (int)($input['fancybox']['padding'] > 0 ? $input['fancybox']['padding'] : $this->defaults['configuration']['fancybox']['padding']);
1787
 
1788
- //margin
1789
- $input['fancybox']['margin'] = (int)($input['fancybox']['margin'] > 0 ? $input['fancybox']['margin'] : $this->defaults['configuration']['fancybox']['margin']);
1790
 
1791
- //video width
1792
- $input['fancybox']['video_width'] = (int)($input['fancybox']['video_width'] > 0 ? $input['fancybox']['video_width'] : $this->defaults['configuration']['fancybox']['video_width']);
 
 
 
1793
 
1794
- //video height
1795
- $input['fancybox']['video_height'] = (int)($input['fancybox']['video_height'] > 0 ? $input['fancybox']['video_height'] : $this->defaults['configuration']['fancybox']['video_height']);
1796
- } elseif ($this->options['settings']['script'] === 'nivo' && $_POST['script_r'] === 'nivo') {
1797
- //effect
1798
- $input['nivo']['effect'] = (isset($input['nivo']['effect']) && in_array($input['nivo']['effect'], array_keys($this->scripts['nivo']['effects'])) ? $input['nivo']['effect'] : $this->defaults['configuration']['nivo']['effect']);
1799
 
1800
- //keyboard navigation
1801
- $input['nivo']['keyboard_nav'] = (isset($input['nivo']['keyboard_nav']) && in_array($input['nivo']['keyboard_nav'], array_keys($this->choices)) ? ($input['nivo']['keyboard_nav'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['nivo']['keyboard_nav']);
1802
 
1803
- // keyboard navigation
1804
- $input['nivo']['click_overlay_to_close'] = (isset($input['nivo']['click_overlay_to_close']) && in_array($input['nivo']['click_overlay_to_close'], array_keys($this->choices)) ? ($input['nivo']['click_overlay_to_close'] === 'yes' ? true : false) : $this->defaults['configuration']['nivo']['click_overlay_to_close']);
 
 
 
1805
 
1806
- //error message
1807
- $input['nivo']['error_message'] = sanitize_text_field($input['nivo']['error_message']);
1808
- } elseif ($this->options['settings']['script'] === 'imagelightbox' && $_POST['script_r'] === 'imagelightbox') {
1809
- // animation speed
1810
- $input['imagelightbox']['animation_speed'] = (int)$input['imagelightbox']['animation_speed'];
1811
 
1812
- // preload next image
1813
- $input['imagelightbox']['preload_next'] = (isset($input['imagelightbox']['preload_next'], $this->choices[$input['imagelightbox']['preload_next']]) ? ($input['imagelightbox']['preload_next'] === 'yes' ? true : false) : $this->defaults['configuration']['imagelightbox']['preload_next']);
1814
 
1815
- // enable keyboard keys
1816
- $input['imagelightbox']['enable_keyboard'] = (isset($input['imagelightbox']['enable_keyboard'], $this->choices[$input['imagelightbox']['enable_keyboard']]) ? ($input['imagelightbox']['enable_keyboard'] === 'yes' ? true : false) : $this->defaults['configuration']['imagelightbox']['enable_keyboard']);
1817
 
1818
- // quit on last image
1819
- $input['imagelightbox']['quit_on_end'] = (isset($input['imagelightbox']['quit_on_end'], $this->choices[$input['imagelightbox']['quit_on_end']]) ? ($input['imagelightbox']['quit_on_end'] === 'yes' ? true : false) : $this->defaults['configuration']['imagelightbox']['quit_on_end']);
1820
 
1821
- // quit on image click
1822
- $input['imagelightbox']['quit_on_image_click'] = (isset($input['imagelightbox']['quit_on_image_click'], $this->choices[$input['imagelightbox']['quit_on_image_click']]) ? ($input['imagelightbox']['quit_on_image_click'] === 'yes' ? true : false) : $this->defaults['configuration']['imagelightbox']['quit_on_image_click']);
 
 
 
1823
 
1824
- // quit on document click
1825
- $input['imagelightbox']['quit_on_document_click'] = (isset($input['imagelightbox']['quit_on_document_click'], $this->choices[$input['imagelightbox']['quit_on_document_click']]) ? ($input['imagelightbox']['quit_on_document_click'] === 'yes' ? true : false) : $this->defaults['configuration']['imagelightbox']['quit_on_document_click']);
1826
- } else {
1827
- //clear input to not change settings
1828
- $input = array();
1829
 
1830
- add_settings_error('save_script_settings', 'invalid_script_page', __('Changes were not saved because there was attempt to save settings of inactive script. The site has been reloaded to the proper script settings.', 'responsive-lightbox'), 'error');
1831
- }
 
 
1832
 
1833
- //we have to merge rest of the scripts settings
1834
- $input = array_merge($this->options['configuration'], $input);
1835
- } elseif (isset($_POST['reset_rl_settings'])) {
1836
- $input = $this->defaults['settings'];
1837
 
1838
- add_settings_error('reset_general_settings', 'general_reset', __('Settings restored to defaults.', 'responsive-lightbox'), 'updated');
1839
- } elseif (isset($_POST['reset_rl_configuration'])) {
1840
- if ($this->options['settings']['script'] === 'swipebox' && $_POST['script_r'] === 'swipebox') {
1841
- $input['swipebox'] = $this->defaults['configuration']['swipebox'];
1842
 
1843
- add_settings_error('reset_swipebox_settings', 'swipebox_reset', __('Settings of SwipeBox script were restored to defaults.', 'responsive-lightbox'), 'updated');
1844
- } elseif ($this->options['settings']['script'] === 'prettyphoto' && $_POST['script_r'] === 'prettyphoto') {
1845
- $input['prettyphoto'] = $this->defaults['configuration']['prettyphoto'];
1846
 
1847
- add_settings_error('reset_prettyphoto_settings', 'prettyphoto_reset', __('Settings of prettyPhoto script were restored to defaults.', 'responsive-lightbox'), 'updated');
1848
- } elseif ($this->options['settings']['script'] === 'fancybox' && $_POST['script_r'] === 'fancybox') {
1849
- $input['fancybox'] = $this->defaults['configuration']['fancybox'];
1850
 
1851
- add_settings_error('reset_fancybox_settings', 'fancybox_reset', __('Settings of FancyBox script were restored to defaults.', 'responsive-lightbox'), 'updated');
1852
- } elseif ($this->options['settings']['script'] === 'nivo' && $_POST['script_r'] === 'nivo') {
1853
- $input['nivo'] = $this->defaults['configuration']['nivo'];
 
1854
 
1855
- add_settings_error('reset_nivo_settings', 'nivo_reset', __('Settings of Nivo script were restored to defaults.', 'responsive-lightbox'), 'updated');
1856
- } else {
1857
- add_settings_error('reset_script_settings', 'reset_invalid_script_page', __('Changes were not set to defaults because there was attempt to reset settings of inactive script. The site has been reloaded to the proper script settings.', 'responsive-lightbox'), 'error');
1858
- }
1859
 
1860
- //we have to merge rest of the scripts settings
1861
- $input = array_merge($this->options['configuration'], $input);
1862
- }
1863
 
1864
- return $input;
1865
- }
 
 
 
1866
 
 
 
1867
 
1868
- public function admin_menu_options()
1869
- {
1870
- add_options_page(
1871
- __('Responsive Lightbox', 'responsive-lightbox'),
1872
- __('Responsive Lightbox', 'responsive-lightbox'),
1873
- 'manage_options',
1874
- 'responsive-lightbox',
1875
- array(&$this, 'options_page')
1876
- );
1877
- }
1878
-
1879
-
1880
- public function options_page()
1881
- {
1882
- $tab_key = (isset($_GET['tab']) ? $_GET['tab'] : 'general-settings');
1883
-
1884
- echo '
1885
  <div class="wrap">' . screen_icon() . '
1886
- <h2>' . __('Responsive Lightbox', 'responsive-lightbox') . '</h2>
1887
  <h2 class="nav-tab-wrapper">';
1888
 
1889
- foreach ($this->tabs as $key => $name) {
1890
- echo '
1891
- <a class="nav-tab ' . ($tab_key == $key ? 'nav-tab-active' : '') . '" href="' . esc_url(admin_url('options-general.php?page=responsive-lightbox&tab=' . $key)) . '">' . $name['name'] . '</a>';
1892
- }
1893
 
1894
- echo '
1895
  </h2>
1896
  <div class="responsive-lightbox-settings">
1897
 
1898
  <div class="df-credits">
1899
- <h3 class="hndle">' . __('Responsive Lightbox', 'responsive-lightbox') . ' ' . $this->defaults['version'] . '</h3>
1900
  <div class="inside">
1901
- <h4 class="inner">' . __('Need support?', 'responsive-lightbox') . '</h4>
1902
- <p class="inner">' . __('If you are having problems with this plugin, please talk about them in the', 'responsive-lightbox') . ' <a href="http://www.dfactory.eu/support/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=support" target="_blank" title="' . __('Support forum', 'responsive-lightbox') . '">' . __('Support forum', 'responsive-lightbox') . '</a></p>
1903
  <hr />
1904
- <h4 class="inner">' . __('Do you like this plugin?', 'responsive-lightbox') . '</h4>
1905
- <p class="inner"><a href="http://wordpress.org/support/view/plugin-reviews/responsive-lightbox" target="_blank" title="' . __('Rate it 5', 'responsive-lightbox') . '">' . __('Rate it 5', 'responsive-lightbox') . '</a> ' . __('on WordPress.org', 'responsive-lightbox') . '<br />' .
1906
- __('Blog about it & link to the', 'responsive-lightbox') . ' <a href="http://www.dfactory.eu/plugins/responsive-lightbox/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=blog-about" target="_blank" title="' . __('plugin page', 'responsive-lightbox') . '">' . __('plugin page', 'responsive-lightbox') . '</a><br />' .
1907
- __('Check out our other', 'responsive-lightbox') . ' <a href="http://www.dfactory.eu/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=other-plugins" target="_blank" title="' . __('WordPress plugins', 'responsive-lightbox') . '">' . __('WordPress plugins', 'responsive-lightbox') . '</a>
1908
- </p>
1909
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank" class="inner">
1910
  <input type="hidden" name="cmd" value="_s-xclick">
1911
  <input type="hidden" name="hosted_button_id" value="8AL8ULUN9R76U">
1912
  <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
1913
  <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
1914
  </form>
 
 
 
 
1915
  <hr />
1916
- <p class="df-link inner">Created by <a href="http://www.dfactory.eu/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=created-by" target="_blank" title="dFactory - Quality plugins for WordPress"><img src="' . plugins_url('/images/logo-dfactory.png', __FILE__) . '" title="dFactory - Quality plugins for WordPress" alt="dFactory - Quality plugins for WordPress" /></a></p>
1917
  </div>
1918
  </div>
1919
 
1920
  <form action="options.php" method="post">
1921
- <input type="hidden" name="script_r" value="' . esc_attr($this->options['settings']['script']) . '" />';
1922
 
1923
- wp_nonce_field('update-options');
1924
- settings_fields($this->tabs[$tab_key]['key']);
1925
- do_settings_sections($this->tabs[$tab_key]['key']);
1926
 
1927
- echo '
1928
  <p class="submit">';
1929
 
1930
- submit_button('', 'primary', $this->tabs[$tab_key]['submit'], FALSE);
1931
 
1932
- echo ' ';
1933
- echo submit_button(__('Reset to defaults', 'responsive-lightbox'), 'secondary', $this->tabs[$tab_key]['reset'], FALSE);
1934
 
1935
- echo '
1936
  </p>
1937
  </form>
1938
  </div>
1939
  <div class="clear"></div>
1940
  </div>';
1941
- }
1942
-
1943
-
1944
- public function admin_scripts_styles($page)
1945
- {
1946
- if ($page === 'settings_page_responsive-lightbox') {
1947
- wp_register_script(
1948
- 'responsive-lightbox-admin',
1949
- plugins_url('js/admin.js', __FILE__),
1950
- array('jquery', 'jquery-ui-core', 'jquery-ui-button', 'jquery-ui-slider', 'wp-color-picker')
1951
- );
1952
-
1953
- wp_enqueue_script('responsive-lightbox-admin');
1954
-
1955
- wp_localize_script(
1956
- 'responsive-lightbox-admin',
1957
- 'rlArgs',
1958
- array(
1959
- 'resetSettingsToDefaults' => __('Are you sure you want to reset these settings to defaults?', 'responsive-lightbox'),
1960
- 'resetScriptToDefaults' => __('Are you sure you want to reset scripts settings to defaults?', 'responsive-lightbox'),
1961
- 'opacity_pp' => $this->options['configuration']['prettyphoto']['opacity'],
1962
- 'opacity_fb' => $this->options['configuration']['fancybox']['overlay_opacity']
1963
- )
1964
- );
1965
-
1966
- wp_enqueue_style('wp-color-picker');
1967
-
1968
- wp_register_style(
1969
- 'responsive-lightbox-admin',
1970
- plugins_url('css/admin.css', __FILE__)
1971
- );
1972
-
1973
- wp_enqueue_style('responsive-lightbox-admin');
1974
-
1975
- wp_register_style(
1976
- 'responsive-lightbox-wplike',
1977
- plugins_url('css/wp-like-ui-theme.css', __FILE__)
1978
- );
1979
-
1980
- wp_enqueue_style('responsive-lightbox-wplike');
1981
- }
1982
- }
1983
-
1984
-
1985
- public function front_scripts_styles()
1986
- {
1987
- $args = apply_filters('rl_lightbox_args', array(
1988
- 'script' => $this->options['settings']['script'],
1989
- 'selector' => $this->options['settings']['selector'],
1990
- 'custom_events' => ($this->options['settings']['enable_custom_events'] === TRUE ? ' ' . $this->options['settings']['custom_events'] : ''),
1991
- 'activeGalleries' => $this->get_boolean_value($this->options['settings']['galleries'])
1992
- ));
1993
-
1994
- if ($args['script'] === 'prettyphoto') {
1995
- wp_register_script(
1996
- 'responsive-lightbox-prettyphoto',
1997
- plugins_url('assets/prettyphoto/js/jquery.prettyPhoto.js', __FILE__),
1998
- array('jquery'),
1999
- '',
2000
- ($this->options['settings']['loading_place'] === 'header' ? false : true)
2001
- );
2002
-
2003
- wp_enqueue_script('responsive-lightbox-prettyphoto');
2004
-
2005
- wp_register_style(
2006
- 'responsive-lightbox-prettyphoto-front',
2007
- plugins_url('assets/prettyphoto/css/prettyPhoto.css', __FILE__)
2008
- );
2009
-
2010
- wp_enqueue_style('responsive-lightbox-prettyphoto-front');
2011
-
2012
- $args = array_merge(
2013
- $args,
2014
- array(
2015
- 'animationSpeed' => $this->options['configuration']['prettyphoto']['animation_speed'],
2016
- 'slideshow' => $this->get_boolean_value($this->options['configuration']['prettyphoto']['slideshow']),
2017
- 'slideshowDelay' => $this->options['configuration']['prettyphoto']['slideshow_delay'],
2018
- 'slideshowAutoplay' => $this->get_boolean_value($this->options['configuration']['prettyphoto']['slideshow_autoplay']),
2019
- 'opacity' => sprintf('%.2f', ($this->options['configuration']['prettyphoto']['opacity'] / 100)),
2020
- 'showTitle' => $this->get_boolean_value($this->options['configuration']['prettyphoto']['show_title']),
2021
- 'allowResize' => $this->get_boolean_value($this->options['configuration']['prettyphoto']['allow_resize']),
2022
- 'allowExpand' => $this->get_boolean_value($this->options['configuration']['prettyphoto']['allow_expand']),
2023
- 'width' => $this->options['configuration']['prettyphoto']['width'],
2024
- 'height' => $this->options['configuration']['prettyphoto']['height'],
2025
- 'separator' => $this->options['configuration']['prettyphoto']['separator'],
2026
- 'theme' => $this->options['configuration']['prettyphoto']['theme'],
2027
- 'horizontalPadding' => $this->options['configuration']['prettyphoto']['horizontal_padding'],
2028
- 'hideFlash' => $this->get_boolean_value($this->options['configuration']['prettyphoto']['hide_flash']),
2029
- 'wmode' => $this->options['configuration']['prettyphoto']['wmode'],
2030
- 'videoAutoplay' => $this->get_boolean_value($this->options['configuration']['prettyphoto']['video_autoplay']),
2031
- 'modal' => $this->get_boolean_value($this->options['configuration']['prettyphoto']['modal']),
2032
- 'deeplinking' => $this->get_boolean_value($this->options['configuration']['prettyphoto']['deeplinking']),
2033
- 'overlayGallery' => $this->get_boolean_value($this->options['configuration']['prettyphoto']['overlay_gallery']),
2034
- 'keyboardShortcuts' => $this->get_boolean_value($this->options['configuration']['prettyphoto']['keyboard_shortcuts']),
2035
- 'social' => $this->get_boolean_value($this->options['configuration']['prettyphoto']['social'])
2036
- )
2037
- );
2038
- } elseif ($args['script'] === 'swipebox') {
2039
- wp_register_script(
2040
- 'responsive-lightbox-swipebox',
2041
- plugins_url('assets/swipebox/source/jquery.swipebox.min.js', __FILE__),
2042
- array('jquery'),
2043
- '',
2044
- ($this->options['settings']['loading_place'] === 'header' ? false : true)
2045
- );
2046
-
2047
- wp_enqueue_script('responsive-lightbox-swipebox');
2048
-
2049
- wp_register_style(
2050
- 'responsive-lightbox-swipebox-front',
2051
- plugins_url('assets/swipebox/source/swipebox.css', __FILE__)
2052
- );
2053
-
2054
- wp_enqueue_style('responsive-lightbox-swipebox-front');
2055
-
2056
- $args = array_merge(
2057
- $args,
2058
- array(
2059
- 'animation' => $this->get_boolean_value(($this->options['configuration']['swipebox']['animation'] === 'css' ? TRUE : FALSE)),
2060
- 'hideBars' => $this->get_boolean_value($this->options['configuration']['swipebox']['hide_bars']),
2061
- 'hideBarsDelay' => $this->options['configuration']['swipebox']['hide_bars_delay'],
2062
- 'videoMaxWidth' => $this->options['configuration']['swipebox']['video_max_width']
2063
- )
2064
- );
2065
-
2066
- if ($this->options['configuration']['swipebox']['force_png_icons'] === TRUE) {
2067
- wp_add_inline_style(
2068
- 'responsive-lightbox-swipebox-front',
2069
- '#swipebox-action #swipebox-prev, #swipebox-action #swipebox-next, #swipebox-action #swipebox-close { background-image: url(' . plugins_url('assets/swipebox/source/img/icons.png', __FILE__) . ') !important; }'
2070
- );
2071
- }
2072
- } elseif ($args['script'] === 'fancybox') {
2073
- wp_register_script(
2074
- 'responsive-lightbox-fancybox',
2075
- plugins_url('assets/fancybox/jquery.fancybox-1.3.4.js', __FILE__),
2076
- array('jquery'),
2077
- '',
2078
- ($this->options['settings']['loading_place'] === 'header' ? false : true)
2079
- );
2080
-
2081
- wp_enqueue_script('responsive-lightbox-fancybox');
2082
-
2083
- wp_register_style(
2084
- 'responsive-lightbox-fancybox-front',
2085
- plugins_url('assets/fancybox/jquery.fancybox-1.3.4.css', __FILE__)
2086
- );
2087
-
2088
- wp_enqueue_style('responsive-lightbox-fancybox-front');
2089
-
2090
- $args = array_merge(
2091
- $args,
2092
- array(
2093
- 'modal' => $this->get_boolean_value($this->options['configuration']['fancybox']['modal']),
2094
- 'showOverlay' => $this->get_boolean_value($this->options['configuration']['fancybox']['show_overlay']),
2095
- 'showCloseButton' => $this->get_boolean_value($this->options['configuration']['fancybox']['show_close_button']),
2096
- 'enableEscapeButton' => $this->get_boolean_value($this->options['configuration']['fancybox']['enable_escape_button']),
2097
- 'hideOnOverlayClick' => $this->get_boolean_value($this->options['configuration']['fancybox']['hide_on_overlay_click']),
2098
- 'hideOnContentClick' => $this->get_boolean_value($this->options['configuration']['fancybox']['hide_on_content_click']),
2099
- 'cyclic' => $this->get_boolean_value($this->options['configuration']['fancybox']['cyclic']),
2100
- 'showNavArrows' => $this->get_boolean_value($this->options['configuration']['fancybox']['show_nav_arrows']),
2101
- 'autoScale' => $this->get_boolean_value($this->options['configuration']['fancybox']['auto_scale']),
2102
- 'scrolling' => $this->options['configuration']['fancybox']['scrolling'],
2103
- 'centerOnScroll' => $this->get_boolean_value($this->options['configuration']['fancybox']['center_on_scroll']),
2104
- 'opacity' => $this->get_boolean_value($this->options['configuration']['fancybox']['opacity']),
2105
- 'overlayOpacity' => $this->options['configuration']['fancybox']['overlay_opacity'],
2106
- 'overlayColor' => $this->options['configuration']['fancybox']['overlay_color'],
2107
- 'titleShow' => $this->get_boolean_value($this->options['configuration']['fancybox']['title_show']),
2108
- 'titlePosition' => $this->options['configuration']['fancybox']['title_position'],
2109
- 'transitions' => $this->options['configuration']['fancybox']['transitions'],
2110
- 'easings' => $this->options['configuration']['fancybox']['easings'],
2111
- 'speeds' => $this->options['configuration']['fancybox']['speeds'],
2112
- 'changeSpeed' => $this->options['configuration']['fancybox']['change_speed'],
2113
- 'changeFade' => $this->options['configuration']['fancybox']['change_fade'],
2114
- 'padding' => $this->options['configuration']['fancybox']['padding'],
2115
- 'margin' => $this->options['configuration']['fancybox']['margin'],
2116
- 'videoWidth' => $this->options['configuration']['fancybox']['video_width'],
2117
- 'videoHeight' => $this->options['configuration']['fancybox']['video_height']
2118
- )
2119
- );
2120
- } elseif ($args['script'] === 'nivo') {
2121
- wp_register_script(
2122
- 'responsive-lightbox-nivo',
2123
- plugins_url('assets/nivo/nivo-lightbox.min.js', __FILE__),
2124
- array('jquery'),
2125
- '',
2126
- ($this->options['settings']['loading_place'] === 'header' ? false : true)
2127
- );
2128
-
2129
- wp_enqueue_script('responsive-lightbox-nivo');
2130
-
2131
- wp_register_style(
2132
- 'responsive-lightbox-nivo-front',
2133
- plugins_url('assets/nivo/nivo-lightbox.css', __FILE__)
2134
- );
2135
-
2136
- wp_enqueue_style('responsive-lightbox-nivo-front');
2137
-
2138
- wp_register_style(
2139
- 'responsive-lightbox-nivo-front-template',
2140
- plugins_url('assets/nivo/themes/default/default.css', __FILE__)
2141
- );
2142
-
2143
- wp_enqueue_style('responsive-lightbox-nivo-front-template');
2144
-
2145
- $args = array_merge(
2146
- $args,
2147
- array(
2148
- 'effect' => $this->options['configuration']['nivo']['effect'],
2149
- 'clickOverlayToClose' => $this->get_boolean_value($this->options['configuration']['nivo']['click_overlay_to_close']),
2150
- 'keyboardNav' => $this->get_boolean_value($this->options['configuration']['nivo']['keyboard_nav']),
2151
- 'errorMessage' => esc_attr($this->options['configuration']['nivo']['error_message'])
2152
- )
2153
- );
2154
- } elseif ($args['script'] === 'imagelightbox') {
2155
- wp_register_script(
2156
- 'responsive-lightbox-imagelightbox',
2157
- plugins_url('assets/imagelightbox/js/imagelightbox.min.js', __FILE__),
2158
- array('jquery'),
2159
- '',
2160
- ($this->options['settings']['loading_place'] === 'header' ? false : true)
2161
- );
2162
-
2163
- wp_enqueue_script('responsive-lightbox-imagelightbox');
2164
-
2165
- wp_register_style(
2166
- 'responsive-lightbox-imagelightbox-front',
2167
- plugins_url('assets/imagelightbox/css/imagelightbox.css', __FILE__)
2168
- );
2169
-
2170
- wp_enqueue_style('responsive-lightbox-imagelightbox-front');
2171
-
2172
- $args = array_merge(
2173
- $args,
2174
- array(
2175
- 'animationSpeed' => $this->options['configuration']['imagelightbox']['animation_speed'],
2176
- 'preloadNext' => $this->get_boolean_value($this->options['configuration']['imagelightbox']['preload_next']),
2177
- 'enableKeyboard' => $this->get_boolean_value($this->options['configuration']['imagelightbox']['enable_keyboard']),
2178
- 'quitOnEnd' => $this->get_boolean_value($this->options['configuration']['imagelightbox']['quit_on_end']),
2179
- 'quitOnImageClick' => $this->get_boolean_value($this->options['configuration']['imagelightbox']['quit_on_image_click']),
2180
- 'quitOnDocumentClick' => $this->get_boolean_value($this->options['configuration']['imagelightbox']['quit_on_document_click']),
2181
- )
2182
- );
2183
- }
2184
-
2185
- wp_register_script(
2186
- 'responsive-lightbox-front',
2187
- plugins_url('js/front.js', __FILE__),
2188
- array('jquery'),
2189
- '',
2190
- ($this->options['settings']['loading_place'] === 'header' ? false : true)
2191
- );
2192
-
2193
- wp_enqueue_script('responsive-lightbox-front');
2194
-
2195
- wp_add_inline_style(
2196
- 'responsive-lightbox-swipebox',
2197
- '#swipebox-action #swipebox-close, #swipebox-action #swipebox-prev, #swipebox-action #swipebox-next { background-image: url(\'assets/swipebox/source/img/icons.png\') !important; }'
2198
- );
2199
-
2200
- wp_localize_script(
2201
- 'responsive-lightbox-front',
2202
- 'rlArgs',
2203
- $args
2204
- );
2205
- }
2206
-
2207
-
2208
- /**
2209
- *
2210
- */
2211
- private function get_boolean_value($option)
2212
- {
2213
- return ($option === TRUE ? 1 : 0);
2214
- }
2215
-
2216
-
2217
- /**
2218
- * Loads textdomain
2219
- */
2220
- public function load_textdomain()
2221
- {
2222
- load_plugin_textdomain('responsive-lightbox', FALSE, dirname(plugin_basename(__FILE__)) . '/languages/');
2223
- }
2224
-
2225
-
2226
- /**
2227
- * Add links to Support Forum
2228
- */
2229
- public function plugin_extend_links($links, $file)
2230
- {
2231
- if (!current_user_can('install_plugins'))
2232
- return $links;
2233
-
2234
- $plugin = plugin_basename(__FILE__);
2235
-
2236
- if ($file == $plugin) {
2237
- return array_merge(
2238
- $links,
2239
- array(sprintf('<a href="http://www.dfactory.eu/support/forum/responsive-lightbox/" target="_blank">%s</a>', __('Support', 'responsive-lightbox')))
2240
- );
2241
- }
2242
-
2243
- return $links;
2244
- }
2245
-
2246
-
2247
- /**
2248
- * Add links to Settings page
2249
- */
2250
- public function plugin_settings_link($links, $file)
2251
- {
2252
- if (!is_admin() || !current_user_can('manage_options'))
2253
- return $links;
2254
-
2255
- static $plugin;
2256
-
2257
- $plugin = plugin_basename(__FILE__);
2258
-
2259
- if ($file == $plugin) {
2260
- $settings_link = sprintf('<a href="%s">%s</a>', admin_url('options-general.php') . '?page=responsive-lightbox', __('Settings', 'responsive-lightbox'));
2261
- array_unshift($links, $settings_link);
2262
- }
2263
-
2264
- return $links;
2265
- }
2266
-
2267
-
2268
- /**
2269
- * Modify gallery image link size
2270
- */
2271
- public function gallery_attachment_link_filter($content, $post_id, $size, $permalink, $icon, $text)
2272
- {
2273
- if ($permalink) {
2274
- $image = wp_get_attachment_image_src($post_id, $this->options['settings']['gallery_image_size']); // or other image size
2275
- $new_content = preg_replace('/href=\'(.*?)\'/', 'href=\'' . $image[0] . '\'', $content);
2276
- return $new_content;
2277
- } else {
2278
- return $content;
2279
- }
2280
- }
2281
 
2282
  }
2283
 
2284
- $responsive_lightbox = new Responsive_Lightbox();
2285
- ?>
1
  <?php
 
2
  /*
3
  Plugin Name: Responsive Lightbox
4
  Description: Responsive Lightbox allows users to view larger versions of images and galleries in a lightbox (overlay) effect optimized for mobile devices.
5
+ Version: 1.4.11
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
12
  Domain Path: /languages
13
 
14
  Responsive Lightbox
15
+ Copyright (C) 2013-2015, Digital Factory - info@digitalfactory.pl
16
 
17
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
18
 
21
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
  */
23
 
24
+ if ( ! defined( 'ABSPATH' ) )
25
+ exit;
26
+
27
+ /**
28
+ * Responsive Lightbox class.
29
+ *
30
+ * @class Responsive_Lightbox
31
+ * @version 1.4.11
32
+ */
33
+ class Responsive_Lightbox {
34
+
35
+ private $defaults = array(
36
+ 'settings' => array(
37
+ 'script' => 'swipebox',
38
+ 'selector' => 'lightbox',
39
+ 'galleries' => true,
40
+ 'enable_gallery_image_size' => false,
41
+ 'gallery_image_size' => 'full',
42
+ 'videos' => true,
43
+ 'image_links' => true,
44
+ 'images_as_gallery' => false,
45
+ 'deactivation_delete' => false,
46
+ 'loading_place' => 'header',
47
+ 'enable_custom_events' => false,
48
+ 'custom_events' => 'ajaxComplete'
49
+ ),
50
+ 'configuration' => array(
51
+ 'prettyphoto' => array(
52
+ 'animation_speed' => 'normal',
53
+ 'slideshow' => false,
54
+ 'slideshow_delay' => 5000,
55
+ 'slideshow_autoplay' => false,
56
+ 'opacity' => 75,
57
+ 'show_title' => true,
58
+ 'allow_resize' => true,
59
+ 'allow_expand' => true,
60
+ 'width' => 1080,
61
+ 'height' => 720,
62
+ 'separator' => '/',
63
+ 'theme' => 'pp_default',
64
+ 'horizontal_padding' => 20,
65
+ 'hide_flash' => false,
66
+ 'wmode' => 'opaque',
67
+ 'video_autoplay' => false,
68
+ 'modal' => false,
69
+ 'deeplinking' => false,
70
+ 'overlay_gallery' => true,
71
+ 'keyboard_shortcuts' => true,
72
+ 'social' => false
73
+ ),
74
+ 'swipebox' => array(
75
+ 'animation' => 'css',
76
+ 'force_png_icons' => false,
77
+ 'hide_close_mobile' => false,
78
+ 'hide_bars' => true,
79
+ 'hide_bars_delay' => 5000,
80
+ 'video_max_width' => 1080,
81
+ 'loop_at_end' => false
82
+ ),
83
+ 'fancybox' => array(
84
+ 'modal' => false,
85
+ 'show_overlay' => true,
86
+ 'show_close_button' => true,
87
+ 'enable_escape_button' => true,
88
+ 'hide_on_overlay_click' => true,
89
+ 'hide_on_content_click' => false,
90
+ 'cyclic' => false,
91
+ 'show_nav_arrows' => true,
92
+ 'auto_scale' => true,
93
+ 'scrolling' => 'yes',
94
+ 'center_on_scroll' => true,
95
+ 'opacity' => true,
96
+ 'overlay_opacity' => 70,
97
+ 'overlay_color' => '#666',
98
+ 'title_show' => true,
99
+ 'title_position' => 'outside',
100
+ 'transitions' => 'fade',
101
+ 'easings' => 'swing',
102
+ 'speeds' => 300,
103
+ 'change_speed' => 300,
104
+ 'change_fade' => 100,
105
+ 'padding' => 5,
106
+ 'margin' => 5,
107
+ 'video_width' => 1080,
108
+ 'video_height' => 720
109
+ ),
110
+ 'nivo' => array(
111
+ 'effect' => 'fade',
112
+ 'click_overlay_to_close' => true,
113
+ 'keyboard_nav' => true,
114
+ 'error_message' => 'The requested content cannot be loaded. Please try again later.'
115
+ ),
116
+ 'imagelightbox' => array(
117
+ 'animation_speed' => 250,
118
+ 'preload_next' => true,
119
+ 'enable_keyboard' => true,
120
+ 'quit_on_end' => false,
121
+ 'quit_on_image_click' => false,
122
+ 'quit_on_document_click' => true
123
+ )
124
+ ),
125
+ 'version' => '1.4.11'
126
+ );
127
+ private $scripts = array();
128
+ private $options = array();
129
+ private $tabs = array();
130
+ private $choices = array();
131
+ private $loading_places = array();
132
+ private $gallery_no = 0;
133
+
134
+ public function __construct() {
135
+ register_activation_hook( __FILE__, array( &$this, 'multisite_activation' ) );
136
+ register_deactivation_hook( __FILE__, array( &$this, 'multisite_deactivation' ) );
137
+
138
+ // change from older versions
139
+ $db_version = get_option( 'responsive_lightbox_version' );
140
+
141
+ if ( version_compare( ($db_version === false ? '1.0.0' : $db_version ), '1.0.5', '<' ) ) {
142
+ if ( ($array = get_option( 'rl_settings' )) !== false ) {
143
+ update_option( 'responsive_lightbox_settings', $array );
144
+ delete_option( 'rl_settings' );
145
+ }
146
+
147
+ if ( ($array = get_option( 'rl_configuration' )) !== false ) {
148
+ update_option( 'responsive_lightbox_configuration', $array );
149
+ delete_option( 'rl_configuration' );
150
+ }
151
+ }
152
+
153
+ // update plugin version
154
+ update_option( 'responsive_lightbox_version', $this->defaults['version'], '', 'no' );
155
+
156
+ $this->options['settings'] = array_merge( $this->defaults['settings'], (($array = get_option( 'responsive_lightbox_settings' )) === false ? array() : $array ) );
157
+
158
+ // for multi arrays we have to merge them separately
159
+ $db_conf_opts = ( ( $base = get_option( 'responsive_lightbox_configuration' ) ) === false ? array() : $base );
160
+
161
+ foreach ( $this->defaults['configuration'] as $script => $settings ) {
162
+ $this->options['configuration'][$script] = array_merge( $settings, (isset( $db_conf_opts[$script] ) ? $db_conf_opts[$script] : array() ) );
163
+ }
164
+
165
+ // actions
166
+ add_action( 'plugins_loaded', array( &$this, 'load_textdomain' ) );
167
+ add_action( 'plugins_loaded', array( &$this, 'load_defaults' ) );
168
+ add_action( 'admin_init', array( &$this, 'register_settings' ) );
169
+ add_action( 'admin_menu', array( &$this, 'admin_menu_options' ) );
170
+ add_action( 'wp_enqueue_scripts', array( &$this, 'front_scripts_styles' ) );
171
+ add_action( 'admin_enqueue_scripts', array( &$this, 'admin_scripts_styles' ) );
172
+
173
+ // filters
174
+ add_filter( 'plugin_action_links', array( &$this, 'plugin_settings_link' ), 10, 2 );
175
+ add_filter( 'plugin_row_meta', array( &$this, 'plugin_extend_links' ), 10, 2 );
176
+ add_filter( 'post_gallery', array( &$this, 'gallery_attributes' ), 1000 );
177
+
178
+ if ( $this->options['settings']['galleries'] === true )
179
+ add_filter( 'wp_get_attachment_link', array( &$this, 'add_gallery_lightbox_selector' ), 1000, 6 );
180
+
181
+ if ( $this->options['settings']['enable_gallery_image_size'] === true )
182
+ add_filter( 'wp_get_attachment_link', array( &$this, 'gallery_attachment_link_filter' ), 1001, 6 );
183
+
184
+ if ( $this->options['settings']['videos'] === true )
185
+ add_filter( 'the_content', array( &$this, 'add_videos_lightbox_selector' ) );
186
+
187
+ if ( $this->options['settings']['image_links'] === true || $this->options['settings']['images_as_gallery'] === true )
188
+ add_filter( 'the_content', array( &$this, 'add_links_lightbox_selector' ) );
189
+ }
190
+
191
+ public function add_videos_lightbox_selector( $content ) {
192
+ preg_match_all( '/<a(.*?)href=(?:\'|")((?:(?:http|https):\/\/)?(?:www\.)?((youtube\.com\/watch\?v=[a-z0-9_\-]+)|(vimeo\.com\/[0-9]{8,})))(?:\'|")(.*?)>/i', $content, $links );
193
+
194
+ if ( isset( $links[0] ) ) {
195
+ foreach ( $links[0] as $id => $link ) {
196
+ if ( preg_match( '/<a.*?rel=(?:\'|")(.*?)(?:\'|").*?>/', $link, $result ) === 1 ) {
197
+ if ( isset( $result[1] ) ) {
198
+ $new_rels = array();
199
+ $rels = explode( ' ', $result[1] );
200
+
201
+ if ( in_array( $this->options['settings']['selector'], $rels, true ) ) {
202
+ foreach ( $rels as $no => $rel ) {
203
+ if ( $rel !== $this->options['settings']['selector'] )
204
+ $new_rels[] = $rel;
205
+ }
206
+
207
+ $content = str_replace( $link, preg_replace( '/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . ( ! empty( $new_rel ) ? simplode( ' ', $new_rels ) . ' ' : '') . $this->options['settings']['selector'] . '-video-' . $id . '"', $link ), $content );
208
+ } else
209
+ $content = str_replace( $link, preg_replace( '/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . ($result[1] !== '' ? $result[1] . ' ' : '') . $this->options['settings']['selector'] . '-video-' . $id . '"', $link ), $content );
210
+ }
211
+ } else
212
+ $content = str_replace( $link, '<a' . $links[1][$id] . 'href="' . $links[2][$id] . '"' . $links[6][$id] . ' rel="' . $this->options['settings']['selector'] . '-video-' . $id . '">', $content );
213
+ }
214
+ }
215
+
216
+ return $content;
217
+ }
218
+
219
+ public function add_links_lightbox_selector( $content ) {
220
+ preg_match_all( '/<a(.*?)href=(?:\'|")([^<]*?).(bmp|gif|jpeg|jpg|png)(?:\'|")(.*?)>/i', $content, $links );
221
+
222
+ if ( isset( $links[0] ) ) {
223
+ if ( $this->options['settings']['images_as_gallery'] === true )
224
+ $rel_hash = '[gallery-' . wp_generate_password( 4, false, false ) . ']';
225
+
226
+ foreach ( $links[0] as $id => $link ) {
227
+ if ( preg_match( '/<a.*?rel=(?:\'|")(.*?)(?:\'|").*?>/', $link, $result ) === 1 ) {
228
+ if ( $this->options['settings']['images_as_gallery'] === true ) {
229
+ $content = str_replace( $link, preg_replace( '/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . $this->options['settings']['selector'] . $rel_hash . '"' . ($this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : ''), $link ), $content );
230
+ } else {
231
+ if ( isset( $result[1] ) ) {
232
+ $new_rels = array();
233
+ $rels = explode( ' ', $result[1] );
234
+
235
+ if ( in_array( $this->options['settings']['selector'], $rels, true ) ) {
236
+ foreach ( $rels as $no => $rel ) {
237
+ if ( $rel !== $this->options['settings']['selector'] )
238
+ $new_rels[] = $rel;
239
+ }
240
+
241
+ $content = str_replace( $link, preg_replace( '/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . ( ! empty( $new_rels ) ? implode( ' ', $new_rels ) . ' ' : '') . $this->options['settings']['selector'] . '-' . $id . '"' . ($this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : ''), $link ), $content );
242
+ } else
243
+ $content = str_replace( $link, preg_replace( '/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . ($result[1] !== '' ? $result[1] . ' ' : '') . $this->options['settings']['selector'] . '-' . $id . '"' . ($this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : ''), $link ), $content );
244
+ }
245
+ }
246
+ } else
247
+ $content = str_replace( $link, '<a' . $links[1][$id] . 'href="' . $links[2][$id] . '.' . $links[3][$id] . '"' . $links[4][$id] . ' rel="' . $this->options['settings']['selector'] . ($this->options['settings']['images_as_gallery'] === true ? $rel_hash : '-' . $id) . '"' . ($this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '') . '>', $content );
248
+ }
249
+ }
250
+
251
+ return $content;
252
+ }
253
+
254
+ public function gallery_attributes( $style ) {
255
+ ++ $this->gallery_no;
256
+
257
+ return $style;
258
+ }
259
+
260
+ public function add_gallery_lightbox_selector( $link, $id, $size, $permalink, $icon, $text ) {
261
+ $link = (preg_match( '/<a.*? rel=("|\').*?("|\')>/', $link ) === 1 ? preg_replace( '/(<a.*? rel=(?:"|\').*?)((?:"|\').*?>)/', '$1 ' . $this->options['settings']['selector'] . '[gallery-' . $this->gallery_no . ']' . '$2', $link ) : preg_replace( '/(<a.*?)>/', '$1 rel="' . $this->options['settings']['selector'] . '[gallery-' . $this->gallery_no . ']' . '">', $link ));
262
+
263
+ return (preg_match( '/<a.*? href=("|\').*?("|\')>/', $link ) === 1 ? preg_replace( '/(<a.*? href=(?:"|\')).*?((?:"|\').*?>)/', '$1' . wp_get_attachment_url( $id ) . '$2', $link ) : preg_replace( '/(<a.*?)>/', '$1 href="' . wp_get_attachment_url( $id ) . '">', $link ));
264
+ }
265
+
266
+ public function load_defaults() {
267
+ $this->scripts = array(
268
+ 'prettyphoto' => array(
269
+ 'name' => __( 'prettyPhoto', 'responsive-lightbox' ),
270
+ 'animation_speeds' => array(
271
+ 'slow' => __( 'slow', 'responsive-lightbox' ),
272
+ 'normal' => __( 'normal', 'responsive-lightbox' ),
273
+ 'fast' => __( 'fast', 'responsive-lightbox' )
274
+ ),
275
+ 'themes' => array(
276
+ 'pp_default' => __( 'default', 'responsive-lightbox' ),
277
+ 'light_rounded' => __( 'light rounded', 'responsive-lightbox' ),
278
+ 'dark_rounded' => __( 'dark rounded', 'responsive-lightbox' ),
279
+ 'light_square' => __( 'light square', 'responsive-lightbox' ),
280
+ 'dark_square' => __( 'dark square', 'responsive-lightbox' ),
281
+ 'facebook' => __( 'facebook', 'responsive-lightbox' )
282
+ ),
283
+ 'wmodes' => array(
284
+ 'window' => __( 'window', 'responsive-lightbox' ),
285
+ 'transparent' => __( 'transparent', 'responsive-lightbox' ),
286
+ 'opaque' => __( 'opaque', 'responsive-lightbox' ),
287
+ 'direct' => __( 'direct', 'responsive-lightbox' ),
288
+ 'gpu' => __( 'gpu', 'responsive-lightbox' )
289
+ )
290
+ ),
291
+ 'swipebox' => array(
292
+ 'name' => __( 'SwipeBox', 'responsive-lightbox' ),
293
+ 'animations' => array(
294
+ 'css' => __( 'CSS', 'responsive-lightbox' ),
295
+ 'jquery' => __( 'jQuery', 'responsive-lightbox' )
296
+ )
297
+ ),
298
+ 'fancybox' => array(
299
+ 'name' => __( 'FancyBox', 'responsive-lightbox' ),
300
+ 'transitions' => array(
301
+ 'elastic' => __( 'elastic', 'responsive-lightbox' ),
302
+ 'fade' => __( 'fade', 'responsive-lightbox' ),
303
+ 'none' => __( 'none', 'responsive-lightbox' )
304
+ ),
305
+ 'scrollings' => array(
306
+ 'auto' => __( 'auto', 'responsive-lightbox' ),
307
+ 'yes' => __( 'yes', 'responsive-lightbox' ),
308
+ 'no' => __( 'no', 'responsive-lightbox' )
309
+ ),
310
+ 'easings' => array(
311
+ 'swing' => __( 'swing', 'responsive-lightbox' ),
312
+ 'linear' => __( 'linear', 'responsive-lightbox' )
313
+ ),
314
+ 'positions' => array(
315
+ 'outside' => __( 'outside', 'responsive-lightbox' ),
316
+ 'inside' => __( 'inside', 'responsive-lightbox' ),
317
+ 'over' => __( 'over', 'responsive-lightbox' )
318
+ )
319
+ ),
320
+ 'nivo' => array(
321
+ 'name' => __( 'Nivo Lightbox', 'responsive-lightbox' ),
322
+ 'effects' => array(
323
+ 'fade' => __( 'fade', 'responsive-lightbox' ),
324
+ 'fadeScale' => __( 'fade scale', 'responsive-lightbox' ),
325
+ 'slideLeft' => __( 'slide left', 'responsive-lightbox' ),
326
+ 'slideRight' => __( 'slide right', 'responsive-lightbox' ),
327
+ 'slideUp' => __( 'slide up', 'responsive-lightbox' ),
328
+ 'slideDown' => __( 'slide down', 'responsive-lightbox' ),
329
+ 'fall' => __( 'fall', 'responsive-lightbox' )
330
+ )
331
+ ),
332
+ 'imagelightbox' => array(
333
+ 'name' => __( 'Image Lightbox', 'responsive-lightbox' )
334
+ )
335
+ );
336
+
337
+ $this->choices = array(
338
+ 'yes' => __( 'Enable', 'responsive-lightbox' ),
339
+ 'no' => __( 'Disable', 'responsive-lightbox' )
340
+ );
341
+
342
+ $this->loading_places = array(
343
+ 'header' => __( 'Header', 'responsive-lightbox' ),
344
+ 'footer' => __( 'Footer', 'responsive-lightbox' )
345
+ );
346
+
347
+ $this->tabs = array(
348
+ 'general-settings' => array(
349
+ 'name' => __( 'General settings', 'responsive-lightbox' ),
350
+ 'key' => 'responsive_lightbox_settings',
351
+ 'submit' => 'save_rl_settings',
352
+ 'reset' => 'reset_rl_settings',
353
+ ),
354
+ 'configuration' => array(
355
+ 'name' => __( 'Lightbox settings', 'responsive-lightbox' ),
356
+ 'key' => 'responsive_lightbox_configuration',
357
+ 'submit' => 'save_rl_configuration',
358
+ 'reset' => 'reset_rl_configuration'
359
+ )
360
+ );
361
+ }
362
+
363
+ public function multisite_activation( $networkwide ) {
364
+ if ( is_multisite() && $networkwide ) {
365
+ global $wpdb;
366
+
367
+ $activated_blogs = array();
368
+ $current_blog_id = $wpdb->blogid;
369
+ $blogs_ids = $wpdb->get_col( $wpdb->prepare( 'SELECT blog_id FROM ' . $wpdb->blogs, '' ) );
370
+
371
+ foreach ( $blogs_ids as $blog_id ) {
372
+ switch_to_blog( $blog_id );
373
+ $this->activate_single();
374
+ $activated_blogs[] = (int) $blog_id;
375
+ }
376
+
377
+ switch_to_blog( $current_blog_id );
378
+ update_site_option( 'responsive_lightbox_activated_blogs', $activated_blogs, array() );
379
+ } else
380
+ $this->activate_single();
381
+ }
382
+
383
+ public function activate_single() {
384
+ add_option( 'responsive_lightbox_settings', $this->defaults['settings'], '', 'no' );
385
+ add_option( 'responsive_lightbox_configuration', $this->defaults['configuration'], '', 'no' );
386
+ add_option( 'responsive_lightbox_version', $this->defaults['version'], '', 'no' );
387
+ }
388
+
389
+ public function multisite_deactivation( $networkwide ) {
390
+ if ( is_multisite() && $networkwide ) {
391
+ global $wpdb;
392
+
393
+ $current_blog_id = $wpdb->blogid;
394
+ $blogs_ids = $wpdb->get_col( $wpdb->prepare( 'SELECT blog_id FROM ' . $wpdb->blogs, '' ) );
395
+
396
+ if ( ($activated_blogs = get_site_option( 'responsive_lightbox_activated_blogs', false, false )) === false )
397
+ $activated_blogs = array();
398
+
399
+ foreach ( $blogs_ids as $blog_id ) {
400
+ switch_to_blog( $blog_id );
401
+ $this->deactivate_single( true );
402
+
403
+ if ( in_array( (int) $blog_id, $activated_blogs, true ) )
404
+ unset( $activated_blogs[array_search( $blog_id, $activated_blogs )] );
405
+ }
406
+
407
+ switch_to_blog( $current_blog_id );
408
+ update_site_option( 'responsive_lightbox_activated_blogs', $activated_blogs );
409
+ } else
410
+ $this->deactivate_single();
411
+ }
412
+
413
+ public function deactivate_single( $multi = false ) {
414
+ if ( $multi === true ) {
415
+ $options = get_option( 'responsive_lightbox_settings' );
416
+ $check = $options['deactivation_delete'];
417
+ } else
418
+ $check = $this->options['settings']['deactivation_delete'];
419
+
420
+ if ( $check === true ) {
421
+ delete_option( 'responsive_lightbox_settings' );
422
+ delete_option( 'responsive_lightbox_configuration' );
423
+ delete_option( 'responsive_lightbox_version' );
424
+ }
425
+ }
426
+
427
+ public function register_settings() {
428
+ register_setting( 'responsive_lightbox_settings', 'responsive_lightbox_settings', array( &$this, 'validate_options' ) );
429
+
430
+ // general settings
431
+ add_settings_section( 'responsive_lightbox_settings', __( 'General settings', 'responsive-lightbox' ), '', 'responsive_lightbox_settings' );
432
+ add_settings_field( 'rl_script', __( 'Lightbox script', 'responsive-lightbox' ), array( &$this, 'rl_script' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
433
+ add_settings_field( 'rl_selector', __( 'Selector', 'responsive-lightbox' ), array( &$this, 'rl_selector' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
434
+ add_settings_field( 'rl_galleries', __( 'Galleries', 'responsive-lightbox' ), array( &$this, 'rl_galleries' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
435
+ add_settings_field( 'rl_enable_gallery_image_size', __( 'Gallery image size', 'responsive-lightbox' ), array( &$this, 'rl_enable_gallery_image_size' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
436
+ add_settings_field( 'rl_videos', __( 'Video links', 'responsive-lightbox' ), array( &$this, 'rl_videos' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
437
+ add_settings_field( 'rl_image_links', __( 'Image links', 'responsive-lightbox' ), array( &$this, 'rl_image_links' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
438
+ add_settings_field( 'rl_images_as_gallery', __( 'Single images as gallery', 'responsive-lightbox' ), array( &$this, 'rl_images_as_gallery' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
439
+ add_settings_field( 'rl_enable_custom_events', __( 'Custom events', 'responsive-lightbox' ), array( &$this, 'rl_enable_custom_events' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
440
+ add_settings_field( 'rl_loading_place', __( 'Loading place', 'responsive-lightbox' ), array( &$this, 'rl_loading_place' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
441
+ add_settings_field( 'rl_deactivation_delete', __( 'Deactivation', 'responsive-lightbox' ), array( &$this, 'rl_deactivation_delete' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
442
+
443
+ // configuration
444
+ register_setting( 'responsive_lightbox_configuration', 'responsive_lightbox_configuration', array( &$this, 'validate_options' ) );
445
+ add_settings_section( 'responsive_lightbox_configuration', __( 'Lightbox settings', 'responsive-lightbox' ) . ': ' . $this->scripts[$this->options['settings']['script']]['name'], '', 'responsive_lightbox_configuration' );
446
+
447
+ if ( $this->options['settings']['script'] === 'swipebox' ) {
448
+ add_settings_field( 'rl_sb_animation', __( 'Animation type', 'responsive-lightbox' ), array( &$this, 'rl_sb_animation' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
449
+ add_settings_field( 'rl_sb_force_png_icons', __( 'Force PNG icons', 'responsive-lightbox' ), array( &$this, 'rl_sb_force_png_icons' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
450
+ add_settings_field( 'rl_sb_hide_close_mobile', __( 'Hide close on mobile', 'responsive-lightbox' ), array( &$this, 'rl_sb_hide_close_mobile' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
451
+ add_settings_field( 'rl_sb_hide_bars', __( 'Top and bottom bars', 'responsive-lightbox' ), array( &$this, 'rl_sb_hide_bars' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
452
+ add_settings_field( 'rl_sb_video_max_width', __( 'Video max width', 'responsive-lightbox' ), array( &$this, 'rl_sb_video_max_width' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
453
+ add_settings_field( 'rl_sb_loop_at_end', __( 'Loop at end', 'responsive-lightbox' ), array( &$this, 'rl_sb_loop_at_end' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
454
+ } elseif ( $this->options['settings']['script'] === 'prettyphoto' ) {
455
+ add_settings_field( 'rl_pp_animation_speed', __( 'Animation speed', 'responsive-lightbox' ), array( &$this, 'rl_pp_animation_speed' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
456
+ add_settings_field( 'rl_pp_slideshow', __( 'Slideshow', 'responsive-lightbox' ), array( &$this, 'rl_pp_slideshow' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
457
+ add_settings_field( 'rl_pp_slideshow_autoplay', __( 'Slideshow autoplay', 'responsive-lightbox' ), array( &$this, 'rl_pp_slideshow_autoplay' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
458
+ add_settings_field( 'rl_pp_opacity', __( 'Opacity', 'responsive-lightbox' ), array( &$this, 'rl_pp_opacity' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
459
+ add_settings_field( 'rl_pp_title', __( 'Show title', 'responsive-lightbox' ), array( &$this, 'rl_pp_title' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
460
+ add_settings_field( 'rl_pp_allow_resize', __( 'Allow resize big images', 'responsive-lightbox' ), array( &$this, 'rl_pp_allow_resize' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
461
+ add_settings_field( 'rl_pp_allow_expand', __( 'Allow expand', 'responsive-lightbox' ), array( &$this, 'rl_pp_allow_expand' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
462
+ add_settings_field( 'rl_pp_width', __( 'Video width', 'responsive-lightbox' ), array( &$this, 'rl_pp_width' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
463
+ add_settings_field( 'rl_pp_height', __( 'Video height', 'responsive-lightbox' ), array( &$this, 'rl_pp_height' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
464
+ add_settings_field( 'rl_pp_theme', __( 'Theme', 'responsive-lightbox' ), array( &$this, 'rl_pp_theme' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
465
+ add_settings_field( 'rl_pp_horizontal_padding', __( 'Horizontal padding', 'responsive-lightbox' ), array( &$this, 'rl_pp_horizontal_padding' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
466
+ add_settings_field( 'rl_pp_hide_flash', __( 'Hide Flash', 'responsive-lightbox' ), array( &$this, 'rl_pp_hide_flash' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
467
+ add_settings_field( 'rl_pp_wmode', __( 'Flash Window Mode (wmode)', 'responsive-lightbox' ), array( &$this, 'rl_pp_wmode' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
468
+ add_settings_field( 'rl_pp_video_autoplay', __( 'Video autoplay', 'responsive-lightbox' ), array( &$this, 'rl_pp_video_autoplay' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
469
+ add_settings_field( 'rl_pp_modal', __( 'Modal', 'responsive-lightbox' ), array( &$this, 'rl_pp_modal' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
470
+ add_settings_field( 'rl_pp_deeplinking', __( 'Deeplinking', 'responsive-lightbox' ), array( &$this, 'rl_pp_deeplinking' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
471
+ add_settings_field( 'rl_pp_overlay_gallery', __( 'Overlay gallery', 'responsive-lightbox' ), array( &$this, 'rl_pp_overlay_gallery' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
472
+ add_settings_field( 'rl_pp_keyboard_shortcuts', __( 'Keyboard shortcuts', 'responsive-lightbox' ), array( &$this, 'rl_pp_keyboard_shortcuts' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
473
+ add_settings_field( 'rl_pp_social', __( 'Social (Twitter, Facebook)', 'responsive-lightbox' ), array( &$this, 'rl_pp_social' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
474
+ } elseif ( $this->options['settings']['script'] === 'fancybox' ) {
475
+ add_settings_field( 'rl_fb_modal', __( 'Modal', 'responsive-lightbox' ), array( &$this, 'rl_fb_modal' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
476
+ add_settings_field( 'rl_fb_show_overlay', __( 'Show overlay', 'responsive-lightbox' ), array( &$this, 'rl_fb_show_overlay' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
477
+ add_settings_field( 'rl_fb_show_close_button', __( 'Show close button', 'responsive-lightbox' ), array( &$this, 'rl_fb_show_close_button' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
478
+ add_settings_field( 'rl_fb_enable_escape_button', __( 'Enable escape button', 'responsive-lightbox' ), array( &$this, 'rl_fb_enable_escape_button' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
479
+ add_settings_field( 'rl_fb_hide_on_overlay_click', __( 'Hide on overlay click', 'responsive-lightbox' ), array( &$this, 'rl_fb_hide_on_overlay_click' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
480
+ add_settings_field( 'rl_fb_hide_on_content_click', __( 'Hide on content click', 'responsive-lightbox' ), array( &$this, 'rl_fb_hide_on_content_click' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
481
+ add_settings_field( 'rl_fb_cyclic', __( 'Cyclic', 'responsive-lightbox' ), array( &$this, 'rl_fb_cyclic' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
482
+ add_settings_field( 'rl_fb_show_nav_arrows', __( 'Show nav arrows', 'responsive-lightbox' ), array( &$this, 'rl_fb_show_nav_arrows' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
483
+ add_settings_field( 'rl_fb_auto_scale', __( 'Auto scale', 'responsive-lightbox' ), array( &$this, 'rl_fb_auto_scale' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
484
+ add_settings_field( 'rl_fb_scrolling', __( 'Scrolling (in/out)', 'responsive-lightbox' ), array( &$this, 'rl_fb_scrolling' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
485
+ add_settings_field( 'rl_fb_center_on_scroll', __( 'Center on scroll', 'responsive-lightbox' ), array( &$this, 'rl_fb_center_on_scroll' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
486
+ add_settings_field( 'rl_fb_opacity', __( 'Opacity', 'responsive-lightbox' ), array( &$this, 'rl_fb_opacity' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
487
+ add_settings_field( 'rl_fb_overlay_opacity', __( 'Overlay opacity', 'responsive-lightbox' ), array( &$this, 'rl_fb_overlay_opacity' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
488
+ add_settings_field( 'rl_fb_overlay_color', __( 'Overlay color', 'responsive-lightbox' ), array( &$this, 'rl_fb_overlay_color' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
489
+ add_settings_field( 'rl_fb_title_show', __( 'Title show', 'responsive-lightbox' ), array( &$this, 'rl_fb_title_show' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
490
+ add_settings_field( 'rl_fb_title_position', __( 'Title position', 'responsive-lightbox' ), array( &$this, 'rl_fb_title_position' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
491
+ add_settings_field( 'rl_fb_transitions', __( 'Transition (in/out)', 'responsive-lightbox' ), array( &$this, 'rl_fb_transitions' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
492
+ add_settings_field( 'rl_fb_easings', __( 'Easings (in/out)', 'responsive-lightbox' ), array( &$this, 'rl_fb_easings' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
493
+ add_settings_field( 'rl_fb_speeds', __( 'Speed (in/out)', 'responsive-lightbox' ), array( &$this, 'rl_fb_speeds' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
494
+ add_settings_field( 'rl_fb_change_speed', __( 'Change speed', 'responsive-lightbox' ), array( &$this, 'rl_fb_change_speed' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
495
+ add_settings_field( 'rl_fb_change_fade', __( 'Change fade', 'responsive-lightbox' ), array( &$this, 'rl_fb_change_fade' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
496
+ add_settings_field( 'rl_fb_padding', __( 'Padding', 'responsive-lightbox' ), array( &$this, 'rl_fb_padding' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
497
+ add_settings_field( 'rl_fb_margin', __( 'Margin', 'responsive-lightbox' ), array( &$this, 'rl_fb_margin' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
498
+ add_settings_field( 'rl_fb_video_width', __( 'Video width', 'responsive-lightbox' ), array( &$this, 'rl_fb_video_width' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
499
+ add_settings_field( 'rl_fb_video_height', __( 'Video height', 'responsive-lightbox' ), array( &$this, 'rl_fb_video_height' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
500
+ } elseif ( $this->options['settings']['script'] === 'nivo' ) {
501
+ add_settings_field( 'rl_nv_effect', __( 'Effect', 'responsive-lightbox' ), array( &$this, 'rl_nv_effect' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
502
+ add_settings_field( 'rl_nv_click_overlay_to_close', __( 'Click overlay to close', 'responsive-lightbox' ), array( &$this, 'rl_nv_click_overlay_to_close' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
503
+ add_settings_field( 'rl_nv_keyboard_nav', __( 'Keyboard navigation', 'responsive-lightbox' ), array( &$this, 'rl_nv_keyboard_nav' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
504
+ add_settings_field( 'rl_nv_error_message', __( 'Error message', 'responsive-lightbox' ), array( &$this, 'rl_nv_error_message' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
505
+ } elseif ( $this->options['settings']['script'] === 'imagelightbox' ) {
506
+ add_settings_field( 'rl_il_animation_speed', __( 'Animation speed', 'responsive-lightbox' ), array( &$this, 'rl_il_animation_speed' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
507
+ add_settings_field( 'rl_il_preload_next', __( 'Preload next image', 'responsive-lightbox' ), array( &$this, 'rl_il_preload_next' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
508
+ add_settings_field( 'rl_il_enable_keyboard', __( 'Enable keyboard keys', 'responsive-lightbox' ), array( &$this, 'rl_il_enable_keyboard' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
509
+ add_settings_field( 'rl_il_quit_on_end', __( 'Quit after last image', 'responsive-lightbox' ), array( &$this, 'rl_il_quit_on_end' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
510
+ add_settings_field( 'rl_il_quit_on_image_click', __( 'Quit when image is clicked', 'responsive-lightbox' ), array( &$this, 'rl_il_quit_on_image_click' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
511
+ add_settings_field( 'rl_il_quit_on_document_click', __( 'Quit when anything but image is clicked', 'responsive-lightbox' ), array( &$this, 'rl_il_quit_on_document_click' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
512
+ }
513
+ }
514
+
515
+ public function rl_script() {
516
+ echo '
 
 
 
 
 
 
 
 
 
 
 
 
517
  <div id="rl_script" class="wplikebtns">';
518
 
519
+ foreach ( $this->scripts as $val => $trans ) {
520
+ $val = esc_attr( $val );
521
 
522
+ echo '
523
+ <input id="rl-script-' . $val . '" type="radio" name="responsive_lightbox_settings[script]" value="' . $val . '" ' . checked( $val, $this->options['settings']['script'], false ) . ' />
524
+ <label for="rl-script-' . $val . '">' . esc_html( $trans['name'] ) . '</label>';
525
+ }
526
 
527
+ echo '
528
+ <p class="description">' . __( 'Select your preffered ligthbox effect script.', 'responsive-lightbox' ) . '</p>
529
  </div>';
530
+ }
 
531
 
532
+ public function rl_selector() {
533
+ echo '
 
534
  <div id="rl_selector">
535
+ <input type="text" value="' . esc_attr( $this->options['settings']['selector'] ) . '" name="responsive_lightbox_settings[selector]" />
536
+ <p class="description">' . __( 'Select to which rel selector lightbox effect will be applied to.', 'responsive-lightbox' ) . '</p>
537
  </div>';
538
+ }
539
 
540
+ public function rl_enable_custom_events() {
541
+ echo '
 
 
542
  <div id="rl_enable_custom_events" class="wplikebtns">';
543
 
544
+ foreach ( $this->choices as $val => $trans ) {
545
+ $val = esc_attr( $val );
546
 
547
+ echo '
548
+ <input id="rl-enable-custom-events-' . $val . '" type="radio" name="responsive_lightbox_settings[enable_custom_events]" value="' . $val . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['settings']['enable_custom_events'], false ) . ' />
549
+ <label for="rl-enable-custom-events-' . $val . '">' . esc_html( $trans ) . '</label>';
550
+ }
551
 
552
+ echo '
553
+ <p class="description">' . __( 'Enable triggering lightbox on custom jquery events.', 'responsive-lightbox' ) . '</p>
554
  <div id="rl_custom_events"' . ($this->options['settings']['enable_custom_events'] === false ? ' style="display: none;"' : '') . '>
555
+ <input type="text" name="responsive_lightbox_settings[custom_events]" value="' . esc_attr( $this->options['settings']['custom_events'] ) . '" />
556
+ <p class="description">' . __( 'Enter a space separated list of events.', 'responsive-lightbox' ) . '</p>
557
  </div>
558
  </div>';
559
+ }
 
560
 
561
+ public function rl_loading_place() {
562
+ echo '
 
563
  <div id="rl_loading_place" class="wplikebtns">';
564
 
565
+ foreach ( $this->loading_places as $val => $trans ) {
566
+ $val = esc_attr( $val );
567
 
568
+ echo '
569
+ <input id="rl-loading-place-' . $val . '" type="radio" name="responsive_lightbox_settings[loading_place]" value="' . $val . '" ' . checked( $val, $this->options['settings']['loading_place'], false ) . ' />
570
+ <label for="rl-loading-place-' . $val . '">' . esc_html( $trans ) . '</label>';
571
+ }
572
 
573
+ echo '
574
+ <p class="description">' . __( 'Select where all the lightbox scripts should be placed.', 'responsive-lightbox' ) . '</p>
575
  </div>';
576
+ }
 
577
 
578
+ public function rl_galleries() {
579
+ echo '
 
580
  <div id="rl_galleries" class="wplikebtns">';
581
 
582
+ foreach ( $this->choices as $val => $trans ) {
583
+ echo '
584
+ <input id="rl-galleries-' . $val . '" type="radio" name="responsive_lightbox_settings[galleries]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['settings']['galleries'], false ) . ' />
585
  <label for="rl-galleries-' . $val . '">' . $trans . '</label>';
586
+ }
587
 
588
+ echo '
589
+ <p class="description">' . __( 'Add lightbox to WordPress image galleries by default.', 'responsive-lightbox' ) . '</p>
590
  </div>';
591
+ }
592
 
593
+ public function rl_enable_gallery_image_size() {
594
+ echo '
 
 
595
  <div id="rl_enable_gallery_image_size" class="wplikebtns">';
596
 
597
+ foreach ( $this->choices as $val => $trans ) {
598
+ $val = esc_attr( $val );
 
 
 
 
 
599
 
600
+ echo '
601
+ <input id="rl-enable-gallery-image-size-' . $val . '" type="radio" name="responsive_lightbox_settings[enable_gallery_image_size]" value="' . $val . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['settings']['enable_gallery_image_size'], false ) . ' />
602
+ <label for="rl-enable-gallery-image-size-' . $val . '">' . esc_html( $trans ) . '</label>';
603
+ }
604
 
605
+ echo '
606
+ <p class="description">' . __( 'By default WP gallery links point to full size images only. Enable that to modify the image size of native WP gallery image links.', 'responsive-lightbox' ) . '</p>';
607
 
608
+ // get available image sizes
609
+ $image_sizes = get_intermediate_image_sizes();
610
 
611
+ echo '
612
  <div id="rl_gallery_image_size"' . ($this->options['settings']['enable_gallery_image_size'] === false ? ' style="display: none;"' : '') . '>
613
+ <select name="responsive_lightbox_settings[gallery_image_size]" value="' . esc_attr( $this->options['settings']['gallery_image_size'] ) . '" />
614
+ <option value="full" ' . selected( $this->options['settings']['gallery_image_size'], 'full', false ) . '>' . esc_attr( __( 'full', 'responsive-lightbox' ) ) . '</option>';
615
 
616
+ foreach ( $image_sizes as $image_size ) {
617
+ echo '<option value="' . esc_attr( $image_size ) . '" ' . selected( $this->options['settings']['gallery_image_size'], esc_attr( $image_size ), false ) . '>' . esc_attr( $image_size ) . '</option>';
618
+ }
619
 
620
+ echo '
621
  </select>
622
+ <p class="description">' . __( 'Select image size for gallery image links.', 'responsive-lightbox' ) . '</p>
623
  </div>
624
  </div>';
625
+ }
 
626
 
627
+ public function rl_videos() {
628
+ echo '
 
629
  <div id="rl_videos" class="wplikebtns">';
630
 
631
+ foreach ( $this->choices as $val => $trans ) {
632
+ echo '
633
+ <input id="rl-videos-' . $val . '" type="radio" name="responsive_lightbox_settings[videos]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['settings']['videos'], false ) . ' />
634
  <label for="rl-videos-' . $val . '">' . $trans . '</label>';
635
+ }
636
 
637
+ echo '
638
+ <p class="description">' . __( 'Add lightbox to YouTube and Vimeo video links by default.', 'responsive-lightbox' ) . '</p>
639
  </div>';
640
+ }
641
 
642
+ public function rl_image_links() {
643
+ echo '
 
 
644
  <div id="rl_image_links" class="wplikebtns">';
645
 
646
+ foreach ( $this->choices as $val => $trans ) {
647
+ echo '
648
+ <input id="rl-image-links-' . $val . '" type="radio" name="responsive_lightbox_settings[image_links]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['settings']['image_links'], false ) . ' />
649
  <label for="rl-image-links-' . $val . '">' . $trans . '</label>';
650
+ }
651
 
652
+ echo '
653
+ <p class="description">' . __( 'Add lightbox to WordPress image links by default.', 'responsive-lightbox' ) . '</p>
654
  </div>';
655
+ }
 
656
 
657
+ public function rl_images_as_gallery() {
658
+ echo '
 
659
  <div id="rl_images_as_gallery" class="wplikebtns">';
660
 
661
+ foreach ( $this->choices as $val => $trans ) {
662
+ echo '
663
+ <input id="rl-images-as-gallery-' . $val . '" type="radio" name="responsive_lightbox_settings[images_as_gallery]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['settings']['images_as_gallery'], false ) . ' />
664
  <label for="rl-images-as-gallery-' . $val . '">' . $trans . '</label>';
665
+ }
666
 
667
+ echo '
668
+ <p class="description">' . __( 'Display single post images as a gallery.', 'responsive-lightbox' ) . '</p>
669
  </div>';
670
+ }
671
 
672
+ public function rl_deactivation_delete() {
673
+ echo '
 
 
674
  <div id="rl_deactivation_delete" class="wplikebtns">';
675
 
676
+ foreach ( $this->choices as $val => $trans ) {
677
+ echo '
678
+ <input id="rl-deactivation-delete-' . $val . '" type="radio" name="responsive_lightbox_settings[deactivation_delete]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['settings']['deactivation_delete'], false ) . ' />
679
  <label for="rl-deactivation-delete-' . $val . '">' . $trans . '</label>';
680
+ }
681
 
682
+ echo '
683
+ <p class="description">' . __( 'Delete settings on plugin deactivation.', 'responsive-lightbox' ) . '</p>
684
  </div>';
685
+ }
 
686
 
687
+ public function rl_sb_animation() {
688
+ echo '
 
689
  <div id="rl_sb_animation" class="wplikebtns">';
690
 
691
+ foreach ( $this->scripts['swipebox']['animations'] as $val => $trans ) {
692
+ echo '
693
+ <input id="rl-sb-animation-' . $val . '" type="radio" name="responsive_lightbox_configuration[swipebox][animation]" value="' . esc_attr( $val ) . '" ' . checked( $val, $this->options['configuration']['swipebox']['animation'], false ) . ' />
694
  <label for="rl-sb-animation-' . $val . '">' . $trans . '</label>';
695
+ }
696
 
697
+ echo '
698
+ <p class="description">' . __( 'Select a method of applying a lightbox effect.', 'responsive-lightbox' ) . '</p>
699
  </div>';
700
+ }
 
701
 
702
+ public function rl_sb_hide_bars() {
703
+ echo '
 
704
  <div id="rl_sb_hide_bars" class="wplikebtns">';
705
 
706
+ foreach ( $this->choices as $val => $trans ) {
707
+ echo '
708
+ <input id="rl-sb-hide-bars-' . $val . '" type="radio" name="responsive_lightbox_configuration[swipebox][hide_bars]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['swipebox']['hide_bars'], false ) . ' />
709
  <label for="rl-sb-hide-bars-' . $val . '">' . $trans . '</label>';
710
+ }
711
 
712
+ echo '
713
+ <p class="description">' . __( 'Disable if you don\'t want to top and bottom bars to be hidden after a period of time.', 'responsive-lightbox' ) . '</p>
714
+ <div id="rl_sb_hide_bars_delay"' . ($this->options['configuration']['swipebox']['hide_bars'] === false ? ' style="display: none;"' : '') . '>
715
+ <input type="text" name="responsive_lightbox_configuration[swipebox][hide_bars_delay]" value="' . esc_attr( $this->options['configuration']['swipebox']['hide_bars_delay'] ) . '" /> <span>ms</span>
716
+ <p class="description">' . __( 'Enter the time after which the top and bottom bars will be hidden (when hiding is enabled).', 'responsive-lightbox' ) . '</p>
717
  </div>
718
  </div>';
719
+ }
720
 
721
+ public function rl_sb_video_max_width() {
722
+ echo '
 
 
723
  <div id="rl_sb_video_max_width">
724
+ <input type="text" name="responsive_lightbox_configuration[swipebox][video_max_width]" value="' . esc_attr( $this->options['configuration']['swipebox']['video_max_width'] ) . '" /> <span>px</span>
725
+ <p class="description">' . __( 'Enter the max video width in a lightbox.', 'responsive-lightbox' ) . '</p>
726
  </div>';
727
+ }
728
+
729
+ public function rl_sb_hide_close_mobile() {
730
+ echo '
731
+ <div id="rl_sb_hide_close_mobile" class="wplikebtns">';
732
 
733
+ foreach ( $this->choices as $val => $trans ) {
734
+ echo '
735
+ <input id="rl-sb-hide-close-mobile-' . $val . '" type="radio" name="responsive_lightbox_configuration[swipebox][hide_close_mobile]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['swipebox']['hide_close_mobile'], false ) . ' />
736
+ <label for="rl-sb-hide-close-mobile-' . $val . '">' . $trans . '</label>';
737
+ }
738
 
739
+ echo '
740
+ <p class="description">' . __( 'True will hide the close button on mobile devices.', 'responsive-lightbox' ) . '</p>
741
+ </div>';
742
+ }
743
+
744
+ public function rl_sb_force_png_icons() {
745
+ echo '
746
  <div id="rl_sb_force_png_icons" class="wplikebtns">';
747
 
748
+ foreach ( $this->choices as $val => $trans ) {
749
+ echo '
750
+ <input id="rl-sb-force-png-icons-' . $val . '" type="radio" name="responsive_lightbox_configuration[swipebox][force_png_icons]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['swipebox']['force_png_icons'], false ) . ' />
751
  <label for="rl-sb-force-png-icons-' . $val . '">' . $trans . '</label>';
752
+ }
753
 
754
+ echo '
755
+ <p class="description">' . __( 'Enable this if you\'re having problems with navigation icons not visible on some devices.', 'responsive-lightbox' ) . '</p>
756
  </div>';
757
+ }
758
+
759
+ public function rl_sb_loop_at_end() {
760
+ echo '
761
+ <div id="rl_sb_loop_at_end" class="wplikebtns">';
762
 
763
+ foreach ( $this->choices as $val => $trans ) {
764
+ echo '
765
+ <input id="rl-sb-loop-at-end-' . $val . '" type="radio" name="responsive_lightbox_configuration[swipebox][loop_at_end]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['swipebox']['loop_at_end'], false ) . ' />
766
+ <label for="rl-sb-loop-at-end-' . $val . '">' . $trans . '</label>';
767
+ }
768
+
769
+ echo '
770
+ <p class="description">' . __( 'True will return to the first image after the last image is reached.', 'responsive-lightbox' ) . '</p>
771
+ </div>';
772
+ }
773
 
774
+ public function rl_pp_animation_speed() {
775
+ echo '
 
776
  <div id="rl_pp_animation_speed" class="wplikebtns">';
777
 
778
+ foreach ( $this->scripts['prettyphoto']['animation_speeds'] as $val => $trans ) {
779
+ echo '
780
+ <input id="rl-pp-animation-speed-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][animation_speed]" value="' . esc_attr( $val ) . '" ' . checked( $val, $this->options['configuration']['prettyphoto']['animation_speed'], false ) . ' />
781
  <label for="rl-pp-animation-speed-' . $val . '">' . $trans . '</label>';
782
+ }
783
 
784
+ echo '
785
+ <p class="description">' . __( 'Select animation speed for lightbox effect.', 'responsive-lightbox' ) . '</p>
786
  </div>';
787
+ }
788
 
789
+ public function rl_pp_slideshow() {
790
+ echo '
 
 
791
  <div id="rl_pp_slideshow" class="wplikebtns">';
792
 
793
+ foreach ( $this->choices as $val => $trans ) {
794
+ echo '
795
+ <input id="rl-pp-slideshow-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][slideshow]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['prettyphoto']['slideshow'], false ) . ' />
796
  <label for="rl-pp-slideshow-' . $val . '">' . $trans . '</label>';
797
+ }
798
 
799
+ echo '
800
+ <p class="description">' . __( 'Display images as slideshow.', 'responsive-lightbox' ) . '</p>
801
+ <div id="rl_pp_slideshow_delay"' . ($this->options['configuration']['prettyphoto']['slideshow'] === false ? ' style="display: none;"' : '') . '>
802
+ <input type="text" name="responsive_lightbox_configuration[prettyphoto][slideshow_delay]" value="' . esc_attr( $this->options['configuration']['prettyphoto']['slideshow_delay'] ) . '" /> <span>ms</span>
803
+ <p class="description">' . __( 'Enter time (in miliseconds).', 'responsive-lightbox' ) . '</p>
804
  </div>
805
  </div>';
806
+ }
 
807
 
808
+ public function rl_pp_slideshow_autoplay() {
809
+ echo '
 
810
  <div id="rl_pp_slideshow_autoplay" class="wplikebtns">';
811
 
812
+ foreach ( $this->choices as $val => $trans ) {
813
+ echo '
814
+ <input id="rl-pp-slideshow-autoplay-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][slideshow_autoplay]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['prettyphoto']['slideshow_autoplay'], false ) . ' />
815
  <label for="rl-pp-slideshow-autoplay-' . $val . '">' . $trans . '</label>';
816
+ }
817
 
818
+ echo '
819
+ <p class="description">' . __( 'Automatically start slideshow.', 'responsive-lightbox' ) . '</p>
820
  </div>';
821
+ }
 
822
 
823
+ public function rl_pp_opacity() {
824
+ echo '
 
825
  <div id="rl_pp_opacity">
826
+ <input type="text" id="rl_pp_opacity_input" class="hide-if-js" name="responsive_lightbox_configuration[prettyphoto][opacity]" value="' . esc_attr( $this->options['configuration']['prettyphoto']['opacity'] ) . '" />
827
  <div class="wplike-slider">
828
+ <span class="left hide-if-no-js">0</span><span class="middle" id="rl_pp_opacity_span" title="' . esc_attr( $this->options['configuration']['prettyphoto']['opacity'] ) . '"></span><span class="right hide-if-no-js">100</span>
829
  </div>
830
+ <p class="description">' . __( 'Value between 0 and 100, 100 for no opacity.', 'responsive-lightbox' ) . '</p>
831
  </div>';
832
+ }
833
 
834
+ public function rl_pp_title() {
835
+ echo '
 
 
836
  <div id="rl_pp_title" class="wplikebtns">';
837
 
838
+ foreach ( $this->choices as $val => $trans ) {
839
+ echo '
840
+ <input id="rl-pp-show-title-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][show_title]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['prettyphoto']['show_title'], false ) . ' />
841
  <label for="rl-pp-show-title-' . $val . '">' . $trans . '</label>';
842
+ }
843
 
844
+ echo '
845
+ <p class="description">' . __( 'Display image tiltle.', 'responsive-lightbox' ) . '</p>
846
  </div>';
847
+ }
 
848
 
849
+ public function rl_pp_allow_resize() {
850
+ echo '
 
851
  <div id="rl_pp_allow_resize" class="wplikebtns">';
852
 
853
+ foreach ( $this->choices as $val => $trans ) {
854
+ echo '
855
+ <input id="rl-pp-allow-resize-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][allow_resize]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['prettyphoto']['allow_resize'], false ) . ' />
856
  <label for="rl-pp-allow-resize-' . $val . '">' . $trans . '</label>';
857
+ }
858
 
859
+ echo '
860
+ <p class="description">' . __( 'Resize the photos bigger than viewport.', 'responsive-lightbox' ) . '</p>
861
  </div>';
862
+ }
863
 
864
+ public function rl_pp_allow_expand() {
865
+ echo '
 
 
866
  <div id="rl_pp_allow_expand" class="wplikebtns">';
867
 
868
+ foreach ( $this->choices as $val => $trans ) {
869
+ echo '
870
+ <input id="rl-pp-allow-expand-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][allow_expand]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['prettyphoto']['allow_expand'], false ) . ' />
871
  <label for="rl-pp-allow-expand-' . $val . '">' . $trans . '</label>';
872
+ }
873
 
874
+ echo '
875
+ <p class="description">' . __( 'Expands something.', 'responsive-lightbox' ) . '</p>
876
  </div>';
877
+ }
 
878
 
879
+ public function rl_pp_width() {
880
+ echo '
 
881
  <div id="rl_pp_width">
882
+ <input type="text" name="responsive_lightbox_configuration[prettyphoto][width]" value="' . esc_attr( $this->options['configuration']['prettyphoto']['width'] ) . '" /> <span>px</span>
883
+ <p class="description">' . __( 'in pixels', 'responsive-lightbox' ) . '</p>
884
  </div>';
885
+ }
 
886
 
887
+ public function rl_pp_height() {
888
+ echo '
 
889
  <div id="rl_pp_height">
890
+ <input type="text" name="responsive_lightbox_configuration[prettyphoto][height]" value="' . esc_attr( $this->options['configuration']['prettyphoto']['height'] ) . '" /> <span>px</span>
891
+ <p class="description">' . __( 'in pixels', 'responsive-lightbox' ) . '</p>
892
  </div>';
893
+ }
894
 
895
+ public function rl_pp_theme() {
896
+ echo '
 
 
897
  <div id="rl_pp_theme" class="wplikebtns">';
898
 
899
+ foreach ( $this->scripts['prettyphoto']['themes'] as $val => $trans ) {
900
+ echo '
901
+ <input id="rl-pp-theme-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][theme]" value="' . esc_attr( $val ) . '" ' . checked( $val, $this->options['configuration']['prettyphoto']['theme'], false ) . ' />
902
  <label for="rl-pp-theme-' . $val . '">' . $trans . '</label>';
903
+ }
904
 
905
+ echo '
906
+ <p class="description">' . __( 'Select theme for lightbox effect.', 'responsive-lightbox' ) . '</p>
907
  </div>';
908
+ }
 
909
 
910
+ public function rl_pp_horizontal_padding() {
911
+ echo '
 
912
  <div id="rl_pp_horizontal_padding">
913
+ <input type="text" name="responsive_lightbox_configuration[prettyphoto][horizontal_padding]" value="' . esc_attr( $this->options['configuration']['prettyphoto']['horizontal_padding'] ) . '" /> <span>px</span>
914
+ <p class="description">' . __( 'Horizontal padding (in pixels).', 'responsive-lightbox' ) . '</p>
915
  </div>';
916
+ }
917
 
918
+ public function rl_pp_hide_flash() {
919
+ echo '
 
 
920
  <div id="rl_pp_hide_flash" class="wplikebtns">';
921
 
922
+ foreach ( $this->choices as $val => $trans ) {
923
+ echo '
924
+ <input id="rl-pp-hide-flash-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][hide_flash]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['prettyphoto']['hide_flash'], false ) . ' />
925
  <label for="rl-pp-hide-flash-' . $val . '">' . $trans . '</label>';
926
+ }
927
 
928
+ echo '
929
+ <p class="description">' . __( 'Hides all the flash object on a page. Enable this if flash appears over prettyPhoto.', 'responsive-lightbox' ) . '</p>
930
  </div>';
931
+ }
 
932
 
933
+ public function rl_pp_wmode() {
934
+ echo '
 
935
  <div id="rl_pp_wmode" class="wplikebtns">';
936
 
937
+ foreach ( $this->scripts['prettyphoto']['wmodes'] as $val => $trans ) {
938
+ echo '
939
+ <input id="rl-pp-wmode-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][wmode]" value="' . esc_attr( $val ) . '" ' . checked( $val, $this->options['configuration']['prettyphoto']['wmode'], false ) . ' />
940
  <label for="rl-pp-wmode-' . $val . '">' . $trans . '</label>';
941
+ }
942
 
943
+ echo '
944
+ <p class="description">' . __( 'Select flash window mode.', 'responsive-lightbox' ) . '</p>
945
  </div>';
946
+ }
 
947
 
948
+ public function rl_pp_video_autoplay() {
949
+ echo '
 
950
  <div id="rl_pp_video_autoplay" class="wplikebtns">';
951
 
952
+ foreach ( $this->choices as $val => $trans ) {
953
+ echo '
954
+ <input id="rl-pp-video-autoplay-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][video_autoplay]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['prettyphoto']['video_autoplay'], false ) . ' />
955
  <label for="rl-pp-video-autoplay-' . $val . '">' . $trans . '</label>';
956
+ }
957
 
958
+ echo '
959
+ <p class="description">' . __( 'Automatically start videos.', 'responsive-lightbox' ) . '</p>
960
  </div>';
961
+ }
962
 
963
+ public function rl_pp_modal() {
964
+ echo '
 
 
965
  <div id="rl_pp_modal" class="wplikebtns">';
966
 
967
+ foreach ( $this->choices as $val => $trans ) {
968
+ echo '
969
+ <input id="rl-pp-modal-close-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][modal]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['prettyphoto']['modal'], false ) . ' />
970
  <label for="rl-pp-modal-close-' . $val . '">' . $trans . '</label>';
971
+ }
972
 
973
+ echo '
974
+ <p class="description">' . __( 'If set to true, only the close button will close the window.', 'responsive-lightbox' ) . '</p>
975
  </div>';
976
+ }
 
977
 
978
+ public function rl_pp_deeplinking() {
979
+ echo '
 
980
  <div id="rl_pp_deeplinking" class="wplikebtns">';
981
 
982
+ foreach ( $this->choices as $val => $trans ) {
983
+ echo '
984
+ <input id="rl-pp-deeplinking-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][deeplinking]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['prettyphoto']['deeplinking'], false ) . ' />
985
  <label for="rl-pp-deeplinking-' . $val . '">' . $trans . '</label>';
986
+ }
987
 
988
+ echo '
989
+ <p class="description">' . __( 'Allow prettyPhoto to update the url to enable deeplinking.', 'responsive-lightbox' ) . '</p>
990
  </div>';
991
+ }
992
 
993
+ public function rl_pp_overlay_gallery() {
994
+ echo '
 
 
995
  <div id="rl_pp_overlay_gallery" class="wplikebtns">';
996
 
997
+ foreach ( $this->choices as $val => $trans ) {
998
+ echo '
999
+ <input id="rl-pp-overlay-gallery-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][overlay_gallery]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['prettyphoto']['overlay_gallery'], false ) . ' />
1000
  <label for="rl-pp-overlay-gallery-' . $val . '">' . $trans . '</label>';
1001
+ }
1002
 
1003
+ echo '
1004
+ <p class="description">' . __( 'If enabled, a gallery will overlay the fullscreen image on mouse over.', 'responsive-lightbox' ) . '</p>
1005
  </div>';
1006
+ }
 
1007
 
1008
+ public function rl_pp_keyboard_shortcuts() {
1009
+ echo '
 
1010
  <div id="rl_pp_keyboard_shortcuts" class="wplikebtns">';
1011
 
1012
+ foreach ( $this->choices as $val => $trans ) {
1013
+ echo '
1014
+ <input id="rl-pp-keyboard-shortcuts-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][keyboard_shortcuts]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['prettyphoto']['keyboard_shortcuts'], false ) . ' />
1015
  <label for="rl-pp-keyboard-shortcuts-' . $val . '">' . $trans . '</label>';
1016
+ }
1017
 
1018
+ echo '
1019
+ <p class="description">' . __( 'Set to false if you open forms inside prettyPhoto.', 'responsive-lightbox' ) . '</p>
1020
  </div>';
1021
+ }
 
1022
 
1023
+ public function rl_pp_social() {
1024
+ echo '
 
1025
  <div id="rl_pp_social" class="wplikebtns">';
1026
 
1027
+ foreach ( $this->choices as $val => $trans ) {
1028
+ echo '
1029
+ <input id="rl-pp-social-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][social]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['prettyphoto']['social'], false ) . ' />
1030
  <label for="rl-pp-social-' . $val . '">' . $trans . '</label>';
1031
+ }
1032
 
1033
+ echo '
1034
+ <p class="description">' . __( 'Display links to Facebook and Twitter.', 'responsive-lightbox' ) . '</p>
1035
  </div>';
1036
+ }
1037
 
1038
+ public function rl_fb_transitions() {
1039
+ echo '
 
 
1040
  <div id="rl_fb_transition" class="wplikebtns">';
1041
 
1042
+ foreach ( $this->scripts['fancybox']['transitions'] as $val => $trans ) {
1043
+ echo '
1044
+ <input id="rl-fb-transitions-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][transitions]" value="' . esc_attr( $val ) . '" ' . checked( $val, $this->options['configuration']['fancybox']['transitions'], false ) . ' />
1045
  <label for="rl-fb-transitions-' . $val . '">' . $trans . '</label>';
1046
+ }
1047
 
1048
+ echo '
1049
+ <p class="description">' . __( 'The transition type.', 'responsive-lightbox' ) . '</p>
1050
  </div>';
1051
+ }
 
1052
 
1053
+ public function rl_fb_padding() {
1054
+ echo '
 
1055
  <div id="rl_fb_padding">
1056
+ <input type="text" name="responsive_lightbox_configuration[fancybox][padding]" value="' . esc_attr( $this->options['configuration']['fancybox']['padding'] ) . '" /> <span>px</span>
1057
+ <p class="description">' . __( 'Space between FancyBox wrapper and content.', 'responsive-lightbox' ) . '</p>
1058
  </div>';
1059
+ }
1060
 
1061
+ public function rl_fb_margin() {
1062
+ echo '
 
 
1063
  <div id="rl_fb_margin">
1064
+ <input type="text" name="responsive_lightbox_configuration[fancybox][margin]" value="' . esc_attr( $this->options['configuration']['fancybox']['margin'] ) . '" /> <span>px</span>
1065
+ <p class="description">' . __( 'Space between viewport and FancyBox wrapper.', 'responsive-lightbox' ) . '</p>
1066
  </div>';
1067
+ }
 
1068
 
1069
+ public function rl_fb_modal() {
1070
+ echo '
 
1071
  <div id="rl_fb_modal" class="wplikebtns">';
1072
 
1073
+ foreach ( $this->choices as $val => $trans ) {
1074
+ echo '
1075
+ <input id="rl-fb-modal-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][modal]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['fancybox']['modal'], false ) . ' />
1076
  <label for="rl-fb-modal-' . $val . '">' . $trans . '</label>';
1077
+ }
1078
 
1079
+ echo '
1080
+ <p class="description">' . __( 'When true, "overlayShow" is set to true and "hideOnOverlayClick", "hideOnContentClick", "enableEscapeButton", "showCloseButton" are set to false.', 'responsive-lightbox' ) . '</p>
1081
  </div>';
1082
+ }
 
1083
 
1084
+ public function rl_fb_show_overlay() {
1085
+ echo '
 
1086
  <div id="rl_fb_show_overlay" class="wplikebtns">';
1087
 
1088
+ foreach ( $this->choices as $val => $trans ) {
1089
+ echo '
1090
+ <input id="rl-fb-show-overlay-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][show_overlay]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['fancybox']['show_overlay'], false ) . ' ' . disabled( $this->options['configuration']['fancybox']['modal'], true, false ) . ' />
1091
  <label for="rl-fb-show-overlay-' . $val . '">' . $trans . '</label>';
1092
+ }
1093
 
1094
+ echo '
1095
+ <p class="description">' . __( 'Toggle overlay.', 'responsive-lightbox' ) . '</p>
1096
  </div>';
1097
+ }
1098
 
1099
+ public function rl_fb_show_close_button() {
1100
+ echo '
 
 
1101
  <div id="rl_fb_show_close_button" class="wplikebtns">';
1102
 
1103
+ foreach ( $this->choices as $val => $trans ) {
1104
+ echo '
1105
+ <input id="rl-fb-show-close-button-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][show_close_button]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['fancybox']['show_close_button'], false ) . ' ' . disabled( $this->options['configuration']['fancybox']['modal'], true, false ) . ' />
1106
  <label for="rl-fb-show-close-button-' . $val . '">' . $trans . '</label>';
1107
+ }
1108
 
1109
+ echo '
1110
+ <p class="description">' . __( 'Toggle close button.', 'responsive-lightbox' ) . '</p>
1111
  </div>';
1112
+ }
 
1113
 
1114
+ public function rl_fb_enable_escape_button() {
1115
+ echo '
 
1116
  <div id="rl_fb_enable_escape_button" class="wplikebtns">';
1117
 
1118
+ foreach ( $this->choices as $val => $trans ) {
1119
+ echo '
1120
+ <input id="rl-fb-enable-escape-button-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][enable_escape_button]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['fancybox']['enable_escape_button'], false ) . ' ' . disabled( $this->options['configuration']['fancybox']['modal'], true, false ) . ' />
1121
  <label for="rl-fb-enable-escape-button-' . $val . '">' . $trans . '</label>';
1122
+ }
1123
 
1124
+ echo '
1125
+ <p class="description">' . __( 'Toggle if pressing Esc button closes FancyBox.', 'responsive-lightbox' ) . '</p>
1126
  </div>';
1127
+ }
 
1128
 
1129
+ public function rl_fb_hide_on_overlay_click() {
1130
+ echo '
 
1131
  <div id="rl_fb_hide_on_overlay_click" class="wplikebtns">';
1132
 
1133
+ foreach ( $this->choices as $val => $trans ) {
1134
+ echo '
1135
+ <input id="rl-fb-hide-on-overlay-click-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][hide_on_overlay_click]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['fancybox']['hide_on_overlay_click'], false ) . ' ' . disabled( $this->options['configuration']['fancybox']['modal'], true, false ) . ' />
1136
  <label for="rl-fb-hide-on-overlay-click-' . $val . '">' . $trans . '</label>';
1137
+ }
1138
 
1139
+ echo '
1140
+ <p class="description">' . __( 'Toggle if clicking the overlay should close FancyBox.', 'responsive-lightbox' ) . '</p>
1141
  </div>';
1142
+ }
1143
 
1144
+ public function rl_fb_hide_on_content_click() {
1145
+ echo '
 
 
1146
  <div id="rl_fb_hide_on_content_click" class="wplikebtns">';
1147
 
1148
+ foreach ( $this->choices as $val => $trans ) {
1149
+ echo '
1150
+ <input id="rl-fb-hide-on-content-click-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][hide_on_content_click]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['fancybox']['hide_on_content_click'], false ) . ' ' . disabled( $this->options['configuration']['fancybox']['modal'], true, false ) . ' />
1151
  <label for="rl-fb-hide-on-content-click-' . $val . '">' . $trans . '</label>';
1152
+ }
1153
 
1154
+ echo '
1155
+ <p class="description">' . __( 'Toggle if clicking the content should close FancyBox.', 'responsive-lightbox' ) . '</p>
1156
  </div>';
1157
+ }
 
1158
 
1159
+ public function rl_fb_cyclic() {
1160
+ echo '
 
1161
  <div id="rl_fb_cyclic" class="wplikebtns">';
1162
 
1163
+ foreach ( $this->choices as $val => $trans ) {
1164
+ echo '
1165
+ <input id="rl-fb-cyclic-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][cyclic]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['fancybox']['cyclic'], false ) . ' />
1166
  <label for="rl-fb-cyclic-' . $val . '">' . $trans . '</label>';
1167
+ }
1168
 
1169
+ echo '
1170
+ <p class="description">' . __( 'When true, galleries will be cyclic, allowing you to keep pressing next/back.', 'responsive-lightbox' ) . '</p>
1171
  </div>';
1172
+ }
 
1173
 
1174
+ public function rl_fb_show_nav_arrows() {
1175
+ echo '
 
1176
  <div id="rl_fb_show_nav_arrows" class="wplikebtns">';
1177
 
1178
+ foreach ( $this->choices as $val => $trans ) {
1179
+ echo '
1180
+ <input id="rl-fb-show-nav-arrows-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][show_nav_arrows]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['fancybox']['show_nav_arrows'], false ) . ' />
1181
  <label for="rl-fb-show-nav-arrows-' . $val . '">' . $trans . '</label>';
1182
+ }
1183
 
1184
+ echo '
1185
+ <p class="description">' . __( 'Toggle navigation arrows.', 'responsive-lightbox' ) . '</p>
1186
  </div>';
1187
+ }
1188
 
1189
+ public function rl_fb_auto_scale() {
1190
+ echo '
 
 
1191
  <div id="rl_fb_auto_scale" class="wplikebtns">';
1192
 
1193
+ foreach ( $this->choices as $val => $trans ) {
1194
+ echo '
1195
+ <input id="rl-fb-auto-scale-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][auto_scale]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['fancybox']['auto_scale'], false ) . ' />
1196
  <label for="rl-fb-auto-scale-' . $val . '">' . $trans . '</label>';
1197
+ }
1198
 
1199
+ echo '
1200
+ <p class="description">' . __( 'If true, FancyBox is scaled to fit in viewport.', 'responsive-lightbox' ) . '</p>
1201
  </div>';
1202
+ }
 
1203
 
1204
+ public function rl_fb_scrolling() {
1205
+ echo '
 
1206
  <div id="rl_fb_scrolling" class="wplikebtns">';
1207
 
1208
+ foreach ( $this->scripts['fancybox']['scrollings'] as $val => $trans ) {
1209
+ echo '
1210
+ <input id="rl-fb-scrolling-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][scrolling]" value="' . esc_attr( $val ) . '" ' . checked( $val, $this->options['configuration']['fancybox']['scrolling'], false ) . ' />
1211
  <label for="rl-fb-scrolling-' . $val . '">' . $trans . '</label>';
1212
+ }
1213
 
1214
+ echo '
1215
+ <p class="description">' . __( 'Set the overflow CSS property to create or hide scrollbars.', 'responsive-lightbox' ) . '</p>
1216
  </div>';
1217
+ }
1218
 
1219
+ public function rl_fb_center_on_scroll() {
1220
+ echo '
 
 
1221
  <div id="rl_fb_center_on_scroll" class="wplikebtns">';
1222
 
1223
+ foreach ( $this->choices as $val => $trans ) {
1224
+ echo '
1225
+ <input id="rl-fb-center-on-scroll-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][center_on_scroll]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['fancybox']['center_on_scroll'], false ) . ' />
1226
  <label for="rl-fb-center-on-scroll-' . $val . '">' . $trans . '</label>';
1227
+ }
1228
 
1229
+ echo '
1230
+ <p class="description">' . __( 'When true, FancyBox is centered while scrolling page.', 'responsive-lightbox' ) . '</p>
1231
  </div>';
1232
+ }
 
1233
 
1234
+ public function rl_fb_opacity() {
1235
+ echo '
 
1236
  <div id="rl_fb_opacity" class="wplikebtns">';
1237
 
1238
+ foreach ( $this->choices as $val => $trans ) {
1239
+ echo '
1240
+ <input id="rl-fb-opacity-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][opacity]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['fancybox']['opacity'], false ) . ' />
1241
  <label for="rl-fb-opacity-' . $val . '">' . $trans . '</label>';
1242
+ }
1243
 
1244
+ echo '
1245
+ <p class="description">' . __( 'When true, transparency of content is changed for elastic transitions.', 'responsive-lightbox' ) . '</p>
1246
  </div>';
1247
+ }
 
1248
 
1249
+ public function rl_fb_overlay_opacity() {
1250
+ echo '
 
1251
  <div id="rl_fb_overlay_opacity">
1252
+ <input type="text" id="rl_fb_overlay_opacity_input" class="hide-if-js" name="responsive_lightbox_configuration[fancybox][overlay_opacity]" value="' . esc_attr( $this->options['configuration']['fancybox']['overlay_opacity'] ) . '" />
1253
  <div class="wplike-slider">
1254
+ <span class="left hide-if-no-js">0</span><span class="middle" id="rl_fb_overlay_opacity_span" title="' . esc_attr( $this->options['configuration']['fancybox']['overlay_opacity'] ) . '"></span><span class="right hide-if-no-js">100</span>
1255
  </div>
1256
+ <p class="description">' . __( 'Opacity of the overlay.', 'responsive-lightbox' ) . '</p>
1257
  </div>';
1258
+ }
1259
 
1260
+ public function rl_fb_overlay_color() {
1261
+ echo '
 
 
1262
  <div id="rl_fb_overlay_color">
1263
+ <input type="text" value="' . esc_attr( $this->options['configuration']['fancybox']['overlay_color'] ) . '" id="rl_fb_overlay_color_input" name="responsive_lightbox_configuration[fancybox][overlay_color]" data-default-color="' . $this->defaults['configuration']['fancybox']['overlay_color'] . '" />
1264
+ <p class="description">' . __( 'Color of the overlay.', 'responsive-lightbox' ) . '</p>
1265
  </div>';
1266
+ }
 
1267
 
1268
+ public function rl_fb_title_show() {
1269
+ echo '
 
1270
  <div id="rl_fb_title_show" class="wplikebtns">';
1271
 
1272
+ foreach ( $this->choices as $val => $trans ) {
1273
+ echo '
1274
+ <input id="rl-fb-title-show-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][title_show]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['fancybox']['title_show'], false ) . ' />
1275
  <label for="rl-fb-title-show-' . $val . '">' . $trans . '</label>';
1276
+ }
1277
 
1278
+ echo '
1279
+ <p class="description">' . __( 'Toggle title.', 'responsive-lightbox' ) . '</p>
1280
  </div>';
1281
+ }
1282
 
1283
+ public function rl_fb_title_position() {
1284
+ echo '
 
 
1285
  <div id="rl_fb_title_position" class="wplikebtns">';
1286
 
1287
+ foreach ( $this->scripts['fancybox']['positions'] as $val => $trans ) {
1288
+ echo '
1289
+ <input id="rl-fb-title-position-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][title_position]" value="' . esc_attr( $val ) . '" ' . checked( $val, $this->options['configuration']['fancybox']['title_position'], false ) . ' />
1290
  <label for="rl-fb-title-position-' . $val . '">' . $trans . '</label>';
1291
+ }
1292
 
1293
+ echo '
1294
+ <p class="description">' . __( 'The position of title.', 'responsive-lightbox' ) . '</p>
1295
  </div>';
1296
+ }
 
1297
 
1298
+ public function rl_fb_easings() {
1299
+ echo '
 
1300
  <div id="rl_fb_easings" class="wplikebtns">';
1301
 
1302
+ foreach ( $this->scripts['fancybox']['easings'] as $val => $trans ) {
1303
+ echo '
1304
+ <input id="rl-fb-easings-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][easings]" value="' . esc_attr( $val ) . '" ' . checked( $val, $this->options['configuration']['fancybox']['easings'], false ) . ' />
1305
  <label for="rl-fb-easings-' . $val . '">' . $trans . '</label>';
1306
+ }
1307
 
1308
+ echo '
1309
+ <p class="description">' . __( 'Easing used for elastic animations.', 'responsive-lightbox' ) . '</p>
1310
  </div>';
1311
+ }
 
1312
 
1313
+ public function rl_fb_speeds() {
1314
+ echo '
 
1315
  <div id="rl_fb_speeds">
1316
+ <input type="text" value="' . esc_attr( $this->options['configuration']['fancybox']['speeds'] ) . '" name="responsive_lightbox_configuration[fancybox][speeds]" /> <span>ms</span>
1317
+ <p class="description">' . __( 'Speed of the fade and elastic transitions, in milliseconds.', 'responsive-lightbox' ) . '</p>
1318
  </div>';
1319
+ }
1320
 
1321
+ public function rl_fb_change_speed() {
1322
+ echo '
 
 
1323
  <div id="rl_fb_change_speed">
1324
+ <input type="text" value="' . esc_attr( $this->options['configuration']['fancybox']['change_speed'] ) . '" name="responsive_lightbox_configuration[fancybox][change_speed]" /> <span>ms</span>
1325
+ <p class="description">' . __( 'Speed of resizing when changing gallery items, in milliseconds.', 'responsive-lightbox' ) . '</p>
1326
  </div>';
1327
+ }
 
1328
 
1329
+ public function rl_fb_change_fade() {
1330
+ echo '
 
1331
  <div id="rl_fb_change_fade">
1332
+ <input type="text" value="' . esc_attr( $this->options['configuration']['fancybox']['change_fade'] ) . '" name="responsive_lightbox_configuration[fancybox][change_fade]" /> <span>ms</span>
1333
+ <p class="description">' . __( 'Speed of the content fading while changing gallery items.', 'responsive-lightbox' ) . '</p>
1334
  </div>';
1335
+ }
1336
 
1337
+ public function rl_fb_video_width() {
1338
+ echo '
 
 
1339
  <div id="rl_fb_video_width">
1340
+ <input type="text" value="' . esc_attr( $this->options['configuration']['fancybox']['video_width'] ) . '" name="responsive_lightbox_configuration[fancybox][video_width]" /> <span>px</span>
1341
+ <p class="description">' . __( 'Width of the video.', 'responsive-lightbox' ) . '</p>
1342
  </div>';
1343
+ }
 
1344
 
1345
+ public function rl_fb_video_height() {
1346
+ echo '
 
1347
  <div id="rl_fb_video_height">
1348
+ <input type="text" value="' . esc_attr( $this->options['configuration']['fancybox']['video_height'] ) . '" name="responsive_lightbox_configuration[fancybox][video_height]" /> <span>px</span>
1349
+ <p class="description">' . __( 'Height of the video.', 'responsive-lightbox' ) . '</p>
1350
  </div>';
1351
+ }
 
1352
 
1353
+ public function rl_nv_effect() {
1354
+ echo '
 
1355
  <div id="rl_nv_effect" class="wplikebtns">';
1356
 
1357
+ foreach ( $this->scripts['nivo']['effects'] as $val => $trans ) {
1358
+ echo '
1359
+ <input id="rl-nv-effect-' . $val . '" type="radio" name="responsive_lightbox_configuration[nivo][effect]" value="' . esc_attr( $val ) . '" ' . checked( $val, $this->options['configuration']['nivo']['effect'], false ) . ' />
1360
  <label for="rl-nv-effect-' . $val . '">' . $trans . '</label>';
1361
+ }
1362
 
1363
+ echo '
1364
+ <p class="description">' . __( 'The effect to use when showing the lightbox.', 'responsive-lightbox' ) . '</p>
1365
  </div>';
1366
+ }
1367
 
1368
+ public function rl_nv_keyboard_nav() {
1369
+ echo '
 
 
1370
  <div id="rl_nv_keyboard_nav" class="wplikebtns">';
1371
 
1372
+ foreach ( $this->choices as $val => $trans ) {
1373
+ echo '
1374
+ <input id="rl-nv-keyboard-nav-' . $val . '" type="radio" name="responsive_lightbox_configuration[nivo][keyboard_nav]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['nivo']['keyboard_nav'], false ) . ' />
1375
  <label for="rl-nv-keyboard-nav-' . $val . '">' . $trans . '</label>';
1376
+ }
1377
 
1378
+ echo '
1379
+ <p class="description">' . __( 'Enable/Disable keyboard navigation (left/right/escape).', 'responsive-lightbox' ) . '</p>
1380
  </div>';
1381
+ }
 
1382
 
1383
+ public function rl_nv_click_overlay_to_close() {
1384
+ echo '
 
1385
  <div id="rl_nv_click_overlay_to_close" class="wplikebtns">';
1386
 
1387
+ foreach ( $this->choices as $val => $trans ) {
1388
+ echo '
1389
+ <input id="rl-nv-click-overlay-to-close-' . $val . '" type="radio" name="responsive_lightbox_configuration[nivo][click_overlay_to_close]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['nivo']['click_overlay_to_close'], false ) . ' />
1390
  <label for="rl-nv-click-overlay-to-close-' . $val . '">' . $trans . '</label>';
1391
+ }
1392
 
1393
+ echo '
1394
+ <p class="description">' . __( 'Eneble to close lightbox on overlay click.', 'responsive-lightbox' ) . '</p>
1395
  </div>';
1396
+ }
1397
 
1398
+ public function rl_nv_error_message() {
1399
+ echo '
 
 
1400
  <div id="rl_nv_error_message">
1401
+ <input type="text" class="large-text" value="' . esc_attr( $this->options['configuration']['nivo']['error_message'] ) . '" name="responsive_lightbox_configuration[nivo][error_message]" />
1402
+ <p class="description">' . __( 'Error message if the content cannot be loaded.', 'responsive-lightbox' ) . '</p>
1403
  </div>';
1404
+ }
 
1405
 
1406
+ public function rl_il_animation_speed() {
1407
+ echo '
 
1408
  <div id="rl_il_animation_speed">
1409
+ <input type="text" value="' . esc_attr( $this->options['configuration']['imagelightbox']['animation_speed'] ) . '" name="responsive_lightbox_configuration[imagelightbox][animation_speed]" /> <span>ms</span>
1410
+ <p class="description">' . __( 'Animation speed.', 'responsive-lightbox' ) . '</p>
1411
  </div>';
1412
+ }
 
1413
 
1414
+ public function rl_il_preload_next() {
1415
+ echo '
 
1416
  <div id="rl_il_preload_next" class="wplikebtns">';
1417
 
1418
+ foreach ( $this->choices as $val => $trans ) {
1419
+ echo '
1420
+ <input id="rl-il-preload-next-' . $val . '" type="radio" name="responsive_lightbox_configuration[imagelightbox][preload_next]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['imagelightbox']['preload_next'], false ) . ' />
1421
  <label for="rl-il-preload-next-' . $val . '">' . $trans . '</label>';
1422
+ }
1423
 
1424
+ echo '
1425
+ <p class="description">' . __( 'Silently preload the next image.', 'responsive-lightbox' ) . '</p>
1426
  </div>';
1427
+ }
1428
 
1429
+ public function rl_il_enable_keyboard() {
1430
+ echo '
 
 
1431
  <div id="rl_il_enable_keyboard" class="wplikebtns">';
1432
 
1433
+ foreach ( $this->choices as $val => $trans ) {
1434
+ echo '
1435
+ <input id="rl-il-enable-keyboard-' . $val . '" type="radio" name="responsive_lightbox_configuration[imagelightbox][enable_keyboard]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['imagelightbox']['enable_keyboard'], false ) . ' />
1436
  <label for="rl-il-enable-keyboard-' . $val . '">' . $trans . '</label>';
1437
+ }
1438
 
1439
+ echo '
1440
+ <p class="description">' . __( 'Enable keyboard shortcuts (arrows Left/Right and Esc).', 'responsive-lightbox' ) . '</p>
1441
  </div>';
1442
+ }
 
1443
 
1444
+ public function rl_il_quit_on_end() {
1445
+ echo '
 
1446
  <div id="rl_il_quit_on_end" class="wplikebtns">';
1447
 
1448
+ foreach ( $this->choices as $val => $trans ) {
1449
+ echo '
1450
+ <input id="rl-il-quit-on-end-' . $val . '" type="radio" name="responsive_lightbox_configuration[imagelightbox][quit_on_end]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['imagelightbox']['quit_on_end'], false ) . ' />
1451
  <label for="rl-il-quit-on-end-' . $val . '">' . $trans . '</label>';
1452
+ }
1453
 
1454
+ echo '
1455
+ <p class="description">' . __( 'Quit after viewing the last image.', 'responsive-lightbox' ) . '</p>
1456
  </div>';
1457
+ }
1458
 
1459
+ public function rl_il_quit_on_image_click() {
1460
+ echo '
 
 
1461
  <div id="rl_il_quit_on_image_click" class="wplikebtns">';
1462
 
1463
+ foreach ( $this->choices as $val => $trans ) {
1464
+ echo '
1465
+ <input id="rl-il-quit-on-image-click-' . $val . '" type="radio" name="responsive_lightbox_configuration[imagelightbox][quit_on_image_click]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['imagelightbox']['quit_on_image_click'], false ) . ' />
1466
  <label for="rl-il-quit-on-image-click-' . $val . '">' . $trans . '</label>';
1467
+ }
1468
 
1469
+ echo '
1470
+ <p class="description">' . __( 'Quit when the viewed image is clicked.', 'responsive-lightbox' ) . '</p>
1471
  </div>';
1472
+ }
 
1473
 
1474
+ public function rl_il_quit_on_document_click() {
1475
+ echo '
 
1476
  <div id="rl_il_quit_on_document_click" class="wplikebtns">';
1477
 
1478
+ foreach ( $this->choices as $val => $trans ) {
1479
+ echo '
1480
+ <input id="rl-il-quit-on-document-click-' . $val . '" type="radio" name="responsive_lightbox_configuration[imagelightbox][quit_on_document_click]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['imagelightbox']['quit_on_document_click'], false ) . ' />
1481
  <label for="rl-il-quit-on-document-click-' . $val . '">' . $trans . '</label>';
1482
+ }
1483
+
1484
+ echo '
1485
+ <p class="description">' . __( 'Quit when anything but the viewed image is clicked.', 'responsive-lightbox' ) . '</p>
1486
+ </div>';
1487
+ }
 
1488
 
1489
+ /**
1490
+ * Validate settings
1491
+ */
1492
+ public function validate_options( $input ) {
1493
+ if ( isset( $_POST['save_rl_settings'] ) ) {
1494
+ // script
1495
+ $input['script'] = (isset( $input['script'], $this->scripts[$input['script']] ) ? $input['script'] : $this->defaults['settings']['script']);
 
1496
 
1497
+ // selector
1498
+ $input['selector'] = sanitize_text_field( isset( $input['selector'] ) && $input['selector'] !== '' ? $input['selector'] : $this->defaults['settings']['selector'] );
1499
 
1500
+ // loading place
1501
+ $input['loading_place'] = (isset( $input['loading_place'], $this->loading_places[$input['loading_place']] ) ? $input['loading_place'] : $this->defaults['settings']['loading_place']);
1502
 
1503
+ // enable custom events
1504
+ $input['enable_custom_events'] = (isset( $input['enable_custom_events'], $this->choices[$input['enable_custom_events']] ) ? ($input['enable_custom_events'] === 'yes' ? true : false) : $this->defaults['settings']['enable_custom_events']);
1505
+
1506
+ // custom events
1507
+ if ( $input['enable_custom_events'] === true ) {
1508
+ $input['custom_events'] = sanitize_text_field( isset( $input['custom_events'] ) && $input['custom_events'] !== '' ? $input['custom_events'] : $this->defaults['settings']['custom_events'] );
1509
+ }
1510
 
1511
+ // enable gallery image size
1512
+ $input['enable_gallery_image_size'] = (isset( $input['enable_gallery_image_size'], $this->choices[$input['enable_gallery_image_size']] ) ? ($input['enable_gallery_image_size'] === 'yes' ? true : false) : $this->defaults['settings']['enable_gallery_image_size']);
 
 
1513
 
1514
+ // gallery image size
1515
+ if ( $input['enable_gallery_image_size'] === true ) {
1516
+ $input['gallery_image_size'] = esc_attr( isset( $input['gallery_image_size'] ) && $input['gallery_image_size'] !== '' ? $input['gallery_image_size'] : $this->defaults['settings']['gallery_image_size'] );
1517
+ }
1518
 
1519
+ // checkboxes
1520
+ $input['galleries'] = (isset( $input['galleries'], $this->choices[$input['galleries']] ) ? ($input['galleries'] === 'yes' ? true : false) : $this->defaults['settings']['galleries']);
1521
+ $input['videos'] = (isset( $input['videos'], $this->choices[$input['videos']] ) ? ($input['videos'] === 'yes' ? true : false) : $this->defaults['settings']['videos']);
1522
+ $input['image_links'] = (isset( $input['image_links'], $this->choices[$input['image_links']] ) ? ($input['image_links'] === 'yes' ? true : false) : $this->defaults['settings']['image_links']);
1523
+ $input['images_as_gallery'] = (isset( $input['images_as_gallery'], $this->choices[$input['images_as_gallery']] ) ? ($input['images_as_gallery'] === 'yes' ? true : false) : $this->defaults['settings']['images_as_gallery']);
1524
+ $input['deactivation_delete'] = (isset( $input['deactivation_delete'], $this->choices[$input['deactivation_delete']] ) ? ($input['deactivation_delete'] === 'yes' ? true : false) : $this->defaults['settings']['deactivation_delete']);
1525
+ } elseif ( isset( $_POST['save_rl_configuration'] ) ) {
1526
+ if ( $this->options['settings']['script'] === 'swipebox' && $_POST['script_r'] === 'swipebox' ) {
1527
+ // animation
1528
+ $input['swipebox']['animation'] = (isset( $input['swipebox']['animation'] ) && in_array( $input['swipebox']['animation'], array_keys( $this->scripts['swipebox']['animations'] ) ) ? $input['swipebox']['animation'] : $this->defaults['configuration']['swipebox']['animation']);
1529
 
1530
+ // force png icons
1531
+ $input['swipebox']['force_png_icons'] = (isset( $input['swipebox']['force_png_icons'] ) && in_array( $input['swipebox']['force_png_icons'], array_keys( $this->choices ) ) ? ($input['swipebox']['force_png_icons'] === 'yes' ? true : false) : $this->defaults['configuration']['swipebox']['force_png_icons']);
1532
+
1533
+ // hide on mobile
1534
+ $input['swipebox']['hide_close_mobile'] = (isset( $input['swipebox']['hide_close_mobile'] ) && in_array( $input['swipebox']['hide_close_mobile'], array_keys( $this->choices ) ) ? ($input['swipebox']['hide_close_mobile'] === 'yes' ? true : false) : $this->defaults['configuration']['swipebox']['hide_close_mobile']);
1535
+
1536
+ // loop at end
1537
+ $input['swipebox']['loop_at_end'] = (isset( $input['swipebox']['loop_at_end'] ) && in_array( $input['swipebox']['loop_at_end'], array_keys( $this->choices ) ) ? ($input['swipebox']['loop_at_end'] === 'yes' ? true : false) : $this->defaults['configuration']['swipebox']['loop_at_end']);
 
 
1538
 
1539
+ // bars
1540
+ $input['swipebox']['hide_bars'] = (isset( $input['swipebox']['hide_bars'] ) && in_array( $input['swipebox']['hide_bars'], array_keys( $this->choices ) ) ? ($input['swipebox']['hide_bars'] === 'yes' ? true : false) : $this->defaults['configuration']['swipebox']['hide_bars']);
1541
+ $input['swipebox']['hide_bars_delay'] = (int) ($input['swipebox']['hide_bars_delay'] > 0 ? $input['swipebox']['hide_bars_delay'] : $this->defaults['configuration']['swipebox']['hide_bars_delay']);
1542
 
1543
+ // video width
1544
+ $input['swipebox']['video_max_width'] = (int) ($input['swipebox']['video_max_width'] > 0 ? $input['swipebox']['video_max_width'] : $this->defaults['configuration']['swipebox']['video_max_width']);
1545
+ } elseif ( $this->options['settings']['script'] === 'prettyphoto' && $_POST['script_r'] === 'prettyphoto' ) {
1546
+ // animation speed
1547
+ $input['prettyphoto']['animation_speed'] = (isset( $input['prettyphoto']['animation_speed'] ) && in_array( $input['prettyphoto']['animation_speed'], array_keys( $this->scripts['prettyphoto']['animation_speeds'] ) ) ? $input['prettyphoto']['animation_speed'] : $this->defaults['configuration']['prettyphoto']['animation_speed']);
1548
 
1549
+ // slideshows
1550
+ $input['prettyphoto']['slideshow'] = (isset( $input['prettyphoto']['slideshow'] ) && in_array( $input['prettyphoto']['slideshow'], array_keys( $this->choices ) ) ? ($input['prettyphoto']['slideshow'] === 'yes' ? true : false) : $this->defaults['configuration']['prettyphoto']['slideshow']);
1551
+ $input['prettyphoto']['slideshow_delay'] = (int) ($input['prettyphoto']['slideshow_delay'] > 0 ? $input['prettyphoto']['slideshow_delay'] : $this->defaults['configuration']['prettyphoto']['slideshow_delay']);
1552
+ $input['prettyphoto']['slideshow_autoplay'] = (isset( $input['prettyphoto']['slideshow_autoplay'] ) && in_array( $input['prettyphoto']['slideshow_autoplay'], array_keys( $this->choices ) ) ? ($input['prettyphoto']['slideshow_autoplay'] === 'yes' ? true : false) : $this->defaults['configuration']['prettyphoto']['slideshow_autoplay']);
 
1553
 
1554
+ // opacity
1555
+ $input['prettyphoto']['opacity'] = (int) $input['prettyphoto']['opacity'];
 
 
1556
 
1557
+ if ( $input['prettyphoto']['opacity'] < 0 || $input['prettyphoto']['opacity'] > 100 )
1558
+ $input['prettyphoto']['opacity'] = $this->defaults['configuration']['prettyphoto']['opacity'];
1559
 
1560
+ // title
1561
+ $input['prettyphoto']['show_title'] = (isset( $input['prettyphoto']['show_title'] ) && in_array( $input['prettyphoto']['show_title'], array_keys( $this->choices ) ) ? ($input['prettyphoto']['show_title'] === 'yes' ? true : false) : $this->defaults['configuration']['prettyphoto']['show_title']);
1562
 
1563
+ // resize
1564
+ $input['prettyphoto']['allow_resize'] = (isset( $input['prettyphoto']['allow_resize'] ) && in_array( $input['prettyphoto']['allow_resize'], array_keys( $this->choices ) ) ? ($input['prettyphoto']['allow_resize'] === 'yes' ? true : false) : $this->defaults['configuration']['prettyphoto']['allow_resize']);
1565
 
1566
+ // expand
1567
+ $input['prettyphoto']['allow_expand'] = (isset( $input['prettyphoto']['allow_expand'] ) && in_array( $input['prettyphoto']['allow_expand'], array_keys( $this->choices ) ) ? ($input['prettyphoto']['allow_expand'] === 'yes' ? true : false) : $this->defaults['configuration']['prettyphoto']['allow_expand']);
1568
 
1569
+ // dimensions
1570
+ $input['prettyphoto']['width'] = (int) ($input['prettyphoto']['width'] > 0 ? $input['prettyphoto']['width'] : $this->defaults['configuration']['prettyphoto']['width']);
1571
+ $input['prettyphoto']['height'] = (int) ($input['prettyphoto']['height'] > 0 ? $input['prettyphoto']['height'] : $this->defaults['configuration']['prettyphoto']['height']);
1572
 
1573
+ // separator
1574
+ $input['prettyphoto']['separator'] = sanitize_text_field( isset( $input['prettyphoto']['separator'] ) && $input['prettyphoto']['separator'] !== '' ? $input['prettyphoto']['separator'] : $this->defaults['configuration']['prettyphoto']['separator'] );
 
1575
 
1576
+ // theme
1577
+ $input['prettyphoto']['theme'] = (isset( $input['prettyphoto']['theme'] ) && in_array( $input['prettyphoto']['theme'], array_keys( $this->scripts['prettyphoto']['themes'] ) ) ? $input['prettyphoto']['theme'] : $this->defaults['configuration']['prettyphoto']['theme']);
1578
 
1579
+ // padding
1580
+ $input['prettyphoto']['horizontal_padding'] = (int) ($input['prettyphoto']['horizontal_padding'] > 0 ? $input['prettyphoto']['horizontal_padding'] : $this->defaults['configuration']['prettyphoto']['horizontal_padding']);
1581
 
1582
+ // flash
1583
+ $input['prettyphoto']['hide_flash'] = (isset( $input['prettyphoto']['hide_flash'] ) && in_array( $input['prettyphoto']['hide_flash'], array_keys( $this->choices ) ) ? ($input['prettyphoto']['hide_flash'] === 'yes' ? true : false) : $this->defaults['configuration']['prettyphoto']['hide_flash']);
1584
+ $input['prettyphoto']['wmode'] = (isset( $input['prettyphoto']['wmode'] ) && in_array( $input['prettyphoto']['wmode'], array_keys( $this->scripts['prettyphoto']['wmodes'] ) ) ? $input['prettyphoto']['wmode'] : $this->defaults['configuration']['prettyphoto']['wmode']);
1585
 
1586
+ // video autoplay
1587
+ $input['prettyphoto']['video_autoplay'] = (isset( $input['prettyphoto']['video_autoplay'] ) && in_array( $input['prettyphoto']['video_autoplay'], array_keys( $this->choices ) ) ? ($input['prettyphoto']['video_autoplay'] === 'yes' ? true : false) : $this->defaults['configuration']['prettyphoto']['video_autoplay']);
 
1588
 
1589
+ // modal
1590
+ $input['prettyphoto']['modal'] = (isset( $input['prettyphoto']['modal'] ) && in_array( $input['prettyphoto']['modal'], array_keys( $this->choices ) ) ? ($input['prettyphoto']['modal'] === 'yes' ? true : false) : $this->defaults['configuration']['prettyphoto']['modal']);
1591
 
1592
+ // deeplinking
1593
+ $input['prettyphoto']['deeplinking'] = (isset( $input['prettyphoto']['deeplinking'] ) && in_array( $input['prettyphoto']['deeplinking'], array_keys( $this->choices ) ) ? ($input['prettyphoto']['deeplinking'] === 'yes' ? true : false) : $this->defaults['configuration']['prettyphoto']['deeplinking']);
1594
 
1595
+ // overlay gallery
1596
+ $input['prettyphoto']['overlay_gallery'] = (isset( $input['prettyphoto']['overlay_gallery'] ) && in_array( $input['prettyphoto']['overlay_gallery'], array_keys( $this->choices ) ) ? ($input['prettyphoto']['overlay_gallery'] === 'yes' ? true : false) : $this->defaults['configuration']['prettyphoto']['overlay_gallery']);
1597
 
1598
+ // keyboard shortcuts
1599
+ $input['prettyphoto']['keyboard_shortcuts'] = (isset( $input['prettyphoto']['keyboard_shortcuts'] ) && in_array( $input['prettyphoto']['keyboard_shortcuts'], array_keys( $this->choices ) ) ? ($input['prettyphoto']['keyboard_shortcuts'] === 'yes' ? true : false) : $this->defaults['configuration']['prettyphoto']['keyboard_shortcuts']);
1600
 
1601
+ // social
1602
+ $input['prettyphoto']['social'] = (isset( $input['prettyphoto']['social'] ) && in_array( $input['prettyphoto']['social'], array_keys( $this->choices ) ) ? ($input['prettyphoto']['social'] === 'yes' ? true : false) : $this->defaults['configuration']['prettyphoto']['social']);
1603
+ } elseif ( $this->options['settings']['script'] === 'fancybox' && $_POST['script_r'] === 'fancybox' ) {
1604
+ // modal
1605
+ $input['fancybox']['modal'] = (isset( $input['fancybox']['modal'] ) && in_array( $input['fancybox']['modal'], array_keys( $this->choices ) ) ? ($input['fancybox']['modal'] === 'yes' ? true : false) : $this->defaults['configuration']['fancybox']['modal']);
1606
 
1607
+ // show overlay
1608
+ $input['fancybox']['show_overlay'] = (isset( $input['fancybox']['show_overlay'] ) && in_array( $input['fancybox']['show_overlay'], array_keys( $this->choices ) ) ? ($input['fancybox']['show_overlay'] === 'yes' ? true : false) : $this->defaults['configuration']['fancybox']['show_overlay']);
 
 
 
1609
 
1610
+ // show close button
1611
+ $input['fancybox']['show_close_button'] = (isset( $input['fancybox']['show_close_button'] ) && in_array( $input['fancybox']['show_close_button'], array_keys( $this->choices ) ) ? ($input['fancybox']['show_close_button'] === 'yes' ? true : false) : $this->defaults['configuration']['fancybox']['show_close_button']);
1612
 
1613
+ // enable escape button
1614
+ $input['fancybox']['enable_escape_button'] = (isset( $input['fancybox']['enable_escape_button'] ) && in_array( $input['fancybox']['enable_escape_button'], array_keys( $this->choices ) ) ? ($input['fancybox']['enable_escape_button'] === 'yes' ? true : false) : $this->defaults['configuration']['fancybox']['enable_escape_button']);
1615
 
1616
+ // hide on overlay click
1617
+ $input['fancybox']['hide_on_overlay_click'] = (isset( $input['fancybox']['hide_on_overlay_click'] ) && in_array( $input['fancybox']['hide_on_overlay_click'], array_keys( $this->choices ) ) ? ($input['fancybox']['hide_on_overlay_click'] === 'yes' ? true : false) : $this->defaults['configuration']['fancybox']['hide_on_overlay_click']);
1618
 
1619
+ // hide on content click
1620
+ $input['fancybox']['hide_on_content_click'] = (isset( $input['fancybox']['hide_on_content_click'] ) && in_array( $input['fancybox']['hide_on_content_click'], array_keys( $this->choices ) ) ? ($input['fancybox']['hide_on_content_click'] === 'yes' ? true : false) : $this->defaults['configuration']['fancybox']['hide_on_content_click']);
1621
 
1622
+ // cyclic
1623
+ $input['fancybox']['cyclic'] = (isset( $input['fancybox']['cyclic'] ) && in_array( $input['fancybox']['cyclic'], array_keys( $this->choices ) ) ? ($input['fancybox']['cyclic'] === 'yes' ? true : false) : $this->defaults['configuration']['fancybox']['cyclic']);
1624
 
1625
+ // show nav arrows
1626
+ $input['fancybox']['show_nav_arrows'] = (isset( $input['fancybox']['show_nav_arrows'] ) && in_array( $input['fancybox']['show_nav_arrows'], array_keys( $this->choices ) ) ? ($input['fancybox']['show_nav_arrows'] === 'yes' ? true : false) : $this->defaults['configuration']['fancybox']['show_nav_arrows']);
1627
 
1628
+ // auto scale
1629
+ $input['fancybox']['auto_scale'] = (isset( $input['fancybox']['auto_scale'] ) && in_array( $input['fancybox']['auto_scale'], array_keys( $this->choices ) ) ? ($input['fancybox']['auto_scale'] === 'yes' ? true : false) : $this->defaults['configuration']['fancybox']['auto_scale']);
1630
 
1631
+ // scrolling
1632
+ $input['fancybox']['scrolling'] = (isset( $input['fancybox']['scrolling'] ) && in_array( $input['fancybox']['scrolling'], array_keys( $this->scripts['fancybox']['scrollings'] ) ) ? $input['fancybox']['scrolling'] : $this->defaults['configuration']['fancybox']['scrolling']);
1633
 
1634
+ // center on scroll
1635
+ $input['fancybox']['center_on_scroll'] = (isset( $input['fancybox']['center_on_scroll'] ) && in_array( $input['fancybox']['center_on_scroll'], array_keys( $this->choices ) ) ? ($input['fancybox']['center_on_scroll'] === 'yes' ? true : false) : $this->defaults['configuration']['fancybox']['center_on_scroll']);
1636
 
1637
+ // opacity
1638
+ $input['fancybox']['opacity'] = (isset( $input['fancybox']['opacity'] ) && in_array( $input['fancybox']['opacity'], array_keys( $this->choices ) ) ? ($input['fancybox']['opacity'] === 'yes' ? true : false) : $this->defaults['configuration']['fancybox']['opacity']);
1639
 
1640
+ // title_show
1641
+ $input['fancybox']['title_show'] = (isset( $input['fancybox']['title_show'] ) && in_array( $input['fancybox']['title_show'], array_keys( $this->choices ) ) ? ($input['fancybox']['title_show'] === 'yes' ? true : false) : $this->defaults['configuration']['fancybox']['title_show']);
1642
 
1643
+ // overlay opacity
1644
+ $input['fancybox']['overlay_opacity'] = (int) $input['fancybox']['overlay_opacity'];
1645
 
1646
+ if ( $input['fancybox']['overlay_opacity'] < 0 || $input['fancybox']['overlay_opacity'] > 100 )
1647
+ $input['fancybox']['overlay_opacity'] = $this->defaults['configuration']['fancybox']['overlay_opacity'];
1648
 
1649
+ // overlay color
1650
+ $input['fancybox']['overlay_color'] = sanitize_text_field( $input['fancybox']['overlay_color'] );
1651
 
1652
+ // title position
1653
+ $input['fancybox']['title_position'] = (isset( $input['fancybox']['title_position'] ) && in_array( $input['fancybox']['title_position'], array_keys( $this->scripts['fancybox']['positions'] ) ) ? $input['fancybox']['title_position'] : $this->defaults['configuration']['fancybox']['title_position']);
1654
 
1655
+ // transitions
1656
+ $input['fancybox']['transitions'] = (isset( $input['fancybox']['transitions'] ) && in_array( $input['fancybox']['transitions'], array_keys( $this->scripts['fancybox']['transitions'] ) ) ? $input['fancybox']['transitions'] : $this->defaults['configuration']['fancybox']['transitions']);
1657
 
1658
+ // easings
1659
+ $input['fancybox']['easings'] = (isset( $input['fancybox']['easings'] ) && in_array( $input['fancybox']['easings'], array_keys( $this->scripts['fancybox']['easings'] ) ) ? $input['fancybox']['easings'] : $this->defaults['configuration']['fancybox']['easings']);
1660
 
1661
+ // speeds
1662
+ $input['fancybox']['speeds'] = (int) ($input['fancybox']['speeds'] > 0 ? $input['fancybox']['speeds'] : $this->defaults['configuration']['fancybox']['speeds']);
1663
 
1664
+ // change speed
1665
+ $input['fancybox']['change_speed'] = (int) ($input['fancybox']['change_speed'] > 0 ? $input['fancybox']['change_speed'] : $this->defaults['configuration']['fancybox']['change_speed']);
1666
 
1667
+ // change fade
1668
+ $input['fancybox']['change_fade'] = (int) ($input['fancybox']['change_fade'] > 0 ? $input['fancybox']['change_fade'] : $this->defaults['configuration']['fancybox']['change_fade']);
1669
 
1670
+ // padding
1671
+ $input['fancybox']['padding'] = (int) ($input['fancybox']['padding'] > 0 ? $input['fancybox']['padding'] : $this->defaults['configuration']['fancybox']['padding']);
1672
 
1673
+ // margin
1674
+ $input['fancybox']['margin'] = (int) ($input['fancybox']['margin'] > 0 ? $input['fancybox']['margin'] : $this->defaults['configuration']['fancybox']['margin']);
1675
 
1676
+ // video width
1677
+ $input['fancybox']['video_width'] = (int) ($input['fancybox']['video_width'] > 0 ? $input['fancybox']['video_width'] : $this->defaults['configuration']['fancybox']['video_width']);
1678
 
1679
+ // video height
1680
+ $input['fancybox']['video_height'] = (int) ($input['fancybox']['video_height'] > 0 ? $input['fancybox']['video_height'] : $this->defaults['configuration']['fancybox']['video_height']);
1681
+ } elseif ( $this->options['settings']['script'] === 'nivo' && $_POST['script_r'] === 'nivo' ) {
1682
+ // effect
1683
+ $input['nivo']['effect'] = (isset( $input['nivo']['effect'] ) && in_array( $input['nivo']['effect'], array_keys( $this->scripts['nivo']['effects'] ) ) ? $input['nivo']['effect'] : $this->defaults['configuration']['nivo']['effect']);
1684
 
1685
+ // keyboard navigation
1686
+ $input['nivo']['keyboard_nav'] = (isset( $input['nivo']['keyboard_nav'] ) && in_array( $input['nivo']['keyboard_nav'], array_keys( $this->choices ) ) ? ($input['nivo']['keyboard_nav'] === 'yes' ? true : false) : $this->defaults['configuration']['nivo']['keyboard_nav']);
 
 
 
1687
 
1688
+ // keyboard navigation
1689
+ $input['nivo']['click_overlay_to_close'] = (isset( $input['nivo']['click_overlay_to_close'] ) && in_array( $input['nivo']['click_overlay_to_close'], array_keys( $this->choices ) ) ? ($input['nivo']['click_overlay_to_close'] === 'yes' ? true : false) : $this->defaults['configuration']['nivo']['click_overlay_to_close']);
1690
 
1691
+ // error message
1692
+ $input['nivo']['error_message'] = sanitize_text_field( $input['nivo']['error_message'] );
1693
+ } elseif ( $this->options['settings']['script'] === 'imagelightbox' && $_POST['script_r'] === 'imagelightbox' ) {
1694
+ // animation speed
1695
+ $input['imagelightbox']['animation_speed'] = (int) $input['imagelightbox']['animation_speed'];
1696
 
1697
+ // preload next image
1698
+ $input['imagelightbox']['preload_next'] = (isset( $input['imagelightbox']['preload_next'], $this->choices[$input['imagelightbox']['preload_next']] ) ? ($input['imagelightbox']['preload_next'] === 'yes' ? true : false) : $this->defaults['configuration']['imagelightbox']['preload_next']);
 
 
 
1699
 
1700
+ // enable keyboard keys
1701
+ $input['imagelightbox']['enable_keyboard'] = (isset( $input['imagelightbox']['enable_keyboard'], $this->choices[$input['imagelightbox']['enable_keyboard']] ) ? ($input['imagelightbox']['enable_keyboard'] === 'yes' ? true : false) : $this->defaults['configuration']['imagelightbox']['enable_keyboard']);
1702
 
1703
+ // quit on last image
1704
+ $input['imagelightbox']['quit_on_end'] = (isset( $input['imagelightbox']['quit_on_end'], $this->choices[$input['imagelightbox']['quit_on_end']] ) ? ($input['imagelightbox']['quit_on_end'] === 'yes' ? true : false) : $this->defaults['configuration']['imagelightbox']['quit_on_end']);
1705
 
1706
+ // quit on image click
1707
+ $input['imagelightbox']['quit_on_image_click'] = (isset( $input['imagelightbox']['quit_on_image_click'], $this->choices[$input['imagelightbox']['quit_on_image_click']] ) ? ($input['imagelightbox']['quit_on_image_click'] === 'yes' ? true : false) : $this->defaults['configuration']['imagelightbox']['quit_on_image_click']);
1708
 
1709
+ // quit on document click
1710
+ $input['imagelightbox']['quit_on_document_click'] = (isset( $input['imagelightbox']['quit_on_document_click'], $this->choices[$input['imagelightbox']['quit_on_document_click']] ) ? ($input['imagelightbox']['quit_on_document_click'] === 'yes' ? true : false) : $this->defaults['configuration']['imagelightbox']['quit_on_document_click']);
1711
+ } else {
1712
+ // clear input to not change settings
1713
+ $input = array();
1714
 
1715
+ add_settings_error( 'save_script_settings', 'invalid_script_page', __( 'Changes were not saved because there was attempt to save settings of inactive script. The site has been reloaded to the proper script settings.', 'responsive-lightbox' ), 'error' );
1716
+ }
 
 
 
1717
 
1718
+ // we have to merge rest of the scripts settings
1719
+ $input = array_merge( $this->options['configuration'], $input );
1720
+ } elseif ( isset( $_POST['reset_rl_settings'] ) ) {
1721
+ $input = $this->defaults['settings'];
1722
 
1723
+ add_settings_error( 'reset_general_settings', 'general_reset', __( 'Settings restored to defaults.', 'responsive-lightbox' ), 'updated' );
1724
+ } elseif ( isset( $_POST['reset_rl_configuration'] ) ) {
1725
+ if ( $this->options['settings']['script'] === 'swipebox' && $_POST['script_r'] === 'swipebox' ) {
1726
+ $input['swipebox'] = $this->defaults['configuration']['swipebox'];
1727
 
1728
+ add_settings_error( 'reset_swipebox_settings', 'swipebox_reset', __( 'Settings of SwipeBox script were restored to defaults.', 'responsive-lightbox' ), 'updated' );
1729
+ } elseif ( $this->options['settings']['script'] === 'prettyphoto' && $_POST['script_r'] === 'prettyphoto' ) {
1730
+ $input['prettyphoto'] = $this->defaults['configuration']['prettyphoto'];
 
1731
 
1732
+ add_settings_error( 'reset_prettyphoto_settings', 'prettyphoto_reset', __( 'Settings of prettyPhoto script were restored to defaults.', 'responsive-lightbox' ), 'updated' );
1733
+ } elseif ( $this->options['settings']['script'] === 'fancybox' && $_POST['script_r'] === 'fancybox' ) {
1734
+ $input['fancybox'] = $this->defaults['configuration']['fancybox'];
1735
 
1736
+ add_settings_error( 'reset_fancybox_settings', 'fancybox_reset', __( 'Settings of FancyBox script were restored to defaults.', 'responsive-lightbox' ), 'updated' );
1737
+ } elseif ( $this->options['settings']['script'] === 'nivo' && $_POST['script_r'] === 'nivo' ) {
1738
+ $input['nivo'] = $this->defaults['configuration']['nivo'];
1739
 
1740
+ add_settings_error( 'reset_nivo_settings', 'nivo_reset', __( 'Settings of Nivo script were restored to defaults.', 'responsive-lightbox' ), 'updated' );
1741
+ } else {
1742
+ add_settings_error( 'reset_script_settings', 'reset_invalid_script_page', __( 'Changes were not set to defaults because there was attempt to reset settings of inactive script. The site has been reloaded to the proper script settings.', 'responsive-lightbox' ), 'error' );
1743
+ }
1744
 
1745
+ // we have to merge rest of the scripts settings
1746
+ $input = array_merge( $this->options['configuration'], $input );
1747
+ }
 
1748
 
1749
+ return $input;
1750
+ }
 
1751
 
1752
+ public function admin_menu_options() {
1753
+ add_options_page(
1754
+ __( 'Responsive Lightbox', 'responsive-lightbox' ), __( 'Responsive Lightbox', 'responsive-lightbox' ), 'manage_options', 'responsive-lightbox', array( &$this, 'options_page' )
1755
+ );
1756
+ }
1757
 
1758
+ public function options_page() {
1759
+ $tab_key = (isset( $_GET['tab'] ) ? $_GET['tab'] : 'general-settings');
1760
 
1761
+ echo '
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1762
  <div class="wrap">' . screen_icon() . '
1763
+ <h2>' . __( 'Responsive Lightbox', 'responsive-lightbox' ) . '</h2>
1764
  <h2 class="nav-tab-wrapper">';
1765
 
1766
+ foreach ( $this->tabs as $key => $name ) {
1767
+ echo '
1768
+ <a class="nav-tab ' . ($tab_key == $key ? 'nav-tab-active' : '') . '" href="' . esc_url( admin_url( 'options-general.php?page=responsive-lightbox&tab=' . $key ) ) . '">' . $name['name'] . '</a>';
1769
+ }
1770
 
1771
+ echo '
1772
  </h2>
1773
  <div class="responsive-lightbox-settings">
1774
 
1775
  <div class="df-credits">
1776
+ <h3 class="hndle">' . __( 'Responsive Lightbox', 'responsive-lightbox' ) . ' ' . $this->defaults['version'] . '</h3>
1777
  <div class="inside">
1778
+ <h4 class="inner">' . __( 'Need support?', 'responsive-lightbox' ) . '</h4>
1779
+ <p class="inner">' . __( 'If you are having problems with this plugin, please talk about them in the', 'responsive-lightbox' ) . ' <a href="http://www.dfactory.eu/support/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=support" target="_blank" title="' . __( 'Support forum', 'responsive-lightbox' ) . '">' . __( 'Support forum', 'responsive-lightbox' ) . '</a></p>
1780
  <hr />
1781
+ <h4 class="inner">' . __( 'Do you like this plugin?', 'responsive-lightbox' ) . '</h4>
 
 
 
 
1782
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank" class="inner">
1783
  <input type="hidden" name="cmd" value="_s-xclick">
1784
  <input type="hidden" name="hosted_button_id" value="8AL8ULUN9R76U">
1785
  <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
1786
  <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
1787
  </form>
1788
+ <p class="inner"><a href="http://wordpress.org/support/view/plugin-reviews/responsive-lightbox" target="_blank" title="' . __( 'Rate it 5', 'responsive-lightbox' ) . '">' . __( 'Rate it 5', 'responsive-lightbox' ) . '</a> ' . __( 'on WordPress.org', 'responsive-lightbox' ) . '<br />' .
1789
+ __( 'Blog about it & link to the', 'responsive-lightbox' ) . ' <a href="http://www.dfactory.eu/plugins/responsive-lightbox/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=blog-about" target="_blank" title="' . __( 'plugin page', 'responsive-lightbox' ) . '">' . __( 'plugin page', 'responsive-lightbox' ) . '</a><br />' .
1790
+ __( 'Check out our other', 'responsive-lightbox' ) . ' <a href="http://www.dfactory.eu/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=other-plugins" target="_blank" title="' . __( 'WordPress plugins', 'responsive-lightbox' ) . '">' . __( 'WordPress plugins', 'responsive-lightbox' ) . '</a>
1791
+ </p>
1792
  <hr />
1793
+ <p class="df-link inner">Created by <a href="http://www.dfactory.eu/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=created-by" target="_blank" title="dFactory - Quality plugins for WordPress"><img src="' . plugins_url( '/images/logo-dfactory.png', __FILE__ ) . '" title="dFactory - Quality plugins for WordPress" alt="dFactory - Quality plugins for WordPress" /></a></p>
1794
  </div>
1795
  </div>
1796
 
1797
  <form action="options.php" method="post">
1798
+ <input type="hidden" name="script_r" value="' . esc_attr( $this->options['settings']['script'] ) . '" />';
1799
 
1800
+ wp_nonce_field( 'update-options' );
1801
+ settings_fields( $this->tabs[$tab_key]['key'] );
1802
+ do_settings_sections( $this->tabs[$tab_key]['key'] );
1803
 
1804
+ echo '
1805
  <p class="submit">';
1806
 
1807
+ submit_button( '', 'primary', $this->tabs[$tab_key]['submit'], false );
1808
 
1809
+ echo ' ';
1810
+ echo submit_button( __( 'Reset to defaults', 'responsive-lightbox' ), 'secondary', $this->tabs[$tab_key]['reset'], false );
1811
 
1812
+ echo '
1813
  </p>
1814
  </form>
1815
  </div>
1816
  <div class="clear"></div>
1817
  </div>';
1818
+ }
1819
+
1820
+ public function admin_scripts_styles( $page ) {
1821
+ if ( $page === 'settings_page_responsive-lightbox' ) {
1822
+ wp_register_script(
1823
+ 'responsive-lightbox-admin', plugins_url( 'js/admin.js', __FILE__ ), array( 'jquery', 'jquery-ui-core', 'jquery-ui-button', 'jquery-ui-slider', 'wp-color-picker' )
1824
+ );
1825
+
1826
+ wp_enqueue_script( 'responsive-lightbox-admin' );
1827
+
1828
+ wp_localize_script(
1829
+ 'responsive-lightbox-admin', 'rlArgs', array(
1830
+ 'resetSettingsToDefaults' => __( 'Are you sure you want to reset these settings to defaults?', 'responsive-lightbox' ),
1831
+ 'resetScriptToDefaults' => __( 'Are you sure you want to reset scripts settings to defaults?', 'responsive-lightbox' ),
1832
+ 'opacity_pp' => $this->options['configuration']['prettyphoto']['opacity'],
1833
+ 'opacity_fb' => $this->options['configuration']['fancybox']['overlay_opacity']
1834
+ )
1835
+ );
1836
+
1837
+ wp_enqueue_style( 'wp-color-picker' );
1838
+
1839
+ wp_register_style(
1840
+ 'responsive-lightbox-admin', plugins_url( 'css/admin.css', __FILE__ )
1841
+ );
1842
+
1843
+ wp_enqueue_style( 'responsive-lightbox-admin' );
1844
+
1845
+ wp_register_style(
1846
+ 'responsive-lightbox-wplike', plugins_url( 'css/wp-like-ui-theme.css', __FILE__ )
1847
+ );
1848
+
1849
+ wp_enqueue_style( 'responsive-lightbox-wplike' );
1850
+ }
1851
+ }
1852
+
1853
+ public function front_scripts_styles() {
1854
+ $args = apply_filters( 'rl_lightbox_args', array(
1855
+ 'script' => $this->options['settings']['script'],
1856
+ 'selector' => $this->options['settings']['selector'],
1857
+ 'custom_events' => ($this->options['settings']['enable_custom_events'] === true ? ' ' . $this->options['settings']['custom_events'] : ''),
1858
+ 'activeGalleries' => $this->get_boolean_value( $this->options['settings']['galleries'] )
1859
+ ) );
1860
+
1861
+ if ( $args['script'] === 'prettyphoto' ) {
1862
+ wp_register_script(
1863
+ 'responsive-lightbox-prettyphoto', plugins_url( 'assets/prettyphoto/js/jquery.prettyPhoto.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
1864
+ );
1865
+
1866
+ wp_enqueue_script( 'responsive-lightbox-prettyphoto' );
1867
+
1868
+ wp_register_style(
1869
+ 'responsive-lightbox-prettyphoto-front', plugins_url( 'assets/prettyphoto/css/prettyPhoto.css', __FILE__ )
1870
+ );
1871
+
1872
+ wp_enqueue_style( 'responsive-lightbox-prettyphoto-front' );
1873
+
1874
+ $args = array_merge(
1875
+ $args, array(
1876
+ 'animationSpeed' => $this->options['configuration']['prettyphoto']['animation_speed'],
1877
+ 'slideshow' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['slideshow'] ),
1878
+ 'slideshowDelay' => $this->options['configuration']['prettyphoto']['slideshow_delay'],
1879
+ 'slideshowAutoplay' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['slideshow_autoplay'] ),
1880
+ 'opacity' => sprintf( '%.2f', ($this->options['configuration']['prettyphoto']['opacity'] / 100 ) ),
1881
+ 'showTitle' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['show_title'] ),
1882
+ 'allowResize' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['allow_resize'] ),
1883
+ 'allowExpand' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['allow_expand'] ),
1884
+ 'width' => $this->options['configuration']['prettyphoto']['width'],
1885
+ 'height' => $this->options['configuration']['prettyphoto']['height'],
1886
+ 'separator' => $this->options['configuration']['prettyphoto']['separator'],
1887
+ 'theme' => $this->options['configuration']['prettyphoto']['theme'],
1888
+ 'horizontalPadding' => $this->options['configuration']['prettyphoto']['horizontal_padding'],
1889
+ 'hideFlash' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['hide_flash'] ),
1890
+ 'wmode' => $this->options['configuration']['prettyphoto']['wmode'],
1891
+ 'videoAutoplay' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['video_autoplay'] ),
1892
+ 'modal' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['modal'] ),
1893
+ 'deeplinking' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['deeplinking'] ),
1894
+ 'overlayGallery' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['overlay_gallery'] ),
1895
+ 'keyboardShortcuts' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['keyboard_shortcuts'] ),
1896
+ 'social' => $this->get_boolean_value( $this->options['configuration']['prettyphoto']['social'] )
1897
+ )
1898
+ );
1899
+ } elseif ( $args['script'] === 'swipebox' ) {
1900
+ wp_register_script(
1901
+ 'responsive-lightbox-swipebox', plugins_url( 'assets/swipebox/js/jquery.swipebox.min.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
1902
+ );
1903
+
1904
+ wp_enqueue_script( 'responsive-lightbox-swipebox' );
1905
+
1906
+ wp_register_style(
1907
+ 'responsive-lightbox-swipebox-front', plugins_url( 'assets/swipebox/css/swipebox.min.css', __FILE__ )
1908
+ );
1909
+
1910
+ wp_enqueue_style( 'responsive-lightbox-swipebox-front' );
1911
+
1912
+ $args = array_merge(
1913
+ $args, array(
1914
+ 'animation' => $this->get_boolean_value( ($this->options['configuration']['swipebox']['animation'] === 'css' ? true : false ) ),
1915
+ 'hideCloseButtonOnMobile' => $this->get_boolean_value( $this->options['configuration']['swipebox']['hide_close_mobile'] ),
1916
+ 'hideBars' => $this->get_boolean_value( $this->options['configuration']['swipebox']['hide_bars'] ),
1917
+ 'hideBarsDelay' => $this->options['configuration']['swipebox']['hide_bars_delay'],
1918
+ 'videoMaxWidth' => $this->options['configuration']['swipebox']['video_max_width'],
1919
+ 'useSVG' => $this->options['configuration']['swipebox']['force_png_icons'],
1920
+ 'loopAtEnd' => $this->get_boolean_value( $this->options['configuration']['swipebox']['loop_at_end'] )
1921
+ )
1922
+ );
1923
+ } elseif ( $args['script'] === 'fancybox' ) {
1924
+ wp_register_script(
1925
+ 'responsive-lightbox-fancybox', plugins_url( 'assets/fancybox/jquery.fancybox-1.3.4.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
1926
+ );
1927
+
1928
+ wp_enqueue_script( 'responsive-lightbox-fancybox' );
1929
+
1930
+ wp_register_style(
1931
+ 'responsive-lightbox-fancybox-front', plugins_url( 'assets/fancybox/jquery.fancybox-1.3.4.css', __FILE__ )
1932
+ );
1933
+
1934
+ wp_enqueue_style( 'responsive-lightbox-fancybox-front' );
1935
+
1936
+ $args = array_merge(
1937
+ $args, array(
1938
+ 'modal' => $this->get_boolean_value( $this->options['configuration']['fancybox']['modal'] ),
1939
+ 'showOverlay' => $this->get_boolean_value( $this->options['configuration']['fancybox']['show_overlay'] ),
1940
+ 'showCloseButton' => $this->get_boolean_value( $this->options['configuration']['fancybox']['show_close_button'] ),
1941
+ 'enableEscapeButton' => $this->get_boolean_value( $this->options['configuration']['fancybox']['enable_escape_button'] ),
1942
+ 'hideOnOverlayClick' => $this->get_boolean_value( $this->options['configuration']['fancybox']['hide_on_overlay_click'] ),
1943
+ 'hideOnContentClick' => $this->get_boolean_value( $this->options['configuration']['fancybox']['hide_on_content_click'] ),
1944
+ 'cyclic' => $this->get_boolean_value( $this->options['configuration']['fancybox']['cyclic'] ),
1945
+ 'showNavArrows' => $this->get_boolean_value( $this->options['configuration']['fancybox']['show_nav_arrows'] ),
1946
+ 'autoScale' => $this->get_boolean_value( $this->options['configuration']['fancybox']['auto_scale'] ),
1947
+ 'scrolling' => $this->options['configuration']['fancybox']['scrolling'],
1948
+ 'centerOnScroll' => $this->get_boolean_value( $this->options['configuration']['fancybox']['center_on_scroll'] ),
1949
+ 'opacity' => $this->get_boolean_value( $this->options['configuration']['fancybox']['opacity'] ),
1950
+ 'overlayOpacity' => $this->options['configuration']['fancybox']['overlay_opacity'],
1951
+ 'overlayColor' => $this->options['configuration']['fancybox']['overlay_color'],
1952
+ 'titleShow' => $this->get_boolean_value( $this->options['configuration']['fancybox']['title_show'] ),
1953
+ 'titlePosition' => $this->options['configuration']['fancybox']['title_position'],
1954
+ 'transitions' => $this->options['configuration']['fancybox']['transitions'],
1955
+ 'easings' => $this->options['configuration']['fancybox']['easings'],
1956
+ 'speeds' => $this->options['configuration']['fancybox']['speeds'],
1957
+ 'changeSpeed' => $this->options['configuration']['fancybox']['change_speed'],
1958
+ 'changeFade' => $this->options['configuration']['fancybox']['change_fade'],
1959
+ 'padding' => $this->options['configuration']['fancybox']['padding'],
1960
+ 'margin' => $this->options['configuration']['fancybox']['margin'],
1961
+ 'videoWidth' => $this->options['configuration']['fancybox']['video_width'],
1962
+ 'videoHeight' => $this->options['configuration']['fancybox']['video_height']
1963
+ )
1964
+ );
1965
+ } elseif ( $args['script'] === 'nivo' ) {
1966
+ wp_register_script(
1967
+ 'responsive-lightbox-nivo', plugins_url( 'assets/nivo/nivo-lightbox.min.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
1968
+ );
1969
+
1970
+ wp_enqueue_script( 'responsive-lightbox-nivo' );
1971
+
1972
+ wp_register_style(
1973
+ 'responsive-lightbox-nivo-front', plugins_url( 'assets/nivo/nivo-lightbox.css', __FILE__ )
1974
+ );
1975
+
1976
+ wp_enqueue_style( 'responsive-lightbox-nivo-front' );
1977
+
1978
+ wp_register_style(
1979
+ 'responsive-lightbox-nivo-front-template', plugins_url( 'assets/nivo/themes/default/default.css', __FILE__ )
1980
+ );
1981
+
1982
+ wp_enqueue_style( 'responsive-lightbox-nivo-front-template' );
1983
+
1984
+ $args = array_merge(
1985
+ $args, array(
1986
+ 'effect' => $this->options['configuration']['nivo']['effect'],
1987
+ 'clickOverlayToClose' => $this->get_boolean_value( $this->options['configuration']['nivo']['click_overlay_to_close'] ),
1988
+ 'keyboardNav' => $this->get_boolean_value( $this->options['configuration']['nivo']['keyboard_nav'] ),
1989
+ 'errorMessage' => esc_attr( $this->options['configuration']['nivo']['error_message'] )
1990
+ )
1991
+ );
1992
+ } elseif ( $args['script'] === 'imagelightbox' ) {
1993
+ wp_register_script(
1994
+ 'responsive-lightbox-imagelightbox', plugins_url( 'assets/imagelightbox/js/imagelightbox.min.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
1995
+ );
1996
+
1997
+ wp_enqueue_script( 'responsive-lightbox-imagelightbox' );
1998
+
1999
+ wp_register_style(
2000
+ 'responsive-lightbox-imagelightbox-front', plugins_url( 'assets/imagelightbox/css/imagelightbox.css', __FILE__ )
2001
+ );
2002
+
2003
+ wp_enqueue_style( 'responsive-lightbox-imagelightbox-front' );
2004
+
2005
+ $args = array_merge(
2006
+ $args, array(
2007
+ 'animationSpeed' => $this->options['configuration']['imagelightbox']['animation_speed'],
2008
+ 'preloadNext' => $this->get_boolean_value( $this->options['configuration']['imagelightbox']['preload_next'] ),
2009
+ 'enableKeyboard' => $this->get_boolean_value( $this->options['configuration']['imagelightbox']['enable_keyboard'] ),
2010
+ 'quitOnEnd' => $this->get_boolean_value( $this->options['configuration']['imagelightbox']['quit_on_end'] ),
2011
+ 'quitOnImageClick' => $this->get_boolean_value( $this->options['configuration']['imagelightbox']['quit_on_image_click'] ),
2012
+ 'quitOnDocumentClick' => $this->get_boolean_value( $this->options['configuration']['imagelightbox']['quit_on_document_click'] ),
2013
+ )
2014
+ );
2015
+ }
2016
+
2017
+ wp_register_script(
2018
+ 'responsive-lightbox-front', plugins_url( 'js/front.js', __FILE__ ), array( 'jquery' ), '', ($this->options['settings']['loading_place'] === 'header' ? false : true )
2019
+ );
2020
+
2021
+ wp_enqueue_script( 'responsive-lightbox-front' );
2022
+
2023
+ wp_add_inline_style(
2024
+ 'responsive-lightbox-swipebox', '#swipebox-action #swipebox-close, #swipebox-action #swipebox-prev, #swipebox-action #swipebox-next { background-image: url(\'assets/swipebox/source/img/icons.png\') !important; }'
2025
+ );
2026
+
2027
+ wp_localize_script(
2028
+ 'responsive-lightbox-front', 'rlArgs', $args
2029
+ );
2030
+ }
2031
+
2032
+ /**
2033
+ * Helper: convert value to boolean
2034
+ */
2035
+ private function get_boolean_value( $option ) {
2036
+ return ( $option === true ? 1 : 0 );
2037
+ }
2038
+
2039
+ /**
2040
+ * Load textdomain
2041
+ */
2042
+ public function load_textdomain() {
2043
+ load_plugin_textdomain( 'responsive-lightbox', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
2044
+ }
2045
+
2046
+ /**
2047
+ * Add links to Support Forum
2048
+ */
2049
+ public function plugin_extend_links( $links, $file ) {
2050
+ if ( ! current_user_can( 'install_plugins' ) )
2051
+ return $links;
2052
+
2053
+ $plugin = plugin_basename( __FILE__ );
2054
+
2055
+ if ( $file == $plugin ) {
2056
+ return array_merge(
2057
+ $links, array( sprintf( '<a href="http://www.dfactory.eu/support/forum/responsive-lightbox/" target="_blank">%s</a>', __( 'Support', 'responsive-lightbox' ) ) )
2058
+ );
2059
+ }
2060
+
2061
+ return $links;
2062
+ }
2063
+
2064
+ /**
2065
+ * Add links to Settings page
2066
+ */
2067
+ public function plugin_settings_link( $links, $file ) {
2068
+ if ( ! is_admin() || ! current_user_can( 'manage_options' ) )
2069
+ return $links;
2070
+
2071
+ static $plugin;
2072
+
2073
+ $plugin = plugin_basename( __FILE__ );
2074
+
2075
+ if ( $file == $plugin ) {
2076
+ $settings_link = sprintf( '<a href="%s">%s</a>', admin_url( 'options-general.php' ) . '?page=responsive-lightbox', __( 'Settings', 'responsive-lightbox' ) );
2077
+ array_unshift( $links, $settings_link );
2078
+ }
2079
+
2080
+ return $links;
2081
+ }
2082
+
2083
+ /**
2084
+ * Modify gallery image link size
2085
+ */
2086
+ public function gallery_attachment_link_filter( $content, $post_id, $size, $permalink, $icon, $text ) {
2087
+ if ( $permalink ) {
2088
+ $image = wp_get_attachment_image_src( $post_id, $this->options['settings']['gallery_image_size'] ); // or other image size
2089
+ $new_content = preg_replace( '/href=\'(.*?)\'/', 'href=\'' . $image[0] . '\'', $content );
2090
+ return $new_content;
2091
+ } else {
2092
+ return $content;
2093
+ }
2094
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2095
 
2096
  }
2097
 
2098
+ $responsive_lightbox = new Responsive_Lightbox();