Easy FancyBox - Version 1.5.8.3

Version Description

= 1.6 = Webp images autodetected by default. Some common rel tags excluded from autogallery. FIX: image preload.

Download this release

Release Info

Developer deployer
Plugin Icon 128x128 Easy FancyBox
Version 1.5.8.3
Comparing to
See all releases

Code changes from version 1.5.8.1 to 1.5.8.3

easy-fancybox.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://status301.net/wordpress-plugins/easy-fancybox/
5
  Description: Easily enable the <a href="http://fancybox.net/">FancyBox jQuery extension</a> on all image, SWF, PDF, YouTube, Dailymotion and Vimeo links. Also supports iFrame and inline content.
6
  Text Domain: easy-fancybox
7
  Domain Path: languages
8
- Version: 1.5.8.1
9
  Author: RavanH
10
  Author URI: http://status301.net/
11
  */
@@ -37,7 +37,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
37
  * CONSTANTS
38
  **************/
39
 
40
- define( 'EASY_FANCYBOX_VERSION', '1.5.8.1' );
41
  define( 'FANCYBOX_VERSION', '1.3.8' );
42
  define( 'MOUSEWHEEL_VERSION', '3.1.12' );
43
  define( 'EASING_VERSION', '1.3.2' );
5
  Description: Easily enable the <a href="http://fancybox.net/">FancyBox jQuery extension</a> on all image, SWF, PDF, YouTube, Dailymotion and Vimeo links. Also supports iFrame and inline content.
6
  Text Domain: easy-fancybox
7
  Domain Path: languages
8
+ Version: 1.5.8.3
9
  Author: RavanH
10
  Author URI: http://status301.net/
11
  */
37
  * CONSTANTS
38
  **************/
39
 
40
+ define( 'EASY_FANCYBOX_VERSION', '1.5.8.3' );
41
  define( 'FANCYBOX_VERSION', '1.3.8' );
42
  define( 'MOUSEWHEEL_VERSION', '3.1.12' );
43
  define( 'EASING_VERSION', '1.3.2' );
fancybox/jquery.fancybox-1.3.8.css CHANGED
@@ -3,10 +3,10 @@
3
  * Simple and fancy lightbox alternative
4
  *
5
  * Examples and documentation at: http://fancybox.net
6
- *
7
  * Copyright (c) 2008 - 2010 Janis Skarnelis
8
  * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
- *
10
  * Version: 1.3.4 (11/11/2010) patched : box-sizing: content-box;
11
  *
12
  * Dual licensed under the MIT and GPL licenses:
@@ -166,6 +166,7 @@
166
  height: 100%;
167
  width: 35%;
168
  cursor: pointer;
 
169
  outline: none;
170
  z-index: 111102;
171
  display: none;
3
  * Simple and fancy lightbox alternative
4
  *
5
  * Examples and documentation at: http://fancybox.net
6
+ *
7
  * Copyright (c) 2008 - 2010 Janis Skarnelis
8
  * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
+ *
10
  * Version: 1.3.4 (11/11/2010) patched : box-sizing: content-box;
11
  *
12
  * Dual licensed under the MIT and GPL licenses:
166
  height: 100%;
167
  width: 35%;
168
  cursor: pointer;
169
+ background: initial;
170
  outline: none;
171
  z-index: 111102;
172
  display: none;
fancybox/jquery.fancybox-1.3.8.js CHANGED
@@ -26,7 +26,7 @@
26
  * Line 126, 677, 686: 'image' class forces image type, RavanH ravanhagen@gmail.com
27
  * Put focus on iframe at _finish
28
  * Patched for jQuery 1.9+ compat by Sabel http://sabel.bluegfx.de/wordpress/wp-content/uploads/2013/03/jquery.fancybox-1.3.4.js
29
- *
30
  * Added SVG support by Simon Maillard simon@ogesta.fr
31
  */
32
  ;(function($) {
@@ -673,24 +673,23 @@
673
  },
674
 
675
  _preload_images = function() {
676
- var obj,
677
- objNext;
678
 
679
  if ((currentArray.length -1) > currentIndex) {
680
  obj = currentArray[ currentIndex + 1 ];
681
 
682
- if (typeof href !== 'undefined' && (obj.href.match(imgRegExp) || $(obj).hasClass("image")) ) {
683
  objNext = new Image();
684
- objNext.src = href;
685
  }
686
  }
687
 
688
  if (currentIndex > 0) {
689
  obj = currentArray[ currentIndex - 1 ];
690
 
691
- if (typeof href !== 'undefined' && (obj.href.match(imgRegExp) || $(obj).hasClass("image")) ) {
692
  objNext = new Image();
693
- objNext.src = href;
694
  }
695
  }
696
  },
@@ -854,9 +853,8 @@
854
 
855
  var rel = $(this).attr('rel') || '';
856
 
857
- if (!rel || rel == '' || rel === 'nofollow') {
858
  selectedArray.push(this);
859
-
860
  } else {
861
  selectedArray = $('a[rel="' + rel + '"], area[rel="' + rel + '"]');
862
  selectedIndex = selectedArray.index( this );
26
  * Line 126, 677, 686: 'image' class forces image type, RavanH ravanhagen@gmail.com
27
  * Put focus on iframe at _finish
28
  * Patched for jQuery 1.9+ compat by Sabel http://sabel.bluegfx.de/wordpress/wp-content/uploads/2013/03/jquery.fancybox-1.3.4.js
29
+ * Line 858: exclude more rel attribute values
30
  * Added SVG support by Simon Maillard simon@ogesta.fr
31
  */
32
  ;(function($) {
673
  },
674
 
675
  _preload_images = function() {
676
+ var obj, objNext;
 
677
 
678
  if ((currentArray.length -1) > currentIndex) {
679
  obj = currentArray[ currentIndex + 1 ];
680
 
681
+ if (typeof obj !== 'undefined' && typeof obj.href !== 'undefined' && (obj.href.match(imgRegExp) || $(obj).hasClass("image")) ) {
682
  objNext = new Image();
683
+ objNext.src = obj.href;
684
  }
685
  }
686
 
687
  if (currentIndex > 0) {
688
  obj = currentArray[ currentIndex - 1 ];
689
 
690
+ if (typeof obj !== 'undefined' && typeof obj.href !== 'undefined' && (obj.href.match(imgRegExp) || $(obj).hasClass("image")) ) {
691
  objNext = new Image();
692
+ objNext.src = obj.href;
693
  }
694
  }
695
  },
853
 
854
  var rel = $(this).attr('rel') || '';
855
 
856
+ if (rel == '' || rel.replace(/alternate|external|help|license|nofollow|noreferrer|noopener|\s+/gi,'') == '') {
857
  selectedArray.push(this);
 
858
  } else {
859
  selectedArray = $('a[rel="' + rel + '"], area[rel="' + rel + '"]');
860
  selectedIndex = selectedArray.index( this );
fancybox/jquery.fancybox-1.3.8.min.css CHANGED
@@ -1 +1 @@
1
- #fancybox-close,#fancybox-content,#fancybox-content>div,#fancybox-content>div>div,#fancybox-frame,#fancybox-left,#fancybox-loading,#fancybox-loading div,#fancybox-outer,#fancybox-overlay,#fancybox-right,#fancybox-title,#fancybox-title div,#fancybox-wrap,.fancy-ico,.fancybox-bg{box-sizing:content-box;-moz-box-sizing:content-box}#fancybox-loading{position:fixed;top:50%;left:50%;width:40px;height:40px;margin-top:-20px;margin-left:-20px;cursor:pointer;overflow:hidden;z-index:111104;display:none}#fancybox-loading div,#fancybox-overlay,#fancybox-wrap{left:0;top:0;position:absolute}#fancybox-loading div{width:40px;height:480px;background-image:url(fancybox.png)}#fancybox-overlay{width:100%;z-index:111100;display:none}#fancybox-tmp{padding:0;margin:0;border:0;overflow:auto;display:none}#fancybox-wrap{padding:20px;z-index:111101;outline:0;display:none}#fancybox-content,#fancybox-outer{position:relative;background:#fff}#fancybox-outer{width:100%;height:100%;box-shadow:0 0 20px #111;-moz-box-shadow:0 0 20px #1111;-webkit-box-shadow:0 0 20px #111}#fancybox-content{width:0;height:0;padding:0;outline:0;overflow:hidden;z-index:111102;border:0 solid #fff;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}#fancybox-content>div{max-width:100%;max-height:100%}#fancybox-hide-sel-frame{position:absolute;top:0;left:0;width:100%;height:100%;background:0 0;z-index:111101}#fancybox-close{position:absolute;top:-15px;right:-15px;width:30px;height:30px;background:url(fancybox.png) -40px 0;cursor:pointer;z-index:111103;display:none}#fancybox-left-ico,#fancybox-right-ico{background-image:url(fancybox.png)}#fancybox-frame,#fancybox-img{border:none;height:100%;width:100%}#fancybox-error{color:#444;font:400 12px/20px Arial;padding:14px;margin:0}#fancybox-img{padding:0;margin:0;outline:0;line-height:0;vertical-align:top;max-width:none!important;max-height:none!important}#fancybox-frame{display:block;-webkit-overflow-scrolling:touch;z-index:0}#fancybox-left,#fancybox-right{position:absolute;bottom:0;height:100%;width:35%;cursor:pointer;outline:0;z-index:111102;display:none}#fancybox-left{left:0}.rtl #fancybox-left{left:auto;right:0}#fancybox-right{right:0}.rtl #fancybox-right{left:0;right:auto}#fancybox-left-ico,#fancybox-right-ico{position:absolute;top:50%;left:-9999px;width:30px;height:30px;margin-top:-15px;cursor:pointer;z-index:111102;display:block}#fancybox-left-ico{background-position:-40px -30px}.rtl #fancybox-left-ico{background-position:-40px -60px;right:-9999px}#fancybox-right-ico{background-position:-40px -60px}.rtl #fancybox-right-ico{background-position:-40px -30px;right:-9999px}#fancybox-left:hover,#fancybox-right:hover{visibility:visible}#fancybox-left:hover span{left:20px}.rtl #fancybox-left:hover span{right:20px}#fancybox-right:hover span{left:auto;right:20px}.rtl #fancybox-right:hover span{right:auto;left:20px}#fancybox-title{font-family:Helvetica;font-size:12px;z-index:111102}.fancybox-title-inside{padding-bottom:10px;text-align:center;color:#333;position:relative}.fancybox-title-outside{padding-top:10px;color:#fff}.fancybox-title-over{position:absolute;bottom:0;left:0;color:#FFF;text-align:left}.rtl .fancybox-title-over{text-align:right}#fancybox-title-over{padding:10px;background:rgba(0,0,0,.64);display:block}.fancybox-title-float{position:absolute;left:0;bottom:-20px;height:32px}#fancybox-title-float-wrap{border:none;border-collapse:collapse;width:auto}#fancybox-title-float-wrap td{border:none;white-space:nowrap}#fancybox-title-float-left{padding:0 0 0 15px;background:url(fancybox.png) -40px -90px no-repeat}#fancybox-title-float-main{color:#fff;line-height:29px;font-weight:700;padding:0 0 3px;background:url(fancybox-x.png) 0 -40px}#fancybox-title-float-right{padding:0 0 0 15px;background:url(fancybox.png) -55px -90px no-repeat}.fancybox-hidden{display:none}
1
+ #fancybox-close,#fancybox-content,#fancybox-content>div,#fancybox-content>div>div,#fancybox-frame,#fancybox-left,#fancybox-loading,#fancybox-loading div,#fancybox-outer,#fancybox-overlay,#fancybox-right,#fancybox-title,#fancybox-title div,#fancybox-wrap,.fancy-ico,.fancybox-bg{box-sizing:content-box;-moz-box-sizing:content-box}#fancybox-loading{position:fixed;top:50%;left:50%;width:40px;height:40px;margin-top:-20px;margin-left:-20px;cursor:pointer;overflow:hidden;z-index:111104;display:none}#fancybox-loading div,#fancybox-overlay,#fancybox-wrap{left:0;top:0;position:absolute}#fancybox-loading div{width:40px;height:480px;background-image:url(fancybox.png)}#fancybox-overlay{width:100%;z-index:111100;display:none}#fancybox-tmp{padding:0;margin:0;border:0;overflow:auto;display:none}#fancybox-wrap{padding:20px;z-index:111101;outline:0;display:none}#fancybox-content,#fancybox-outer{position:relative;background:#fff}#fancybox-outer{width:100%;height:100%;box-shadow:0 0 20px #111;-moz-box-shadow:0 0 20px #1111;-webkit-box-shadow:0 0 20px #111}#fancybox-content{width:0;height:0;padding:0;outline:0;overflow:hidden;z-index:111102;border:0 solid #fff;-moz-background-clip:padding;-webkit-background-clip:padding;background-clip:padding-box}#fancybox-content>div{max-width:100%;max-height:100%}#fancybox-hide-sel-frame{position:absolute;top:0;left:0;width:100%;height:100%;background:0 0;z-index:111101}#fancybox-close{position:absolute;top:-15px;right:-15px;width:30px;height:30px;background:url(fancybox.png) -40px 0;cursor:pointer;z-index:111103;display:none}#fancybox-left-ico,#fancybox-right-ico{background-image:url(fancybox.png)}#fancybox-frame,#fancybox-img{border:none;height:100%;width:100%}#fancybox-error{color:#444;font:400 12px/20px Arial;padding:14px;margin:0}#fancybox-img{padding:0;margin:0;outline:0;line-height:0;vertical-align:top;max-width:none!important;max-height:none!important}#fancybox-frame{display:block;-webkit-overflow-scrolling:touch;z-index:0}#fancybox-left,#fancybox-right{position:absolute;bottom:0;height:100%;width:35%;cursor:pointer;background:initial;outline:0;z-index:111102;display:none}#fancybox-left{left:0}.rtl #fancybox-left{left:auto;right:0}#fancybox-right{right:0}.rtl #fancybox-right{left:0;right:auto}#fancybox-left-ico,#fancybox-right-ico{position:absolute;top:50%;left:-9999px;width:30px;height:30px;margin-top:-15px;cursor:pointer;z-index:111102;display:block}#fancybox-left-ico{background-position:-40px -30px}.rtl #fancybox-left-ico{background-position:-40px -60px;right:-9999px}#fancybox-right-ico{background-position:-40px -60px}.rtl #fancybox-right-ico{background-position:-40px -30px;right:-9999px}#fancybox-left:hover,#fancybox-right:hover{visibility:visible}#fancybox-left:hover span{left:20px}.rtl #fancybox-left:hover span{right:20px}#fancybox-right:hover span{left:auto;right:20px}.rtl #fancybox-right:hover span{right:auto;left:20px}#fancybox-title{font-family:Helvetica;font-size:12px;z-index:111102}.fancybox-title-inside{padding-bottom:10px;text-align:center;color:#333;position:relative}.fancybox-title-outside{padding-top:10px;color:#fff}.fancybox-title-over{position:absolute;bottom:0;left:0;color:#FFF;text-align:left}.rtl .fancybox-title-over{text-align:right}#fancybox-title-over{padding:10px;background:rgba(0,0,0,.64);display:block}.fancybox-title-float{position:absolute;left:0;bottom:-20px;height:32px}#fancybox-title-float-wrap{border:none;border-collapse:collapse;width:auto}#fancybox-title-float-wrap td{border:none;white-space:nowrap}#fancybox-title-float-left{padding:0 0 0 15px;background:url(fancybox.png) -40px -90px no-repeat}#fancybox-title-float-main{color:#fff;line-height:29px;font-weight:700;padding:0 0 3px;background:url(fancybox-x.png) 0 -40px}#fancybox-title-float-right{padding:0 0 0 15px;background:url(fancybox.png) -55px -90px no-repeat}.fancybox-hidden{display:none}
fancybox/jquery.fancybox-1.3.8.min.js CHANGED
@@ -1,2 +1 @@
1
- !function(t){var e,i,n,a,o,d,c,r,s,h,l,f,p,g=0,u={},b=[],y=0,w={},m=[],v=null,x=new Image,I=/\.(jpg|gif|png|bmp|jpeg|webp)(.*)?$/i,C=/[^\.]\.(swf)\s*$/i,k=/[^\.]\.(svg)\s*$/i,O=1,j=0,T="",A=!1,D=t.extend(t("<div/>")[0],{prop:0}),N=navigator.userAgent.match(/msie [6]/i)&&!window.XMLHttpRequest,E=void 0!==document.createTouch,S=function(){i.hide(),x.onerror=x.onload=null,v&&v.abort(),e.empty()},F=function(){return!1===u.onError(b,g,u)?(i.hide(),void(A=!1)):(u.titleShow=!1,u.width="auto",u.height="auto",e.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>'),void B())},P=function(){var n,a,o,c,r,s,h=b[g];if(S(),u=t.extend({},t.fn.fancybox.defaults,void 0===t(h).data("fancybox")?u:t(h).data("fancybox")),s=u.onStart(b,g,u),s===!1)return void(A=!1);if("object"==typeof s&&(u=t.extend(u,s)),o=u.title||(h.nodeName?t(h).attr("title"):h.title)||"",h.nodeName&&!u.orig&&(u.orig=t(h).find("img:first").length?t(h).find("img:first"):t(h)),""===o&&u.orig&&(o=u.orig.attr(u.titleFromAlt?"alt":"title")),n=u.href||(h.nodeName?t(h).attr("href"):h.href)||null,(/^(?:javascript)/i.test(n)||"#"==n)&&(n=null),u.type?(a=u.type,n||(n=u.content)):u.content?a="html":n&&(a=n.match(I)||t(h).hasClass("image")?"image":n.match(C)?"swf":n.match(k)?"svg":t(h).hasClass("iframe")?"iframe":0===n.indexOf("#")?"inline":"ajax"),!a)return void F();switch("inline"==a&&(h=n.substr(n.indexOf("#")),a=t(h).length>0?"inline":"ajax"),u.type=a,u.href=n,u.title=o,u.autoDimensions&&("html"==u.type||"inline"==u.type||"ajax"==u.type?(u.width="auto",u.height="auto"):u.autoDimensions=!1),u.modal&&(u.overlayShow=!0,u.hideOnOverlayClick=!1,u.hideOnContentClick=!1,u.enableEscapeButton=!1,u.showCloseButton=!1),u.padding=parseInt(u.padding,10),u.margin=parseInt(u.margin,10),e.css("padding",u.padding+u.margin),t(".fancybox-inline-tmp").off("fancybox-cancel").on("fancybox-change",function(){t(this).replaceWith(d.children())}),a){case"html":e.html(u.content),B();break;case"inline":if(t(h).parent().is("#fancybox-content")===!0)return void(A=!1);t('<div class="fancybox-inline-tmp" />').hide().insertBefore(t(h)).on("fancybox-cleanup",function(){t(this).replaceWith(d.children())}).on("fancybox-cancel",function(){t(this).replaceWith(e.children())}),t(h).appendTo(e),B();break;case"image":A=!1,t.fancybox.showActivity(),x=new Image,x.onerror=function(){F()},x.onload=function(){A=!0,x.onerror=x.onload=null,L()},x.src=n;break;case"swf":u.scrolling="no",c='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+u.width+'" height="'+u.height+'"><param name="movie" value="'+n+'"></param>',r="",t.each(u.swf,function(t,e){c+='<param name="'+t+'" value="'+e+'"></param>',r+=" "+t+'="'+e+'"'}),c+='<embed src="'+n+'" type="application/x-shockwave-flash" width="'+u.width+'" height="'+u.height+'"'+r+"></embed></object>",e.html(c),B();break;case"svg":u.scrolling="no",c='<object width="'+u.width+'" height="'+u.height+'" data="'+n+'"></object>',e.html(c),B();break;case"ajax":A=!1,t.fancybox.showActivity(),u.ajax.win=u.ajax.success,v=t.ajax(t.extend({},u.ajax,{url:n,data:u.ajax.data||{},error:function(t){t.status>0&&F()},success:function(t,a,o){var d="object"==typeof o?o:v;if(200==d.status){if("function"==typeof u.ajax.win){if(s=u.ajax.win(n,t,a,o),s===!1)return void i.hide();("string"==typeof s||"object"==typeof s)&&(t=s)}e.html(t),B()}}}));break;case"iframe":z()}},B=function(){var i=u.width,n=u.height,a=0==t(window).width()?window.innerWidth:t(window).width(),o=0==t(window).height()?window.innerHeight:t(window).height();i=(""+i).indexOf("%")>-1?parseInt((a-2*u.margin)*parseFloat(i)/100,10)+"px":"auto"==i?"auto":i+"px",n=(""+n).indexOf("%")>-1?parseInt((o-2*u.margin)*parseFloat(n)/100,10)+"px":"auto"==n?"auto":n+"px",e.wrapInner('<div style="width:'+i+";height:"+n+";overflow: "+("auto"==u.scrolling?"auto":"yes"==u.scrolling?"scroll":"hidden")+';position:relative;"></div>'),u.width=e.width(),u.height=e.height(),z()},L=function(){u.width=x.width,u.height=x.height,t("<img />").attr({id:"fancybox-img",src:x.src,alt:u.title}).appendTo(e),z()},z=function(){var o,l;return i.hide(),a.is(":visible")&&!1===w.onCleanup(m,y,w)?(t(".fancybox-inline-tmp").trigger("fancybox-cancel"),void(A=!1)):(A=!0,t(d.add(n)).off(),t(window).off("resize.fb scroll.fb"),t(document).off("keydown.fb"),a.is(":visible")&&"outside"!==w.titlePosition&&a.css("height",a.height()),m=b,y=g,w=u,w.overlayShow?(n.css({"background-color":w.overlayColor,opacity:w.overlayOpacity,cursor:w.hideOnOverlayClick?"pointer":"auto",height:t(document).height()}),n.is(":visible")||(N&&t("select:not(#fancybox-tmp select)").filter(function(){return"hidden"!==this.style.visibility}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"}),n.show())):n.hide(),p=$(),M(),a.is(":visible")?(t(c.add(s).add(h)).hide(),o=a.position(),f={top:o.top,left:o.left,width:a.width(),height:a.height()},l=f.width==p.width&&f.height==p.height,void d.fadeTo(w.changeFade,.3,function(){var i=function(){d.html(e.contents()).fadeTo(w.changeFade,1,K)};t(".fancybox-inline-tmp").trigger("fancybox-change"),d.empty().removeAttr("filter").css({"border-width":w.padding,width:p.width-2*w.padding,height:u.autoDimensions?"auto":p.height-j-2*w.padding}),l?i():(D.prop=0,t(D).animate({prop:1},{duration:w.changeSpeed,easing:w.easingChange,step:q,complete:i}))})):(a.removeAttr("style"),d.css("border-width",w.padding),"elastic"==w.transitionIn?(f=U(),d.html(e.contents()),a.show(),w.opacity&&(p.opacity=0),D.prop=0,void t(D).animate({prop:1},{duration:w.speedIn,easing:w.easingIn,step:q,complete:K})):("inside"==w.titlePosition&&j>0&&r.show(),d.css({width:p.width-2*w.padding,height:u.autoDimensions?"auto":p.height-j-2*w.padding}).html(e.contents()),void a.css(p).fadeIn("none"==w.transitionIn?0:w.speedIn,K))))},H=function(t){return t&&t.length?"float"==w.titlePosition?'<table id="fancybox-title-float-wrap" style="border-spacing:0;border-collapse:collapse"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+t+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+w.titlePosition+'">'+t+"</div>":!1},M=function(){if(T=w.title||"",j=0,r.empty().removeAttr("style").removeClass(),w.titleShow===!1)return void r.hide();if(T=t.isFunction(w.titleFormat)?w.titleFormat(T,m,y,w):H(T),!T||""===T)return void r.hide();switch(r.addClass("fancybox-title-"+w.titlePosition).html(T).appendTo("body").show(),w.titlePosition){case"inside":r.css({width:p.width-2*w.padding,marginLeft:w.padding,marginRight:w.padding}),j=r.outerHeight(!0),r.appendTo(o),p.height+=j;break;case"over":r.css({marginLeft:w.padding,width:p.width-2*w.padding,bottom:w.padding}).appendTo(o);break;case"float":r.css("left",-1*parseInt((r.width()-p.width-40)/2,10)).appendTo(a);break;default:r.css({width:p.width-2*w.padding,paddingLeft:w.padding,paddingRight:w.padding}).appendTo(a)}r.hide()},R=function(){return(w.enableEscapeButton||w.enableKeyboardNav)&&t(document).on("keydown.fb",function(e){27==e.keyCode&&w.enableEscapeButton?(e.preventDefault(),t.fancybox.close()):37!=e.keyCode&&39!=e.keyCode||!w.enableKeyboardNav||"INPUT"===e.target.tagName||"TEXTAREA"===e.target.tagName||"SELECT"===e.target.tagName?9==e.keyCode&&w.enableKeyboardNav&&"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&"SELECT"!==e.target.tagName&&(e.preventDefault(),t.fancybox[e.shiftKey?"prev":"next"]()):(e.preventDefault(),t.fancybox[37==e.keyCode?"prev":"next"]())}),w.showNavArrows?((w.cyclic&&m.length>1||0!==y)&&s.show(),void((w.cyclic&&m.length>1||y!=m.length-1)&&h.show())):(s.hide(),void h.hide())},K=function(){t.support.opacity||(d.css("filter",0),a.css("filter",0)),u.autoDimensions&&d.css("height","auto"),a.css("height","auto"),T&&T.length&&r.show(),w.showCloseButton&&c.show(),R(),w.hideOnContentClick&&d.on("click",t.fancybox.close),w.hideOnOverlayClick&&n.on("click",t.fancybox.close),w.autoResize&&t(window).on("resize.fb",t.fancybox.resize),w.centerOnScroll&&t(window).on("scroll.fb",t.fancybox.center),t.fn.mousewheel&&a.on("mousewheel.fb",function(e,i){A?e.preventDefault():"image"!=w.type||0!=t(e.target).outerHeight()&&t(e.target).prop("scrollHeight")!==t(e.target).outerHeight()||(e.preventDefault(),t.fancybox[i>0?"prev":"next"]())}),"iframe"==w.type&&t('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'"'+(navigator.userAgent.match(/msie [6]/i)?' allowtransparency="true""':"")+' style="border:0;margin:0;overflow:'+("auto"==u.scrolling?"auto":"yes"==u.scrolling?"scroll":"hidden")+'" src="'+w.href+'"'+(!1===w.allowfullscreen?"":" allowfullscreen")+' tabindex="999"></iframe>').appendTo(d).focus(),a.show(),A=!1,t.fancybox.center(),w.onComplete(m,y,w),W()},W=function(){var e,i;m.length-1>y&&(e=m[y+1],"undefined"!=typeof href&&(e.href.match(I)||t(e).hasClass("image"))&&(i=new Image,i.src=href)),y>0&&(e=m[y-1],"undefined"!=typeof href&&(e.href.match(I)||t(e).hasClass("image"))&&(i=new Image,i.src=href))},q=function(t){var e={width:parseInt(f.width+(p.width-f.width)*t,10),height:parseInt(f.height+(p.height-f.height)*t,10),top:parseInt(f.top+(p.top-f.top)*t,10),left:parseInt(f.left+(p.left-f.left)*t,10)};void 0!==p.opacity&&(e.opacity=.5>t?.5:t),a.css(e),d.css({width:e.width-2*w.padding,height:e.height-j*t-2*w.padding})},X=function(){return[0==t(window).width()?window.innerWidth:t(window).width()-2*w.margin,0==t(window).height()?window.innerHeight:t(window).height()-2*w.margin,t(document).scrollLeft()+w.margin,t(document).scrollTop()+w.margin]},$=function(){var t,e=X(),i={},n=w.autoScale,a=2*w.padding;return i.width=(""+w.width).indexOf("%")>-1?parseInt(e[0]*parseFloat(w.width)/100,10):w.width+a,i.height=(""+w.height).indexOf("%")>-1?parseInt(e[1]*parseFloat(w.height)/100,10):w.height+a,n&&(i.width>e[0]||i.height>e[1])&&("image"==u.type||"svg"==u.type||"swf"==u.type?(t=w.width/w.height,i.width>e[0]&&(i.width=e[0],i.height=parseInt((i.width-a)/t+a,10)),i.height>e[1]&&(i.height=e[1],i.width=parseInt((i.height-a)*t+a,10))):(i.width=Math.min(i.width,e[0]),i.height=Math.min(i.height,e[1]))),i.top=parseInt(Math.max(e[3]-20,e[3]+.5*(e[1]-i.height-40)),10),i.left=parseInt(Math.max(e[2]-20,e[2]+.5*(e[0]-i.width-40)),10),i},Q=function(t){var e=t.offset();return e.top+=parseInt(t.css("paddingTop"),10)||0,e.left+=parseInt(t.css("paddingLeft"),10)||0,e.top+=parseInt(t.css("border-top-width"),10)||0,e.left+=parseInt(t.css("border-left-width"),10)||0,e.width=t.width(),e.height=t.height(),e},U=function(){var e,i,n=u.orig?t(u.orig):!1,a={};return n&&n.length?(e=Q(n),a={width:e.width+2*w.padding,height:e.height+2*w.padding,top:e.top-w.padding-20,left:e.left-w.padding-20}):(i=X(),a={width:2*w.padding,height:2*w.padding,top:parseInt(i[3]+.5*i[1],10),left:parseInt(i[2]+.5*i[0],10)}),a},G=function(){return i.is(":visible")?(t("div",i).css("top",-40*O+"px"),void(O=(O+1)%12)):void clearInterval(l)};t.fn.fancybox=function(e){return t(this).length?(t(this).data("fancybox",t.extend({},e,t.metadata?t(this).metadata():{})).off("click.fb").on("click.fb",function(e){if(e.preventDefault(),!A){A=!0,t(this).blur(),b=[],g=0;var i=t(this).attr("rel")||"";i&&""!=i&&"nofollow"!==i?(b=t('a[rel="'+i+'"], area[rel="'+i+'"]'),g=b.index(this)):b.push(this),P()}}),this):this},t.fancybox=function(e){var i;if(!A){if(A=!0,i=void 0!==arguments[1]?arguments[1]:{},b=[],g=parseInt(i.index,10)||0,t.isArray(e)){for(var n=0,a=e.length;a>n;n++)"object"==typeof e[n]?t(e[n]).data("fancybox",t.extend({},i,e[n])):e[n]=t({}).data("fancybox",t.extend({content:e[n]},i));b=jQuery.merge(b,e)}else"object"==typeof e?t(e).data("fancybox",t.extend({},i,e)):e=t({}).data("fancybox",t.extend({content:e},i)),b.push(e);(g>b.length||0>g)&&(g=0),P()}},t.fancybox.showActivity=function(){clearInterval(l),i.show(),l=setInterval(G,66)},t.fancybox.hideActivity=function(){i.hide()},t.fancybox.next=function(){return t.fancybox.pos(y+1)},t.fancybox.prev=function(){return t.fancybox.pos(y-1)},t.fancybox.pos=function(t){A||(t=parseInt(t),b=m,t>-1&&t<m.length?(g=t,P()):w.cyclic&&m.length>1&&(g=t<m.length?m.length-1:0,P()))},t.fancybox.cancel=function(){A||(A=!0,t(".fancybox-inline-tmp").trigger("fancybox-cancel"),S(),u.onCancel(b,g,u),A=!1)},t.fancybox.close=function(){function e(){n.fadeOut("fast"),r.empty().hide(),a.hide(),t(".fancybox-inline-tmp").trigger("fancybox-cleanup"),d.empty(),w.onClosed(m,y,w),m=u=[],y=g=0,w=u={},A=!1}if(!A&&!a.is(":hidden")){if(A=!0,w&&!1===w.onCleanup(m,y,w))return void(A=!1);if(S(),t(c.add(s).add(h)).hide(),t(d.add(n)).off(),t(window).off("resize.fb scroll.fb mousewheel.fb"),t(document).off("keydown.fb"),d.find("iframe#fancybox-frame").attr("src",N&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank"),"inside"!==w.titlePosition&&r.empty(),a.stop(),"elastic"==w.transitionOut){f=U();var i=a.position();p={top:i.top,left:i.left,width:a.width(),height:a.height()},w.opacity&&(p.opacity=1),r.empty().hide(),D.prop=1,t(D).animate({prop:0},{duration:w.speedOut,easing:w.easingOut,step:q,complete:e})}else a.fadeOut("none"==w.transitionOut?0:w.speedOut,e)}},t.fancybox.resize=function(){n.is(":visible")&&n.css("height",t(document).height()),E||t.fancybox.center(!0)},t.fancybox.center=function(){var t,e;A||(e=arguments[0]===!0?1:0,t=X(),(e||a.width()<=t[0]&&a.height()<=t[1])&&a.stop().animate({top:parseInt(Math.max(t[3]-20,t[3]+.5*(t[1]-d.height()-40)-w.padding)),left:parseInt(Math.max(t[2]-20,t[2]+.5*(t[0]-d.width()-40)-w.padding))},"number"==typeof arguments[0]?arguments[0]:200))},t.fancybox.init=function(){t("#fancybox-wrap").length||(t("body").append(e=t('<div id="fancybox-tmp"></div>'),i=t('<div id="fancybox-loading"><div></div></div>'),n=t('<div id="fancybox-overlay"></div>'),a=t('<div id="fancybox-wrap"></div>')),o=t('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(a),o.append(d=t('<div id="fancybox-content"></div>'),c=t('<a id="fancybox-close"></a>'),r=t('<div id="fancybox-title"></div>'),s=t('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),h=t('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')),c.click(t.fancybox.close),i.click(t.fancybox.cancel),s.click(function(e){e.preventDefault(),t.fancybox.prev()}),h.click(function(e){e.preventDefault(),t.fancybox.next()}),t.support.opacity||a.addClass("fancybox-ie"),N&&(i.addClass("fancybox-ie6"),a.addClass("fancybox-ie6"),t('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" style="overflow:hidden;border:0" tabindex="-1"></iframe>').prependTo(o)))},t.fn.fancybox.defaults={padding:10,margin:40,opacity:!1,modal:!1,cyclic:!1,allowfullscreen:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!E,autoResize:!0,//!isTouch
2
- ajax:{},swf:{wmode:"opaque"},svg:{wmode:"opaque"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:.7,overlayColor:"#777",titleShow:!0,titlePosition:"float",titleFormat:null,titleFromAlt:!1,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}},t(document).ready(function(){t.fancybox.init()})}(jQuery);
1
+ !function(a){var b,c,d,e,f,g,h,i,j,k,w,A,B,l=0,m={},n=[],o=0,p={},q=[],r=null,s=new Image,t=/\.(jpg|gif|png|bmp|jpeg|webp)(.*)?$/i,u=/[^\.]\.(swf)\s*$/i,v=/[^\.]\.(svg)\s*$/i,x=1,y=0,z="",C=!1,D=a.extend(a("<div/>")[0],{prop:0}),E=navigator.userAgent.match(/msie [6]/i)&&!window.XMLHttpRequest,F=void 0!==document.createTouch,G=function(){c.hide(),s.onerror=s.onload=null,r&&r.abort(),b.empty()},H=function(){if(!1===m.onError(n,l,m))return c.hide(),void(C=!1);m.titleShow=!1,m.width="auto",m.height="auto",b.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>'),J()},I=function(){var e,f,h,i,j,k,d=n[l];if(G(),m=a.extend({},a.fn.fancybox.defaults,void 0===a(d).data("fancybox")?m:a(d).data("fancybox")),!1===(k=m.onStart(n,l,m)))return void(C=!1);if("object"==typeof k&&(m=a.extend(m,k)),h=m.title||(d.nodeName?a(d).attr("title"):d.title)||"",d.nodeName&&!m.orig&&(m.orig=a(d).find("img:first").length?a(d).find("img:first"):a(d)),""===h&&m.orig&&(h=m.titleFromAlt?m.orig.attr("alt"):m.orig.attr("title")),e=m.href||(d.nodeName?a(d).attr("href"):d.href)||null,(/^(?:javascript)/i.test(e)||"#"==e)&&(e=null),m.type?(f=m.type,e||(e=m.content)):m.content?f="html":e&&(f=e.match(t)||a(d).hasClass("image")?"image":e.match(u)?"swf":e.match(v)?"svg":a(d).hasClass("iframe")?"iframe":0===e.indexOf("#")?"inline":"ajax"),!f)return void H();switch("inline"==f&&(d=e.substr(e.indexOf("#")),f=a(d).length>0?"inline":"ajax"),m.type=f,m.href=e,m.title=h,m.autoDimensions&&("html"==m.type||"inline"==m.type||"ajax"==m.type?(m.width="auto",m.height="auto"):m.autoDimensions=!1),m.modal&&(m.overlayShow=!0,m.hideOnOverlayClick=!1,m.hideOnContentClick=!1,m.enableEscapeButton=!1,m.showCloseButton=!1),m.padding=parseInt(m.padding,10),m.margin=parseInt(m.margin,10),b.css("padding",m.padding+m.margin),a(".fancybox-inline-tmp").off("fancybox-cancel").on("fancybox-change",function(){a(this).replaceWith(g.children())}),f){case"html":b.html(m.content),J();break;case"inline":if(!0===a(d).parent().is("#fancybox-content"))return void(C=!1);a('<div class="fancybox-inline-tmp" />').hide().insertBefore(a(d)).on("fancybox-cleanup",function(){a(this).replaceWith(g.children())}).on("fancybox-cancel",function(){a(this).replaceWith(b.children())}),a(d).appendTo(b),J();break;case"image":C=!1,a.fancybox.showActivity(),s=new Image,s.onerror=function(){H()},s.onload=function(){C=!0,s.onerror=s.onload=null,K()},s.src=e;break;case"swf":m.scrolling="no",i='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+m.width+'" height="'+m.height+'"><param name="movie" value="'+e+'"></param>',j="",a.each(m.swf,function(a,b){i+='<param name="'+a+'" value="'+b+'"></param>',j+=" "+a+'="'+b+'"'}),i+='<embed src="'+e+'" type="application/x-shockwave-flash" width="'+m.width+'" height="'+m.height+'"'+j+"></embed></object>",b.html(i),J();break;case"svg":m.scrolling="no",i='<object width="'+m.width+'" height="'+m.height+'" data="'+e+'"></object>',b.html(i),J();break;case"ajax":C=!1,a.fancybox.showActivity(),m.ajax.win=m.ajax.success,r=a.ajax(a.extend({},m.ajax,{url:e,data:m.ajax.data||{},error:function(a,b,c){a.status>0&&H()},success:function(a,d,f){if(200==("object"==typeof f?f:r).status){if("function"==typeof m.ajax.win){if(!1===(k=m.ajax.win(e,a,d,f)))return void c.hide();"string"!=typeof k&&"object"!=typeof k||(a=k)}b.html(a),J()}}}));break;case"iframe":L()}},J=function(){var c=m.width,d=m.height,e=0==a(window).width()?window.innerWidth:a(window).width(),f=0==a(window).height()?window.innerHeight:a(window).height();c=c.toString().indexOf("%")>-1?parseInt((e-2*m.margin)*parseFloat(c)/100,10)+"px":"auto"==c?"auto":c+"px",d=d.toString().indexOf("%")>-1?parseInt((f-2*m.margin)*parseFloat(d)/100,10)+"px":"auto"==d?"auto":d+"px",b.wrapInner('<div style="width:'+c+";height:"+d+";overflow: "+("auto"==m.scrolling?"auto":"yes"==m.scrolling?"scroll":"hidden")+';position:relative;"></div>'),m.width=b.width(),m.height=b.height(),L()},K=function(){m.width=s.width,m.height=s.height,a("<img />").attr({id:"fancybox-img",src:s.src,alt:m.title}).appendTo(b),L()},L=function(){var f,r;return c.hide(),e.is(":visible")&&!1===p.onCleanup(q,o,p)?(a(".fancybox-inline-tmp").trigger("fancybox-cancel"),void(C=!1)):(C=!0,a(g.add(d)).off(),a(window).off("resize.fb scroll.fb"),a(document).off("keydown.fb"),e.is(":visible")&&"outside"!==p.titlePosition&&e.css("height",e.height()),q=n,o=l,p=m,p.overlayShow?(d.css({"background-color":p.overlayColor,opacity:p.overlayOpacity,cursor:p.hideOnOverlayClick?"pointer":"auto",height:a(document).height()}),d.is(":visible")||(E&&a("select:not(#fancybox-tmp select)").filter(function(){return"hidden"!==this.style.visibility}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"}),d.show())):d.hide(),B=T(),N(),e.is(":visible")?(a(h.add(j).add(k)).hide(),f=e.position(),A={top:f.top,left:f.left,width:e.width(),height:e.height()},r=A.width==B.width&&A.height==B.height,void g.fadeTo(p.changeFade,.3,function(){var c=function(){g.html(b.contents()).fadeTo(p.changeFade,1,P)};a(".fancybox-inline-tmp").trigger("fancybox-change"),g.empty().removeAttr("filter").css({"border-width":p.padding,width:B.width-2*p.padding,height:m.autoDimensions?"auto":B.height-y-2*p.padding}),r?c():(D.prop=0,a(D).animate({prop:1},{duration:p.changeSpeed,easing:p.easingChange,step:R,complete:c}))})):(e.removeAttr("style"),g.css("border-width",p.padding),"elastic"==p.transitionIn?(A=V(),g.html(b.contents()),e.show(),p.opacity&&(B.opacity=0),D.prop=0,void a(D).animate({prop:1},{duration:p.speedIn,easing:p.easingIn,step:R,complete:P})):("inside"==p.titlePosition&&y>0&&i.show(),g.css({width:B.width-2*p.padding,height:m.autoDimensions?"auto":B.height-y-2*p.padding}).html(b.contents()),void e.css(B).fadeIn("none"==p.transitionIn?0:p.speedIn,P))))},M=function(a){return!(!a||!a.length)&&("float"==p.titlePosition?'<table id="fancybox-title-float-wrap" style="border-spacing:0;border-collapse:collapse"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+a+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+p.titlePosition+'">'+a+"</div>")},N=function(){if(z=p.title||"",y=0,i.empty().removeAttr("style").removeClass(),!1===p.titleShow)return void i.hide();if(!(z=a.isFunction(p.titleFormat)?p.titleFormat(z,q,o,p):M(z))||""===z)return void i.hide();switch(i.addClass("fancybox-title-"+p.titlePosition).html(z).appendTo("body").show(),p.titlePosition){case"inside":i.css({width:B.width-2*p.padding,marginLeft:p.padding,marginRight:p.padding}),y=i.outerHeight(!0),i.appendTo(f),B.height+=y;break;case"over":i.css({marginLeft:p.padding,width:B.width-2*p.padding,bottom:p.padding}).appendTo(f);break;case"float":i.css("left",-1*parseInt((i.width()-B.width-40)/2,10)).appendTo(e);break;default:i.css({width:B.width-2*p.padding,paddingLeft:p.padding,paddingRight:p.padding}).appendTo(e)}i.hide()},O=function(){if((p.enableEscapeButton||p.enableKeyboardNav)&&a(document).on("keydown.fb",function(b){27==b.keyCode&&p.enableEscapeButton?(b.preventDefault(),a.fancybox.close()):37!=b.keyCode&&39!=b.keyCode||!p.enableKeyboardNav||"INPUT"===b.target.tagName||"TEXTAREA"===b.target.tagName||"SELECT"===b.target.tagName?9==b.keyCode&&p.enableKeyboardNav&&"INPUT"!==b.target.tagName&&"TEXTAREA"!==b.target.tagName&&"SELECT"!==b.target.tagName&&(b.preventDefault(),a.fancybox[b.shiftKey?"prev":"next"]()):(b.preventDefault(),a.fancybox[37==b.keyCode?"prev":"next"]())}),!p.showNavArrows)return j.hide(),void k.hide();(p.cyclic&&q.length>1||0!==o)&&j.show(),(p.cyclic&&q.length>1||o!=q.length-1)&&k.show()},P=function(){a.support.opacity||(g.css("filter",0),e.css("filter",0)),m.autoDimensions&&g.css("height","auto"),e.css("height","auto"),z&&z.length&&i.show(),p.showCloseButton&&h.show(),O(),p.hideOnContentClick&&g.on("click",a.fancybox.close),p.hideOnOverlayClick&&d.on("click",a.fancybox.close),p.autoResize&&a(window).on("resize.fb",a.fancybox.resize),p.centerOnScroll&&a(window).on("scroll.fb",a.fancybox.center),a.fn.mousewheel&&e.on("mousewheel.fb",function(b,c){C?b.preventDefault():"image"!=p.type||0!=a(b.target).outerHeight()&&a(b.target).prop("scrollHeight")!==a(b.target).outerHeight()||(b.preventDefault(),a.fancybox[c>0?"prev":"next"]())}),"iframe"==p.type&&a('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'"'+(navigator.userAgent.match(/msie [6]/i)?' allowtransparency="true""':"")+' style="border:0;margin:0;overflow:'+("auto"==m.scrolling?"auto":"yes"==m.scrolling?"scroll":"hidden")+'" src="'+p.href+'"'+(!1===p.allowfullscreen?"":" allowfullscreen")+' tabindex="999"></iframe>').appendTo(g).focus(),e.show(),C=!1,a.fancybox.center(),p.onComplete(q,o,p),Q()},Q=function(){var b,c;q.length-1>o&&void 0!==(b=q[o+1])&&void 0!==b.href&&(b.href.match(t)||a(b).hasClass("image"))&&(c=new Image,c.src=b.href),o>0&&void 0!==(b=q[o-1])&&void 0!==b.href&&(b.href.match(t)||a(b).hasClass("image"))&&(c=new Image,c.src=b.href)},R=function(a){var b={width:parseInt(A.width+(B.width-A.width)*a,10),height:parseInt(A.height+(B.height-A.height)*a,10),top:parseInt(A.top+(B.top-A.top)*a,10),left:parseInt(A.left+(B.left-A.left)*a,10)};void 0!==B.opacity&&(b.opacity=a<.5?.5:a),e.css(b),g.css({width:b.width-2*p.padding,height:b.height-y*a-2*p.padding})},S=function(){return[0==a(window).width()?window.innerWidth:a(window).width()-2*p.margin,0==a(window).height()?window.innerHeight:a(window).height()-2*p.margin,a(document).scrollLeft()+p.margin,a(document).scrollTop()+p.margin]},T=function(){var e,a=S(),b={},c=p.autoScale,d=2*p.padding;return p.width.toString().indexOf("%")>-1?b.width=parseInt(a[0]*parseFloat(p.width)/100,10):b.width=p.width+d,p.height.toString().indexOf("%")>-1?b.height=parseInt(a[1]*parseFloat(p.height)/100,10):b.height=p.height+d,c&&(b.width>a[0]||b.height>a[1])&&("image"==m.type||"svg"==m.type||"swf"==m.type?(e=p.width/p.height,b.width>a[0]&&(b.width=a[0],b.height=parseInt((b.width-d)/e+d,10)),b.height>a[1]&&(b.height=a[1],b.width=parseInt((b.height-d)*e+d,10))):(b.width=Math.min(b.width,a[0]),b.height=Math.min(b.height,a[1]))),b.top=parseInt(Math.max(a[3]-20,a[3]+.5*(a[1]-b.height-40)),10),b.left=parseInt(Math.max(a[2]-20,a[2]+.5*(a[0]-b.width-40)),10),b},U=function(a){var b=a.offset();return b.top+=parseInt(a.css("paddingTop"),10)||0,b.left+=parseInt(a.css("paddingLeft"),10)||0,b.top+=parseInt(a.css("border-top-width"),10)||0,b.left+=parseInt(a.css("border-left-width"),10)||0,b.width=a.width(),b.height=a.height(),b},V=function(){var d,e,b=!!m.orig&&a(m.orig),c={};return b&&b.length?(d=U(b),c={width:d.width+2*p.padding,height:d.height+2*p.padding,top:d.top-p.padding-20,left:d.left-p.padding-20}):(e=S(),c={width:2*p.padding,height:2*p.padding,top:parseInt(e[3]+.5*e[1],10),left:parseInt(e[2]+.5*e[0],10)}),c},W=function(){if(!c.is(":visible"))return void clearInterval(w);a("div",c).css("top",-40*x+"px"),x=(x+1)%12};a.fn.fancybox=function(b){return a(this).length?(a(this).data("fancybox",a.extend({},b,a.metadata?a(this).metadata():{})).off("click.fb").on("click.fb",function(b){if(b.preventDefault(),!C){C=!0,a(this).blur(),n=[],l=0;var c=a(this).attr("rel")||"";""==c||""==c.replace(/alternate|external|help|license|nofollow|noreferrer|noopener|\s+/gi,"")?n.push(this):(n=a('a[rel="'+c+'"], area[rel="'+c+'"]'),l=n.index(this)),I()}}),this):this},a.fancybox=function(b){var c;if(!C){if(C=!0,c=void 0!==arguments[1]?arguments[1]:{},n=[],l=parseInt(c.index,10)||0,a.isArray(b)){for(var d=0,e=b.length;d<e;d++)"object"==typeof b[d]?a(b[d]).data("fancybox",a.extend({},c,b[d])):b[d]=a({}).data("fancybox",a.extend({content:b[d]},c));n=jQuery.merge(n,b)}else"object"==typeof b?a(b).data("fancybox",a.extend({},c,b)):b=a({}).data("fancybox",a.extend({content:b},c)),n.push(b);(l>n.length||l<0)&&(l=0),I()}},a.fancybox.showActivity=function(){clearInterval(w),c.show(),w=setInterval(W,66)},a.fancybox.hideActivity=function(){c.hide()},a.fancybox.next=function(){return a.fancybox.pos(o+1)},a.fancybox.prev=function(){return a.fancybox.pos(o-1)},a.fancybox.pos=function(a){C||(a=parseInt(a),n=q,a>-1&&a<q.length?(l=a,I()):p.cyclic&&q.length>1&&(l=a>=q.length?0:q.length-1,I()))},a.fancybox.cancel=function(){C||(C=!0,a(".fancybox-inline-tmp").trigger("fancybox-cancel"),G(),m.onCancel(n,l,m),C=!1)},a.fancybox.close=function(){function b(){d.fadeOut("fast"),i.empty().hide(),e.hide(),a(".fancybox-inline-tmp").trigger("fancybox-cleanup"),g.empty(),p.onClosed(q,o,p),q=m=[],o=l=0,p=m={},C=!1}if(!C&&!e.is(":hidden")){if(C=!0,p&&!1===p.onCleanup(q,o,p))return void(C=!1);if(G(),a(h.add(j).add(k)).hide(),a(g.add(d)).off(),a(window).off("resize.fb scroll.fb mousewheel.fb"),a(document).off("keydown.fb"),g.find("iframe#fancybox-frame").attr("src",E&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank"),"inside"!==p.titlePosition&&i.empty(),e.stop(),"elastic"==p.transitionOut){A=V();var c=e.position();B={top:c.top,left:c.left,width:e.width(),height:e.height()},p.opacity&&(B.opacity=1),i.empty().hide(),D.prop=1,a(D).animate({prop:0},{duration:p.speedOut,easing:p.easingOut,step:R,complete:b})}else e.fadeOut("none"==p.transitionOut?0:p.speedOut,b)}},a.fancybox.resize=function(){d.is(":visible")&&d.css("height",a(document).height()),F||a.fancybox.center(!0)},a.fancybox.center=function(){var a,b;C||(b=!0===arguments[0]?1:0,a=S(),!b&&(e.width()>a[0]||e.height()>a[1])||e.stop().animate({top:parseInt(Math.max(a[3]-20,a[3]+.5*(a[1]-g.height()-40)-p.padding)),left:parseInt(Math.max(a[2]-20,a[2]+.5*(a[0]-g.width()-40)-p.padding))},"number"==typeof arguments[0]?arguments[0]:200))},a.fancybox.init=function(){a("#fancybox-wrap").length||(a("body").append(b=a('<div id="fancybox-tmp"></div>'),c=a('<div id="fancybox-loading"><div></div></div>'),d=a('<div id="fancybox-overlay"></div>'),e=a('<div id="fancybox-wrap"></div>')),f=a('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(e),f.append(g=a('<div id="fancybox-content"></div>'),h=a('<a id="fancybox-close"></a>'),i=a('<div id="fancybox-title"></div>'),j=a('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),k=a('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')),h.click(a.fancybox.close),c.click(a.fancybox.cancel),j.click(function(b){b.preventDefault(),a.fancybox.prev()}),k.click(function(b){b.preventDefault(),a.fancybox.next()}),a.support.opacity||e.addClass("fancybox-ie"),E&&(c.addClass("fancybox-ie6"),e.addClass("fancybox-ie6"),a('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" style="overflow:hidden;border:0" tabindex="-1"></iframe>').prependTo(f)))},a.fn.fancybox.defaults={padding:10,margin:40,opacity:!1,modal:!1,cyclic:!1,allowfullscreen:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!F,autoResize:!0,ajax:{},swf:{wmode:"opaque"},svg:{wmode:"opaque"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:.7,overlayColor:"#777",titleShow:!0,titlePosition:"float",titleFormat:null,titleFromAlt:!1,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}},a(document).ready(function(){a.fancybox.init()})}(jQuery);
 
inc/class-easyfancybox-admin.php CHANGED
@@ -62,11 +62,6 @@ class easyFancyBox_Admin extends easyFancyBox {
62
  _e('Please contact your web site administrator.','easy-fancybox');
63
  echo '</p>';
64
  }
65
-
66
- /* Black Friday deal notice */
67
- if ( !class_exists('easyFancyBox_Advanced') && strtotime('now') <= strtotime('27-11-2016') ) {
68
- echo '<p class="update-nag updating-message success"><strong>Black Friday deal: Easy FancyBox advanced options at 30% OFF now!</strong> Read more about <strong><a href="https://premium.status301.net/black-friday-til-cyber-monday-big-30-sale/" target="_blank">how to take advantage of this opportunity</a></strong> before it expires...</p>';
69
- }
70
  }
71
 
72
  // add our FancyBox Media Settings Fields
@@ -274,11 +269,11 @@ class easyFancyBox_Admin extends easyFancyBox {
274
  }
275
 
276
  /* Black Friday deal notice */
277
- if ( !class_exists('easyFancyBox_Advanced') && current_user_can( 'install_plugins' ) && !get_user_meta($current_user->ID, 'easy_fancybox_ignore_deal') && strtotime('now') <= strtotime('27-11-2016') ) {
278
- echo '<div class="update-nag updating-message success"><h3>Easy FancyBox advanced options at 30% OFF!</h3><p><strong>Black Friday to Cyber Monday deal: THE BIG 30 SALE at Status301.</strong> <em>Read more about <strong><a href="https://premium.status301.net/black-friday-til-cyber-monday-big-30-sale/" target="_blank">how to take advantage of this opportunity</a></strong> before it\'s too late</em>... ';
279
- printf(__('Or you can ignore and <a href="%1$s">hide this message</a>.','easy-fancybox'), '?easy_fancybox_ignore_deal=1');
280
- echo '</p></div>';
281
- }
282
  }
283
 
284
  /**********************
62
  _e('Please contact your web site administrator.','easy-fancybox');
63
  echo '</p>';
64
  }
 
 
 
 
 
65
  }
66
 
67
  // add our FancyBox Media Settings Fields
269
  }
270
 
271
  /* Black Friday deal notice */
272
+ //if ( !class_exists('easyFancyBox_Advanced') && current_user_can( 'install_plugins' ) && !get_user_meta($current_user->ID, 'easy_fancybox_ignore_deal_2017') && strtotime('now') => strtotime('24-11-2017') && strtotime('now') <= strtotime('27-11-2017') ) {
273
+ // echo '<div class="update-nag updating-message success"><h3>Easy FancyBox advanced options at 30% OFF!</h3><p><strong>Black Friday to Cyber Monday: THE BIG 30 SALE at Status301.</strong> <em>A whopping 30% discount but only for the first 30 customers so <strong><a href="https://premium.status301.net/black-friday-til-cyber-monday-big-30-sale/?discount=BFCM30" target="_blank">to take advantage of this opportunity</a></strong> before it\'s too late</em>... ';
274
+ // printf(__('Or you can ignore and <a href="%1$s">hide this message</a>.','easy-fancybox'), '?easy_fancybox_ignore_deal_2017=1');
275
+ // echo '</p></div>';
276
+ //}
277
  }
278
 
279
  /**********************
inc/class-easyfancybox-options.php CHANGED
@@ -6,7 +6,9 @@ class easyFancyBox_Options extends easyFancyBox {
6
 
7
  public static function load_defaults() {
8
 
9
- parent::$options = array (
 
 
10
 
11
  'Global' => array(
12
  'title' => __('Global settings','easy-fancybox'),
@@ -83,10 +85,10 @@ class easyFancyBox_Options extends easyFancyBox {
83
  'input' => 'checkbox',
84
  'hide' => true,
85
  'default' => '',
86
- 'description' => '<strong>' . __('iFrames','easy-fancybox') . '</strong>'
87
- )
88
  ),
89
- 'description' => '<a href="https://premium.status301.net/downloads/easy-fancybox-pro/"><strong><em>' . __('For advanced options and support, please get the Easy FancyBox - Pro extension.','easy-fancybox') . '</strong></a>'
90
  ),
91
  'Overlay' => array (
92
  'title' => __('Overlay','easy-fancybox'),
@@ -117,7 +119,7 @@ class easyFancyBox_Options extends easyFancyBox {
117
  'max' => '1',
118
  'class' => 'small-text',
119
  'default' => '',
120
- 'description' => __('Value between 0 and 1. ','easy-fancybox') . ' <em>' . __('Default:','easy-fancybox') . ' 0.7</em><br />'
121
  ),
122
  'overlayColor' => array (
123
  'id' => 'fancybox_overlayColor',
@@ -127,7 +129,7 @@ class easyFancyBox_Options extends easyFancyBox {
127
  'sanitize_callback' => 'colorval',
128
  'class' => 'small-text',
129
  'default' => '',
130
- 'description' => __('Enter an HTML color value.','easy-fancybox') . ' <em>' . __('Default:','easy-fancybox') . ' #777</em><br />'
131
  ),
132
  'overlaySpotlight' => array (
133
  'id' => 'fancybox_overlaySpotlight',
@@ -135,7 +137,7 @@ class easyFancyBox_Options extends easyFancyBox {
135
  'hide' => true,
136
  'status' => get_option('fancybox_overlaySpotlight') ? '' : 'disabled',
137
  'default' => '',
138
- 'description' => get_option('fancybox_overlaySpotlight') ? __('Spotlight effect','easy-fancybox') : __('Spotlight effect','easy-fancybox') . '. <em><a href="https://premium.status301.net/downloads/easy-fancybox-pro/">' . __('Make available &raquo;','easy-fancybox') . '</a></em>'
139
  )
140
  )
141
  ),
@@ -175,7 +177,7 @@ class easyFancyBox_Options extends easyFancyBox {
175
  'status' => 'disabled',
176
  'class' => 'small-text',
177
  'default' => '',
178
- 'description' => '<em><a href="https://premium.status301.net/downloads/easy-fancybox-pro/">' . __('Make available &raquo;','easy-fancybox') . '</a></em><br />'
179
  ),
180
  'titleColor' => array (
181
  'id' => 'fancybox_titleColor',
@@ -209,7 +211,7 @@ class easyFancyBox_Options extends easyFancyBox {
209
  'status' => 'disabled',
210
  'class' => 'small-text',
211
  'default' => '',
212
- 'description' => '<em><a href="https://premium.status301.net/downloads/easy-fancybox-pro/">' . __('Make available &raquo;','easy-fancybox') . '</a></em><br />'
213
  ),
214
 
215
  'p11' => array (
@@ -315,7 +317,7 @@ class easyFancyBox_Options extends easyFancyBox {
315
  )
316
  )
317
  ),
318
-
319
  'Miscellaneous' => array (
320
  'title' => __('Miscellaneous','easy-fancybox'),
321
  'input' => 'multiple',
@@ -336,7 +338,7 @@ class easyFancyBox_Options extends easyFancyBox {
336
  '1' => __('Link with ID "fancybox-auto"','easy-fancybox'),
337
  ),
338
  'default' => '1',
339
- 'description' => '<em><a href="https://premium.status301.net/downloads/easy-fancybox-pro/">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />'
340
  ),
341
  'delayClick' => array (
342
  'id' => 'fancybox_delayClick',
@@ -364,7 +366,7 @@ class easyFancyBox_Options extends easyFancyBox {
364
  '0' => translate('No')
365
  ),
366
  'translations' => __('1 Day','easy-fancybox') . __('1 Week','easy-fancybox') . __('1 Month','easy-fancybox') . __('1 Year','easy-fancybox'),
367
- 'description' => ' <em><a href="https://premium.status301.net/downloads/easy-fancybox-pro/">' . __('Make available &raquo;','easy-fancybox') . '</a></em>'
368
  ),
369
  'p1' => array (
370
  'hide' => true,
@@ -436,7 +438,7 @@ class easyFancyBox_Options extends easyFancyBox {
436
  'input' => 'checkbox',
437
  'status' => get_option('fancybox_metaData') ? '' : 'disabled',
438
  'default' => '',
439
- 'description' => get_option('fancybox_metaData') ? __('Include the Metadata jQuery extension script to allow passing custom parameters via link class.','easy-fancybox') : __('Include the Metadata jQuery extension script to allow passing custom parameters via link class.','easy-fancybox') . '. <em><a href="https://premium.status301.net/downloads/easy-fancybox-pro/">' . __('Make available &raquo;','easy-fancybox') . '</a></em>'
440
  )
441
  )
442
  )
@@ -466,7 +468,7 @@ class easyFancyBox_Options extends easyFancyBox {
466
  'input' => 'text',
467
  'class' => 'regular-text',
468
  'hide' => true,
469
- 'default' => '.jpg .jpeg .png',
470
  'selector' => 'href*=',
471
  'description' => ' <em>' . __('Example:','easy-fancybox') . ' .jpg .jpeg .png .gif</em><br />'
472
  ),
@@ -480,7 +482,7 @@ class easyFancyBox_Options extends easyFancyBox {
480
  '' => __('All image links', 'easy-fancybox')
481
  ),
482
  'default' => '',
483
- 'description' => '<em><a href="https://premium.status301.net/downloads/easy-fancybox-pro/">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />'
484
  ),
485
  'type' => array (
486
  'id' => 'fancybox_classType',
@@ -523,7 +525,7 @@ class easyFancyBox_Options extends easyFancyBox {
523
  'easeOutBack' => __('easeOutBack','easy-fancybox')
524
  ),
525
  'default' => 'easeOutBack',
526
- 'description' => ' <em><a href="https://premium.status301.net/downloads/easy-fancybox-pro/">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />'
527
  ),
528
  'transitionOut' => array (
529
  'id' => 'fancybox_transitionOut',
@@ -550,7 +552,7 @@ class easyFancyBox_Options extends easyFancyBox {
550
  'easeOutBack' => __('easeOutBack','easy-fancybox')
551
  ),
552
  'default' => 'easeInBack',
553
- 'description' => ' <em><a href="https://premium.status301.net/downloads/easy-fancybox-pro/">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />' . __('Note:','easy-fancybox') . ' ' . __('Easing effects only apply when Transition is set to Elastic. ','easy-fancybox') . '<br /><br />'
554
  ),
555
  'opacity' => array (
556
  'id' => 'fancybox_opacity',
@@ -607,7 +609,7 @@ class easyFancyBox_Options extends easyFancyBox {
607
  '' => __('Hide/show title on mouse hover action','easy-fancybox')
608
  ),
609
  'default' => '',
610
- 'description' => '<em><a href="https://premium.status301.net/downloads/easy-fancybox-pro/">' . __('Make available &raquo;','easy-fancybox') . '</a></em><br />'
611
  ),
612
  'p3' => array (
613
  'hide' => true,
@@ -625,7 +627,7 @@ class easyFancyBox_Options extends easyFancyBox {
625
  '2' => __('All in one gallery','easy-fancybox')
626
  ),
627
  'default' => '1',
628
- 'description' => '<em><a href="https://premium.status301.net/downloads/easy-fancybox-pro/">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />' . __('Note:','easy-fancybox') . ' ' . __('When disabled, you can use the rel attribute to manually group image links together.','easy-fancybox') . '<br /><br />'
629
  ),
630
  'showNavArrows' => array (
631
  'id' => 'fancybox_showNavArrows',
@@ -696,7 +698,7 @@ class easyFancyBox_Options extends easyFancyBox {
696
  '' => __('Slideshow','easy-fancybox')
697
  ),
698
  'default' => '',
699
- 'description' => '<em><a href="https://premium.status301.net/downloads/easy-fancybox-pro/">' . __('Make available &raquo;','easy-fancybox') . '</a></em>'
700
  ),
701
  /* 'titleFormat' => array (
702
  'id' => 'fancybox_titleFormat',
@@ -779,7 +781,7 @@ class easyFancyBox_Options extends easyFancyBox {
779
  'easeOutBack' => __('easeOutBack','easy-fancybox')
780
  ),
781
  'default' => 'easeOutBack',
782
- 'description' => ' <em><a href="https://premium.status301.net/downloads/easy-fancybox-pro/">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />'
783
  ),
784
  'transitionOut' => array (
785
  'id' => 'fancybox_transitionOutInline',
@@ -806,7 +808,7 @@ class easyFancyBox_Options extends easyFancyBox {
806
  'easeOutBack' => __('easeOutBack','easy-fancybox')
807
  ),
808
  'default' => 'easeInBack',
809
- 'description' => ' <em><a href="https://premium.status301.net/downloads/easy-fancybox-pro/">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />' . __('Note:','easy-fancybox') . ' ' . __('Easing effects only apply when Transition is set to Elastic. ','easy-fancybox') . '<br /><br />'
810
  ),
811
  'opacity' => array (
812
  'id' => 'fancybox_opacityInline',
@@ -827,7 +829,7 @@ class easyFancyBox_Options extends easyFancyBox {
827
 
828
  'PDF' => array(
829
  'title' => __('PDF','easy-fancybox'),
830
- 'input' => 'multiple',
831
  'options' => array(
832
  'intro' => array (
833
  'hide' => true,
@@ -858,8 +860,8 @@ class easyFancyBox_Options extends easyFancyBox {
858
  'html' => __('Object tag (plus fall-back link)','easy-fancybox'),
859
  'iframe' => __('iFrame tag (let browser decide)','easy-fancybox')
860
  ),
861
- 'default' => 'html',
862
- 'description' => ' <em><a href="https://premium.status301.net/downloads/easy-fancybox-pro/">' . __('More options &raquo;','easy-fancybox') . '</a></em><br/><br/>'
863
  ),
864
  'width' => array (
865
  'id' => 'fancybox_PDFwidth',
@@ -926,7 +928,7 @@ class easyFancyBox_Options extends easyFancyBox {
926
  'scrolling' => array (
927
  'default' => 'no',
928
  ),
929
- 'onStart' => array (
930
  'noquotes' => true,
931
  // 'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.content = \'<embed src="\' + selectedArray[selectedIndex].href + \'#toolbar=1&navpanes=0&nameddest=self&page=1&view=FitH,0&zoom=80,0,0" type="application/pdf" height="100%" width="100%" />\' }'
932
  'default' => get_option('fancybox_PDFclassType','html') == 'iframe' ? '' : 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.content = \'<object data="\' + selectedArray[selectedIndex].href + \'" type="application/pdf" height="100%" width="100%"><a href="\' + selectedArray[selectedIndex].href + \'" style="display:block;position:absolute;top:48%;width:100%;text-align:center">\' + jQuery(selectedArray[selectedIndex]).html() + \'</a></object>\' }'
@@ -959,8 +961,8 @@ class easyFancyBox_Options extends easyFancyBox {
959
  'hide' => true,
960
  'default' => 'fancybox-swf'
961
  ),
962
- 'type' => array(
963
- 'default' => 'swf'
964
  ),
965
  'width' => array (
966
  'id' => 'fancybox_SWFWidth',
@@ -1053,8 +1055,8 @@ class easyFancyBox_Options extends easyFancyBox {
1053
  'hide' => true,
1054
  'default' => 'fancybox-svg'
1055
  ),
1056
- 'type' => array(
1057
- 'default' => 'svg'
1058
  ),
1059
  'width' => array (
1060
  'id' => 'fancybox_SVGWidth',
@@ -1103,7 +1105,7 @@ class easyFancyBox_Options extends easyFancyBox {
1103
  'label_for' => 'fancybox_SVGtitlePosition',
1104
  'input' => 'select',
1105
  'options' => array(
1106
- 'float' => __('Float','easy-fancybox'),
1107
  'outside' => __('Outside','easy-fancybox'),
1108
  'inside' => __('Inside','easy-fancybox')
1109
  //,'over' => __('Overlay','easy-fancybox')
@@ -1126,7 +1128,7 @@ class easyFancyBox_Options extends easyFancyBox {
1126
 
1127
  'YouTube' => array(
1128
  'title' => __('YouTube','easy-fancybox'),
1129
- 'input' => 'multiple',
1130
  'options' => array(
1131
  'intro' => array (
1132
  'hide' => true,
@@ -1148,8 +1150,8 @@ class easyFancyBox_Options extends easyFancyBox {
1148
  'hide' => true,
1149
  'default' => 'fancybox-youtube'
1150
  ),
1151
- 'type' => array(
1152
- 'default' => 'iframe'
1153
  ),
1154
  'width' => array (
1155
  'id' => 'fancybox_YoutubeWidth',
@@ -1215,7 +1217,7 @@ class easyFancyBox_Options extends easyFancyBox {
1215
  'default' => '1',
1216
  'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
1217
  ),
1218
- 'onStart' => array (
1219
  'noquotes' => true,
1220
  'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.href = selectedArray[selectedIndex].href.replace(new RegExp(\'youtu.be\', \'i\'), \'www.youtube.com/embed\').replace(new RegExp(\'watch\\\?(.*)v=([a-z0-9\_\-]+)(&amp;|&|\\\?)?(.*)\', \'i\'), \'embed/$2?$1$4\'); var splitOn = selectedOpts.href.indexOf(\'?\'); var urlParms = ( splitOn > -1 ) ? selectedOpts.href.substring(splitOn) : ""; selectedOpts.allowfullscreen = ( urlParms.indexOf(\'fs=0\') > -1 ) ? false : true }'
1221
  )
@@ -1224,7 +1226,7 @@ class easyFancyBox_Options extends easyFancyBox {
1224
 
1225
  'Vimeo' => array(
1226
  'title' => __('Vimeo','easy-fancybox'),
1227
- 'input' => 'multiple',
1228
  'options' => array(
1229
  'intro' => array (
1230
  'hide' => true,
@@ -1246,8 +1248,8 @@ class easyFancyBox_Options extends easyFancyBox {
1246
  'hide' => true,
1247
  'default' => 'fancybox-vimeo'
1248
  ),
1249
- 'type' => array(
1250
- 'default' => 'iframe'
1251
  ),
1252
  'width' => array (
1253
  'id' => 'fancybox_VimeoWidth',
@@ -1313,7 +1315,7 @@ class easyFancyBox_Options extends easyFancyBox {
1313
  'default' => '1',
1314
  'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
1315
  ),
1316
- 'onStart' => array (
1317
  'noquotes' => true,
1318
  'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.href = selectedArray[selectedIndex].href.replace(new RegExp(\'//(www\\.)?vimeo\\.com/([0-9]+)(&|\\\?)?(.*)\', \'i\'), \'//player.vimeo.com/video/$2?$4\'); var splitOn = selectedOpts.href.indexOf(\'?\'); var urlParms = ( splitOn > -1 ) ? selectedOpts.href.substring(splitOn) : ""; selectedOpts.allowfullscreen = ( urlParms.indexOf(\'fullscreen=0\') > -1 ) ? false : true }'
1319
  )
@@ -1323,7 +1325,7 @@ class easyFancyBox_Options extends easyFancyBox {
1323
 
1324
  'Dailymotion' => array(
1325
  'title' => __('Dailymotion','easy-fancybox'),
1326
- 'input' => 'multiple',
1327
  'options' => array(
1328
  'intro' => array (
1329
  'hide' => true,
@@ -1345,8 +1347,8 @@ class easyFancyBox_Options extends easyFancyBox {
1345
  'hide' => true,
1346
  'default' => 'fancybox-dailymotion'
1347
  ),
1348
- 'type' => array(
1349
- 'default' => 'iframe'
1350
  ),
1351
  'width' => array (
1352
  'id' => 'fancybox_DailymotionWidth',
@@ -1412,13 +1414,13 @@ class easyFancyBox_Options extends easyFancyBox {
1412
  'default' => '1',
1413
  'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
1414
  ),
1415
- 'onStart' => array (
1416
  'noquotes' => true,
1417
  'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.href = selectedArray[selectedIndex].href.replace(new RegExp(\'/video/(.*)\', \'i\'), \'/embed/video/$1\'); var splitOn = selectedOpts.href.indexOf(\'?\'); var urlParms = ( splitOn > -1 ) ? selectedOpts.href.substring(splitOn) : ""; selectedOpts.allowfullscreen = ( urlParms.indexOf(\'fullscreen=0\') > -1 ) ? false : true }'
1418
  )
1419
  )
1420
  ),
1421
-
1422
  /* 'Tudou' => array(
1423
  'id' => 'fancybox_Tudou',
1424
  'title' => __('Tudou','easy-fancybox'),
@@ -1435,10 +1437,10 @@ class easyFancyBox_Options extends easyFancyBox {
1435
  'hide' => true,
1436
  'default' => '1',
1437
  'description' => __('Tudou links','easy-fancybox')
1438
- )
1439
- )
1440
  ),*/
1441
-
1442
  /* 'Animoto' => array(),
1443
 
1444
  Example ANIMOTO page link http://animoto.com/play/Kf9POzQMSOGWyu41gtOtsw should become
@@ -1448,7 +1450,7 @@ http://static.animoto.com/swf/w.swf?w=swf/vp1&f=Kf9POzQMSOGWyu41gtOtsw&i=m
1448
 
1449
  'iFrame' => array(
1450
  'title' => __('iFrames','easy-fancybox'),
1451
- 'input' => 'multiple',
1452
  'options' => array(
1453
  'intro' => array (
1454
  'hide' => true,
@@ -1465,8 +1467,8 @@ http://static.animoto.com/swf/w.swf?w=swf/vp1&f=Kf9POzQMSOGWyu41gtOtsw&i=m
1465
  'type' => array (
1466
  'default' => 'iframe'
1467
  ),
1468
- /*
1469
- * other than overflow:auto not supported on many browsers
1470
  'scrolling' => array (
1471
  'id' => 'fancybox_iFrameScrolling',
1472
  'title' => __('Scrolling','easy-fancybox'),
@@ -1548,9 +1550,6 @@ http://static.animoto.com/swf/w.swf?w=swf/vp1&f=Kf9POzQMSOGWyu41gtOtsw&i=m
1548
  )
1549
  )
1550
  )
1551
-
1552
  );
1553
-
1554
  }
1555
-
1556
  }
6
 
7
  public static function load_defaults() {
8
 
9
+ $url = "https://premium.status301.net/downloads/easy-fancybox-pro/";
10
+
11
+ parent::$options = array (
12
 
13
  'Global' => array(
14
  'title' => __('Global settings','easy-fancybox'),
85
  'input' => 'checkbox',
86
  'hide' => true,
87
  'default' => '',
88
+ 'description' => '<strong>' . __('iFrames','easy-fancybox') . '</strong>'
89
+ )
90
  ),
91
+ 'description' => '<a href="'.$url.'"><strong><em>' . __('For advanced options and support, please get the Easy FancyBox - Pro extension.','easy-fancybox') . '</strong></a>'
92
  ),
93
  'Overlay' => array (
94
  'title' => __('Overlay','easy-fancybox'),
119
  'max' => '1',
120
  'class' => 'small-text',
121
  'default' => '',
122
+ 'description' => __('Value between 0 and 1. ','easy-fancybox') . ' <em>' . __('Default:','easy-fancybox') . ' 0.7</em><br />'
123
  ),
124
  'overlayColor' => array (
125
  'id' => 'fancybox_overlayColor',
129
  'sanitize_callback' => 'colorval',
130
  'class' => 'small-text',
131
  'default' => '',
132
+ 'description' => __('Enter an HTML color value.','easy-fancybox') . ' <em>' . __('Default:','easy-fancybox') . ' #777</em><br />'
133
  ),
134
  'overlaySpotlight' => array (
135
  'id' => 'fancybox_overlaySpotlight',
137
  'hide' => true,
138
  'status' => get_option('fancybox_overlaySpotlight') ? '' : 'disabled',
139
  'default' => '',
140
+ 'description' => get_option('fancybox_overlaySpotlight') ? __('Spotlight effect','easy-fancybox') : __('Spotlight effect','easy-fancybox') . '. <em><a href="'.$url.'">' . __('Make available &raquo;','easy-fancybox') . '</a></em>'
141
  )
142
  )
143
  ),
177
  'status' => 'disabled',
178
  'class' => 'small-text',
179
  'default' => '',
180
+ 'description' => '<em><a href="'.$url.'">' . __('Make available &raquo;','easy-fancybox') . '</a></em><br />'
181
  ),
182
  'titleColor' => array (
183
  'id' => 'fancybox_titleColor',
211
  'status' => 'disabled',
212
  'class' => 'small-text',
213
  'default' => '',
214
+ 'description' => '<em><a href="'.$url.'">' . __('Make available &raquo;','easy-fancybox') . '</a></em><br />'
215
  ),
216
 
217
  'p11' => array (
317
  )
318
  )
319
  ),
320
+
321
  'Miscellaneous' => array (
322
  'title' => __('Miscellaneous','easy-fancybox'),
323
  'input' => 'multiple',
338
  '1' => __('Link with ID "fancybox-auto"','easy-fancybox'),
339
  ),
340
  'default' => '1',
341
+ 'description' => '<em><a href="'.$url.'">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />'
342
  ),
343
  'delayClick' => array (
344
  'id' => 'fancybox_delayClick',
366
  '0' => translate('No')
367
  ),
368
  'translations' => __('1 Day','easy-fancybox') . __('1 Week','easy-fancybox') . __('1 Month','easy-fancybox') . __('1 Year','easy-fancybox'),
369
+ 'description' => ' <em><a href="'.$url.'">' . __('Make available &raquo;','easy-fancybox') . '</a></em>'
370
  ),
371
  'p1' => array (
372
  'hide' => true,
438
  'input' => 'checkbox',
439
  'status' => get_option('fancybox_metaData') ? '' : 'disabled',
440
  'default' => '',
441
+ 'description' => get_option('fancybox_metaData') ? __('Include the Metadata jQuery extension script to allow passing custom parameters via link class.','easy-fancybox') : __('Include the Metadata jQuery extension script to allow passing custom parameters via link class.','easy-fancybox') . '. <em><a href="'.$url.'">' . __('Make available &raquo;','easy-fancybox') . '</a></em>'
442
  )
443
  )
444
  )
468
  'input' => 'text',
469
  'class' => 'regular-text',
470
  'hide' => true,
471
+ 'default' => '.jpg .jpeg .png .webp',
472
  'selector' => 'href*=',
473
  'description' => ' <em>' . __('Example:','easy-fancybox') . ' .jpg .jpeg .png .gif</em><br />'
474
  ),
482
  '' => __('All image links', 'easy-fancybox')
483
  ),
484
  'default' => '',
485
+ 'description' => '<em><a href="'.$url.'">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />'
486
  ),
487
  'type' => array (
488
  'id' => 'fancybox_classType',
525
  'easeOutBack' => __('easeOutBack','easy-fancybox')
526
  ),
527
  'default' => 'easeOutBack',
528
+ 'description' => ' <em><a href="'.$url.'">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />'
529
  ),
530
  'transitionOut' => array (
531
  'id' => 'fancybox_transitionOut',
552
  'easeOutBack' => __('easeOutBack','easy-fancybox')
553
  ),
554
  'default' => 'easeInBack',
555
+ 'description' => ' <em><a href="'.$url.'">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />' . __('Note:','easy-fancybox') . ' ' . __('Easing effects only apply when Transition is set to Elastic. ','easy-fancybox') . '<br /><br />'
556
  ),
557
  'opacity' => array (
558
  'id' => 'fancybox_opacity',
609
  '' => __('Hide/show title on mouse hover action','easy-fancybox')
610
  ),
611
  'default' => '',
612
+ 'description' => '<em><a href="'.$url.'">' . __('Make available &raquo;','easy-fancybox') . '</a></em><br />'
613
  ),
614
  'p3' => array (
615
  'hide' => true,
627
  '2' => __('All in one gallery','easy-fancybox')
628
  ),
629
  'default' => '1',
630
+ 'description' => '<em><a href="'.$url.'">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />' . __('Note:','easy-fancybox') . ' ' . __('When disabled, you can use the rel attribute to manually group image links together.','easy-fancybox') . '<br /><br />'
631
  ),
632
  'showNavArrows' => array (
633
  'id' => 'fancybox_showNavArrows',
698
  '' => __('Slideshow','easy-fancybox')
699
  ),
700
  'default' => '',
701
+ 'description' => '<em><a href="'.$url.'">' . __('Make available &raquo;','easy-fancybox') . '</a></em>'
702
  ),
703
  /* 'titleFormat' => array (
704
  'id' => 'fancybox_titleFormat',
781
  'easeOutBack' => __('easeOutBack','easy-fancybox')
782
  ),
783
  'default' => 'easeOutBack',
784
+ 'description' => ' <em><a href="'.$url.'">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />'
785
  ),
786
  'transitionOut' => array (
787
  'id' => 'fancybox_transitionOutInline',
808
  'easeOutBack' => __('easeOutBack','easy-fancybox')
809
  ),
810
  'default' => 'easeInBack',
811
+ 'description' => ' <em><a href="'.$url.'">' . __('More options &raquo;','easy-fancybox') . '</a></em><br />' . __('Note:','easy-fancybox') . ' ' . __('Easing effects only apply when Transition is set to Elastic. ','easy-fancybox') . '<br /><br />'
812
  ),
813
  'opacity' => array (
814
  'id' => 'fancybox_opacityInline',
829
 
830
  'PDF' => array(
831
  'title' => __('PDF','easy-fancybox'),
832
+ 'input' => 'multiple',
833
  'options' => array(
834
  'intro' => array (
835
  'hide' => true,
860
  'html' => __('Object tag (plus fall-back link)','easy-fancybox'),
861
  'iframe' => __('iFrame tag (let browser decide)','easy-fancybox')
862
  ),
863
+ 'default' => 'iframe',
864
+ 'description' => ' <em><a href="'.$url.'">' . __('More options &raquo;','easy-fancybox') . '</a></em><br/><br/>'
865
  ),
866
  'width' => array (
867
  'id' => 'fancybox_PDFwidth',
928
  'scrolling' => array (
929
  'default' => 'no',
930
  ),
931
+ 'onStart' => array (
932
  'noquotes' => true,
933
  // 'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.content = \'<embed src="\' + selectedArray[selectedIndex].href + \'#toolbar=1&navpanes=0&nameddest=self&page=1&view=FitH,0&zoom=80,0,0" type="application/pdf" height="100%" width="100%" />\' }'
934
  'default' => get_option('fancybox_PDFclassType','html') == 'iframe' ? '' : 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.content = \'<object data="\' + selectedArray[selectedIndex].href + \'" type="application/pdf" height="100%" width="100%"><a href="\' + selectedArray[selectedIndex].href + \'" style="display:block;position:absolute;top:48%;width:100%;text-align:center">\' + jQuery(selectedArray[selectedIndex]).html() + \'</a></object>\' }'
961
  'hide' => true,
962
  'default' => 'fancybox-swf'
963
  ),
964
+ 'type' => array(
965
+ 'default' => 'swf'
966
  ),
967
  'width' => array (
968
  'id' => 'fancybox_SWFWidth',
1055
  'hide' => true,
1056
  'default' => 'fancybox-svg'
1057
  ),
1058
+ 'type' => array(
1059
+ 'default' => 'svg'
1060
  ),
1061
  'width' => array (
1062
  'id' => 'fancybox_SVGWidth',
1105
  'label_for' => 'fancybox_SVGtitlePosition',
1106
  'input' => 'select',
1107
  'options' => array(
1108
+ 'float' => __('Float','easy-fancybox'),
1109
  'outside' => __('Outside','easy-fancybox'),
1110
  'inside' => __('Inside','easy-fancybox')
1111
  //,'over' => __('Overlay','easy-fancybox')
1128
 
1129
  'YouTube' => array(
1130
  'title' => __('YouTube','easy-fancybox'),
1131
+ 'input' => 'multiple',
1132
  'options' => array(
1133
  'intro' => array (
1134
  'hide' => true,
1150
  'hide' => true,
1151
  'default' => 'fancybox-youtube'
1152
  ),
1153
+ 'type' => array(
1154
+ 'default' => 'iframe'
1155
  ),
1156
  'width' => array (
1157
  'id' => 'fancybox_YoutubeWidth',
1217
  'default' => '1',
1218
  'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
1219
  ),
1220
+ 'onStart' => array (
1221
  'noquotes' => true,
1222
  'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.href = selectedArray[selectedIndex].href.replace(new RegExp(\'youtu.be\', \'i\'), \'www.youtube.com/embed\').replace(new RegExp(\'watch\\\?(.*)v=([a-z0-9\_\-]+)(&amp;|&|\\\?)?(.*)\', \'i\'), \'embed/$2?$1$4\'); var splitOn = selectedOpts.href.indexOf(\'?\'); var urlParms = ( splitOn > -1 ) ? selectedOpts.href.substring(splitOn) : ""; selectedOpts.allowfullscreen = ( urlParms.indexOf(\'fs=0\') > -1 ) ? false : true }'
1223
  )
1226
 
1227
  'Vimeo' => array(
1228
  'title' => __('Vimeo','easy-fancybox'),
1229
+ 'input' => 'multiple',
1230
  'options' => array(
1231
  'intro' => array (
1232
  'hide' => true,
1248
  'hide' => true,
1249
  'default' => 'fancybox-vimeo'
1250
  ),
1251
+ 'type' => array(
1252
+ 'default' => 'iframe'
1253
  ),
1254
  'width' => array (
1255
  'id' => 'fancybox_VimeoWidth',
1315
  'default' => '1',
1316
  'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
1317
  ),
1318
+ 'onStart' => array (
1319
  'noquotes' => true,
1320
  'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.href = selectedArray[selectedIndex].href.replace(new RegExp(\'//(www\\.)?vimeo\\.com/([0-9]+)(&|\\\?)?(.*)\', \'i\'), \'//player.vimeo.com/video/$2?$4\'); var splitOn = selectedOpts.href.indexOf(\'?\'); var urlParms = ( splitOn > -1 ) ? selectedOpts.href.substring(splitOn) : ""; selectedOpts.allowfullscreen = ( urlParms.indexOf(\'fullscreen=0\') > -1 ) ? false : true }'
1321
  )
1325
 
1326
  'Dailymotion' => array(
1327
  'title' => __('Dailymotion','easy-fancybox'),
1328
+ 'input' => 'multiple',
1329
  'options' => array(
1330
  'intro' => array (
1331
  'hide' => true,
1347
  'hide' => true,
1348
  'default' => 'fancybox-dailymotion'
1349
  ),
1350
+ 'type' => array(
1351
+ 'default' => 'iframe'
1352
  ),
1353
  'width' => array (
1354
  'id' => 'fancybox_DailymotionWidth',
1414
  'default' => '1',
1415
  'description' => __('Allow title from thumbnail alt tag','easy-fancybox')
1416
  ),
1417
+ 'onStart' => array (
1418
  'noquotes' => true,
1419
  'default' => 'function(selectedArray, selectedIndex, selectedOpts) { selectedOpts.href = selectedArray[selectedIndex].href.replace(new RegExp(\'/video/(.*)\', \'i\'), \'/embed/video/$1\'); var splitOn = selectedOpts.href.indexOf(\'?\'); var urlParms = ( splitOn > -1 ) ? selectedOpts.href.substring(splitOn) : ""; selectedOpts.allowfullscreen = ( urlParms.indexOf(\'fullscreen=0\') > -1 ) ? false : true }'
1420
  )
1421
  )
1422
  ),
1423
+
1424
  /* 'Tudou' => array(
1425
  'id' => 'fancybox_Tudou',
1426
  'title' => __('Tudou','easy-fancybox'),
1437
  'hide' => true,
1438
  'default' => '1',
1439
  'description' => __('Tudou links','easy-fancybox')
1440
+ )
1441
+ )
1442
  ),*/
1443
+
1444
  /* 'Animoto' => array(),
1445
 
1446
  Example ANIMOTO page link http://animoto.com/play/Kf9POzQMSOGWyu41gtOtsw should become
1450
 
1451
  'iFrame' => array(
1452
  'title' => __('iFrames','easy-fancybox'),
1453
+ 'input' => 'multiple',
1454
  'options' => array(
1455
  'intro' => array (
1456
  'hide' => true,
1467
  'type' => array (
1468
  'default' => 'iframe'
1469
  ),
1470
+ /*
1471
+ * other than overflow:auto not supported on many browsers
1472
  'scrolling' => array (
1473
  'id' => 'fancybox_iFrameScrolling',
1474
  'title' => __('Scrolling','easy-fancybox'),
1550
  )
1551
  )
1552
  )
 
1553
  );
 
1554
  }
 
1555
  }
readme.txt CHANGED
@@ -1,18 +1,18 @@
1
  === Easy FancyBox ===
2
  Contributors: RavanH
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%40gmail%2ecom&item_name=Easy%20FancyBox
4
- Tags: fancybox, lightbox, gallery, image, photo, video, flash, overlay, youtube, vimeo, dailymotion, pdf, svg, iframe, swf, jquery
5
  Requires at least: 3.3
6
  Tested up to: 4.7
7
- Stable tag: 1.5.8.1
8
 
9
  Easily enable the FancyBox jQuery extension on just about all media links. Multi-Site compatible. Supports iFrame and Flash movies.
10
 
11
  == Description ==
12
 
13
- Easy FancyBox plugin for WordPress websites gives you a flexible and aesthetic lightbox solution for just about all media links on your website. Easy FancyBox uses the packed FancyBox jQuery extension and is WP 3+ Multi-Site compatible. After activation you can find a new section **FancyBox** on your **Settings > Media** admin page where you can manage the plugins options.
14
 
15
- After activation, all links to **JPG, GIF and PNG images** are automatically opened in the [FancyBox](http://fancybox.net/) Mac-style lightbox that floats over the web page. Most options available can be managed with this plugin along with some extra features.
16
 
17
  **Also supports:**
18
 
@@ -417,7 +417,7 @@ Yes. Designed to work with **Network Activate** and does not require manual acti
417
  - Both the **uBillBoard** and **Camera slideshow** have their own easing script hard-coded which conflicts with the one in Easy FancyBox. The only way around the conflict is to set both the Easing In and Easing Out options on your Settings > Media page to **Swing**.
418
  - **Wordpress Firewall 2** blocks access to image files needed for porper display of the FancyBox overlay in older IE and other non-css3 browsers.
419
  - **WordPress Amazon Associate**: A script provided by Amazon and the FancyBox script are incompatible. Disabling _Product Preview_ in the **WP - Amazon > Settings** page should work around the issue.
420
- - **WP Slimstat** plugin interferes with the Easy FancyBox script for YouTube url conversion. When clicking a Youtube link, the movie opens in an overlay as it is supposed to but immediately after that, the complete page gets redirected to the original YouTube page. Adding a `class="noslimstat"` to the link is reported to work around the issue.
421
  - When using **WP-Minify**, the javascript files like `fancybox/jquery.fancybox-X.X.X.pack.js` and others need to be excluded from minification.
422
  - When using **W3 Total Cache**, minification needs to be switched off. You can try to run **WP-Minify** alongside W3TC to be able to exclude fancybox files (as suggested above) ans still have page speed benefit from minification.
423
  - **WP Supersized** uses the Animate Enhanced jQuery extension which causes a conflict with the Easing extension used by FancyBox resulting in a 0px sized lightbox frame and/or some kind of positioning issue with auto-centering.
@@ -493,17 +493,16 @@ If you still do not get to see your images in FancyBox, ask on the [Easy FancyBo
493
 
494
  == Upgrade Notice ==
495
 
496
- = 1.5.8.2 =
497
- New features: auto-popup delay, margin, nolightbox... Bugfixes and PHP7 compatibility
498
 
499
  == Changelog ==
500
 
501
- TODO PRO: optional remove scripts on certain pages
502
- TODO: optional disable for small sceen sizes
503
- TODO: move all script to footer and make that optional too for theme compat
504
- TODO: make jQuery inclusion optional
505
- TODO: make jQuery 1.6- compat optional
506
- TODO: fix "fancybox iframe" being forced to "fancybox image iframe" when Inline Content is activated
507
 
508
  = 1.5.8.2 =
509
  * BUGFIX: use dirname(__FILE__) instead of relying on __DIR__ to be available
1
  === Easy FancyBox ===
2
  Contributors: RavanH
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravanhagen%40gmail%2ecom&item_name=Easy%20FancyBox
4
+ Tags: fancybox, lightbox, gallery, image, photo, video, flash, overlay, youtube, vimeo, dailymotion, pdf, svg, iframe, swf, jquery, webp
5
  Requires at least: 3.3
6
  Tested up to: 4.7
7
+ Stable tag: 1.6
8
 
9
  Easily enable the FancyBox jQuery extension on just about all media links. Multi-Site compatible. Supports iFrame and Flash movies.
10
 
11
  == Description ==
12
 
13
+ Easy FancyBox plugin for WordPress websites gives you a flexible and aesthetic light box solution for just about all media links on your website. Easy FancyBox uses the packed FancyBox jQuery extension and is WP 3+ Multi-Site compatible. After activation you can find a new section **FancyBox** on your **Settings > Media** admin page where you can manage the plugins options.
14
 
15
+ After activation, all links to **JPG, GIF and PNG images** are automatically opened in the [FancyBox](http://fancybox.net/) Mac/Gnome-style lightbox that floats over the web page. Most options available can be managed with this plugin along with some extra features.
16
 
17
  **Also supports:**
18
 
417
  - Both the **uBillBoard** and **Camera slideshow** have their own easing script hard-coded which conflicts with the one in Easy FancyBox. The only way around the conflict is to set both the Easing In and Easing Out options on your Settings > Media page to **Swing**.
418
  - **Wordpress Firewall 2** blocks access to image files needed for porper display of the FancyBox overlay in older IE and other non-css3 browsers.
419
  - **WordPress Amazon Associate**: A script provided by Amazon and the FancyBox script are incompatible. Disabling _Product Preview_ in the **WP - Amazon > Settings** page should work around the issue.
420
+ - **WP Slimstat** with Track Outbound Clicks enabled, will break the light box effect on some browsers. Adding `fancybox` (or any of the other classes like `fancybox-youtube,fancybox-iframe,fancybox-inline` depending on which media should be displayed in FancyBox) to the Do Not Track field is reported to solve the issue. Slimstat also might interfere with the YouTube url conversion. When clicking a Youtube link, the movie opens in an overlay as it is supposed to but immediately after that, the complete page gets redirected to the original YouTube page. Adding a `class="noslimstat"` to the link is reported to work around the issue.
421
  - When using **WP-Minify**, the javascript files like `fancybox/jquery.fancybox-X.X.X.pack.js` and others need to be excluded from minification.
422
  - When using **W3 Total Cache**, minification needs to be switched off. You can try to run **WP-Minify** alongside W3TC to be able to exclude fancybox files (as suggested above) ans still have page speed benefit from minification.
423
  - **WP Supersized** uses the Animate Enhanced jQuery extension which causes a conflict with the Easing extension used by FancyBox resulting in a 0px sized lightbox frame and/or some kind of positioning issue with auto-centering.
493
 
494
  == Upgrade Notice ==
495
 
496
+ = 1.6 =
497
+ Webp images autodetected by default. Some common rel tags excluded from autogallery. FIX: image preload.
498
 
499
  == Changelog ==
500
 
501
+ = 1.6 =
502
+ * Add webp to default Autodetect image types
503
+ * Exclude more rel attribute values from galleries
504
+ * BUGFIX: gallery preload
505
+ * Update jquery.easing.js and jquery.mousewheel.js
 
506
 
507
  = 1.5.8.2 =
508
  * BUGFIX: use dirname(__FILE__) instead of relying on __DIR__ to be available