Easy FancyBox - Version 1.6

Version Description

  • Add webp to default Autodetect image types
  • Exclude more rel attribute values from galleries
  • BUGFIX: gallery preload
  • Update jquery.easing.js and jquery.mousewheel.js
Download this release

Release Info

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

Code changes from version 1.5.8.3 to 1.6

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.3
9
  Author: RavanH
10
  Author URI: http://status301.net/
11
  */
@@ -37,10 +37,10 @@ if ( ! defined( 'ABSPATH' ) ) exit;
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' );
44
  define( 'METADATA_VERSION', '2.22.1' );
45
 
46
  /**************
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.6
9
  Author: RavanH
10
  Author URI: http://status301.net/
11
  */
37
  * CONSTANTS
38
  **************/
39
 
40
+ define( 'EASY_FANCYBOX_VERSION', '1.6' );
41
  define( 'FANCYBOX_VERSION', '1.3.8' );
42
+ define( 'MOUSEWHEEL_VERSION', '3.1.13' );
43
+ define( 'EASING_VERSION', '1.4.0' );
44
  define( 'METADATA_VERSION', '2.22.1' );
45
 
46
  /**************
js/jquery.easing.js CHANGED
@@ -1,143 +1,166 @@
1
  /*
2
- * jQuery Easing v1.3.2 - http://gsgd.co.uk/sandbox/jquery/easing/
3
  * Open source under the BSD License.
4
- * Copyright 2008 George McGinley Smith
5
  * All rights reserved.
6
  * https://raw.github.com/gdsmith/jquery-easing/master/LICENSE
7
  */
8
 
9
- // t: current time, b: begInnIng value, c: change In value, d: duration
10
- (function($){$.easing['jswing'] = $.easing['swing'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
  $.extend( $.easing,
13
  {
14
  def: 'easeOutQuad',
15
- swing: function (x, t, b, c, d) {
16
- //alert($.easing.default);
17
- return $.easing[$.easing.def](x, t, b, c, d);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  },
19
- easeInQuad: function (x, t, b, c, d) {
20
- return c*(t/=d)*t + b;
21
  },
22
- easeOutQuad: function (x, t, b, c, d) {
23
- return -c *(t/=d)*(t-2) + b;
 
 
24
  },
25
- easeInOutQuad: function (x, t, b, c, d) {
26
- if ((t/=d/2) < 1) return c/2*t*t + b;
27
- return -c/2 * ((--t)*(t-2) - 1) + b;
28
  },
29
- easeInCubic: function (x, t, b, c, d) {
30
- return c*(t/=d)*t*t + b;
31
  },
32
- easeOutCubic: function (x, t, b, c, d) {
33
- return c*((t=t/d-1)*t*t + 1) + b;
34
- },
35
- easeInOutCubic: function (x, t, b, c, d) {
36
- if ((t/=d/2) < 1) return c/2*t*t*t + b;
37
- return c/2*((t-=2)*t*t + 2) + b;
38
- },
39
- easeInQuart: function (x, t, b, c, d) {
40
- return c*(t/=d)*t*t*t + b;
41
- },
42
- easeOutQuart: function (x, t, b, c, d) {
43
- return -c * ((t=t/d-1)*t*t*t - 1) + b;
44
- },
45
- easeInOutQuart: function (x, t, b, c, d) {
46
- if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
47
- return -c/2 * ((t-=2)*t*t*t - 2) + b;
48
- },
49
- easeInQuint: function (x, t, b, c, d) {
50
- return c*(t/=d)*t*t*t*t + b;
51
- },
52
- easeOutQuint: function (x, t, b, c, d) {
53
- return c*((t=t/d-1)*t*t*t*t + 1) + b;
54
- },
55
- easeInOutQuint: function (x, t, b, c, d) {
56
- if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
57
- return c/2*((t-=2)*t*t*t*t + 2) + b;
58
- },
59
- easeInSine: function (x, t, b, c, d) {
60
- return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
61
- },
62
- easeOutSine: function (x, t, b, c, d) {
63
- return c * Math.sin(t/d * (Math.PI/2)) + b;
64
- },
65
- easeInOutSine: function (x, t, b, c, d) {
66
- return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
67
- },
68
- easeInExpo: function (x, t, b, c, d) {
69
- return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
70
- },
71
- easeOutExpo: function (x, t, b, c, d) {
72
- return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
73
- },
74
- easeInOutExpo: function (x, t, b, c, d) {
75
- if (t==0) return b;
76
- if (t==d) return b+c;
77
- if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
78
- return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
79
- },
80
- easeInCirc: function (x, t, b, c, d) {
81
- return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
82
- },
83
- easeOutCirc: function (x, t, b, c, d) {
84
- return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
85
- },
86
- easeInOutCirc: function (x, t, b, c, d) {
87
- if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
88
- return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
89
- },
90
- easeInElastic: function (x, t, b, c, d) {
91
- var s=1.70158;var p=0;var a=c;
92
- if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
93
- if (a < Math.abs(c)) { a=c; var s=p/4; }
94
- else var s = p/(2*Math.PI) * Math.asin (c/a);
95
- return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
96
- },
97
- easeOutElastic: function (x, t, b, c, d) {
98
- var s=1.70158;var p=0;var a=c;
99
- if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
100
- if (a < Math.abs(c)) { a=c; var s=p/4; }
101
- else var s = p/(2*Math.PI) * Math.asin (c/a);
102
- return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
103
- },
104
- easeInOutElastic: function (x, t, b, c, d) {
105
- var s=1.70158;var p=0;var a=c;
106
- if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
107
- if (a < Math.abs(c)) { a=c; var s=p/4; }
108
- else var s = p/(2*Math.PI) * Math.asin (c/a);
109
- if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
110
- return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
111
- },
112
- easeInBack: function (x, t, b, c, d, s) {
113
- if (s == undefined) s = 1.70158;
114
- return c*(t/=d)*t*((s+1)*t - s) + b;
115
- },
116
- easeOutBack: function (x, t, b, c, d, s) {
117
- if (s == undefined) s = 1.70158;
118
- return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
119
- },
120
- easeInOutBack: function (x, t, b, c, d, s) {
121
- if (s == undefined) s = 1.70158;
122
- if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
123
- return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
124
- },
125
- easeInBounce: function (x, t, b, c, d) {
126
- return c - $.easing.easeOutBounce (x, d-t, 0, c, d) + b;
127
- },
128
- easeOutBounce: function (x, t, b, c, d) {
129
- if ((t/=d) < (1/2.75)) {
130
- return c*(7.5625*t*t) + b;
131
- } else if (t < (2/2.75)) {
132
- return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
133
- } else if (t < (2.5/2.75)) {
134
- return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
135
- } else {
136
- return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
137
- }
138
- },
139
- easeInOutBounce: function (x, t, b, c, d) {
140
- if (t < d/2) return $.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
141
- return $.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
142
  }
143
- });})(jQuery);
 
 
1
  /*
2
+ * jQuery Easing v1.4.0 - http://gsgd.co.uk/sandbox/jquery/easing/
3
  * Open source under the BSD License.
4
+ * Copyright © 2008 George McGinley Smith
5
  * All rights reserved.
6
  * https://raw.github.com/gdsmith/jquery-easing/master/LICENSE
7
  */
8
 
9
+ (function (factory) {
10
+ if (typeof define === "function" && define.amd) {
11
+ define(['jquery'], function ($) {
12
+ return factory($);
13
+ });
14
+ } else if (typeof module === "object" && typeof module.exports === "object") {
15
+ exports = factory(require('jquery'));
16
+ } else {
17
+ factory(jQuery);
18
+ }
19
+ })(function($){
20
+
21
+ // Preserve the original jQuery "swing" easing as "jswing"
22
+ $.easing['jswing'] = $.easing['swing'];
23
+
24
+ var pow = Math.pow,
25
+ sqrt = Math.sqrt,
26
+ sin = Math.sin,
27
+ cos = Math.cos,
28
+ PI = Math.PI,
29
+ c1 = 1.70158,
30
+ c2 = c1 * 1.525,
31
+ c3 = c1 + 1,
32
+ c4 = ( 2 * PI ) / 3,
33
+ c5 = ( 2 * PI ) / 4.5;
34
+
35
+ // x is the fraction of animation progress, in the range 0..1
36
+ function bounceOut(x) {
37
+ var n1 = 7.5625,
38
+ d1 = 2.75;
39
+ if ( x < 1/d1 ) {
40
+ return n1*x*x;
41
+ } else if ( x < 2/d1 ) {
42
+ return n1*(x-=(1.5/d1))*x + .75;
43
+ } else if ( x < 2.5/d1 ) {
44
+ return n1*(x-=(2.25/d1))*x + .9375;
45
+ } else {
46
+ return n1*(x-=(2.625/d1))*x + .984375;
47
+ }
48
+ }
49
 
50
  $.extend( $.easing,
51
  {
52
  def: 'easeOutQuad',
53
+ swing: function (x) {
54
+ return $.easing[$.easing.def](x);
55
+ },
56
+ easeInQuad: function (x) {
57
+ return x * x;
58
+ },
59
+ easeOutQuad: function (x) {
60
+ return 1 - ( 1 - x ) * ( 1 - x );
61
+ },
62
+ easeInOutQuad: function (x) {
63
+ return x < 0.5 ?
64
+ 2 * x * x :
65
+ 1 - pow( -2 * x + 2, 2 ) / 2;
66
+ },
67
+ easeInCubic: function (x) {
68
+ return x * x * x;
69
+ },
70
+ easeOutCubic: function (x) {
71
+ return 1 - pow( 1 - x, 3 );
72
+ },
73
+ easeInOutCubic: function (x) {
74
+ return x < 0.5 ?
75
+ 4 * x * x * x :
76
+ 1 - pow( -2 * x + 2, 3 ) / 2;
77
+ },
78
+ easeInQuart: function (x) {
79
+ return x * x * x * x;
80
+ },
81
+ easeOutQuart: function (x) {
82
+ return 1 - pow( 1 - x, 4 );
83
+ },
84
+ easeInOutQuart: function (x) {
85
+ return x < 0.5 ?
86
+ 8 * x * x * x * x :
87
+ 1 - pow( -2 * x + 2, 4 ) / 2;
88
+ },
89
+ easeInQuint: function (x) {
90
+ return x * x * x * x * x;
91
  },
92
+ easeOutQuint: function (x) {
93
+ return 1 - pow( 1 - x, 5 );
94
  },
95
+ easeInOutQuint: function (x) {
96
+ return x < 0.5 ?
97
+ 16 * x * x * x * x * x :
98
+ 1 - pow( -2 * x + 2, 5 ) / 2;
99
  },
100
+ easeInSine: function (x) {
101
+ return 1 - cos( x * PI/2 );
 
102
  },
103
+ easeOutSine: function (x) {
104
+ return sin( x * PI/2 );
105
  },
106
+ easeInOutSine: function (x) {
107
+ return -( cos( PI * x ) - 1 ) / 2;
108
+ },
109
+ easeInExpo: function (x) {
110
+ return x === 0 ? 0 : pow( 2, 10 * x - 10 );
111
+ },
112
+ easeOutExpo: function (x) {
113
+ return x === 1 ? 1 : 1 - pow( 2, -10 * x );
114
+ },
115
+ easeInOutExpo: function (x) {
116
+ return x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ?
117
+ pow( 2, 20 * x - 10 ) / 2 :
118
+ ( 2 - pow( 2, -20 * x + 10 ) ) / 2;
119
+ },
120
+ easeInCirc: function (x) {
121
+ return 1 - sqrt( 1 - pow( x, 2 ) );
122
+ },
123
+ easeOutCirc: function (x) {
124
+ return sqrt( 1 - pow( x - 1, 2 ) );
125
+ },
126
+ easeInOutCirc: function (x) {
127
+ return x < 0.5 ?
128
+ ( 1 - sqrt( 1 - pow( 2 * x, 2 ) ) ) / 2 :
129
+ ( sqrt( 1 - pow( -2 * x + 2, 2 ) ) + 1 ) / 2;
130
+ },
131
+ easeInElastic: function (x) {
132
+ return x === 0 ? 0 : x === 1 ? 1 :
133
+ -pow( 2, 10 * x - 10 ) * sin( ( x * 10 - 10.75 ) * c4 );
134
+ },
135
+ easeOutElastic: function (x) {
136
+ return x === 0 ? 0 : x === 1 ? 1 :
137
+ pow( 2, -10 * x ) * sin( ( x * 10 - 0.75 ) * c4 ) + 1;
138
+ },
139
+ easeInOutElastic: function (x) {
140
+ return x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ?
141
+ -( pow( 2, 20 * x - 10 ) * sin( ( 20 * x - 11.125 ) * c5 )) / 2 :
142
+ pow( 2, -20 * x + 10 ) * sin( ( 20 * x - 11.125 ) * c5 ) / 2 + 1;
143
+ },
144
+ easeInBack: function (x) {
145
+ return c3 * x * x * x - c1 * x * x;
146
+ },
147
+ easeOutBack: function (x) {
148
+ return 1 + c3 * pow( x - 1, 3 ) + c1 * pow( x - 1, 2 );
149
+ },
150
+ easeInOutBack: function (x) {
151
+ return x < 0.5 ?
152
+ ( pow( 2 * x, 2 ) * ( ( c2 + 1 ) * 2 * x - c2 ) ) / 2 :
153
+ ( pow( 2 * x - 2, 2 ) *( ( c2 + 1 ) * ( x * 2 - 2 ) + c2 ) + 2 ) / 2;
154
+ },
155
+ easeInBounce: function (x) {
156
+ return 1 - bounceOut( 1 - x );
157
+ },
158
+ easeOutBounce: bounceOut,
159
+ easeInOutBounce: function (x) {
160
+ return x < 0.5 ?
161
+ ( 1 - bounceOut( 1 - 2 * x ) ) / 2 :
162
+ ( 1 + bounceOut( 2 * x - 1 ) ) / 2;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
  }
164
+ });
165
+
166
+ });
js/jquery.easing.min.js CHANGED
@@ -1,14 +1 @@
1
- /*
2
- * jQuery Easing v1.3.2 - http://gsgd.co.uk/sandbox/jquery/easing/
3
- * Open source under the BSD License.
4
- * Copyright 2008 George McGinley Smith
5
- * All rights reserved.
6
- * https://raw.github.com/gdsmith/jquery-easing/master/LICENSE
7
- */
8
- (function(h){h.easing.jswing=h.easing.swing;h.extend(h.easing,{def:"easeOutQuad",swing:function(e,a,c,b,d){return h.easing[h.easing.def](e,a,c,b,d)},easeInQuad:function(e,a,c,b,d){return b*(a/=d)*a+c},easeOutQuad:function(e,a,c,b,d){return-b*(a/=d)*(a-2)+c},easeInOutQuad:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a+c:-b/2*(--a*(a-2)-1)+c},easeInCubic:function(e,a,c,b,d){return b*(a/=d)*a*a+c},easeOutCubic:function(e,a,c,b,d){return b*((a=a/d-1)*a*a+1)+c},easeInOutCubic:function(e,a,c,b,d){return 1>
9
- (a/=d/2)?b/2*a*a*a+c:b/2*((a-=2)*a*a+2)+c},easeInQuart:function(e,a,c,b,d){return b*(a/=d)*a*a*a+c},easeOutQuart:function(e,a,c,b,d){return-b*((a=a/d-1)*a*a*a-1)+c},easeInOutQuart:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a*a+c:-b/2*((a-=2)*a*a*a-2)+c},easeInQuint:function(e,a,c,b,d){return b*(a/=d)*a*a*a*a+c},easeOutQuint:function(e,a,c,b,d){return b*((a=a/d-1)*a*a*a*a+1)+c},easeInOutQuint:function(e,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a*a*a+c:b/2*((a-=2)*a*a*a*a+2)+c},easeInSine:function(e,a,
10
- c,b,d){return-b*Math.cos(a/d*(Math.PI/2))+b+c},easeOutSine:function(e,a,c,b,d){return b*Math.sin(a/d*(Math.PI/2))+c},easeInOutSine:function(e,a,c,b,d){return-b/2*(Math.cos(Math.PI*a/d)-1)+c},easeInExpo:function(e,a,c,b,d){return 0==a?c:b*Math.pow(2,10*(a/d-1))+c},easeOutExpo:function(e,a,c,b,d){return a==d?c+b:b*(-Math.pow(2,-10*a/d)+1)+c},easeInOutExpo:function(e,a,c,b,d){return 0==a?c:a==d?c+b:1>(a/=d/2)?b/2*Math.pow(2,10*(a-1))+c:b/2*(-Math.pow(2,-10*--a)+2)+c},easeInCirc:function(e,a,c,b,d){return-b*
11
- (Math.sqrt(1-(a/=d)*a)-1)+c},easeOutCirc:function(e,a,c,b,d){return b*Math.sqrt(1-(a=a/d-1)*a)+c},easeInOutCirc:function(e,a,c,b,d){return 1>(a/=d/2)?-b/2*(Math.sqrt(1-a*a)-1)+c:b/2*(Math.sqrt(1-(a-=2)*a)+1)+c},easeInElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0==a)return c;if(1==(a/=d))return c+b;f||(f=.3*d);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return-(g*Math.pow(2,10*--a)*Math.sin(2*(a*d-e)*Math.PI/f))+c},easeOutElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0==
12
- a)return c;if(1==(a/=d))return c+b;f||(f=.3*d);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return g*Math.pow(2,-10*a)*Math.sin(2*(a*d-e)*Math.PI/f)+b+c},easeInOutElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(0==a)return c;if(2==(a/=d/2))return c+b;f||(f=.3*d*1.5);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return 1>a?-.5*g*Math.pow(2,10*--a)*Math.sin(2*(a*d-e)*Math.PI/f)+c:g*Math.pow(2,-10*--a)*Math.sin(2*(a*d-e)*Math.PI/f)*.5+b+c},easeInBack:function(e,a,c,b,d,f){void 0==
13
- f&&(f=1.70158);return b*(a/=d)*a*((f+1)*a-f)+c},easeOutBack:function(e,a,c,b,d,f){void 0==f&&(f=1.70158);return b*((a=a/d-1)*a*((f+1)*a+f)+1)+c},easeInOutBack:function(e,a,c,b,d,f){void 0==f&&(f=1.70158);return 1>(a/=d/2)?b/2*a*a*(((f*=1.525)+1)*a-f)+c:b/2*((a-=2)*a*(((f*=1.525)+1)*a+f)+2)+c},easeInBounce:function(e,a,c,b,d){return b-h.easing.easeOutBounce(e,d-a,0,b,d)+c},easeOutBounce:function(e,a,c,b,d){return(a/=d)<1/2.75?7.5625*b*a*a+c:a<2/2.75?b*(7.5625*(a-=1.5/2.75)*a+.75)+c:a<2.5/2.75?b*(7.5625*
14
- (a-=2.25/2.75)*a+.9375)+c:b*(7.5625*(a-=2.625/2.75)*a+.984375)+c},easeInOutBounce:function(e,a,c,b,d){return a<d/2?.5*h.easing.easeInBounce(e,2*a,0,b,d)+c:.5*h.easing.easeOutBounce(e,2*a-d,0,b,d)+.5*b+c}})})(jQuery);
1
+ !function(n){"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(e)}):"object"==typeof module&&"object"==typeof module.exports?exports=n(require("jquery")):n(jQuery)}(function(n){function e(n){var e=7.5625,t=2.75;return n<1/t?e*n*n:n<2/t?e*(n-=1.5/t)*n+.75:n<2.5/t?e*(n-=2.25/t)*n+.9375:e*(n-=2.625/t)*n+.984375}n.easing.jswing=n.easing.swing;var t=Math.pow,u=Math.sqrt,r=Math.sin,i=Math.cos,a=Math.PI,c=1.70158,o=1.525*c,s=2*a/3,f=2*a/4.5;n.extend(n.easing,{def:"easeOutQuad",swing:function(e){return n.easing[n.easing.def](e)},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return 1-(1-n)*(1-n)},easeInOutQuad:function(n){return n<.5?2*n*n:1-t(-2*n+2,2)/2},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1-t(1-n,3)},easeInOutCubic:function(n){return n<.5?4*n*n*n:1-t(-2*n+2,3)/2},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1-t(1-n,4)},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-t(-2*n+2,4)/2},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1-t(1-n,5)},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1-t(-2*n+2,5)/2},easeInSine:function(n){return 1-i(n*a/2)},easeOutSine:function(n){return r(n*a/2)},easeInOutSine:function(n){return-(i(a*n)-1)/2},easeInExpo:function(n){return 0===n?0:t(2,10*n-10)},easeOutExpo:function(n){return 1===n?1:1-t(2,-10*n)},easeInOutExpo:function(n){return 0===n?0:1===n?1:n<.5?t(2,20*n-10)/2:(2-t(2,-20*n+10))/2},easeInCirc:function(n){return 1-u(1-t(n,2))},easeOutCirc:function(n){return u(1-t(n-1,2))},easeInOutCirc:function(n){return n<.5?(1-u(1-t(2*n,2)))/2:(u(1-t(-2*n+2,2))+1)/2},easeInElastic:function(n){return 0===n?0:1===n?1:-t(2,10*n-10)*r((10*n-10.75)*s)},easeOutElastic:function(n){return 0===n?0:1===n?1:t(2,-10*n)*r((10*n-.75)*s)+1},easeInOutElastic:function(n){return 0===n?0:1===n?1:n<.5?-(t(2,20*n-10)*r((20*n-11.125)*f))/2:t(2,-20*n+10)*r((20*n-11.125)*f)/2+1},easeInBack:function(n){return(c+1)*n*n*n-c*n*n},easeOutBack:function(n){return 1+(c+1)*t(n-1,3)+c*t(n-1,2)},easeInOutBack:function(n){return n<.5?t(2*n,2)*(7.189819*n-o)/2:(t(2*n-2,2)*((o+1)*(2*n-2)+o)+2)/2},easeInBounce:function(n){return 1-e(1-n)},easeOutBounce:e,easeInOutBounce:function(n){return n<.5?(1-e(1-2*n))/2:(1+e(2*n-1))/2}})});
 
 
 
 
 
 
 
 
 
 
 
 
 
js/jquery.mousewheel.js CHANGED
@@ -1,9 +1,9 @@
1
- /*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)
2
- * Licensed under the MIT License (LICENSE.txt).
3
  *
4
- * Version: 3.1.12
5
- *
6
- * Requires: jQuery 1.2.2+
7
  */
8
 
9
  (function (factory) {
1
+ /*!
2
+ * jQuery Mousewheel 3.1.13
3
  *
4
+ * Copyright jQuery Foundation and other contributors
5
+ * Released under the MIT license
6
+ * http://jquery.org/license
7
  */
8
 
9
  (function (factory) {
js/jquery.mousewheel.min.js CHANGED
@@ -1,8 +1 @@
1
- /*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)
2
- * Licensed under the MIT License (LICENSE.txt).
3
- *
4
- * Version: 3.1.12
5
- *
6
- * Requires: jQuery 1.2.2+
7
- */
8
- !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
1
+ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function i(b){var c=b||window.event,g=d.call(arguments,1),i=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(c),b.type="mousewheel","detail"in c&&(m=-1*c.detail),"wheelDelta"in c&&(m=c.wheelDelta),"wheelDeltaY"in c&&(m=c.wheelDeltaY),"wheelDeltaX"in c&&(l=-1*c.wheelDeltaX),"axis"in c&&c.axis===c.HORIZONTAL_AXIS&&(l=-1*m,m=0),i=0===m?l:m,"deltaY"in c&&(m=-1*c.deltaY,i=m),"deltaX"in c&&(l=c.deltaX,0===m&&(i=-1*l)),0!==m||0!==l){if(1===c.deltaMode){var q=a.data(this,"mousewheel-line-height");i*=q,m*=q,l*=q}else if(2===c.deltaMode){var r=a.data(this,"mousewheel-page-height");i*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||n<f)&&(f=n,k(c,n)&&(f/=40)),k(c,n)&&(i/=40,l/=40,m/=40),i=Math[i>=1?"floor":"ceil"](i/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),h.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,g.unshift(b,i,l,m),e&&clearTimeout(e),e=setTimeout(j,200),(a.event.dispatch||a.event.handle).apply(this,g)}}function j(){f=null}function k(a,b){return h.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120==0}var e,f,b=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],c="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],d=Array.prototype.slice;if(a.event.fixHooks)for(var g=b.length;g;)a.event.fixHooks[b[--g]]=a.event.mouseHooks;var h=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var b=c.length;b;)this.addEventListener(c[--b],i,!1);else this.onmousewheel=i;a.data(this,"mousewheel-line-height",h.getLineHeight(this)),a.data(this,"mousewheel-page-height",h.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var b=c.length;b;)this.removeEventListener(c[--b],i,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravan
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
 
@@ -42,31 +42,11 @@ Visit [FancyBox](http://fancybox.net/) for more information, examples and the Fa
42
  **Recommended:**
43
  - For increased site performance, simply install and activate the plugin [Use Google Libraries](http://wordpress.org/plugins/use-google-libraries/) to load jQuery from Googles CDN.
44
 
45
- = Translators =
46
-
47
- Please go to https://translate.wordpress.org/projects/wp-plugins/easy-fancybox/ and share your knowledge!
48
-
49
- Current contributors:
50
-
51
- - **Belarussian** * Natasha, https://www.ustarcash.com (version 1.5.8)
52
- - **Croatian** * Ivan Capan (version 1.5.6)
53
- - **Czech** * Eldenroot (version 1.5.5)
54
- - **Dutch** * R.A. van Hagen, http://status301.net (version 1.5.6)
55
- - **French** * Emmanuel Maillard (version 1.5.5)
56
- - **Greek** * Dimitrios Kaisaris, http://www.foodblogstarter.com (version 1.5.7)
57
- - **Gujarati** * Apoto Team, http://www.apoto.com (version 1.5.0)
58
- - **Hindi** * Outshine Solutions, http://outshinesolutions.com (version 1.3.4.9)
59
- - **Indonesian** * Nasrulhaq Muiz, http://al-badar.net (version 1.5.5)
60
- - **Lithuanian** * Vincent G, http://www.host1free.com (version 1.3.4.9)
61
- - **Persian** * Ali Akbar Kaviani, http://www.wiki10.net (version 1.5.2)
62
- - **Polish** * Kamil Szymański (version 1.3.4.9)
63
- - **Romanian** * Web Geek Sciense, http://webhostinggeeks.com/ (version 1.3.4.9)
64
- - **Russian** * Ivanka Skakun from Everycloud, http://www.everycloudtech.com/ (version 1.5.8)
65
- - **Serbo-Croatian** * Andrijana Nikolic, http://webhostinggeeks.com/wordpresshosting.html (version 1.5.2) + translation of this page on http://science.webhostinggeeks.com/easy-fancybox
66
- - **Slovak** * Jan Fajcak, http://fajo.name/ (version: 1.5.7)
67
- - **Spanish** * David Pérez, http://www.closemarketing.es (version 1.3.4.9)
68
- - **Turkish** * Hakan Er, http://hakanertr.wordpress.com/ (version: 1.5.2)
69
- - **Ukrainian** * Cmd Software, http://www.cmd-soft.com (version: 1.3.4.9)
70
 
71
 
72
  == Installation ==
@@ -85,7 +65,7 @@ Follow these steps:
85
 
86
  1. Download archive.
87
 
88
- 2. Upload the zip file via the Plugins > Add New > Upload page &hellip; OR &hellip; unpack and upload with your favourite FTP client to the /plugins/ folder.
89
 
90
  3. Activate the plugin on the Plug-ins page.
91
 
@@ -109,7 +89,7 @@ Basically, it is a fancy way of presenting images, movies, portable documents an
109
 
110
  = Which version of FancyBox does this plugin use? =
111
 
112
- The same version as this plugin has. I aim to keep close pace to FancyBox upgrades and always move to the latest and greates version. Please, let me know if I'm lagging behind and missed an upgrade!
113
 
114
  = I installed the plugin. What now? =
115
 
@@ -162,7 +142,7 @@ Yes. All links with class **nolightbox** that would normally get auto-enabled, w
162
 
163
  = Can NextGEN Gallery work with Easy FancyBox ? =
164
 
165
- NetxGEN has its own built in FancyBox version along with a choice of other lightbox scripts but if you prefer to use Easy FancyBox (because of better customisability) then you need to take some steps to make the two plugins compatible.
166
 
167
  1. Go to your Settings > Media admin page and switch OFF the FancyBox "Auto-gallery" option in the Images section;
168
  1. Go to Gallery > Other Options and set the Lightbox Effects option to "Custom" and click on Show Advanced Settings;
@@ -185,7 +165,7 @@ It can be done manually (using the internal WordPress gallery feature, or not) _
185
  <div class="fancybox-hidden">
186
  `
187
 
188
- **C.** Right after that starting on a new line, insert all other images you want to show in your gallery. You can even use the WordPress internal gallery feature with the shortcode `[gallery link="file"]`. NOTE: if the gallery thumbnail is attached to the post, it will be show a second time when flipping through the gallery in FancyBox. If you do not want that, use an image that is not attached to the post as gallery thumbail.
189
 
190
  **D.** Close the hidden div with the following code on a new line:
191
  `
@@ -292,21 +272,21 @@ NOTE: The difference between these two classes ('-' or space) is in size of the
292
 
293
  Yes. Just place a link _with the URL ending in .pdf_ to your Portable Document file in the page content.
294
 
295
- If you do'nt have *Auto-detect* checked under **PDF** on Settings > Media admin page, you will need to add `class="fancybox-pdf"` (to force pdf content recognition) to the link to enable FancyBox for it.
296
 
297
 
298
  = Can I play SWF files in a FancyBox overlay? =
299
 
300
  Yes. Just place a link _with the URL ending in .swf_ to your Flash file in the page content.
301
 
302
- If you do'nt have *Auto-detect* checked under **SWF** on Settings > Media admin page, you will need to add either `class="fancybox"` or `class="fancybox-swf"` (to force swf content recognition) to the link to enable FancyBox for it.
303
 
304
 
305
  = How do I show content with different sizes? =
306
 
307
  FancyBox tries to detect the size of the content automatically but if it can not find a size, it will default to the settings for that particular content type as set on the Settings > Media page.
308
 
309
- The **[Pro extension](http://premium.status301.net/downloads/easy-fancybox-pro/)** provides an extra option to allow you to manually override this by defining the width and height wrapped in curly brases in the class attribute of the link itself. Make sure the option "Inlcude the Metadata jQuery extension script..." under FancyBox | Links on Settings > Media is enabled.
310
 
311
  For example, a Flash movie with different size:
312
 
@@ -354,7 +334,7 @@ Then place a FancyBox link tag with class attribute "fancybox-inline" anywhere e
354
 
355
  NOTE: The wrapping divs ID *must* be unique and it must correspond with the links HREF with a # in front of it. When using the above example for more FancyBox inline content (hidden div + opening link) combinations on one page, give the second one the ID fancyboxID-2 and so on...
356
 
357
- NOTE 2: If you find that the inline contect shown in FancyBox is styled very different than the rests of the page content, then you might want to change the div tag attribute `class="hentry"` to something else that matches your theme. Find out what class name is used for the main content on your site and re-use that.
358
 
359
 
360
  = Can I display a contact form in FancyBox? =
@@ -387,7 +367,7 @@ Yes. But it depends on you theme what you need to do to make it work. If you are
387
 
388
  1. Go to Settings > Media and enable FancyBox iFrame support.
389
  2. Go to Appearance > Menus and open the little tab "Screen Options" in the top-right corner.
390
- 3. Enable the option "CSS Classes" under Advanced menu proterties.
391
  4. Now give the menu item you want to open in a FancyBox iframe the class `fancybox-iframe`.
392
 
393
  If you are on an older version of WordPress or if you cannot use WP's Menus, you will need to do some heavy theme hacking to get it to work. Basically, what you need to achieve is that the menu item you want opened in a lightbox overlay, should get a class="fancybox-iframe" tag.
@@ -413,13 +393,13 @@ Yes. Designed to work with **Network Activate** and does not require manual acti
413
  - **All in One SEO Pack** and **Analytics for WordPress** with outbound link tracking enabled. Disable that feature.
414
  - **Better WP Security** randomly changes version numbers in linked file URLs, breaking the FancyBox stylesheet. Disable the option "Display random version number to all non-administrative users" in the Better WP Security settings.
415
  - By default **Google Analytics for WordPress** converts links like `href="#anyID"` to `href="http://yoursite.url/page/#anyID"`, disabling inline content shown in FancyBox.
416
- - **jQuery Updater** moves jQuery to version 2+ wich is incompatible.
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.
424
 
425
  = Theme conflicts =
@@ -470,21 +450,6 @@ If you still do not get to see your images in FancyBox, ask on the [Easy FancyBo
470
  1. Check if your theme loads another or the same lightbox script or any other of the needed jQuery extensions like jquery.easing or jquery.mousewheel. Look for references to Thickbox, Prettyphoto, Lightbox2, Colorbox or FancyBox script files or code. These are very likely to cause the incompatibility and you will have to either find a setting in the other plugin to switch OFF the use of the conflicting script (possible in NextGEN for example, see under Advanced below) or choose between the two conflicting plugins.
471
 
472
 
473
- == Translation ==
474
-
475
- 1. Install PoEdit on your computer.
476
- 1. Go to this plugins /languages/ directory.
477
- 1. If there is no .po file that corresponds with your language yet, rename the template translation database easy-fancybox-xx_XX.po by replacing the xx with your language code and XX with your country code.
478
- 1. Open the .po file of your language with PoEdit.
479
- 1. Go to Edit > Preferences and on the tab Editor check the option to compile a .mo database on save automatically. Close with OK.
480
- 1. Go to Catalog > Settings and set your name, e-mail address, language and country. Close with OK.
481
- 1. Go to Catalog > Update from POT-file and select the main easy-fancybox.pot file. Then accept all new and removed translation strings with OK.
482
- 1. Now go ahead and start translating all the texts listed in PoEdit.
483
- 1. When done, go to File > Save to Save.
484
- 1. Upload the automatically created easy-fancybox-xx_XX.mo database file (where xx_XX should now be your language and country code) to the plugins /languages/ directory on your WordPress site.
485
- 1. After verifying the translations work on your site, send the .mo file and, if you're willing to share it, your original .po file to ravanhagen@gmail.com and don't forget to tell me how and with what link you would like to be mentioned in the credits!
486
-
487
-
488
  == Screenshots ==
489
 
490
  1. Example image with **Overlay** caption. This is the default way Easy FancyBox displays images. Other options are **Inside** and the old **Outside**.
@@ -493,11 +458,18 @@ If you still do not get to see your images in FancyBox, ask on the [Easy FancyBo
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
@@ -549,7 +521,7 @@ Webp images autodetected by default. Some common rel tags excluded from autogall
549
 
550
  = 1.5.1 =
551
  * FIX: jQuery 1.9+ compatibility
552
- * Dropping support for gForms again -- "Cannot convert 'c' to object" error in combinaition with some older gForms version :(
553
  * NEW: support for Infinite Scroll by Jetpack
554
 
555
  = 1.5.0 =
@@ -583,7 +555,7 @@ Webp images autodetected by default. Some common rel tags excluded from autogall
583
  = 1.3.4.9 =
584
  * NEW: Lithuanian translation
585
  * NEW: Hindi translation
586
- * NEW: Indonasian translation
587
  * NEW: Romanian translation
588
  * NEW: Polish translation
589
  * NEW: Spanish translation
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.1
8
 
9
  Easily enable the FancyBox jQuery extension on just about all media links. Multi-Site compatible. Supports iFrame and Flash movies.
10
 
42
  **Recommended:**
43
  - For increased site performance, simply install and activate the plugin [Use Google Libraries](http://wordpress.org/plugins/use-google-libraries/) to load jQuery from Googles CDN.
44
 
45
+ = Contribute =
46
+
47
+ If you're happy with this plugin as it is, please consider writing a quick [rating](https://wordpress.org/support/plugin/easy-fancybox/reviews/#new-post) or helping other users out on the [support forum](https://wordpress.org/support/plugin/easy-fancybox).
48
+
49
+ If you wish to help build this plugin, you're very welcome to [translate Easy FancyBox into your language](https://translate.wordpress.org/projects/wp-plugins/easy-fancybox/) or contribute code on [Github](https://github.com/RavanH/easy-fancybox/).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
 
51
 
52
  == Installation ==
65
 
66
  1. Download archive.
67
 
68
+ 2. Upload the zip file via the Plugins > Add New > Upload page &hellip; OR &hellip; unpack and upload with your favorite FTP client to the /plugins/ folder.
69
 
70
  3. Activate the plugin on the Plug-ins page.
71
 
89
 
90
  = Which version of FancyBox does this plugin use? =
91
 
92
+ The same version as this plugin has. I aim to keep close pace to FancyBox upgrades and always move to the latest and greatest version. Please, let me know if I'm lagging behind and missed an upgrade!
93
 
94
  = I installed the plugin. What now? =
95
 
142
 
143
  = Can NextGEN Gallery work with Easy FancyBox ? =
144
 
145
+ NetxGEN has its own built in FancyBox version along with a choice of other lightbox scripts but if you prefer to use Easy FancyBox (because of better customizability) then you need to take some steps to make the two plugins compatible.
146
 
147
  1. Go to your Settings > Media admin page and switch OFF the FancyBox "Auto-gallery" option in the Images section;
148
  1. Go to Gallery > Other Options and set the Lightbox Effects option to "Custom" and click on Show Advanced Settings;
165
  <div class="fancybox-hidden">
166
  `
167
 
168
+ **C.** Right after that starting on a new line, insert all other images you want to show in your gallery. You can even use the WordPress internal gallery feature with the shortcode `[gallery link="file"]`. NOTE: if the gallery thumbnail is attached to the post, it will be show a second time when flipping through the gallery in FancyBox. If you do not want that, use an image that is not attached to the post as gallery thumbnail.
169
 
170
  **D.** Close the hidden div with the following code on a new line:
171
  `
272
 
273
  Yes. Just place a link _with the URL ending in .pdf_ to your Portable Document file in the page content.
274
 
275
+ If you don't have *Auto-detect* checked under **PDF** on Settings > Media admin page, you will need to add `class="fancybox-pdf"` (to force pdf content recognition) to the link to enable FancyBox for it.
276
 
277
 
278
  = Can I play SWF files in a FancyBox overlay? =
279
 
280
  Yes. Just place a link _with the URL ending in .swf_ to your Flash file in the page content.
281
 
282
+ If you don't have *Auto-detect* checked under **SWF** on Settings > Media admin page, you will need to add either `class="fancybox"` or `class="fancybox-swf"` (to force swf content recognition) to the link to enable FancyBox for it.
283
 
284
 
285
  = How do I show content with different sizes? =
286
 
287
  FancyBox tries to detect the size of the content automatically but if it can not find a size, it will default to the settings for that particular content type as set on the Settings > Media page.
288
 
289
+ The **[Pro extension](http://premium.status301.net/downloads/easy-fancybox-pro/)** provides an extra option to allow you to manually override this by defining the width and height wrapped in curly braces in the class attribute of the link itself. Make sure the option "Include the Metadata jQuery extension script..." under FancyBox | Links on Settings > Media is enabled.
290
 
291
  For example, a Flash movie with different size:
292
 
334
 
335
  NOTE: The wrapping divs ID *must* be unique and it must correspond with the links HREF with a # in front of it. When using the above example for more FancyBox inline content (hidden div + opening link) combinations on one page, give the second one the ID fancyboxID-2 and so on...
336
 
337
+ NOTE 2: If you find that the inline content shown in FancyBox is styled very different than the rests of the page content, then you might want to change the div tag attribute `class="hentry"` to something else that matches your theme. Find out what class name is used for the main content on your site and re-use that.
338
 
339
 
340
  = Can I display a contact form in FancyBox? =
367
 
368
  1. Go to Settings > Media and enable FancyBox iFrame support.
369
  2. Go to Appearance > Menus and open the little tab "Screen Options" in the top-right corner.
370
+ 3. Enable the option "CSS Classes" under Advanced menu properties.
371
  4. Now give the menu item you want to open in a FancyBox iframe the class `fancybox-iframe`.
372
 
373
  If you are on an older version of WordPress or if you cannot use WP's Menus, you will need to do some heavy theme hacking to get it to work. Basically, what you need to achieve is that the menu item you want opened in a lightbox overlay, should get a class="fancybox-iframe" tag.
393
  - **All in One SEO Pack** and **Analytics for WordPress** with outbound link tracking enabled. Disable that feature.
394
  - **Better WP Security** randomly changes version numbers in linked file URLs, breaking the FancyBox stylesheet. Disable the option "Display random version number to all non-administrative users" in the Better WP Security settings.
395
  - By default **Google Analytics for WordPress** converts links like `href="#anyID"` to `href="http://yoursite.url/page/#anyID"`, disabling inline content shown in FancyBox.
396
+ - **jQuery Updater** moves jQuery to version 2+ which is incompatible.
397
  - 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**.
398
+ - **Wordpress Firewall 2** blocks access to image files needed for proper display of the FancyBox overlay in older IE and other non-css3 browsers.
399
  - **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.
400
  - **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.
401
  - When using **WP-Minify**, the javascript files like `fancybox/jquery.fancybox-X.X.X.pack.js` and others need to be excluded from minification.
402
+ - 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) and still have page speed benefit from minification.
403
  - **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.
404
 
405
  = Theme conflicts =
450
  1. Check if your theme loads another or the same lightbox script or any other of the needed jQuery extensions like jquery.easing or jquery.mousewheel. Look for references to Thickbox, Prettyphoto, Lightbox2, Colorbox or FancyBox script files or code. These are very likely to cause the incompatibility and you will have to either find a setting in the other plugin to switch OFF the use of the conflicting script (possible in NextGEN for example, see under Advanced below) or choose between the two conflicting plugins.
451
 
452
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
453
  == Screenshots ==
454
 
455
  1. Example image with **Overlay** caption. This is the default way Easy FancyBox displays images. Other options are **Inside** and the old **Outside**.
458
 
459
  == Upgrade Notice ==
460
 
461
+ = 1.6.1 =
462
+ Bugfix release: color code, translation strings, pinterest button compat...
463
 
464
  == Changelog ==
465
 
466
+ = 1.6.1 =
467
+ * Nolightbox class in menu also for other media types than images
468
+ * FIX: CSS color code
469
+ * Spelling fixes, thanks @garrett-eclipse
470
+ * FIX: Pinterest button compatibility
471
+ * FIX: Double load plugin text domain
472
+
473
  = 1.6 =
474
  * Add webp to default Autodetect image types
475
  * Exclude more rel attribute values from galleries
521
 
522
  = 1.5.1 =
523
  * FIX: jQuery 1.9+ compatibility
524
+ * Dropping support for gForms again -- "Cannot convert 'c' to object" error in combination with some older gForms version :(
525
  * NEW: support for Infinite Scroll by Jetpack
526
 
527
  = 1.5.0 =
555
  = 1.3.4.9 =
556
  * NEW: Lithuanian translation
557
  * NEW: Hindi translation
558
+ * NEW: Indonesian translation
559
  * NEW: Romanian translation
560
  * NEW: Polish translation
561
  * NEW: Spanish translation