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 | 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 +1 -1
- assets/imagelightbox/css/imagelightbox.css +3 -0
- assets/imagelightbox/js/imagelightbox.min.js +1 -1
- assets/nivo/nivo-lightbox.min.js +1 -1
- assets/prettyphoto/css/prettyPhoto.css +4 -2
- assets/swipebox/README.md +21 -8
- assets/swipebox/css/swipebox.css +287 -0
- assets/swipebox/css/swipebox.min.css +1 -0
- assets/swipebox/img/icons.png +0 -0
- assets/swipebox/img/icons.svg +1 -0
- assets/swipebox/img/loader.gif +0 -0
- assets/swipebox/js/jquery.swipebox.js +929 -0
- assets/swipebox/js/jquery.swipebox.min.js +2 -0
- assets/swipebox/lib/ios-orientationchange-fix.js +55 -55
- assets/swipebox/source/jquery.swipebox.js +451 -0
- assets/swipebox/source/jquery.swipebox.min.js +1 -12
- assets/swipebox/source/swipebox.css +8 -50
- css/admin.css +72 -16
- js/admin.js +100 -95
- js/front.js +102 -92
- languages/responsive-lightbox-nl_NL.mo +0 -0
- languages/responsive-lightbox-nl_NL.po +842 -744
- languages/responsive-lightbox-pl_PL.mo +0 -0
- languages/responsive-lightbox-pl_PL.po +235 -211
- languages/responsive-lightbox.pot +224 -208
- readme.txt +16 -6
- responsive-lightbox.php +1599 -1786
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 =
|
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
|
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="
|
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 |
-
|
143 |
-
a.
|
|
|
|
|
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,
|
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="
|
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="
|
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 |
-
$(
|
57 |
```
|
58 |
|
59 |
###Options
|
60 |
|
61 |
```javascript
|
62 |
useCSS : true, // false will force the use of jQuery for animations
|
63 |
-
|
|
|
|
|
64 |
videoMaxWidth : 1140, // videos max width
|
65 |
beforeOpen: function(){} , // called before opening
|
66 |
-
|
|
|
|
|
|
|
|
|
|
|
67 |
```
|
68 |
|
69 |
-
|
70 |
-
|
|
|
|
|
|
|
|
|
|
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 |
-
|
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 |
-
|
|
|
|
|
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 {
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
.
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
-
.wplike-slider span.middle {
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
/* All Mobile Sizes (devices and browser) */
|
19 |
@media only screen and (max-width: 959px) {
|
20 |
-
.df-credits {
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
2 |
|
3 |
-
$(
|
4 |
-
$('#rl_fb_overlay_color_input').wpColorPicker();
|
5 |
|
6 |
-
|
7 |
-
$('#
|
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 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
$('#
|
50 |
-
$('#
|
51 |
-
|
52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
|
|
|
|
|
|
|
|
73 |
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
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 |
-
|
99 |
-
|
100 |
-
|
|
|
|
|
|
|
|
|
101 |
|
102 |
-
|
103 |
-
|
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 |
-
|
2 |
|
3 |
-
$(document).
|
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+'&layout=button_count&show_faces=true&width=500&action=like&font&colorscheme=light&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 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
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 + '&layout=button_count&show_faces=true&width=500&action=like&font&colorscheme=light&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-
|
6 |
-
"PO-Revision-Date:
|
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:
|
23 |
-
msgid "prettyPhoto"
|
24 |
-
msgstr "prettyPhoto"
|
25 |
-
|
26 |
-
#: ../responsive-lightbox.php:
|
27 |
-
msgid "slow"
|
28 |
-
msgstr "langzaam"
|
29 |
-
|
30 |
-
#: ../responsive-lightbox.php:
|
31 |
-
msgid "normal"
|
32 |
-
msgstr "normaal"
|
33 |
-
|
34 |
-
#: ../responsive-lightbox.php:
|
35 |
-
msgid "fast"
|
36 |
-
msgstr "snel"
|
37 |
-
|
38 |
-
#: ../responsive-lightbox.php:
|
39 |
-
msgid "default"
|
40 |
-
msgstr "standaard"
|
41 |
-
|
42 |
-
#: ../responsive-lightbox.php:
|
43 |
-
msgid "light rounded"
|
44 |
-
msgstr "afgerond licht"
|
45 |
-
|
46 |
-
#: ../responsive-lightbox.php:
|
47 |
-
msgid "dark rounded"
|
48 |
-
msgstr "afgerond donker"
|
49 |
-
|
50 |
-
#: ../responsive-lightbox.php:
|
51 |
-
msgid "light square"
|
52 |
-
msgstr "hoekig licht"
|
53 |
-
|
54 |
-
#: ../responsive-lightbox.php:
|
55 |
-
msgid "dark square"
|
56 |
-
msgstr "hoekig donker"
|
57 |
-
|
58 |
-
#: ../responsive-lightbox.php:
|
59 |
-
msgid "facebook"
|
60 |
-
msgstr "facebook"
|
61 |
-
|
62 |
-
#: ../responsive-lightbox.php:
|
63 |
-
msgid "window"
|
64 |
-
msgstr "venster"
|
65 |
-
|
66 |
-
#: ../responsive-lightbox.php:
|
67 |
-
msgid "transparent"
|
68 |
-
msgstr "transparant"
|
69 |
-
|
70 |
-
#: ../responsive-lightbox.php:
|
71 |
-
msgid "opaque"
|
72 |
-
msgstr "opaak"
|
73 |
-
|
74 |
-
#: ../responsive-lightbox.php:
|
75 |
-
msgid "direct"
|
76 |
-
msgstr "direct"
|
77 |
-
|
78 |
-
#: ../responsive-lightbox.php:
|
79 |
-
msgid "gpu"
|
80 |
-
msgstr "GPU"
|
81 |
-
|
82 |
-
#: ../responsive-lightbox.php:
|
83 |
-
msgid "SwipeBox"
|
84 |
-
msgstr "SwipeBox"
|
85 |
-
|
86 |
-
#: ../responsive-lightbox.php:
|
87 |
-
msgid "CSS"
|
88 |
-
msgstr "CSS"
|
89 |
-
|
90 |
-
#: ../responsive-lightbox.php:
|
91 |
-
msgid "jQuery"
|
92 |
-
msgstr "jQuery"
|
93 |
-
|
94 |
-
#: ../responsive-lightbox.php:
|
95 |
-
msgid "FancyBox"
|
96 |
-
msgstr "FancyBox"
|
97 |
-
|
98 |
-
#: ../responsive-lightbox.php:
|
99 |
-
msgid "elastic"
|
100 |
-
msgstr "elastisch"
|
101 |
-
|
102 |
-
#: ../responsive-lightbox.php:
|
103 |
-
#: ../responsive-lightbox.php:
|
104 |
-
msgid "fade"
|
105 |
-
msgstr "vervagen"
|
106 |
-
|
107 |
-
#: ../responsive-lightbox.php:
|
108 |
-
msgid "none"
|
109 |
-
msgstr "geen"
|
110 |
-
|
111 |
-
#: ../responsive-lightbox.php:
|
112 |
-
msgid "auto"
|
113 |
-
msgstr "automatisch"
|
114 |
-
|
115 |
-
#: ../responsive-lightbox.php:
|
116 |
-
msgid "yes"
|
117 |
-
msgstr "ja"
|
118 |
-
|
119 |
-
#: ../responsive-lightbox.php:
|
120 |
-
msgid "no"
|
121 |
-
msgstr "nee"
|
122 |
-
|
123 |
-
#: ../responsive-lightbox.php:
|
124 |
-
msgid "swing"
|
125 |
-
msgstr "swing"
|
126 |
-
|
127 |
-
#: ../responsive-lightbox.php:
|
128 |
-
msgid "linear"
|
129 |
-
msgstr "lineair"
|
130 |
-
|
131 |
-
#: ../responsive-lightbox.php:
|
132 |
-
msgid "outside"
|
133 |
-
msgstr "buiten"
|
134 |
-
|
135 |
-
#: ../responsive-lightbox.php:
|
136 |
-
msgid "inside"
|
137 |
-
msgstr "binnen"
|
138 |
-
|
139 |
-
#: ../responsive-lightbox.php:
|
140 |
-
msgid "over"
|
141 |
-
msgstr "over"
|
142 |
-
|
143 |
-
#: ../responsive-lightbox.php:
|
144 |
-
msgid "Nivo Lightbox"
|
145 |
-
msgstr "Nivo Lightbox"
|
146 |
-
|
147 |
-
#: ../responsive-lightbox.php:
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
#: ../responsive-lightbox.php:
|
181 |
-
msgid "
|
182 |
-
msgstr "
|
183 |
-
|
184 |
-
#: ../responsive-lightbox.php:
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
#: ../responsive-lightbox.php:
|
194 |
-
msgid "
|
195 |
-
msgstr "
|
196 |
-
|
197 |
-
#: ../responsive-lightbox.php:
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
#: ../responsive-lightbox.php:
|
251 |
-
msgid "
|
252 |
-
msgstr "
|
253 |
-
|
254 |
-
#: ../responsive-lightbox.php:
|
255 |
-
msgid "
|
256 |
-
msgstr "
|
257 |
-
|
258 |
-
#: ../responsive-lightbox.php:
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
#: ../responsive-lightbox.php:
|
264 |
-
msgid "
|
265 |
-
msgstr "
|
266 |
-
|
267 |
-
#: ../responsive-lightbox.php:
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
#: ../responsive-lightbox.php:
|
273 |
-
msgid "
|
274 |
-
msgstr "
|
275 |
-
|
276 |
-
#: ../responsive-lightbox.php:
|
277 |
-
msgid "
|
278 |
-
msgstr "
|
279 |
-
|
280 |
-
#: ../responsive-lightbox.php:
|
281 |
-
msgid "
|
282 |
-
msgstr "
|
283 |
-
|
284 |
-
#: ../responsive-lightbox.php:
|
285 |
-
msgid "
|
286 |
-
msgstr "
|
287 |
-
|
288 |
-
#: ../responsive-lightbox.php:
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
#: ../responsive-lightbox.php:
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
#: ../responsive-lightbox.php:
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
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:
|
5 |
-
"PO-Revision-Date:
|
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.
|
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:
|
19 |
msgid "prettyPhoto"
|
20 |
msgstr "prettyPhoto"
|
21 |
|
22 |
-
#: ../responsive-lightbox.php:
|
23 |
msgid "slow"
|
24 |
msgstr "wolno"
|
25 |
|
26 |
-
#: ../responsive-lightbox.php:
|
27 |
msgid "normal"
|
28 |
msgstr "normalnie"
|
29 |
|
30 |
-
#: ../responsive-lightbox.php:
|
31 |
msgid "fast"
|
32 |
msgstr "szybko"
|
33 |
|
34 |
-
#: ../responsive-lightbox.php:
|
35 |
msgid "default"
|
36 |
msgstr ""
|
37 |
|
38 |
-
#: ../responsive-lightbox.php:
|
39 |
msgid "light rounded"
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: ../responsive-lightbox.php:
|
43 |
msgid "dark rounded"
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: ../responsive-lightbox.php:
|
47 |
msgid "light square"
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: ../responsive-lightbox.php:
|
51 |
msgid "dark square"
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: ../responsive-lightbox.php:
|
55 |
msgid "facebook"
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: ../responsive-lightbox.php:
|
59 |
msgid "window"
|
60 |
msgstr ""
|
61 |
|
62 |
-
#: ../responsive-lightbox.php:
|
63 |
msgid "transparent"
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: ../responsive-lightbox.php:
|
67 |
msgid "opaque"
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: ../responsive-lightbox.php:
|
71 |
msgid "direct"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: ../responsive-lightbox.php:
|
75 |
msgid "gpu"
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: ../responsive-lightbox.php:
|
79 |
msgid "SwipeBox"
|
80 |
msgstr "SwipeBox"
|
81 |
|
82 |
-
#: ../responsive-lightbox.php:
|
83 |
msgid "CSS"
|
84 |
msgstr "CSS"
|
85 |
|
86 |
-
#: ../responsive-lightbox.php:
|
87 |
msgid "jQuery"
|
88 |
msgstr "jQuery"
|
89 |
|
90 |
-
#: ../responsive-lightbox.php:
|
91 |
msgid "FancyBox"
|
92 |
msgstr "FancyBox"
|
93 |
|
94 |
-
#: ../responsive-lightbox.php:
|
95 |
msgid "elastic"
|
96 |
msgstr ""
|
97 |
|
98 |
-
#: ../responsive-lightbox.php:
|
99 |
msgid "fade"
|
100 |
msgstr ""
|
101 |
|
102 |
-
#: ../responsive-lightbox.php:
|
103 |
msgid "none"
|
104 |
msgstr "brak"
|
105 |
|
106 |
-
#: ../responsive-lightbox.php:
|
107 |
msgid "auto"
|
108 |
msgstr "automatycznie"
|
109 |
|
110 |
-
#: ../responsive-lightbox.php:
|
111 |
msgid "yes"
|
112 |
msgstr "tak"
|
113 |
|
114 |
-
#: ../responsive-lightbox.php:
|
115 |
msgid "no"
|
116 |
msgstr "nie"
|
117 |
|
118 |
-
#: ../responsive-lightbox.php:
|
119 |
msgid "swing"
|
120 |
msgstr ""
|
121 |
|
122 |
-
#: ../responsive-lightbox.php:
|
123 |
msgid "linear"
|
124 |
msgstr ""
|
125 |
|
126 |
-
#: ../responsive-lightbox.php:
|
127 |
msgid "outside"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: ../responsive-lightbox.php:
|
131 |
msgid "inside"
|
132 |
msgstr ""
|
133 |
|
134 |
-
#: ../responsive-lightbox.php:
|
135 |
msgid "over"
|
136 |
msgstr ""
|
137 |
|
138 |
-
#: ../responsive-lightbox.php:
|
139 |
msgid "Nivo Lightbox"
|
140 |
msgstr "Nivo Lightbox"
|
141 |
|
142 |
-
#: ../responsive-lightbox.php:
|
143 |
msgid "fade scale"
|
144 |
msgstr "fade scale"
|
145 |
|
146 |
-
#: ../responsive-lightbox.php:
|
147 |
msgid "slide left"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: ../responsive-lightbox.php:
|
151 |
msgid "slide right"
|
152 |
msgstr "slide right"
|
153 |
|
154 |
-
#: ../responsive-lightbox.php:
|
155 |
msgid "slide up"
|
156 |
msgstr ""
|
157 |
|
158 |
-
#: ../responsive-lightbox.php:
|
159 |
msgid "slide down"
|
160 |
msgstr "slide down"
|
161 |
|
162 |
-
#: ../responsive-lightbox.php:
|
163 |
msgid "fall"
|
164 |
msgstr ""
|
165 |
|
166 |
-
#: ../responsive-lightbox.php:
|
167 |
msgid "Image Lightbox"
|
168 |
msgstr "Image Lightbox"
|
169 |
|
170 |
-
#: ../responsive-lightbox.php:
|
171 |
msgid "Enable"
|
172 |
msgstr "Włącz"
|
173 |
|
174 |
-
#: ../responsive-lightbox.php:
|
175 |
msgid "Disable"
|
176 |
msgstr "Wyłącz"
|
177 |
|
178 |
-
#: ../responsive-lightbox.php:
|
179 |
msgid "Header"
|
180 |
msgstr "W nagłówku"
|
181 |
|
182 |
-
#: ../responsive-lightbox.php:
|
183 |
msgid "Footer"
|
184 |
msgstr "W stopce"
|
185 |
|
186 |
-
#: ../responsive-lightbox.php:
|
187 |
msgid "General settings"
|
188 |
msgstr "Ustawienia ogólne"
|
189 |
|
190 |
-
#: ../responsive-lightbox.php:
|
191 |
msgid "Lightbox settings"
|
192 |
msgstr "Ustawienia lightbox"
|
193 |
|
194 |
-
#: ../responsive-lightbox.php:
|
195 |
msgid "Lightbox script"
|
196 |
msgstr "Skrypt lightbox"
|
197 |
|
198 |
-
#: ../responsive-lightbox.php:
|
199 |
msgid "Selector"
|
200 |
msgstr "Znacznik"
|
201 |
|
202 |
-
#: ../responsive-lightbox.php:
|
203 |
msgid "Galleries"
|
204 |
msgstr "Galerie"
|
205 |
|
206 |
-
#: ../responsive-lightbox.php:
|
207 |
msgid "Gallery image size"
|
208 |
msgstr "WIelkość obrazka w galerii"
|
209 |
|
210 |
-
#: ../responsive-lightbox.php:
|
211 |
msgid "Video links"
|
212 |
msgstr "Linki video"
|
213 |
|
214 |
-
#: ../responsive-lightbox.php:
|
215 |
msgid "Image links"
|
216 |
msgstr "Linki obrazków"
|
217 |
|
218 |
-
#: ../responsive-lightbox.php:
|
219 |
msgid "Single images as gallery"
|
220 |
msgstr "Galeria pojedynczych obrazków"
|
221 |
|
222 |
-
#: ../responsive-lightbox.php:
|
223 |
msgid "Custom events"
|
224 |
msgstr "Własne zdarzenia"
|
225 |
|
226 |
-
#: ../responsive-lightbox.php:
|
227 |
msgid "Loading place"
|
228 |
msgstr "Ładowanie"
|
229 |
|
230 |
-
#: ../responsive-lightbox.php:
|
231 |
msgid "Deactivation"
|
232 |
msgstr "Deaktywacja"
|
233 |
|
234 |
-
#: ../responsive-lightbox.php:
|
235 |
msgid "Animation type"
|
236 |
msgstr "Typ animacji"
|
237 |
|
238 |
-
#: ../responsive-lightbox.php:
|
239 |
msgid "Force PNG icons"
|
240 |
msgstr "Wymuszanie ikon PNG"
|
241 |
|
242 |
-
#: ../responsive-lightbox.php:
|
|
|
|
|
|
|
|
|
243 |
msgid "Top and bottom bars"
|
244 |
msgstr "Górne i dolne paski"
|
245 |
|
246 |
-
#: ../responsive-lightbox.php:
|
247 |
msgid "Video max width"
|
248 |
msgstr "Maksymalna szerokość video"
|
249 |
|
250 |
-
#: ../responsive-lightbox.php:
|
|
|
|
|
|
|
|
|
251 |
msgid "Animation speed"
|
252 |
msgstr "Szybkość animacji"
|
253 |
|
254 |
-
#: ../responsive-lightbox.php:
|
255 |
msgid "Slideshow"
|
256 |
msgstr "Pokaz slidów"
|
257 |
|
258 |
-
#: ../responsive-lightbox.php:
|
259 |
msgid "Slideshow autoplay"
|
260 |
msgstr "Automatyczne odtwarzanie pokazu slajdów"
|
261 |
|
262 |
-
#: ../responsive-lightbox.php:
|
263 |
msgid "Opacity"
|
264 |
msgstr "Przezroczystość"
|
265 |
|
266 |
-
#: ../responsive-lightbox.php:
|
267 |
msgid "Show title"
|
268 |
msgstr "Wyświetlanie tytułu"
|
269 |
|
270 |
-
#: ../responsive-lightbox.php:
|
271 |
msgid "Allow resize big images"
|
272 |
msgstr "Powiększanie dużych zdjęć"
|
273 |
|
274 |
-
#: ../responsive-lightbox.php:
|
275 |
msgid "Allow expand"
|
276 |
msgstr "Zezwól na powiększanie"
|
277 |
|
278 |
-
#: ../responsive-lightbox.php:
|
279 |
msgid "Video width"
|
280 |
msgstr "Szerokość video"
|
281 |
|
282 |
-
#: ../responsive-lightbox.php:
|
283 |
msgid "Video height"
|
284 |
msgstr "Wysokość video"
|
285 |
|
286 |
-
#: ../responsive-lightbox.php:
|
287 |
msgid "Theme"
|
288 |
msgstr "Motyw"
|
289 |
|
290 |
-
#: ../responsive-lightbox.php:
|
291 |
msgid "Horizontal padding"
|
292 |
msgstr "Odstępy w poziomie"
|
293 |
|
294 |
-
#: ../responsive-lightbox.php:
|
295 |
msgid "Hide Flash"
|
296 |
msgstr "Ukrywanie flash"
|
297 |
|
298 |
-
#: ../responsive-lightbox.php:
|
299 |
msgid "Flash Window Mode (wmode)"
|
300 |
msgstr "Tryb okna flash (wmode)"
|
301 |
|
302 |
-
#: ../responsive-lightbox.php:
|
303 |
msgid "Video autoplay"
|
304 |
msgstr "Automatyczne odtwarzanie wideo"
|
305 |
|
306 |
-
#: ../responsive-lightbox.php:
|
307 |
msgid "Modal"
|
308 |
msgstr "Tryb modal"
|
309 |
|
310 |
-
#: ../responsive-lightbox.php:
|
311 |
msgid "Deeplinking"
|
312 |
msgstr "Głębokie linki"
|
313 |
|
314 |
-
#: ../responsive-lightbox.php:
|
315 |
msgid "Overlay gallery"
|
316 |
msgstr "Efekt overlay galerii"
|
317 |
|
318 |
-
#: ../responsive-lightbox.php:
|
319 |
msgid "Keyboard shortcuts"
|
320 |
msgstr "Skróty klawiaturowe"
|
321 |
|
322 |
-
#: ../responsive-lightbox.php:
|
323 |
msgid "Social (Twitter, Facebook)"
|
324 |
msgstr "Linki społeczności (Twitter, Facebook)"
|
325 |
|
326 |
-
#: ../responsive-lightbox.php:
|
327 |
msgid "Show overlay"
|
328 |
msgstr "Wyświetlanie tła"
|
329 |
|
330 |
-
#: ../responsive-lightbox.php:
|
331 |
msgid "Show close button"
|
332 |
msgstr "Wyświetlanie przycisku Zamknij"
|
333 |
|
334 |
-
#: ../responsive-lightbox.php:
|
335 |
msgid "Enable escape button"
|
336 |
msgstr "Wyświetlanie przycisku Wyjdź"
|
337 |
|
338 |
-
#: ../responsive-lightbox.php:
|
339 |
msgid "Hide on overlay click"
|
340 |
msgstr "Ukryj po kliknięciu w tło"
|
341 |
|
342 |
-
#: ../responsive-lightbox.php:
|
343 |
msgid "Hide on content click"
|
344 |
msgstr "Ukryj po kliknięciu w treść"
|
345 |
|
346 |
-
#: ../responsive-lightbox.php:
|
347 |
msgid "Cyclic"
|
348 |
msgstr "Cykliczność"
|
349 |
|
350 |
-
#: ../responsive-lightbox.php:
|
351 |
msgid "Show nav arrows"
|
352 |
msgstr "Wyświetlanie strzałek"
|
353 |
|
354 |
-
#: ../responsive-lightbox.php:
|
355 |
msgid "Auto scale"
|
356 |
msgstr "Automatyczne skalowanie"
|
357 |
|
358 |
-
#: ../responsive-lightbox.php:
|
359 |
msgid "Scrolling (in/out)"
|
360 |
msgstr "Przewijanie"
|
361 |
|
362 |
-
#: ../responsive-lightbox.php:
|
363 |
msgid "Center on scroll"
|
364 |
msgstr "Centrowanie przy przewijaniu"
|
365 |
|
366 |
-
#: ../responsive-lightbox.php:
|
367 |
msgid "Overlay opacity"
|
368 |
msgstr "Przezroczystość tła"
|
369 |
|
370 |
-
#: ../responsive-lightbox.php:
|
371 |
msgid "Overlay color"
|
372 |
msgstr "Kolor tła"
|
373 |
|
374 |
-
#: ../responsive-lightbox.php:
|
375 |
msgid "Title show"
|
376 |
msgstr "Wyświetlanie tytułu"
|
377 |
|
378 |
-
#: ../responsive-lightbox.php:
|
379 |
msgid "Title position"
|
380 |
msgstr "Pozycja tytułu"
|
381 |
|
382 |
-
#: ../responsive-lightbox.php:
|
383 |
msgid "Transition (in/out)"
|
384 |
msgstr "Efekty przejścia"
|
385 |
|
386 |
-
#: ../responsive-lightbox.php:
|
387 |
msgid "Easings (in/out)"
|
388 |
msgstr "Wygładzanie animacji"
|
389 |
|
390 |
-
#: ../responsive-lightbox.php:
|
391 |
msgid "Speed (in/out)"
|
392 |
msgstr "Szybkość"
|
393 |
|
394 |
-
#: ../responsive-lightbox.php:
|
395 |
msgid "Change speed"
|
396 |
msgstr "Zmień szybkość"
|
397 |
|
398 |
-
#: ../responsive-lightbox.php:
|
399 |
msgid "Change fade"
|
400 |
msgstr "Zmień zanikanie"
|
401 |
|
402 |
-
#: ../responsive-lightbox.php:
|
403 |
msgid "Padding"
|
404 |
msgstr "Odstęp (padding)"
|
405 |
|
406 |
-
#: ../responsive-lightbox.php:
|
407 |
msgid "Margin"
|
408 |
msgstr "Margines (margin)"
|
409 |
|
410 |
-
#: ../responsive-lightbox.php:
|
411 |
msgid "Effect"
|
412 |
msgstr "Efekt"
|
413 |
|
414 |
-
#: ../responsive-lightbox.php:
|
415 |
msgid "Click overlay to close"
|
416 |
msgstr "Kliknięcie poza obrazek"
|
417 |
|
418 |
-
#: ../responsive-lightbox.php:
|
419 |
msgid "Keyboard navigation"
|
420 |
msgstr "Nawigacja klawiaturą"
|
421 |
|
422 |
-
#: ../responsive-lightbox.php:
|
423 |
msgid "Error message"
|
424 |
msgstr "Treść komunikatu o błędzie"
|
425 |
|
426 |
-
#: ../responsive-lightbox.php:
|
427 |
msgid "Preload next image"
|
428 |
msgstr "Wstępne ładowanie kolejnego obrazka"
|
429 |
|
430 |
-
#: ../responsive-lightbox.php:
|
431 |
msgid "Enable keyboard keys"
|
432 |
msgstr "Obługa klawiaturą"
|
433 |
|
434 |
-
#: ../responsive-lightbox.php:
|
435 |
msgid "Quit after last image"
|
436 |
msgstr "Wyjście po ostanim obrazku"
|
437 |
|
438 |
-
#: ../responsive-lightbox.php:
|
439 |
msgid "Quit when image is clicked"
|
440 |
msgstr "Wyjście po kliknięciu w obrazek"
|
441 |
|
442 |
-
#: ../responsive-lightbox.php:
|
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:
|
447 |
msgid "Select your preffered ligthbox effect script."
|
448 |
msgstr "Wybierz preferowany efekt lightbox."
|
449 |
|
450 |
-
#: ../responsive-lightbox.php:
|
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:
|
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:
|
459 |
msgid "Enter a space separated list of events."
|
460 |
msgstr "Wpisz oddzieloną spacją listę wydarzeń."
|
461 |
|
462 |
-
#: ../responsive-lightbox.php:
|
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:
|
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:
|
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:
|
479 |
msgid "full"
|
480 |
msgstr ""
|
481 |
|
482 |
-
#: ../responsive-lightbox.php:
|
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:
|
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:
|
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:
|
495 |
msgid "Display single post images as a gallery."
|
496 |
msgstr "Wyświetl pojedyncze obrazki jako pokaz sladów."
|
497 |
|
498 |
-
#: ../responsive-lightbox.php:
|
499 |
msgid "Delete settings on plugin deactivation."
|
500 |
msgstr "Usuń ustawienia przy deaktywacji wtyczki."
|
501 |
|
502 |
-
#: ../responsive-lightbox.php:
|
503 |
msgid "Select a method of applying a lightbox effect."
|
504 |
msgstr "Wybierz sposób dodawania efekty lightbox."
|
505 |
|
506 |
-
#: ../responsive-lightbox.php:
|
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:
|
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:
|
521 |
msgid "Enter the max video width in a lightbox."
|
522 |
msgstr "Podaj maksymalną szerokość video."
|
523 |
|
524 |
-
#: ../responsive-lightbox.php:
|
|
|
|
|
|
|
|
|
|
|
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:
|
|
|
|
|
|
|
|
|
|
|
531 |
msgid "Select animation speed for lightbox effect."
|
532 |
msgstr "Wybierz szybkość animacji efektu lightbox."
|
533 |
|
534 |
-
#: ../responsive-lightbox.php:
|
535 |
msgid "Display images as slideshow."
|
536 |
msgstr "Wyświetl obrazki jako pokaz sladów ."
|
537 |
|
538 |
-
#: ../responsive-lightbox.php:
|
539 |
msgid "Enter time (in miliseconds)."
|
540 |
msgstr "Podaj czas (w milisekundach)."
|
541 |
|
542 |
-
#: ../responsive-lightbox.php:
|
543 |
msgid "Automatically start slideshow."
|
544 |
msgstr "Automatyczne rozpoczynanie pokazu slajdów."
|
545 |
|
546 |
-
#: ../responsive-lightbox.php:
|
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:
|
551 |
msgid "Display image tiltle."
|
552 |
msgstr "Wyświetlanie tytułu obrazka."
|
553 |
|
554 |
-
#: ../responsive-lightbox.php:
|
555 |
msgid "Resize the photos bigger than viewport."
|
556 |
msgstr "Zmiana wielkość zdjęć większych niż aktualny ekran."
|
557 |
|
558 |
-
#: ../responsive-lightbox.php:
|
559 |
msgid "Expands something."
|
560 |
msgstr "Powiększeniei okna."
|
561 |
|
562 |
-
#: ../responsive-lightbox.php:
|
563 |
msgid "in pixels"
|
564 |
msgstr "w pikselach"
|
565 |
|
566 |
-
#: ../responsive-lightbox.php:
|
567 |
msgid "Select theme for lightbox effect."
|
568 |
msgstr "Wybierz motyw dla efektu lightbox."
|
569 |
|
570 |
-
#: ../responsive-lightbox.php:
|
571 |
msgid "Horizontal padding (in pixels)."
|
572 |
msgstr "Odstępy w poziomie (w pikselach)."
|
573 |
|
574 |
-
#: ../responsive-lightbox.php:
|
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:
|
583 |
msgid "Select flash window mode."
|
584 |
msgstr "Wybierz tryb okna flash."
|
585 |
|
586 |
-
#: ../responsive-lightbox.php:
|
587 |
msgid "Automatically start videos."
|
588 |
msgstr "Automatycznie rozpoczynaj video."
|
589 |
|
590 |
-
#: ../responsive-lightbox.php:
|
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:
|
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:
|
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:
|
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:
|
610 |
msgid "Display links to Facebook and Twitter."
|
611 |
msgstr "Wyświetl linki do Facebboka i Twittera."
|
612 |
|
613 |
-
#: ../responsive-lightbox.php:
|
614 |
msgid "The transition type."
|
615 |
msgstr "Typ animacji."
|
616 |
|
617 |
-
#: ../responsive-lightbox.php:
|
618 |
msgid "Space between FancyBox wrapper and content."
|
619 |
msgstr "Przestrzeń między FancyBox a treścią"
|
620 |
|
621 |
-
#: ../responsive-lightbox.php:
|
622 |
msgid "Space between viewport and FancyBox wrapper."
|
623 |
msgstr "Przestrzeń między ekranem a Fancybox"
|
624 |
|
625 |
-
#: ../responsive-lightbox.php:
|
626 |
msgid ""
|
627 |
-
"When true, \"overlayShow\" is set to
|
628 |
"\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set "
|
629 |
-
"to
|
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:
|
636 |
msgid "Toggle overlay."
|
637 |
msgstr "Włącz tło."
|
638 |
|
639 |
-
#: ../responsive-lightbox.php:
|
640 |
msgid "Toggle close button."
|
641 |
msgstr "Włącz przycisk Zamknij."
|
642 |
|
643 |
-
#: ../responsive-lightbox.php:
|
644 |
msgid "Toggle if pressing Esc button closes FancyBox."
|
645 |
msgstr "Włącz zamykanie FancyBox przy pomocy Esc."
|
646 |
|
647 |
-
#: ../responsive-lightbox.php:
|
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:
|
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:
|
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:
|
661 |
msgid "Toggle navigation arrows."
|
662 |
msgstr "Włącz strzałki nawigacyjne."
|
663 |
|
664 |
-
#: ../responsive-lightbox.php:
|
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:
|
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:
|
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:
|
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:
|
686 |
msgid "Opacity of the overlay."
|
687 |
msgstr "Przezroczystość tła."
|
688 |
|
689 |
-
#: ../responsive-lightbox.php:
|
690 |
msgid "Color of the overlay."
|
691 |
msgstr "Kolor tła."
|
692 |
|
693 |
-
#: ../responsive-lightbox.php:
|
694 |
msgid "Toggle title."
|
695 |
msgstr "Wyświetlanie tytułu."
|
696 |
|
697 |
-
#: ../responsive-lightbox.php:
|
698 |
msgid "The position of title."
|
699 |
msgstr "Pozycja tytułu."
|
700 |
|
701 |
-
#: ../responsive-lightbox.php:
|
702 |
msgid "Easing used for elastic animations."
|
703 |
msgstr "Wygładzanie animacji dla trybu elastic."
|
704 |
|
705 |
-
#: ../responsive-lightbox.php:
|
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:
|
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:
|
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:
|
720 |
msgid "Width of the video."
|
721 |
msgstr "Szerokość video."
|
722 |
|
723 |
-
#: ../responsive-lightbox.php:
|
724 |
msgid "Height of the video."
|
725 |
msgstr "Wysokość video."
|
726 |
|
727 |
-
#: ../responsive-lightbox.php:
|
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:
|
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:
|
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:
|
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:
|
745 |
msgid "Animation speed."
|
746 |
msgstr "Szybkość animacji."
|
747 |
|
748 |
-
#: ../responsive-lightbox.php:
|
749 |
msgid "Silently preload the next image."
|
750 |
msgstr "W niezauważalny sposób ładuje kolejny obrazek."
|
751 |
|
752 |
-
#: ../responsive-lightbox.php:
|
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:
|
757 |
msgid "Quit after viewing the last image."
|
758 |
msgstr "Powoduje wyjście z lightboxa po obejrzeniu ostatniego obrazka."
|
759 |
|
760 |
-
#: ../responsive-lightbox.php:
|
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:
|
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:
|
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:
|
777 |
msgid "Settings restored to defaults."
|
778 |
msgstr "Ustawienia zostały przywrócone do domyślnych."
|
779 |
|
780 |
-
#: ../responsive-lightbox.php:
|
781 |
msgid "Settings of SwipeBox script were restored to defaults."
|
782 |
msgstr "Ustawienia skryptu SwipeBox zostały przywrócone."
|
783 |
|
784 |
-
#: ../responsive-lightbox.php:
|
785 |
msgid "Settings of prettyPhoto script were restored to defaults."
|
786 |
msgstr "Ustawienia skryptu prettyPhoto zostały przywrócone."
|
787 |
|
788 |
-
#: ../responsive-lightbox.php:
|
789 |
msgid "Settings of FancyBox script were restored to defaults."
|
790 |
msgstr "Ustawienia skryptu FancyBox zostały przywrócone."
|
791 |
|
792 |
-
#: ../responsive-lightbox.php:
|
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:
|
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:
|
806 |
-
#: ../responsive-lightbox.php:
|
807 |
msgid "Responsive Lightbox"
|
808 |
msgstr "Efekt Lightbox"
|
809 |
|
810 |
-
#: ../responsive-lightbox.php:
|
811 |
msgid "Need support?"
|
812 |
msgstr "Potrzebujesz pomocy?"
|
813 |
|
814 |
-
#: ../responsive-lightbox.php:
|
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:
|
820 |
msgid "Support forum"
|
821 |
msgstr "Forum pomocy"
|
822 |
|
823 |
-
#: ../responsive-lightbox.php:
|
824 |
msgid "Do you like this plugin?"
|
825 |
msgstr "Lubisz tę wtyczkę?"
|
826 |
|
827 |
-
#: ../responsive-lightbox.php:
|
828 |
msgid "Rate it 5"
|
829 |
msgstr "Oceń ją na 5"
|
830 |
|
831 |
-
#: ../responsive-lightbox.php:
|
832 |
msgid "on WordPress.org"
|
833 |
msgstr "na WordPress.org"
|
834 |
|
835 |
-
#: ../responsive-lightbox.php:
|
836 |
msgid "Blog about it & link to the"
|
837 |
msgstr "Napisz o niej i dodaj link"
|
838 |
|
839 |
-
#: ../responsive-lightbox.php:
|
840 |
msgid "plugin page"
|
841 |
msgstr "do strony wtyczki"
|
842 |
|
843 |
-
#: ../responsive-lightbox.php:
|
844 |
msgid "Check out our other"
|
845 |
msgstr "Sprawdź nasze pozostałe"
|
846 |
|
847 |
-
#: ../responsive-lightbox.php:
|
848 |
msgid "WordPress plugins"
|
849 |
msgstr "wtyczki do WordPress'a"
|
850 |
|
851 |
-
#: ../responsive-lightbox.php:
|
852 |
msgid "Reset to defaults"
|
853 |
msgstr "Resetuj do domyślnych"
|
854 |
|
855 |
-
#: ../responsive-lightbox.php:
|
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:
|
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:
|
864 |
msgid "Support"
|
865 |
msgstr "Pomoc"
|
866 |
|
867 |
-
#: ../responsive-lightbox.php:
|
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:
|
5 |
-
"PO-Revision-Date:
|
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.
|
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:
|
19 |
msgid "prettyPhoto"
|
20 |
msgstr ""
|
21 |
|
22 |
-
#: ../responsive-lightbox.php:
|
23 |
msgid "slow"
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: ../responsive-lightbox.php:
|
27 |
msgid "normal"
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: ../responsive-lightbox.php:
|
31 |
msgid "fast"
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: ../responsive-lightbox.php:
|
35 |
msgid "default"
|
36 |
msgstr ""
|
37 |
|
38 |
-
#: ../responsive-lightbox.php:
|
39 |
msgid "light rounded"
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: ../responsive-lightbox.php:
|
43 |
msgid "dark rounded"
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: ../responsive-lightbox.php:
|
47 |
msgid "light square"
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: ../responsive-lightbox.php:
|
51 |
msgid "dark square"
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: ../responsive-lightbox.php:
|
55 |
msgid "facebook"
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: ../responsive-lightbox.php:
|
59 |
msgid "window"
|
60 |
msgstr ""
|
61 |
|
62 |
-
#: ../responsive-lightbox.php:
|
63 |
msgid "transparent"
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: ../responsive-lightbox.php:
|
67 |
msgid "opaque"
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: ../responsive-lightbox.php:
|
71 |
msgid "direct"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: ../responsive-lightbox.php:
|
75 |
msgid "gpu"
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: ../responsive-lightbox.php:
|
79 |
msgid "SwipeBox"
|
80 |
msgstr ""
|
81 |
|
82 |
-
#: ../responsive-lightbox.php:
|
83 |
msgid "CSS"
|
84 |
msgstr ""
|
85 |
|
86 |
-
#: ../responsive-lightbox.php:
|
87 |
msgid "jQuery"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: ../responsive-lightbox.php:
|
91 |
msgid "FancyBox"
|
92 |
msgstr ""
|
93 |
|
94 |
-
#: ../responsive-lightbox.php:
|
95 |
msgid "elastic"
|
96 |
msgstr ""
|
97 |
|
98 |
-
#: ../responsive-lightbox.php:
|
99 |
msgid "fade"
|
100 |
msgstr ""
|
101 |
|
102 |
-
#: ../responsive-lightbox.php:
|
103 |
msgid "none"
|
104 |
msgstr ""
|
105 |
|
106 |
-
#: ../responsive-lightbox.php:
|
107 |
msgid "auto"
|
108 |
msgstr ""
|
109 |
|
110 |
-
#: ../responsive-lightbox.php:
|
111 |
msgid "yes"
|
112 |
msgstr ""
|
113 |
|
114 |
-
#: ../responsive-lightbox.php:
|
115 |
msgid "no"
|
116 |
msgstr ""
|
117 |
|
118 |
-
#: ../responsive-lightbox.php:
|
119 |
msgid "swing"
|
120 |
msgstr ""
|
121 |
|
122 |
-
#: ../responsive-lightbox.php:
|
123 |
msgid "linear"
|
124 |
msgstr ""
|
125 |
|
126 |
-
#: ../responsive-lightbox.php:
|
127 |
msgid "outside"
|
128 |
msgstr ""
|
129 |
|
130 |
-
#: ../responsive-lightbox.php:
|
131 |
msgid "inside"
|
132 |
msgstr ""
|
133 |
|
134 |
-
#: ../responsive-lightbox.php:
|
135 |
msgid "over"
|
136 |
msgstr ""
|
137 |
|
138 |
-
#: ../responsive-lightbox.php:
|
139 |
msgid "Nivo Lightbox"
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: ../responsive-lightbox.php:
|
143 |
msgid "fade scale"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: ../responsive-lightbox.php:
|
147 |
msgid "slide left"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: ../responsive-lightbox.php:
|
151 |
msgid "slide right"
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: ../responsive-lightbox.php:
|
155 |
msgid "slide up"
|
156 |
msgstr ""
|
157 |
|
158 |
-
#: ../responsive-lightbox.php:
|
159 |
msgid "slide down"
|
160 |
msgstr ""
|
161 |
|
162 |
-
#: ../responsive-lightbox.php:
|
163 |
msgid "fall"
|
164 |
msgstr ""
|
165 |
|
166 |
-
#: ../responsive-lightbox.php:
|
167 |
msgid "Image Lightbox"
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: ../responsive-lightbox.php:
|
171 |
msgid "Enable"
|
172 |
msgstr ""
|
173 |
|
174 |
-
#: ../responsive-lightbox.php:
|
175 |
msgid "Disable"
|
176 |
msgstr ""
|
177 |
|
178 |
-
#: ../responsive-lightbox.php:
|
179 |
msgid "Header"
|
180 |
msgstr ""
|
181 |
|
182 |
-
#: ../responsive-lightbox.php:
|
183 |
msgid "Footer"
|
184 |
msgstr ""
|
185 |
|
186 |
-
#: ../responsive-lightbox.php:
|
187 |
msgid "General settings"
|
188 |
msgstr ""
|
189 |
|
190 |
-
#: ../responsive-lightbox.php:
|
191 |
msgid "Lightbox settings"
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: ../responsive-lightbox.php:
|
195 |
msgid "Lightbox script"
|
196 |
msgstr ""
|
197 |
|
198 |
-
#: ../responsive-lightbox.php:
|
199 |
msgid "Selector"
|
200 |
msgstr ""
|
201 |
|
202 |
-
#: ../responsive-lightbox.php:
|
203 |
msgid "Galleries"
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: ../responsive-lightbox.php:
|
207 |
msgid "Gallery image size"
|
208 |
msgstr ""
|
209 |
|
210 |
-
#: ../responsive-lightbox.php:
|
211 |
msgid "Video links"
|
212 |
msgstr ""
|
213 |
|
214 |
-
#: ../responsive-lightbox.php:
|
215 |
msgid "Image links"
|
216 |
msgstr ""
|
217 |
|
218 |
-
#: ../responsive-lightbox.php:
|
219 |
msgid "Single images as gallery"
|
220 |
msgstr ""
|
221 |
|
222 |
-
#: ../responsive-lightbox.php:
|
223 |
msgid "Custom events"
|
224 |
msgstr ""
|
225 |
|
226 |
-
#: ../responsive-lightbox.php:
|
227 |
msgid "Loading place"
|
228 |
msgstr ""
|
229 |
|
230 |
-
#: ../responsive-lightbox.php:
|
231 |
msgid "Deactivation"
|
232 |
msgstr ""
|
233 |
|
234 |
-
#: ../responsive-lightbox.php:
|
235 |
msgid "Animation type"
|
236 |
msgstr ""
|
237 |
|
238 |
-
#: ../responsive-lightbox.php:
|
239 |
msgid "Force PNG icons"
|
240 |
msgstr ""
|
241 |
|
242 |
-
#: ../responsive-lightbox.php:
|
|
|
|
|
|
|
|
|
243 |
msgid "Top and bottom bars"
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: ../responsive-lightbox.php:
|
247 |
msgid "Video max width"
|
248 |
msgstr ""
|
249 |
|
250 |
-
#: ../responsive-lightbox.php:
|
|
|
|
|
|
|
|
|
251 |
msgid "Animation speed"
|
252 |
msgstr ""
|
253 |
|
254 |
-
#: ../responsive-lightbox.php:
|
255 |
msgid "Slideshow"
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: ../responsive-lightbox.php:
|
259 |
msgid "Slideshow autoplay"
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: ../responsive-lightbox.php:
|
263 |
msgid "Opacity"
|
264 |
msgstr ""
|
265 |
|
266 |
-
#: ../responsive-lightbox.php:
|
267 |
msgid "Show title"
|
268 |
msgstr ""
|
269 |
|
270 |
-
#: ../responsive-lightbox.php:
|
271 |
msgid "Allow resize big images"
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: ../responsive-lightbox.php:
|
275 |
msgid "Allow expand"
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: ../responsive-lightbox.php:
|
279 |
msgid "Video width"
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: ../responsive-lightbox.php:
|
283 |
msgid "Video height"
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: ../responsive-lightbox.php:
|
287 |
msgid "Theme"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: ../responsive-lightbox.php:
|
291 |
msgid "Horizontal padding"
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: ../responsive-lightbox.php:
|
295 |
msgid "Hide Flash"
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: ../responsive-lightbox.php:
|
299 |
msgid "Flash Window Mode (wmode)"
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: ../responsive-lightbox.php:
|
303 |
msgid "Video autoplay"
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: ../responsive-lightbox.php:
|
307 |
msgid "Modal"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: ../responsive-lightbox.php:
|
311 |
msgid "Deeplinking"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: ../responsive-lightbox.php:
|
315 |
msgid "Overlay gallery"
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: ../responsive-lightbox.php:
|
319 |
msgid "Keyboard shortcuts"
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: ../responsive-lightbox.php:
|
323 |
msgid "Social (Twitter, Facebook)"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: ../responsive-lightbox.php:
|
327 |
msgid "Show overlay"
|
328 |
msgstr ""
|
329 |
|
330 |
-
#: ../responsive-lightbox.php:
|
331 |
msgid "Show close button"
|
332 |
msgstr ""
|
333 |
|
334 |
-
#: ../responsive-lightbox.php:
|
335 |
msgid "Enable escape button"
|
336 |
msgstr ""
|
337 |
|
338 |
-
#: ../responsive-lightbox.php:
|
339 |
msgid "Hide on overlay click"
|
340 |
msgstr ""
|
341 |
|
342 |
-
#: ../responsive-lightbox.php:
|
343 |
msgid "Hide on content click"
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: ../responsive-lightbox.php:
|
347 |
msgid "Cyclic"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: ../responsive-lightbox.php:
|
351 |
msgid "Show nav arrows"
|
352 |
msgstr ""
|
353 |
|
354 |
-
#: ../responsive-lightbox.php:
|
355 |
msgid "Auto scale"
|
356 |
msgstr ""
|
357 |
|
358 |
-
#: ../responsive-lightbox.php:
|
359 |
msgid "Scrolling (in/out)"
|
360 |
msgstr ""
|
361 |
|
362 |
-
#: ../responsive-lightbox.php:
|
363 |
msgid "Center on scroll"
|
364 |
msgstr ""
|
365 |
|
366 |
-
#: ../responsive-lightbox.php:
|
367 |
msgid "Overlay opacity"
|
368 |
msgstr ""
|
369 |
|
370 |
-
#: ../responsive-lightbox.php:
|
371 |
msgid "Overlay color"
|
372 |
msgstr ""
|
373 |
|
374 |
-
#: ../responsive-lightbox.php:
|
375 |
msgid "Title show"
|
376 |
msgstr ""
|
377 |
|
378 |
-
#: ../responsive-lightbox.php:
|
379 |
msgid "Title position"
|
380 |
msgstr ""
|
381 |
|
382 |
-
#: ../responsive-lightbox.php:
|
383 |
msgid "Transition (in/out)"
|
384 |
msgstr ""
|
385 |
|
386 |
-
#: ../responsive-lightbox.php:
|
387 |
msgid "Easings (in/out)"
|
388 |
msgstr ""
|
389 |
|
390 |
-
#: ../responsive-lightbox.php:
|
391 |
msgid "Speed (in/out)"
|
392 |
msgstr ""
|
393 |
|
394 |
-
#: ../responsive-lightbox.php:
|
395 |
msgid "Change speed"
|
396 |
msgstr ""
|
397 |
|
398 |
-
#: ../responsive-lightbox.php:
|
399 |
msgid "Change fade"
|
400 |
msgstr ""
|
401 |
|
402 |
-
#: ../responsive-lightbox.php:
|
403 |
msgid "Padding"
|
404 |
msgstr ""
|
405 |
|
406 |
-
#: ../responsive-lightbox.php:
|
407 |
msgid "Margin"
|
408 |
msgstr ""
|
409 |
|
410 |
-
#: ../responsive-lightbox.php:
|
411 |
msgid "Effect"
|
412 |
msgstr ""
|
413 |
|
414 |
-
#: ../responsive-lightbox.php:
|
415 |
msgid "Click overlay to close"
|
416 |
msgstr ""
|
417 |
|
418 |
-
#: ../responsive-lightbox.php:
|
419 |
msgid "Keyboard navigation"
|
420 |
msgstr ""
|
421 |
|
422 |
-
#: ../responsive-lightbox.php:
|
423 |
msgid "Error message"
|
424 |
msgstr ""
|
425 |
|
426 |
-
#: ../responsive-lightbox.php:
|
427 |
msgid "Preload next image"
|
428 |
msgstr ""
|
429 |
|
430 |
-
#: ../responsive-lightbox.php:
|
431 |
msgid "Enable keyboard keys"
|
432 |
msgstr ""
|
433 |
|
434 |
-
#: ../responsive-lightbox.php:
|
435 |
msgid "Quit after last image"
|
436 |
msgstr ""
|
437 |
|
438 |
-
#: ../responsive-lightbox.php:
|
439 |
msgid "Quit when image is clicked"
|
440 |
msgstr ""
|
441 |
|
442 |
-
#: ../responsive-lightbox.php:
|
443 |
msgid "Quit when anything but image is clicked"
|
444 |
msgstr ""
|
445 |
|
446 |
-
#: ../responsive-lightbox.php:
|
447 |
msgid "Select your preffered ligthbox effect script."
|
448 |
msgstr ""
|
449 |
|
450 |
-
#: ../responsive-lightbox.php:
|
451 |
msgid "Select to which rel selector lightbox effect will be applied to."
|
452 |
msgstr ""
|
453 |
|
454 |
-
#: ../responsive-lightbox.php:
|
455 |
msgid "Enable triggering lightbox on custom jquery events."
|
456 |
msgstr ""
|
457 |
|
458 |
-
#: ../responsive-lightbox.php:
|
459 |
msgid "Enter a space separated list of events."
|
460 |
msgstr ""
|
461 |
|
462 |
-
#: ../responsive-lightbox.php:
|
463 |
msgid "Select where all the lightbox scripts should be placed."
|
464 |
msgstr ""
|
465 |
|
466 |
-
#: ../responsive-lightbox.php:
|
467 |
msgid "Add lightbox to WordPress image galleries by default."
|
468 |
msgstr ""
|
469 |
|
470 |
-
#: ../responsive-lightbox.php:
|
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:
|
477 |
msgid "full"
|
478 |
msgstr ""
|
479 |
|
480 |
-
#: ../responsive-lightbox.php:
|
481 |
msgid "Select image size for gallery image links."
|
482 |
msgstr ""
|
483 |
|
484 |
-
#: ../responsive-lightbox.php:
|
485 |
msgid "Add lightbox to YouTube and Vimeo video links by default."
|
486 |
msgstr ""
|
487 |
|
488 |
-
#: ../responsive-lightbox.php:
|
489 |
msgid "Add lightbox to WordPress image links by default."
|
490 |
msgstr ""
|
491 |
|
492 |
-
#: ../responsive-lightbox.php:
|
493 |
msgid "Display single post images as a gallery."
|
494 |
msgstr ""
|
495 |
|
496 |
-
#: ../responsive-lightbox.php:
|
497 |
msgid "Delete settings on plugin deactivation."
|
498 |
msgstr ""
|
499 |
|
500 |
-
#: ../responsive-lightbox.php:
|
501 |
msgid "Select a method of applying a lightbox effect."
|
502 |
msgstr ""
|
503 |
|
504 |
-
#: ../responsive-lightbox.php:
|
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:
|
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:
|
517 |
msgid "Enter the max video width in a lightbox."
|
518 |
msgstr ""
|
519 |
|
520 |
-
#: ../responsive-lightbox.php:
|
|
|
|
|
|
|
|
|
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:
|
|
|
|
|
|
|
|
|
527 |
msgid "Select animation speed for lightbox effect."
|
528 |
msgstr ""
|
529 |
|
530 |
-
#: ../responsive-lightbox.php:
|
531 |
msgid "Display images as slideshow."
|
532 |
msgstr ""
|
533 |
|
534 |
-
#: ../responsive-lightbox.php:
|
535 |
msgid "Enter time (in miliseconds)."
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: ../responsive-lightbox.php:
|
539 |
msgid "Automatically start slideshow."
|
540 |
msgstr ""
|
541 |
|
542 |
-
#: ../responsive-lightbox.php:
|
543 |
msgid "Value between 0 and 100, 100 for no opacity."
|
544 |
msgstr ""
|
545 |
|
546 |
-
#: ../responsive-lightbox.php:
|
547 |
msgid "Display image tiltle."
|
548 |
msgstr ""
|
549 |
|
550 |
-
#: ../responsive-lightbox.php:
|
551 |
msgid "Resize the photos bigger than viewport."
|
552 |
msgstr ""
|
553 |
|
554 |
-
#: ../responsive-lightbox.php:
|
555 |
msgid "Expands something."
|
556 |
msgstr ""
|
557 |
|
558 |
-
#: ../responsive-lightbox.php:
|
559 |
msgid "in pixels"
|
560 |
msgstr ""
|
561 |
|
562 |
-
#: ../responsive-lightbox.php:
|
563 |
msgid "Select theme for lightbox effect."
|
564 |
msgstr ""
|
565 |
|
566 |
-
#: ../responsive-lightbox.php:
|
567 |
msgid "Horizontal padding (in pixels)."
|
568 |
msgstr ""
|
569 |
|
570 |
-
#: ../responsive-lightbox.php:
|
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:
|
577 |
msgid "Select flash window mode."
|
578 |
msgstr ""
|
579 |
|
580 |
-
#: ../responsive-lightbox.php:
|
581 |
msgid "Automatically start videos."
|
582 |
msgstr ""
|
583 |
|
584 |
-
#: ../responsive-lightbox.php:
|
585 |
msgid "If set to true, only the close button will close the window."
|
586 |
msgstr ""
|
587 |
|
588 |
-
#: ../responsive-lightbox.php:
|
589 |
msgid "Allow prettyPhoto to update the url to enable deeplinking."
|
590 |
msgstr ""
|
591 |
|
592 |
-
#: ../responsive-lightbox.php:
|
593 |
msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
|
594 |
msgstr ""
|
595 |
|
596 |
-
#: ../responsive-lightbox.php:
|
597 |
msgid "Set to false if you open forms inside prettyPhoto."
|
598 |
msgstr ""
|
599 |
|
600 |
-
#: ../responsive-lightbox.php:
|
601 |
msgid "Display links to Facebook and Twitter."
|
602 |
msgstr ""
|
603 |
|
604 |
-
#: ../responsive-lightbox.php:
|
605 |
msgid "The transition type."
|
606 |
msgstr ""
|
607 |
|
608 |
-
#: ../responsive-lightbox.php:
|
609 |
msgid "Space between FancyBox wrapper and content."
|
610 |
msgstr ""
|
611 |
|
612 |
-
#: ../responsive-lightbox.php:
|
613 |
msgid "Space between viewport and FancyBox wrapper."
|
614 |
msgstr ""
|
615 |
|
616 |
-
#: ../responsive-lightbox.php:
|
617 |
msgid ""
|
618 |
-
"When true, \"overlayShow\" is set to
|
619 |
"\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set "
|
620 |
-
"to
|
621 |
msgstr ""
|
622 |
|
623 |
-
#: ../responsive-lightbox.php:
|
624 |
msgid "Toggle overlay."
|
625 |
msgstr ""
|
626 |
|
627 |
-
#: ../responsive-lightbox.php:
|
628 |
msgid "Toggle close button."
|
629 |
msgstr ""
|
630 |
|
631 |
-
#: ../responsive-lightbox.php:
|
632 |
msgid "Toggle if pressing Esc button closes FancyBox."
|
633 |
msgstr ""
|
634 |
|
635 |
-
#: ../responsive-lightbox.php:
|
636 |
msgid "Toggle if clicking the overlay should close FancyBox."
|
637 |
msgstr ""
|
638 |
|
639 |
-
#: ../responsive-lightbox.php:
|
640 |
msgid "Toggle if clicking the content should close FancyBox."
|
641 |
msgstr ""
|
642 |
|
643 |
-
#: ../responsive-lightbox.php:
|
644 |
msgid ""
|
645 |
"When true, galleries will be cyclic, allowing you to keep pressing next/back."
|
646 |
msgstr ""
|
647 |
|
648 |
-
#: ../responsive-lightbox.php:
|
649 |
msgid "Toggle navigation arrows."
|
650 |
msgstr ""
|
651 |
|
652 |
-
#: ../responsive-lightbox.php:
|
653 |
msgid "If true, FancyBox is scaled to fit in viewport."
|
654 |
msgstr ""
|
655 |
|
656 |
-
#: ../responsive-lightbox.php:
|
657 |
msgid "Set the overflow CSS property to create or hide scrollbars."
|
658 |
msgstr ""
|
659 |
|
660 |
-
#: ../responsive-lightbox.php:
|
661 |
msgid "When true, FancyBox is centered while scrolling page."
|
662 |
msgstr ""
|
663 |
|
664 |
-
#: ../responsive-lightbox.php:
|
665 |
msgid "When true, transparency of content is changed for elastic transitions."
|
666 |
msgstr ""
|
667 |
|
668 |
-
#: ../responsive-lightbox.php:
|
669 |
msgid "Opacity of the overlay."
|
670 |
msgstr ""
|
671 |
|
672 |
-
#: ../responsive-lightbox.php:
|
673 |
msgid "Color of the overlay."
|
674 |
msgstr ""
|
675 |
|
676 |
-
#: ../responsive-lightbox.php:
|
677 |
msgid "Toggle title."
|
678 |
msgstr ""
|
679 |
|
680 |
-
#: ../responsive-lightbox.php:
|
681 |
msgid "The position of title."
|
682 |
msgstr ""
|
683 |
|
684 |
-
#: ../responsive-lightbox.php:
|
685 |
msgid "Easing used for elastic animations."
|
686 |
msgstr ""
|
687 |
|
688 |
-
#: ../responsive-lightbox.php:
|
689 |
msgid "Speed of the fade and elastic transitions, in milliseconds."
|
690 |
msgstr ""
|
691 |
|
692 |
-
#: ../responsive-lightbox.php:
|
693 |
msgid "Speed of resizing when changing gallery items, in milliseconds."
|
694 |
msgstr ""
|
695 |
|
696 |
-
#: ../responsive-lightbox.php:
|
697 |
msgid "Speed of the content fading while changing gallery items."
|
698 |
msgstr ""
|
699 |
|
700 |
-
#: ../responsive-lightbox.php:
|
701 |
msgid "Width of the video."
|
702 |
msgstr ""
|
703 |
|
704 |
-
#: ../responsive-lightbox.php:
|
705 |
msgid "Height of the video."
|
706 |
msgstr ""
|
707 |
|
708 |
-
#: ../responsive-lightbox.php:
|
709 |
msgid "The effect to use when showing the lightbox."
|
710 |
msgstr ""
|
711 |
|
712 |
-
#: ../responsive-lightbox.php:
|
713 |
msgid "Enable/Disable keyboard navigation (left/right/escape)."
|
714 |
msgstr ""
|
715 |
|
716 |
-
#: ../responsive-lightbox.php:
|
717 |
msgid "Eneble to close lightbox on overlay click."
|
718 |
msgstr ""
|
719 |
|
720 |
-
#: ../responsive-lightbox.php:
|
721 |
msgid "Error message if the content cannot be loaded."
|
722 |
msgstr ""
|
723 |
|
724 |
-
#: ../responsive-lightbox.php:
|
725 |
msgid "Animation speed."
|
726 |
msgstr ""
|
727 |
|
728 |
-
#: ../responsive-lightbox.php:
|
729 |
msgid "Silently preload the next image."
|
730 |
msgstr ""
|
731 |
|
732 |
-
#: ../responsive-lightbox.php:
|
733 |
msgid "Enable keyboard shortcuts (arrows Left/Right and Esc)."
|
734 |
msgstr ""
|
735 |
|
736 |
-
#: ../responsive-lightbox.php:
|
737 |
msgid "Quit after viewing the last image."
|
738 |
msgstr ""
|
739 |
|
740 |
-
#: ../responsive-lightbox.php:
|
741 |
msgid "Quit when the viewed image is clicked."
|
742 |
msgstr ""
|
743 |
|
744 |
-
#: ../responsive-lightbox.php:
|
745 |
msgid "Quit when anything but the viewed image is clicked."
|
746 |
msgstr ""
|
747 |
|
748 |
-
#: ../responsive-lightbox.php:
|
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:
|
755 |
msgid "Settings restored to defaults."
|
756 |
msgstr ""
|
757 |
|
758 |
-
#: ../responsive-lightbox.php:
|
759 |
msgid "Settings of SwipeBox script were restored to defaults."
|
760 |
msgstr ""
|
761 |
|
762 |
-
#: ../responsive-lightbox.php:
|
763 |
msgid "Settings of prettyPhoto script were restored to defaults."
|
764 |
msgstr ""
|
765 |
|
766 |
-
#: ../responsive-lightbox.php:
|
767 |
msgid "Settings of FancyBox script were restored to defaults."
|
768 |
msgstr ""
|
769 |
|
770 |
-
#: ../responsive-lightbox.php:
|
771 |
msgid "Settings of Nivo script were restored to defaults."
|
772 |
msgstr ""
|
773 |
|
774 |
-
#: ../responsive-lightbox.php:
|
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:
|
781 |
-
#: ../responsive-lightbox.php:
|
782 |
msgid "Responsive Lightbox"
|
783 |
msgstr ""
|
784 |
|
785 |
-
#: ../responsive-lightbox.php:
|
786 |
msgid "Need support?"
|
787 |
msgstr ""
|
788 |
|
789 |
-
#: ../responsive-lightbox.php:
|
790 |
msgid ""
|
791 |
"If you are having problems with this plugin, please talk about them in the"
|
792 |
msgstr ""
|
793 |
|
794 |
-
#: ../responsive-lightbox.php:
|
795 |
msgid "Support forum"
|
796 |
msgstr ""
|
797 |
|
798 |
-
#: ../responsive-lightbox.php:
|
799 |
msgid "Do you like this plugin?"
|
800 |
msgstr ""
|
801 |
|
802 |
-
#: ../responsive-lightbox.php:
|
803 |
msgid "Rate it 5"
|
804 |
msgstr ""
|
805 |
|
806 |
-
#: ../responsive-lightbox.php:
|
807 |
msgid "on WordPress.org"
|
808 |
msgstr ""
|
809 |
|
810 |
-
#: ../responsive-lightbox.php:
|
811 |
msgid "Blog about it & link to the"
|
812 |
msgstr ""
|
813 |
|
814 |
-
#: ../responsive-lightbox.php:
|
815 |
msgid "plugin page"
|
816 |
msgstr ""
|
817 |
|
818 |
-
#: ../responsive-lightbox.php:
|
819 |
msgid "Check out our other"
|
820 |
msgstr ""
|
821 |
|
822 |
-
#: ../responsive-lightbox.php:
|
823 |
msgid "WordPress plugins"
|
824 |
msgstr ""
|
825 |
|
826 |
-
#: ../responsive-lightbox.php:
|
827 |
msgid "Reset to defaults"
|
828 |
msgstr ""
|
829 |
|
830 |
-
#: ../responsive-lightbox.php:
|
831 |
msgid "Are you sure you want to reset these settings to defaults?"
|
832 |
msgstr ""
|
833 |
|
834 |
-
#: ../responsive-lightbox.php:
|
835 |
msgid "Are you sure you want to reset scripts settings to defaults?"
|
836 |
msgstr ""
|
837 |
|
838 |
-
#: ../responsive-lightbox.php:
|
839 |
msgid "Support"
|
840 |
msgstr ""
|
841 |
|
842 |
-
#: ../responsive-lightbox.php:
|
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.
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.4.
|
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.
|
180 |
-
*
|
181 |
-
* Tweak:
|
|
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.
|
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 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
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 |
-
|
533 |
-
|
534 |
|
535 |
-
|
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 |
-
|
541 |
-
<p class="description">' . __('Select your preffered ligthbox effect script.', 'responsive-lightbox') . '</p>
|
542 |
</div>';
|
543 |
-
|
544 |
-
|
545 |
|
546 |
-
|
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 |
-
|
557 |
-
{
|
558 |
-
echo '
|
559 |
<div id="rl_enable_custom_events" class="wplikebtns">';
|
560 |
|
561 |
-
|
562 |
-
|
563 |
|
564 |
-
|
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 |
-
|
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 |
-
|
580 |
-
|
581 |
-
echo '
|
582 |
<div id="rl_loading_place" class="wplikebtns">';
|
583 |
|
584 |
-
|
585 |
-
|
586 |
|
587 |
-
|
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 |
-
|
593 |
-
<p class="description">' . __('Select where all the lightbox scripts should be placed.', 'responsive-lightbox') . '</p>
|
594 |
</div>';
|
595 |
-
|
596 |
-
|
597 |
|
598 |
-
|
599 |
-
|
600 |
-
echo '
|
601 |
<div id="rl_galleries" class="wplikebtns">';
|
602 |
|
603 |
-
|
604 |
-
|
605 |
-
<input id="rl-galleries-' . $val . '" type="radio" name="responsive_lightbox_settings[galleries]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
606 |
<label for="rl-galleries-' . $val . '">' . $trans . '</label>';
|
607 |
-
|
608 |
|
609 |
-
|
610 |
-
<p class="description">' . __('Add lightbox to WordPress image galleries by default.', 'responsive-lightbox') . '</p>
|
611 |
</div>';
|
612 |
-
|
613 |
|
614 |
-
|
615 |
-
|
616 |
-
{
|
617 |
-
echo '
|
618 |
<div id="rl_enable_gallery_image_size" class="wplikebtns">';
|
619 |
|
620 |
-
|
621 |
-
|
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 |
-
|
629 |
-
<
|
|
|
|
|
630 |
|
631 |
-
|
632 |
-
|
633 |
|
634 |
-
|
|
|
635 |
|
636 |
-
|
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 |
-
|
642 |
-
|
643 |
-
|
644 |
|
645 |
-
|
646 |
</select>
|
647 |
-
<p class="description">' . __('Select image size for gallery image links.', 'responsive-lightbox') . '</p>
|
648 |
</div>
|
649 |
</div>';
|
650 |
-
|
651 |
-
|
652 |
|
653 |
-
|
654 |
-
|
655 |
-
echo '
|
656 |
<div id="rl_videos" class="wplikebtns">';
|
657 |
|
658 |
-
|
659 |
-
|
660 |
-
<input id="rl-videos-' . $val . '" type="radio" name="responsive_lightbox_settings[videos]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
661 |
<label for="rl-videos-' . $val . '">' . $trans . '</label>';
|
662 |
-
|
663 |
|
664 |
-
|
665 |
-
<p class="description">' . __('Add lightbox to YouTube and Vimeo video links by default.', 'responsive-lightbox') . '</p>
|
666 |
</div>';
|
667 |
-
|
668 |
|
669 |
-
|
670 |
-
|
671 |
-
{
|
672 |
-
echo '
|
673 |
<div id="rl_image_links" class="wplikebtns">';
|
674 |
|
675 |
-
|
676 |
-
|
677 |
-
<input id="rl-image-links-' . $val . '" type="radio" name="responsive_lightbox_settings[image_links]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
678 |
<label for="rl-image-links-' . $val . '">' . $trans . '</label>';
|
679 |
-
|
680 |
|
681 |
-
|
682 |
-
<p class="description">' . __('Add lightbox to WordPress image links by default.', 'responsive-lightbox') . '</p>
|
683 |
</div>';
|
684 |
-
|
685 |
-
|
686 |
|
687 |
-
|
688 |
-
|
689 |
-
echo '
|
690 |
<div id="rl_images_as_gallery" class="wplikebtns">';
|
691 |
|
692 |
-
|
693 |
-
|
694 |
-
<input id="rl-images-as-gallery-' . $val . '" type="radio" name="responsive_lightbox_settings[images_as_gallery]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
695 |
<label for="rl-images-as-gallery-' . $val . '">' . $trans . '</label>';
|
696 |
-
|
697 |
|
698 |
-
|
699 |
-
<p class="description">' . __('Display single post images as a gallery.', 'responsive-lightbox') . '</p>
|
700 |
</div>';
|
701 |
-
|
702 |
|
703 |
-
|
704 |
-
|
705 |
-
{
|
706 |
-
echo '
|
707 |
<div id="rl_deactivation_delete" class="wplikebtns">';
|
708 |
|
709 |
-
|
710 |
-
|
711 |
-
<input id="rl-deactivation-delete-' . $val . '" type="radio" name="responsive_lightbox_settings[deactivation_delete]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
712 |
<label for="rl-deactivation-delete-' . $val . '">' . $trans . '</label>';
|
713 |
-
|
714 |
|
715 |
-
|
716 |
-
<p class="description">' . __('Delete settings on plugin deactivation.', 'responsive-lightbox') . '</p>
|
717 |
</div>';
|
718 |
-
|
719 |
-
|
720 |
|
721 |
-
|
722 |
-
|
723 |
-
echo '
|
724 |
<div id="rl_sb_animation" class="wplikebtns">';
|
725 |
|
726 |
-
|
727 |
-
|
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'],
|
729 |
<label for="rl-sb-animation-' . $val . '">' . $trans . '</label>';
|
730 |
-
|
731 |
|
732 |
-
|
733 |
-
<p class="description">' . __('Select a method of applying a lightbox effect.', 'responsive-lightbox') . '</p>
|
734 |
</div>';
|
735 |
-
|
736 |
-
|
737 |
|
738 |
-
|
739 |
-
|
740 |
-
echo '
|
741 |
<div id="rl_sb_hide_bars" class="wplikebtns">';
|
742 |
|
743 |
-
|
744 |
-
|
745 |
-
<input id="rl-sb-hide-bars-' . $val . '" type="radio" name="responsive_lightbox_configuration[swipebox][hide_bars]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
746 |
<label for="rl-sb-hide-bars-' . $val . '">' . $trans . '</label>';
|
747 |
-
|
748 |
|
749 |
-
|
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'] ===
|
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 |
-
|
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 |
-
|
770 |
-
|
771 |
-
|
|
|
|
|
|
|
|
|
772 |
<div id="rl_sb_force_png_icons" class="wplikebtns">';
|
773 |
|
774 |
-
|
775 |
-
|
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' ?
|
777 |
<label for="rl-sb-force-png-icons-' . $val . '">' . $trans . '</label>';
|
778 |
-
|
779 |
|
780 |
-
|
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 |
-
|
787 |
-
|
788 |
-
echo '
|
789 |
<div id="rl_pp_animation_speed" class="wplikebtns">';
|
790 |
|
791 |
-
|
792 |
-
|
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'],
|
794 |
<label for="rl-pp-animation-speed-' . $val . '">' . $trans . '</label>';
|
795 |
-
|
796 |
|
797 |
-
|
798 |
-
<p class="description">' . __('Select animation speed for lightbox effect.', 'responsive-lightbox') . '</p>
|
799 |
</div>';
|
800 |
-
|
801 |
|
802 |
-
|
803 |
-
|
804 |
-
{
|
805 |
-
echo '
|
806 |
<div id="rl_pp_slideshow" class="wplikebtns">';
|
807 |
|
808 |
-
|
809 |
-
|
810 |
-
<input id="rl-pp-slideshow-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][slideshow]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
811 |
<label for="rl-pp-slideshow-' . $val . '">' . $trans . '</label>';
|
812 |
-
|
813 |
|
814 |
-
|
815 |
-
<p class="description">' . __('Display images as slideshow.', 'responsive-lightbox') . '</p>
|
816 |
-
<div id="rl_pp_slideshow_delay"' . ($this->options['configuration']['prettyphoto']['slideshow'] ===
|
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 |
-
|
825 |
-
|
826 |
-
echo '
|
827 |
<div id="rl_pp_slideshow_autoplay" class="wplikebtns">';
|
828 |
|
829 |
-
|
830 |
-
|
831 |
-
<input id="rl-pp-slideshow-autoplay-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][slideshow_autoplay]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
832 |
<label for="rl-pp-slideshow-autoplay-' . $val . '">' . $trans . '</label>';
|
833 |
-
|
834 |
|
835 |
-
|
836 |
-
<p class="description">' . __('Automatically start slideshow.', 'responsive-lightbox') . '</p>
|
837 |
</div>';
|
838 |
-
|
839 |
-
|
840 |
|
841 |
-
|
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 |
-
|
855 |
-
{
|
856 |
-
echo '
|
857 |
<div id="rl_pp_title" class="wplikebtns">';
|
858 |
|
859 |
-
|
860 |
-
|
861 |
-
<input id="rl-pp-show-title-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][show_title]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
862 |
<label for="rl-pp-show-title-' . $val . '">' . $trans . '</label>';
|
863 |
-
|
864 |
|
865 |
-
|
866 |
-
<p class="description">' . __('Display image tiltle.', 'responsive-lightbox') . '</p>
|
867 |
</div>';
|
868 |
-
|
869 |
-
|
870 |
|
871 |
-
|
872 |
-
|
873 |
-
echo '
|
874 |
<div id="rl_pp_allow_resize" class="wplikebtns">';
|
875 |
|
876 |
-
|
877 |
-
|
878 |
-
<input id="rl-pp-allow-resize-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][allow_resize]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
879 |
<label for="rl-pp-allow-resize-' . $val . '">' . $trans . '</label>';
|
880 |
-
|
881 |
|
882 |
-
|
883 |
-
<p class="description">' . __('Resize the photos bigger than viewport.', 'responsive-lightbox') . '</p>
|
884 |
</div>';
|
885 |
-
|
886 |
|
887 |
-
|
888 |
-
|
889 |
-
{
|
890 |
-
echo '
|
891 |
<div id="rl_pp_allow_expand" class="wplikebtns">';
|
892 |
|
893 |
-
|
894 |
-
|
895 |
-
<input id="rl-pp-allow-expand-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][allow_expand]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
896 |
<label for="rl-pp-allow-expand-' . $val . '">' . $trans . '</label>';
|
897 |
-
|
898 |
|
899 |
-
|
900 |
-
<p class="description">' . __('Expands something.', 'responsive-lightbox') . '</p>
|
901 |
</div>';
|
902 |
-
|
903 |
-
|
904 |
|
905 |
-
|
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 |
-
|
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 |
-
|
926 |
-
{
|
927 |
-
echo '
|
928 |
<div id="rl_pp_theme" class="wplikebtns">';
|
929 |
|
930 |
-
|
931 |
-
|
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'],
|
933 |
<label for="rl-pp-theme-' . $val . '">' . $trans . '</label>';
|
934 |
-
|
935 |
|
936 |
-
|
937 |
-
<p class="description">' . __('Select theme for lightbox effect.', 'responsive-lightbox') . '</p>
|
938 |
</div>';
|
939 |
-
|
940 |
-
|
941 |
|
942 |
-
|
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 |
-
|
953 |
-
{
|
954 |
-
echo '
|
955 |
<div id="rl_pp_hide_flash" class="wplikebtns">';
|
956 |
|
957 |
-
|
958 |
-
|
959 |
-
<input id="rl-pp-hide-flash-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][hide_flash]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
960 |
<label for="rl-pp-hide-flash-' . $val . '">' . $trans . '</label>';
|
961 |
-
|
962 |
|
963 |
-
|
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 |
-
|
970 |
-
|
971 |
-
echo '
|
972 |
<div id="rl_pp_wmode" class="wplikebtns">';
|
973 |
|
974 |
-
|
975 |
-
|
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'],
|
977 |
<label for="rl-pp-wmode-' . $val . '">' . $trans . '</label>';
|
978 |
-
|
979 |
|
980 |
-
|
981 |
-
<p class="description">' . __('Select flash window mode.', 'responsive-lightbox') . '</p>
|
982 |
</div>';
|
983 |
-
|
984 |
-
|
985 |
|
986 |
-
|
987 |
-
|
988 |
-
echo '
|
989 |
<div id="rl_pp_video_autoplay" class="wplikebtns">';
|
990 |
|
991 |
-
|
992 |
-
|
993 |
-
<input id="rl-pp-video-autoplay-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][video_autoplay]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
994 |
<label for="rl-pp-video-autoplay-' . $val . '">' . $trans . '</label>';
|
995 |
-
|
996 |
|
997 |
-
|
998 |
-
<p class="description">' . __('Automatically start videos.', 'responsive-lightbox') . '</p>
|
999 |
</div>';
|
1000 |
-
|
1001 |
|
1002 |
-
|
1003 |
-
|
1004 |
-
{
|
1005 |
-
echo '
|
1006 |
<div id="rl_pp_modal" class="wplikebtns">';
|
1007 |
|
1008 |
-
|
1009 |
-
|
1010 |
-
<input id="rl-pp-modal-close-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][modal]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
1011 |
<label for="rl-pp-modal-close-' . $val . '">' . $trans . '</label>';
|
1012 |
-
|
1013 |
|
1014 |
-
|
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 |
-
|
1021 |
-
|
1022 |
-
echo '
|
1023 |
<div id="rl_pp_deeplinking" class="wplikebtns">';
|
1024 |
|
1025 |
-
|
1026 |
-
|
1027 |
-
<input id="rl-pp-deeplinking-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][deeplinking]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
1028 |
<label for="rl-pp-deeplinking-' . $val . '">' . $trans . '</label>';
|
1029 |
-
|
1030 |
|
1031 |
-
|
1032 |
-
<p class="description">' . __('Allow prettyPhoto to update the url to enable deeplinking.', 'responsive-lightbox') . '</p>
|
1033 |
</div>';
|
1034 |
-
|
1035 |
|
1036 |
-
|
1037 |
-
|
1038 |
-
{
|
1039 |
-
echo '
|
1040 |
<div id="rl_pp_overlay_gallery" class="wplikebtns">';
|
1041 |
|
1042 |
-
|
1043 |
-
|
1044 |
-
<input id="rl-pp-overlay-gallery-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][overlay_gallery]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
1045 |
<label for="rl-pp-overlay-gallery-' . $val . '">' . $trans . '</label>';
|
1046 |
-
|
1047 |
|
1048 |
-
|
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 |
-
|
1055 |
-
|
1056 |
-
echo '
|
1057 |
<div id="rl_pp_keyboard_shortcuts" class="wplikebtns">';
|
1058 |
|
1059 |
-
|
1060 |
-
|
1061 |
-
<input id="rl-pp-keyboard-shortcuts-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][keyboard_shortcuts]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
1062 |
<label for="rl-pp-keyboard-shortcuts-' . $val . '">' . $trans . '</label>';
|
1063 |
-
|
1064 |
|
1065 |
-
|
1066 |
-
<p class="description">' . __('Set to false if you open forms inside prettyPhoto.', 'responsive-lightbox') . '</p>
|
1067 |
</div>';
|
1068 |
-
|
1069 |
-
|
1070 |
|
1071 |
-
|
1072 |
-
|
1073 |
-
echo '
|
1074 |
<div id="rl_pp_social" class="wplikebtns">';
|
1075 |
|
1076 |
-
|
1077 |
-
|
1078 |
-
<input id="rl-pp-social-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][social]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
1079 |
<label for="rl-pp-social-' . $val . '">' . $trans . '</label>';
|
1080 |
-
|
1081 |
|
1082 |
-
|
1083 |
-
<p class="description">' . __('Display links to Facebook and Twitter.', 'responsive-lightbox') . '</p>
|
1084 |
</div>';
|
1085 |
-
|
1086 |
|
1087 |
-
|
1088 |
-
|
1089 |
-
{
|
1090 |
-
echo '
|
1091 |
<div id="rl_fb_transition" class="wplikebtns">';
|
1092 |
|
1093 |
-
|
1094 |
-
|
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'],
|
1096 |
<label for="rl-fb-transitions-' . $val . '">' . $trans . '</label>';
|
1097 |
-
|
1098 |
|
1099 |
-
|
1100 |
-
<p class="description">' . __('The transition type.', 'responsive-lightbox') . '</p>
|
1101 |
</div>';
|
1102 |
-
|
1103 |
-
|
1104 |
|
1105 |
-
|
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 |
-
|
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 |
-
|
1126 |
-
|
1127 |
-
echo '
|
1128 |
<div id="rl_fb_modal" class="wplikebtns">';
|
1129 |
|
1130 |
-
|
1131 |
-
|
1132 |
-
<input id="rl-fb-modal-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][modal]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
1133 |
<label for="rl-fb-modal-' . $val . '">' . $trans . '</label>';
|
1134 |
-
|
1135 |
|
1136 |
-
|
1137 |
-
<p class="description">' . __('When true, "overlayShow" is set to
|
1138 |
</div>';
|
1139 |
-
|
1140 |
-
|
1141 |
|
1142 |
-
|
1143 |
-
|
1144 |
-
echo '
|
1145 |
<div id="rl_fb_show_overlay" class="wplikebtns">';
|
1146 |
|
1147 |
-
|
1148 |
-
|
1149 |
-
<input id="rl-fb-show-overlay-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][show_overlay]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
1150 |
<label for="rl-fb-show-overlay-' . $val . '">' . $trans . '</label>';
|
1151 |
-
|
1152 |
|
1153 |
-
|
1154 |
-
<p class="description">' . __('Toggle overlay.', 'responsive-lightbox') . '</p>
|
1155 |
</div>';
|
1156 |
-
|
1157 |
|
1158 |
-
|
1159 |
-
|
1160 |
-
{
|
1161 |
-
echo '
|
1162 |
<div id="rl_fb_show_close_button" class="wplikebtns">';
|
1163 |
|
1164 |
-
|
1165 |
-
|
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' ?
|
1167 |
<label for="rl-fb-show-close-button-' . $val . '">' . $trans . '</label>';
|
1168 |
-
|
1169 |
|
1170 |
-
|
1171 |
-
<p class="description">' . __('Toggle close button.', 'responsive-lightbox') . '</p>
|
1172 |
</div>';
|
1173 |
-
|
1174 |
-
|
1175 |
|
1176 |
-
|
1177 |
-
|
1178 |
-
echo '
|
1179 |
<div id="rl_fb_enable_escape_button" class="wplikebtns">';
|
1180 |
|
1181 |
-
|
1182 |
-
|
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' ?
|
1184 |
<label for="rl-fb-enable-escape-button-' . $val . '">' . $trans . '</label>';
|
1185 |
-
|
1186 |
|
1187 |
-
|
1188 |
-
<p class="description">' . __('Toggle if pressing Esc button closes FancyBox.', 'responsive-lightbox') . '</p>
|
1189 |
</div>';
|
1190 |
-
|
1191 |
-
|
1192 |
|
1193 |
-
|
1194 |
-
|
1195 |
-
echo '
|
1196 |
<div id="rl_fb_hide_on_overlay_click" class="wplikebtns">';
|
1197 |
|
1198 |
-
|
1199 |
-
|
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' ?
|
1201 |
<label for="rl-fb-hide-on-overlay-click-' . $val . '">' . $trans . '</label>';
|
1202 |
-
|
1203 |
|
1204 |
-
|
1205 |
-
<p class="description">' . __('Toggle if clicking the overlay should close FancyBox.', 'responsive-lightbox') . '</p>
|
1206 |
</div>';
|
1207 |
-
|
1208 |
|
1209 |
-
|
1210 |
-
|
1211 |
-
{
|
1212 |
-
echo '
|
1213 |
<div id="rl_fb_hide_on_content_click" class="wplikebtns">';
|
1214 |
|
1215 |
-
|
1216 |
-
|
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' ?
|
1218 |
<label for="rl-fb-hide-on-content-click-' . $val . '">' . $trans . '</label>';
|
1219 |
-
|
1220 |
|
1221 |
-
|
1222 |
-
<p class="description">' . __('Toggle if clicking the content should close FancyBox.', 'responsive-lightbox') . '</p>
|
1223 |
</div>';
|
1224 |
-
|
1225 |
-
|
1226 |
|
1227 |
-
|
1228 |
-
|
1229 |
-
echo '
|
1230 |
<div id="rl_fb_cyclic" class="wplikebtns">';
|
1231 |
|
1232 |
-
|
1233 |
-
|
1234 |
-
<input id="rl-fb-cyclic-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][cyclic]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
1235 |
<label for="rl-fb-cyclic-' . $val . '">' . $trans . '</label>';
|
1236 |
-
|
1237 |
|
1238 |
-
|
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 |
-
|
1245 |
-
|
1246 |
-
echo '
|
1247 |
<div id="rl_fb_show_nav_arrows" class="wplikebtns">';
|
1248 |
|
1249 |
-
|
1250 |
-
|
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' ?
|
1252 |
<label for="rl-fb-show-nav-arrows-' . $val . '">' . $trans . '</label>';
|
1253 |
-
|
1254 |
|
1255 |
-
|
1256 |
-
<p class="description">' . __('Toggle navigation arrows.', 'responsive-lightbox') . '</p>
|
1257 |
</div>';
|
1258 |
-
|
1259 |
|
1260 |
-
|
1261 |
-
|
1262 |
-
{
|
1263 |
-
echo '
|
1264 |
<div id="rl_fb_auto_scale" class="wplikebtns">';
|
1265 |
|
1266 |
-
|
1267 |
-
|
1268 |
-
<input id="rl-fb-auto-scale-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][auto_scale]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
1269 |
<label for="rl-fb-auto-scale-' . $val . '">' . $trans . '</label>';
|
1270 |
-
|
1271 |
|
1272 |
-
|
1273 |
-
<p class="description">' . __('If true, FancyBox is scaled to fit in viewport.', 'responsive-lightbox') . '</p>
|
1274 |
</div>';
|
1275 |
-
|
1276 |
-
|
1277 |
|
1278 |
-
|
1279 |
-
|
1280 |
-
echo '
|
1281 |
<div id="rl_fb_scrolling" class="wplikebtns">';
|
1282 |
|
1283 |
-
|
1284 |
-
|
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'],
|
1286 |
<label for="rl-fb-scrolling-' . $val . '">' . $trans . '</label>';
|
1287 |
-
|
1288 |
|
1289 |
-
|
1290 |
-
<p class="description">' . __('Set the overflow CSS property to create or hide scrollbars.', 'responsive-lightbox') . '</p>
|
1291 |
</div>';
|
1292 |
-
|
1293 |
|
1294 |
-
|
1295 |
-
|
1296 |
-
{
|
1297 |
-
echo '
|
1298 |
<div id="rl_fb_center_on_scroll" class="wplikebtns">';
|
1299 |
|
1300 |
-
|
1301 |
-
|
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' ?
|
1303 |
<label for="rl-fb-center-on-scroll-' . $val . '">' . $trans . '</label>';
|
1304 |
-
|
1305 |
|
1306 |
-
|
1307 |
-
<p class="description">' . __('When true, FancyBox is centered while scrolling page.', 'responsive-lightbox') . '</p>
|
1308 |
</div>';
|
1309 |
-
|
1310 |
-
|
1311 |
|
1312 |
-
|
1313 |
-
|
1314 |
-
echo '
|
1315 |
<div id="rl_fb_opacity" class="wplikebtns">';
|
1316 |
|
1317 |
-
|
1318 |
-
|
1319 |
-
<input id="rl-fb-opacity-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][opacity]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
1320 |
<label for="rl-fb-opacity-' . $val . '">' . $trans . '</label>';
|
1321 |
-
|
1322 |
|
1323 |
-
|
1324 |
-
<p class="description">' . __('When true, transparency of content is changed for elastic transitions.', 'responsive-lightbox') . '</p>
|
1325 |
</div>';
|
1326 |
-
|
1327 |
-
|
1328 |
|
1329 |
-
|
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 |
-
|
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 |
-
|
1353 |
-
|
1354 |
-
echo '
|
1355 |
<div id="rl_fb_title_show" class="wplikebtns">';
|
1356 |
|
1357 |
-
|
1358 |
-
|
1359 |
-
<input id="rl-fb-title-show-' . $val . '" type="radio" name="responsive_lightbox_configuration[fancybox][title_show]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
1360 |
<label for="rl-fb-title-show-' . $val . '">' . $trans . '</label>';
|
1361 |
-
|
1362 |
|
1363 |
-
|
1364 |
-
<p class="description">' . __('Toggle title.', 'responsive-lightbox') . '</p>
|
1365 |
</div>';
|
1366 |
-
|
1367 |
|
1368 |
-
|
1369 |
-
|
1370 |
-
{
|
1371 |
-
echo '
|
1372 |
<div id="rl_fb_title_position" class="wplikebtns">';
|
1373 |
|
1374 |
-
|
1375 |
-
|
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'],
|
1377 |
<label for="rl-fb-title-position-' . $val . '">' . $trans . '</label>';
|
1378 |
-
|
1379 |
|
1380 |
-
|
1381 |
-
<p class="description">' . __('The position of title.', 'responsive-lightbox') . '</p>
|
1382 |
</div>';
|
1383 |
-
|
1384 |
-
|
1385 |
|
1386 |
-
|
1387 |
-
|
1388 |
-
echo '
|
1389 |
<div id="rl_fb_easings" class="wplikebtns">';
|
1390 |
|
1391 |
-
|
1392 |
-
|
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'],
|
1394 |
<label for="rl-fb-easings-' . $val . '">' . $trans . '</label>';
|
1395 |
-
|
1396 |
|
1397 |
-
|
1398 |
-
<p class="description">' . __('Easing used for elastic animations.', 'responsive-lightbox') . '</p>
|
1399 |
</div>';
|
1400 |
-
|
1401 |
-
|
1402 |
|
1403 |
-
|
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 |
-
|
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 |
-
|
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 |
-
|
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 |
-
|
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 |
-
|
1454 |
-
|
1455 |
-
echo '
|
1456 |
<div id="rl_nv_effect" class="wplikebtns">';
|
1457 |
|
1458 |
-
|
1459 |
-
|
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'],
|
1461 |
<label for="rl-nv-effect-' . $val . '">' . $trans . '</label>';
|
1462 |
-
|
1463 |
|
1464 |
-
|
1465 |
-
<p class="description">' . __('The effect to use when showing the lightbox.', 'responsive-lightbox') . '</p>
|
1466 |
</div>';
|
1467 |
-
|
1468 |
|
1469 |
-
|
1470 |
-
|
1471 |
-
{
|
1472 |
-
echo '
|
1473 |
<div id="rl_nv_keyboard_nav" class="wplikebtns">';
|
1474 |
|
1475 |
-
|
1476 |
-
|
1477 |
-
<input id="rl-nv-keyboard-nav-' . $val . '" type="radio" name="responsive_lightbox_configuration[nivo][keyboard_nav]" value="' . esc_attr($val) . '" ' . checked(($val === 'yes' ?
|
1478 |
<label for="rl-nv-keyboard-nav-' . $val . '">' . $trans . '</label>';
|
1479 |
-
|
1480 |
|
1481 |
-
|
1482 |
-
<p class="description">' . __('Enable/Disable keyboard navigation (left/right/escape).', 'responsive-lightbox') . '</p>
|
1483 |
</div>';
|
1484 |
-
|
1485 |
-
|
1486 |
|
1487 |
-
|
1488 |
-
|
1489 |
-
echo '
|
1490 |
<div id="rl_nv_click_overlay_to_close" class="wplikebtns">';
|
1491 |
|
1492 |
-
|
1493 |
-
|
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' ?
|
1495 |
<label for="rl-nv-click-overlay-to-close-' . $val . '">' . $trans . '</label>';
|
1496 |
-
|
1497 |
|
1498 |
-
|
1499 |
-
<p class="description">' . __('Eneble to close lightbox on overlay click.', 'responsive-lightbox') . '</p>
|
1500 |
</div>';
|
1501 |
-
|
1502 |
|
1503 |
-
|
1504 |
-
|
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 |
-
|
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 |
-
|
1525 |
-
|
1526 |
-
echo '
|
1527 |
<div id="rl_il_preload_next" class="wplikebtns">';
|
1528 |
|
1529 |
-
|
1530 |
-
|
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 |
-
|
1536 |
-
<p class="description">' . __('Silently preload the next image.', 'responsive-lightbox') . '</p>
|
1537 |
</div>';
|
1538 |
-
|
1539 |
|
1540 |
-
|
1541 |
-
|
1542 |
-
{
|
1543 |
-
echo '
|
1544 |
<div id="rl_il_enable_keyboard" class="wplikebtns">';
|
1545 |
|
1546 |
-
|
1547 |
-
|
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 |
-
|
1553 |
-
<p class="description">' . __('Enable keyboard shortcuts (arrows Left/Right and Esc).', 'responsive-lightbox') . '</p>
|
1554 |
</div>';
|
1555 |
-
|
1556 |
-
|
1557 |
|
1558 |
-
|
1559 |
-
|
1560 |
-
echo '
|
1561 |
<div id="rl_il_quit_on_end" class="wplikebtns">';
|
1562 |
|
1563 |
-
|
1564 |
-
|
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 |
-
|
1570 |
-
<p class="description">' . __('Quit after viewing the last image.', 'responsive-lightbox') . '</p>
|
1571 |
</div>';
|
1572 |
-
|
1573 |
|
1574 |
-
|
1575 |
-
|
1576 |
-
{
|
1577 |
-
echo '
|
1578 |
<div id="rl_il_quit_on_image_click" class="wplikebtns">';
|
1579 |
|
1580 |
-
|
1581 |
-
|
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 |
-
|
1587 |
-
<p class="description">' . __('Quit when the viewed image is clicked.', 'responsive-lightbox') . '</p>
|
1588 |
</div>';
|
1589 |
-
|
1590 |
-
|
1591 |
|
1592 |
-
|
1593 |
-
|
1594 |
-
echo '
|
1595 |
<div id="rl_il_quit_on_document_click" class="wplikebtns">';
|
1596 |
|
1597 |
-
|
1598 |
-
|
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 |
-
|
1604 |
-
<p class="description">' . __('Quit when anything but the viewed image is clicked.', 'responsive-lightbox') . '</p>
|
1605 |
-
</div>';
|
1606 |
-
|
1607 |
-
|
1608 |
|
1609 |
-
|
1610 |
-
|
1611 |
-
|
1612 |
-
|
1613 |
-
|
1614 |
-
|
1615 |
-
|
1616 |
-
$input['script'] = (isset($input['script'], $this->scripts[$input['script']]) ? $input['script'] : $this->defaults['settings']['script']);
|
1617 |
|
1618 |
-
|
1619 |
-
|
1620 |
|
1621 |
-
|
1622 |
-
|
1623 |
|
1624 |
-
|
1625 |
-
|
|
|
|
|
|
|
|
|
|
|
1626 |
|
1627 |
-
|
1628 |
-
|
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 |
-
|
1633 |
-
|
|
|
|
|
1634 |
|
1635 |
-
|
1636 |
-
|
1637 |
-
|
1638 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1639 |
|
1640 |
-
|
1641 |
-
|
1642 |
-
|
1643 |
-
|
1644 |
-
|
1645 |
-
|
1646 |
-
|
1647 |
-
|
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 |
-
|
1652 |
-
|
|
|
1653 |
|
1654 |
-
|
1655 |
-
|
1656 |
-
|
|
|
|
|
1657 |
|
1658 |
-
|
1659 |
-
|
1660 |
-
|
1661 |
-
|
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 |
-
|
1665 |
-
|
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 |
-
|
1670 |
-
|
1671 |
|
1672 |
-
|
1673 |
-
|
1674 |
|
1675 |
-
|
1676 |
-
|
1677 |
|
1678 |
-
|
1679 |
-
|
1680 |
|
1681 |
-
|
1682 |
-
|
|
|
1683 |
|
1684 |
-
|
1685 |
-
|
1686 |
-
$input['prettyphoto']['height'] = (int)($input['prettyphoto']['height'] > 0 ? $input['prettyphoto']['height'] : $this->defaults['configuration']['prettyphoto']['height']);
|
1687 |
|
1688 |
-
|
1689 |
-
|
1690 |
|
1691 |
-
|
1692 |
-
|
1693 |
|
1694 |
-
|
1695 |
-
|
|
|
1696 |
|
1697 |
-
|
1698 |
-
|
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 |
-
|
1702 |
-
|
1703 |
|
1704 |
-
|
1705 |
-
|
1706 |
|
1707 |
-
|
1708 |
-
|
1709 |
|
1710 |
-
|
1711 |
-
|
1712 |
|
1713 |
-
|
1714 |
-
|
|
|
|
|
|
|
1715 |
|
1716 |
-
|
1717 |
-
|
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 |
-
|
1723 |
-
|
1724 |
|
1725 |
-
|
1726 |
-
|
1727 |
|
1728 |
-
|
1729 |
-
|
1730 |
|
1731 |
-
|
1732 |
-
|
1733 |
|
1734 |
-
|
1735 |
-
|
1736 |
|
1737 |
-
|
1738 |
-
|
1739 |
|
1740 |
-
|
1741 |
-
|
1742 |
|
1743 |
-
|
1744 |
-
|
1745 |
|
1746 |
-
|
1747 |
-
|
1748 |
|
1749 |
-
|
1750 |
-
|
1751 |
|
1752 |
-
|
1753 |
-
|
1754 |
|
1755 |
-
|
1756 |
-
|
1757 |
|
1758 |
-
|
1759 |
-
|
1760 |
|
1761 |
-
|
1762 |
-
|
1763 |
|
1764 |
-
|
1765 |
-
|
1766 |
|
1767 |
-
|
1768 |
-
|
1769 |
|
1770 |
-
|
1771 |
-
|
1772 |
|
1773 |
-
|
1774 |
-
|
1775 |
|
1776 |
-
|
1777 |
-
|
1778 |
|
1779 |
-
|
1780 |
-
|
1781 |
|
1782 |
-
|
1783 |
-
|
1784 |
|
1785 |
-
|
1786 |
-
|
1787 |
|
1788 |
-
|
1789 |
-
|
1790 |
|
1791 |
-
|
1792 |
-
|
|
|
|
|
|
|
1793 |
|
1794 |
-
|
1795 |
-
|
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 |
-
|
1801 |
-
|
1802 |
|
1803 |
-
|
1804 |
-
|
|
|
|
|
|
|
1805 |
|
1806 |
-
|
1807 |
-
|
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 |
-
|
1813 |
-
|
1814 |
|
1815 |
-
|
1816 |
-
|
1817 |
|
1818 |
-
|
1819 |
-
|
1820 |
|
1821 |
-
|
1822 |
-
|
|
|
|
|
|
|
1823 |
|
1824 |
-
|
1825 |
-
|
1826 |
-
} else {
|
1827 |
-
//clear input to not change settings
|
1828 |
-
$input = array();
|
1829 |
|
1830 |
-
|
1831 |
-
|
|
|
|
|
1832 |
|
1833 |
-
|
1834 |
-
|
1835 |
-
|
1836 |
-
|
1837 |
|
1838 |
-
|
1839 |
-
|
1840 |
-
|
1841 |
-
$input['swipebox'] = $this->defaults['configuration']['swipebox'];
|
1842 |
|
1843 |
-
|
1844 |
-
|
1845 |
-
|
1846 |
|
1847 |
-
|
1848 |
-
|
1849 |
-
|
1850 |
|
1851 |
-
|
1852 |
-
|
1853 |
-
|
|
|
1854 |
|
1855 |
-
|
1856 |
-
|
1857 |
-
|
1858 |
-
}
|
1859 |
|
1860 |
-
|
1861 |
-
|
1862 |
-
}
|
1863 |
|
1864 |
-
|
1865 |
-
|
|
|
|
|
|
|
1866 |
|
|
|
|
|
1867 |
|
1868 |
-
|
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 |
-
|
1890 |
-
|
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 |
-
|
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 |
-
|
1924 |
-
|
1925 |
-
|
1926 |
|
1927 |
-
|
1928 |
<p class="submit">';
|
1929 |
|
1930 |
-
|
1931 |
|
1932 |
-
|
1933 |
-
|
1934 |
|
1935 |
-
|
1936 |
</p>
|
1937 |
</form>
|
1938 |
</div>
|
1939 |
<div class="clear"></div>
|
1940 |
</div>';
|
1941 |
-
|
1942 |
-
|
1943 |
-
|
1944 |
-
|
1945 |
-
|
1946 |
-
|
1947 |
-
|
1948 |
-
|
1949 |
-
|
1950 |
-
|
1951 |
-
|
1952 |
-
|
1953 |
-
|
1954 |
-
|
1955 |
-
|
1956 |
-
|
1957 |
-
|
1958 |
-
|
1959 |
-
|
1960 |
-
|
1961 |
-
|
1962 |
-
|
1963 |
-
|
1964 |
-
|
1965 |
-
|
1966 |
-
|
1967 |
-
|
1968 |
-
|
1969 |
-
|
1970 |
-
|
1971 |
-
|
1972 |
-
|
1973 |
-
|
1974 |
-
|
1975 |
-
|
1976 |
-
|
1977 |
-
|
1978 |
-
|
1979 |
-
|
1980 |
-
|
1981 |
-
|
1982 |
-
|
1983 |
-
|
1984 |
-
|
1985 |
-
|
1986 |
-
|
1987 |
-
|
1988 |
-
|
1989 |
-
|
1990 |
-
|
1991 |
-
|
1992 |
-
|
1993 |
-
|
1994 |
-
|
1995 |
-
|
1996 |
-
|
1997 |
-
|
1998 |
-
|
1999 |
-
|
2000 |
-
|
2001 |
-
|
2002 |
-
|
2003 |
-
|
2004 |
-
|
2005 |
-
|
2006 |
-
|
2007 |
-
|
2008 |
-
|
2009 |
-
|
2010 |
-
|
2011 |
-
|
2012 |
-
|
2013 |
-
|
2014 |
-
|
2015 |
-
|
2016 |
-
|
2017 |
-
|
2018 |
-
|
2019 |
-
|
2020 |
-
|
2021 |
-
|
2022 |
-
|
2023 |
-
|
2024 |
-
|
2025 |
-
|
2026 |
-
|
2027 |
-
|
2028 |
-
|
2029 |
-
|
2030 |
-
|
2031 |
-
|
2032 |
-
|
2033 |
-
|
2034 |
-
|
2035 |
-
|
2036 |
-
|
2037 |
-
|
2038 |
-
|
2039 |
-
|
2040 |
-
|
2041 |
-
|
2042 |
-
|
2043 |
-
|
2044 |
-
|
2045 |
-
|
2046 |
-
|
2047 |
-
|
2048 |
-
|
2049 |
-
|
2050 |
-
|
2051 |
-
|
2052 |
-
|
2053 |
-
|
2054 |
-
|
2055 |
-
|
2056 |
-
|
2057 |
-
|
2058 |
-
|
2059 |
-
|
2060 |
-
|
2061 |
-
|
2062 |
-
|
2063 |
-
|
2064 |
-
|
2065 |
-
|
2066 |
-
|
2067 |
-
|
2068 |
-
|
2069 |
-
|
2070 |
-
|
2071 |
-
|
2072 |
-
|
2073 |
-
|
2074 |
-
|
2075 |
-
|
2076 |
-
|
2077 |
-
|
2078 |
-
|
2079 |
-
|
2080 |
-
|
2081 |
-
|
2082 |
-
|
2083 |
-
|
2084 |
-
|
2085 |
-
|
2086 |
-
|
2087 |
-
|
2088 |
-
|
2089 |
-
|
2090 |
-
|
2091 |
-
|
2092 |
-
|
2093 |
-
|
2094 |
-
|
2095 |
-
|
2096 |
-
|
2097 |
-
|
2098 |
-
|
2099 |
-
|
2100 |
-
|
2101 |
-
|
2102 |
-
|
2103 |
-
|
2104 |
-
|
2105 |
-
|
2106 |
-
|
2107 |
-
|
2108 |
-
|
2109 |
-
|
2110 |
-
|
2111 |
-
|
2112 |
-
|
2113 |
-
|
2114 |
-
|
2115 |
-
|
2116 |
-
|
2117 |
-
|
2118 |
-
|
2119 |
-
|
2120 |
-
|
2121 |
-
|
2122 |
-
|
2123 |
-
|
2124 |
-
|
2125 |
-
|
2126 |
-
|
2127 |
-
|
2128 |
-
|
2129 |
-
|
2130 |
-
|
2131 |
-
|
2132 |
-
|
2133 |
-
|
2134 |
-
|
2135 |
-
|
2136 |
-
|
2137 |
-
|
2138 |
-
|
2139 |
-
|
2140 |
-
|
2141 |
-
|
2142 |
-
|
2143 |
-
|
2144 |
-
|
2145 |
-
|
2146 |
-
|
2147 |
-
|
2148 |
-
|
2149 |
-
|
2150 |
-
|
2151 |
-
|
2152 |
-
|
2153 |
-
|
2154 |
-
|
2155 |
-
|
2156 |
-
|
2157 |
-
|
2158 |
-
|
2159 |
-
|
2160 |
-
|
2161 |
-
|
2162 |
-
|
2163 |
-
|
2164 |
-
|
2165 |
-
|
2166 |
-
|
2167 |
-
|
2168 |
-
|
2169 |
-
|
2170 |
-
|
2171 |
-
|
2172 |
-
|
2173 |
-
|
2174 |
-
|
2175 |
-
|
2176 |
-
|
2177 |
-
|
2178 |
-
|
2179 |
-
|
2180 |
-
|
2181 |
-
|
2182 |
-
|
2183 |
-
|
2184 |
-
|
2185 |
-
|
2186 |
-
|
2187 |
-
|
2188 |
-
|
2189 |
-
|
2190 |
-
|
2191 |
-
|
2192 |
-
|
2193 |
-
|
2194 |
-
|
2195 |
-
|
2196 |
-
|
2197 |
-
|
2198 |
-
|
2199 |
-
|
2200 |
-
|
2201 |
-
|
2202 |
-
|
2203 |
-
|
2204 |
-
|
2205 |
-
|
2206 |
-
|
2207 |
-
|
2208 |
-
|
2209 |
-
|
2210 |
-
|
2211 |
-
|
2212 |
-
|
2213 |
-
|
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();
|
|