FancyBox for WordPress - Version 3.0.14

Version Description

  • Minor fixes.
Download this release

Release Info

Developer colorlibplugins
Plugin Icon wp plugin FancyBox for WordPress
Version 3.0.14
Comparing to
See all releases

Code changes from version 3.0.10 to 3.0.14

fancybox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: FancyBox for WordPress
4
  Plugin URI: https://wordpress.org/plugins/fancybox-for-wordpress/
5
  Description: Integrates FancyBox by Janis Skarnelis into WordPress.
6
- Version: 3.0.10
7
  Author: Colorlib
8
  Author URI: https://colorlib.com/
9
 
@@ -20,7 +20,7 @@ Author URI: https://colorlib.com/
20
  * Constants
21
  */
22
 
23
- define( 'FBFW_VERSION', '3.0.10' );
24
  define( 'FBFW_PATH', plugin_dir_path(__FILE__) );
25
  define( 'FBFW_URL', plugin_dir_url(__FILE__) );
26
 
3
  Plugin Name: FancyBox for WordPress
4
  Plugin URI: https://wordpress.org/plugins/fancybox-for-wordpress/
5
  Description: Integrates FancyBox by Janis Skarnelis into WordPress.
6
+ Version: 3.0.14
7
  Author: Colorlib
8
  Author URI: https://colorlib.com/
9
 
20
  * Constants
21
  */
22
 
23
+ define( 'FBFW_VERSION', '3.0.14' );
24
  define( 'FBFW_PATH', plugin_dir_path(__FILE__) );
25
  define( 'FBFW_URL', plugin_dir_url(__FILE__) );
26
 
fancybox/fancybox.css CHANGED
@@ -7,7 +7,7 @@
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)
11
  * Requires: jQuery v1.3+
12
  *
13
  * Dual licensed under the MIT and GPL licenses:
@@ -25,8 +25,10 @@
25
  margin-left: -20px;
26
  cursor: pointer;
27
  overflow: hidden;
28
- z-index: 110004;
29
  display: none;
 
 
30
  }
31
 
32
  #fancybox-loading div {
@@ -36,6 +38,8 @@
36
  width: 40px;
37
  height: 480px;
38
  background-image: url('fancybox.png');
 
 
39
  }
40
 
41
  #fancybox-overlay {
@@ -43,8 +47,10 @@
43
  top: 0;
44
  left: 0;
45
  width: 100%;
46
- z-index: 110000;
47
  display: none;
 
 
48
  }
49
 
50
  #fancybox-tmp {
@@ -60,9 +66,16 @@
60
  top: 0;
61
  left: 0;
62
  padding: 20px;
63
- z-index: 110001;
64
  outline: none;
65
  display: none;
 
 
 
 
 
 
 
66
  }
67
 
68
  #fancybox-outer {
@@ -79,8 +92,12 @@
79
  outline: none;
80
  position: relative;
81
  overflow: hidden;
82
- z-index: 110002;
83
  border: 0px solid #fff;
 
 
 
 
84
  }
85
 
86
  #fancybox-hide-sel-frame {
@@ -90,16 +107,18 @@
90
  width: 100%;
91
  height: 100%;
92
  background: transparent;
93
- z-index: 110001;
94
  }
95
 
96
  #fancybox-close {
97
  position: absolute;
 
 
98
  width: 30px;
99
  height: 30px;
100
  background: transparent url('fancybox.png') -40px 0px;
101
  cursor: pointer;
102
- z-index: 110003;
103
  display: none;
104
  }
105
 
@@ -119,6 +138,8 @@
119
  outline: none;
120
  line-height: 0;
121
  vertical-align: top;
 
 
122
  }
123
 
124
  #fancybox-frame {
@@ -126,6 +147,8 @@
126
  height: 100%;
127
  border: none;
128
  display: block;
 
 
129
  }
130
 
131
  #fancybox-left, #fancybox-right {
@@ -136,7 +159,7 @@
136
  cursor: pointer;
137
  outline: none;
138
  background: transparent url('blank.gif');
139
- z-index: 110002;
140
  display: none;
141
  }
142
 
@@ -144,10 +167,20 @@
144
  left: 0px;
145
  }
146
 
 
 
 
 
 
147
  #fancybox-right {
148
  right: 0px;
149
  }
150
 
 
 
 
 
 
151
  #fancybox-left-ico, #fancybox-right-ico {
152
  position: absolute;
153
  top: 50%;
@@ -156,7 +189,7 @@
156
  height: 30px;
157
  margin-top: -15px;
158
  cursor: pointer;
159
- z-index: 110002;
160
  display: block;
161
  }
162
 
@@ -165,11 +198,21 @@
165
  background-position: -40px -30px;
166
  }
167
 
 
 
 
 
 
168
  #fancybox-right-ico {
169
  background-image: url('fancybox.png');
170
  background-position: -40px -60px;
171
  }
172
 
 
 
 
 
 
173
  #fancybox-left:hover, #fancybox-right:hover {
174
  visibility: visible; /* IE6 */
175
  }
@@ -178,11 +221,20 @@
178
  left: 20px;
179
  }
180
 
 
 
 
 
181
  #fancybox-right:hover span {
182
  left: auto;
183
  right: 20px;
184
  }
185
 
 
 
 
 
 
186
  .fancybox-bg {
187
  position: absolute;
188
  padding: 0;
@@ -190,7 +242,7 @@
190
  border: 0;
191
  width: 20px;
192
  height: 20px;
193
- z-index: 100001;
194
  }
195
 
196
  #fancybox-bg-n {
@@ -219,7 +271,7 @@
219
  bottom: -20px;
220
  right: -20px;
221
  background-image: url('fancybox.png');
222
- background-position: -40px -182px;
223
  }
224
 
225
  #fancybox-bg-s {
@@ -254,14 +306,13 @@
254
  #fancybox-title {
255
  font-family: Helvetica;
256
  font-size: 12px;
257
- z-index: 110002;
258
  }
259
 
260
  .fancybox-title-inside {
261
  padding-bottom: 10px;
262
  text-align: center;
263
  color: #333;
264
- background: #fff;
265
  position: relative;
266
  }
267
 
@@ -278,6 +329,10 @@
278
  text-align: left;
279
  }
280
 
 
 
 
 
281
  #fancybox-title-over {
282
  padding: 10px;
283
  background-image: url('fancy_title_over.png');
@@ -320,38 +375,11 @@
320
  background: url('fancybox.png') -55px -90px no-repeat;
321
  }
322
 
323
- /* IE6 */
324
-
325
- .fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_close.png', sizingMethod='scale'); }
326
-
327
- .fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_left.png', sizingMethod='scale'); }
328
- .fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_right.png', sizingMethod='scale'); }
329
-
330
- .fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_over.png', sizingMethod='scale'); zoom: 1; }
331
- .fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_left.png', sizingMethod='scale'); }
332
- .fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_main.png', sizingMethod='scale'); }
333
- .fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_right.png', sizingMethod='scale'); }
334
-
335
- .fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame {
336
- height: expression(this.parentNode.clientHeight + "px");
337
  }
338
 
339
- #fancybox-loading.fancybox-ie6 {
340
- position: absolute; margin-top: 0;
341
- top: expression( (-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px');
342
  }
343
-
344
- #fancybox-loading.fancybox-ie6 div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_loading.png', sizingMethod='scale'); }
345
-
346
- /* IE6, IE7, IE8 */
347
-
348
- .fancybox-ie .fancybox-bg { background: transparent !important; }
349
-
350
- .fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_n.png', sizingMethod='scale'); }
351
- .fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_ne.png', sizingMethod='scale'); }
352
- .fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_e.png', sizingMethod='scale'); }
353
- .fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_se.png', sizingMethod='scale'); }
354
- .fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_s.png', sizingMethod='scale'); }
355
- .fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_sw.png', sizingMethod='scale'); }
356
- .fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_w.png', sizingMethod='scale'); }
357
- .fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_nw.png', sizingMethod='scale'); }
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.8 (11/11/2010)
11
  * Requires: jQuery v1.3+
12
  *
13
  * Dual licensed under the MIT and GPL licenses:
25
  margin-left: -20px;
26
  cursor: pointer;
27
  overflow: hidden;
28
+ z-index:11104;
29
  display: none;
30
+ box-sizing: content-box;
31
+ -moz-box-sizing: content-box;
32
  }
33
 
34
  #fancybox-loading div {
38
  width: 40px;
39
  height: 480px;
40
  background-image: url('fancybox.png');
41
+ box-sizing: content-box;
42
+ -moz-box-sizing: content-box;
43
  }
44
 
45
  #fancybox-overlay {
47
  top: 0;
48
  left: 0;
49
  width: 100%;
50
+ z-index:11100;
51
  display: none;
52
+ box-sizing: content-box;
53
+ -moz-box-sizing: content-box;
54
  }
55
 
56
  #fancybox-tmp {
66
  top: 0;
67
  left: 0;
68
  padding: 20px;
69
+ z-index:11101;
70
  outline: none;
71
  display: none;
72
+ box-sizing: content-box;
73
+ -moz-box-sizing: content-box;
74
+ }
75
+
76
+ #fancybox-wrap div {
77
+ box-sizing: content-box;
78
+ -moz-box-sizing: content-box;
79
  }
80
 
81
  #fancybox-outer {
92
  outline: none;
93
  position: relative;
94
  overflow: hidden;
95
+ z-index:11102;
96
  border: 0px solid #fff;
97
+ background: #fff;
98
+ -moz-background-clip: padding; /* Firefox 3.6 */
99
+ -webkit-background-clip: padding; /* Safari 4? Chrome 6? */
100
+ background-clip: padding-box; /* IE9+, Firefox 4+, Opera, Chrome */
101
  }
102
 
103
  #fancybox-hide-sel-frame {
107
  width: 100%;
108
  height: 100%;
109
  background: transparent;
110
+ z-index:11101;
111
  }
112
 
113
  #fancybox-close {
114
  position: absolute;
115
+ top: -15px;
116
+ right: -15px;
117
  width: 30px;
118
  height: 30px;
119
  background: transparent url('fancybox.png') -40px 0px;
120
  cursor: pointer;
121
+ z-index:11103;
122
  display: none;
123
  }
124
 
138
  outline: none;
139
  line-height: 0;
140
  vertical-align: top;
141
+ max-width:none !important;
142
+ max-height:none !important
143
  }
144
 
145
  #fancybox-frame {
147
  height: 100%;
148
  border: none;
149
  display: block;
150
+ -webkit-overflow-scrolling: touch;
151
+ z-index:0; /* z-index bug with -webkit-overflow-scrolling */
152
  }
153
 
154
  #fancybox-left, #fancybox-right {
159
  cursor: pointer;
160
  outline: none;
161
  background: transparent url('blank.gif');
162
+ z-index:11102;
163
  display: none;
164
  }
165
 
167
  left: 0px;
168
  }
169
 
170
+ .rtl #fancybox-left {
171
+ left:auto;
172
+ right:0px
173
+ }
174
+
175
  #fancybox-right {
176
  right: 0px;
177
  }
178
 
179
+ .rtl #fancybox-right {
180
+ left:0px;
181
+ right:auto
182
+ }
183
+
184
  #fancybox-left-ico, #fancybox-right-ico {
185
  position: absolute;
186
  top: 50%;
189
  height: 30px;
190
  margin-top: -15px;
191
  cursor: pointer;
192
+ z-index:11102;
193
  display: block;
194
  }
195
 
198
  background-position: -40px -30px;
199
  }
200
 
201
+ .rtl #fancybox-left-ico{
202
+ background-position:-40px -60px;
203
+ right:-9999px
204
+ }
205
+
206
  #fancybox-right-ico {
207
  background-image: url('fancybox.png');
208
  background-position: -40px -60px;
209
  }
210
 
211
+ .rtl #fancybox-right-ico{
212
+ background-position:-40px -30px;
213
+ right:-9999px
214
+ }
215
+
216
  #fancybox-left:hover, #fancybox-right:hover {
217
  visibility: visible; /* IE6 */
218
  }
221
  left: 20px;
222
  }
223
 
224
+ .rtl #fancybox-left:hover span {
225
+ right:20px
226
+ }
227
+
228
  #fancybox-right:hover span {
229
  left: auto;
230
  right: 20px;
231
  }
232
 
233
+ .rtl #fancybox-right:hover span {
234
+ right:auto;
235
+ left:20px
236
+ }
237
+
238
  .fancybox-bg {
239
  position: absolute;
240
  padding: 0;
242
  border: 0;
243
  width: 20px;
244
  height: 20px;
245
+ z-index:11001;
246
  }
247
 
248
  #fancybox-bg-n {
271
  bottom: -20px;
272
  right: -20px;
273
  background-image: url('fancybox.png');
274
+ background-position: -40px -182px;
275
  }
276
 
277
  #fancybox-bg-s {
306
  #fancybox-title {
307
  font-family: Helvetica;
308
  font-size: 12px;
309
+ z-index:11102;
310
  }
311
 
312
  .fancybox-title-inside {
313
  padding-bottom: 10px;
314
  text-align: center;
315
  color: #333;
 
316
  position: relative;
317
  }
318
 
329
  text-align: left;
330
  }
331
 
332
+ .rtl .fancybox-title-over {
333
+ text-align:right
334
+ }
335
+
336
  #fancybox-title-over {
337
  padding: 10px;
338
  background-image: url('fancy_title_over.png');
375
  background: url('fancybox.png') -55px -90px no-repeat;
376
  }
377
 
378
+ .fancybox-hidden{
379
+ display:none
 
 
 
 
 
 
 
 
 
 
 
 
380
  }
381
 
382
+ /* IE */
383
+ .fancybox-ie .fancybox-bg{
384
+ background: transparent !important
385
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fancybox/jquery.fancybox.js CHANGED
@@ -7,40 +7,12 @@
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)
11
- * Requires: jQuery v1.3+
12
  *
13
  * Dual licensed under the MIT and GPL licenses:
14
  * http://www.opensource.org/licenses/mit-license.php
15
  * http://www.gnu.org/licenses/gpl.html
 
16
  */
17
-
18
- ;(function(b){var m,t,u,f,D,j,E,n,z,A,q=0,e={},o=[],p=0,d={},l=[],G=null,v=new Image,J=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,K,L=1,y=0,s="",r,i,h=false,B=b.extend(b("<div/>")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();h=false}else{e.titleShow=false;e.width="auto";e.height="auto";m.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');
19
- F()}},I=function(){var a=o[q],c,g,k,C,P,w;N();e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));w=e.onStart(o,q,e);if(w===false)h=false;else{if(typeof w=="object")e=b.extend(e,w);k=e.title||(a.nodeName?b(a).attr("title"):a.title)||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(k===""&&e.orig&&e.titleFromAlt)k=e.orig.attr("alt");c=e.href||(a.nodeName?b(a).attr("href"):a.href)||null;if(/^(?:javascript)/i.test(c)||
20
- c=="#")c=null;if(e.type){g=e.type;if(!c)c=e.content}else if(e.content)g="html";else if(c)g=c.match(J)?"image":c.match(W)?"swf":b(a).hasClass("iframe")?"iframe":c.indexOf("#")===0?"inline":"ajax";if(g){if(g=="inline"){a=c.substr(c.indexOf("#"));g=b(a).length>0?"inline":"ajax"}e.type=g;e.href=c;e.title=k;if(e.autoDimensions)if(e.type=="html"||e.type=="inline"||e.type=="ajax"){e.width="auto";e.height="auto"}else e.autoDimensions=false;if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick=
21
- false;e.enableEscapeButton=false;e.showCloseButton=false}e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);m.css("padding",e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(j.children())});switch(g){case "html":m.html(e.content);F();break;case "inline":if(b(a).parent().is("#fancybox-content")===true){h=false;break}b('<div class="fancybox-inline-tmp" />').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(j.children())}).bind("fancybox-cancel",
22
- function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case "image":h=false;b.fancybox.showActivity();v=new Image;v.onerror=function(){O()};v.onload=function(){h=true;v.onerror=v.onload=null;e.width=v.width;e.height=v.height;b("<img />").attr({id:"fancybox-img",src:v.src,alt:e.title}).appendTo(m);Q()};v.src=c;break;case "swf":e.scrolling="no";C='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+e.width+'" height="'+e.height+'"><param name="movie" value="'+c+
23
- '"></param>';P="";b.each(e.swf,function(x,H){C+='<param name="'+x+'" value="'+H+'"></param>';P+=" "+x+'="'+H+'"'});C+='<embed src="'+c+'" type="application/x-shockwave-flash" width="'+e.width+'" height="'+e.height+'"'+P+"></embed></object>";m.html(C);F();break;case "ajax":h=false;b.fancybox.showActivity();e.ajax.win=e.ajax.success;G=b.ajax(b.extend({},e.ajax,{url:c,data:e.ajax.data||{},error:function(x){x.status>0&&O()},success:function(x,H,R){if((typeof R=="object"?R:G).status==200){if(typeof e.ajax.win==
24
- "function"){w=e.ajax.win(c,x,H,R);if(w===false){t.hide();return}else if(typeof w=="string"||typeof w=="object")x=w}m.html(x);F()}}}));break;case "iframe":Q()}}else O()}},F=function(){var a=e.width,c=e.height;a=a.toString().indexOf("%")>-1?parseInt((b(window).width()-e.margin*2)*parseFloat(a)/100,10)+"px":a=="auto"?"auto":a+"px";c=c.toString().indexOf("%")>-1?parseInt((b(window).height()-e.margin*2)*parseFloat(c)/100,10)+"px":c=="auto"?"auto":c+"px";m.wrapInner('<div style="width:'+a+";height:"+c+
25
- ";overflow: "+(e.scrolling=="auto"?"auto":e.scrolling=="yes"?"scroll":"hidden")+';position:relative;"></div>');e.width=m.width();e.height=m.height();Q()},Q=function(){var a,c;t.hide();if(f.is(":visible")&&false===d.onCleanup(l,p,d)){b.event.trigger("fancybox-cancel");h=false}else{h=true;b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");f.is(":visible")&&d.titlePosition!=="outside"&&f.css("height",f.height());l=o;p=q;d=e;if(d.overlayShow){u.css({"background-color":d.overlayColor,
26
- opacity:d.overlayOpacity,cursor:d.hideOnOverlayClick?"pointer":"auto",height:b(document).height()});if(!u.is(":visible")){M&&b("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});u.show()}}else u.hide();i=X();s=d.title||"";y=0;n.empty().removeAttr("style").removeClass();if(d.titleShow!==false){if(b.isFunction(d.titleFormat))a=d.titleFormat(s,l,p,d);else a=s&&s.length?
27
- d.titlePosition=="float"?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+s+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+d.titlePosition+'">'+s+"</div>":false;s=a;if(!(!s||s==="")){n.addClass("fancybox-title-"+d.titlePosition).html(s).appendTo("body").show();switch(d.titlePosition){case "inside":n.css({width:i.width-d.padding*2,marginLeft:d.padding,marginRight:d.padding});
28
- y=n.outerHeight(true);n.appendTo(D);i.height+=y;break;case "over":n.css({marginLeft:d.padding,width:i.width-d.padding*2,bottom:d.padding}).appendTo(D);break;case "float":n.css("left",parseInt((n.width()-i.width-40)/2,10)*-1).appendTo(f);break;default:n.css({width:i.width-d.padding*2,paddingLeft:d.padding,paddingRight:d.padding}).appendTo(f)}}}n.hide();if(f.is(":visible")){b(E.add(z).add(A)).hide();a=f.position();r={top:a.top,left:a.left,width:f.width(),height:f.height()};c=r.width==i.width&&r.height==
29
- i.height;j.fadeTo(d.changeFade,0.3,function(){var g=function(){j.html(m.contents()).fadeTo(d.changeFade,1,S)};b.event.trigger("fancybox-change");j.empty().removeAttr("filter").css({"border-width":d.padding,width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2});if(c)g();else{B.prop=0;b(B).animate({prop:1},{duration:d.changeSpeed,easing:d.easingChange,step:T,complete:g})}})}else{f.removeAttr("style");j.css("border-width",d.padding);if(d.transitionIn=="elastic"){r=V();j.html(m.contents());
30
- f.show();if(d.opacity)i.opacity=0;B.prop=0;b(B).animate({prop:1},{duration:d.speedIn,easing:d.easingIn,step:T,complete:S})}else{d.titlePosition=="inside"&&y>0&&n.show();j.css({width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2}).html(m.contents());f.css(i).fadeIn(d.transitionIn=="none"?0:d.speedIn,S)}}}},Y=function(){if(d.enableEscapeButton||d.enableKeyboardNav)b(document).bind("keydown.fb",function(a){if(a.keyCode==27&&d.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if((a.keyCode==
31
- 37||a.keyCode==39)&&d.enableKeyboardNav&&a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.target.tagName!=="SELECT"){a.preventDefault();b.fancybox[a.keyCode==37?"prev":"next"]()}});if(d.showNavArrows){if(d.cyclic&&l.length>1||p!==0)z.show();if(d.cyclic&&l.length>1||p!=l.length-1)A.show()}else{z.hide();A.hide()}},S=function(){if(!b.support.opacity){j.get(0).style.removeAttribute("filter");f.get(0).style.removeAttribute("filter")}e.autoDimensions&&j.css("height","auto");f.css("height","auto");
32
- s&&s.length&&n.show();d.showCloseButton&&E.show();Y();d.hideOnContentClick&&j.bind("click",b.fancybox.close);d.hideOnOverlayClick&&u.bind("click",b.fancybox.close);b(window).bind("resize.fb",b.fancybox.resize);d.centerOnScroll&&b(window).bind("scroll.fb",b.fancybox.center);if(d.type=="iframe")b('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(b.browser.msie?'allowtransparency="true""':"")+' scrolling="'+e.scrolling+'" src="'+d.href+'"></iframe>').appendTo(j);
33
- f.show();h=false;b.fancybox.center();d.onComplete(l,p,d);var a,c;if(l.length-1>p){a=l[p+1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}if(p>0){a=l[p-1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}},T=function(a){var c={width:parseInt(r.width+(i.width-r.width)*a,10),height:parseInt(r.height+(i.height-r.height)*a,10),top:parseInt(r.top+(i.top-r.top)*a,10),left:parseInt(r.left+(i.left-r.left)*a,10)};if(typeof i.opacity!=="undefined")c.opacity=a<0.5?0.5:a;f.css(c);
34
- j.css({width:c.width-d.padding*2,height:c.height-y*a-d.padding*2})},U=function(){return[b(window).width()-d.margin*2,b(window).height()-d.margin*2,b(document).scrollLeft()+d.margin,b(document).scrollTop()+d.margin]},X=function(){var a=U(),c={},g=d.autoScale,k=d.padding*2;c.width=d.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(d.width)/100,10):d.width+k;c.height=d.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(d.height)/100,10):d.height+k;if(g&&(c.width>a[0]||c.height>a[1]))if(e.type==
35
- "image"||e.type=="swf"){g=d.width/d.height;if(c.width>a[0]){c.width=a[0];c.height=parseInt((c.width-k)/g+k,10)}if(c.height>a[1]){c.height=a[1];c.width=parseInt((c.height-k)*g+k,10)}}else{c.width=Math.min(c.width,a[0]);c.height=Math.min(c.height,a[1])}c.top=parseInt(Math.max(a[3]-20,a[3]+(a[1]-c.height-40)*0.5),10);c.left=parseInt(Math.max(a[2]-20,a[2]+(a[0]-c.width-40)*0.5),10);return c},V=function(){var a=e.orig?b(e.orig):false,c={};if(a&&a.length){c=a.offset();c.top+=parseInt(a.css("paddingTop"),
36
- 10)||0;c.left+=parseInt(a.css("paddingLeft"),10)||0;c.top+=parseInt(a.css("border-top-width"),10)||0;c.left+=parseInt(a.css("border-left-width"),10)||0;c.width=a.width();c.height=a.height();c={width:c.width+d.padding*2,height:c.height+d.padding*2,top:c.top-d.padding-20,left:c.left-d.padding-20}}else{a=U();c={width:d.padding*2,height:d.padding*2,top:parseInt(a[3]+a[1]*0.5,10),left:parseInt(a[2]+a[0]*0.5,10)}}return c},Z=function(){if(t.is(":visible")){b("div",t).css("top",L*-40+"px");L=(L+1)%12}else clearInterval(K)};
37
- b.fn.fancybox=function(a){if(!b(this).length)return this;b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!h){h=true;b(this).blur();o=[];q=0;c=b(this).attr("rel")||"";if(!c||c==""||c==="nofollow")o.push(this);else{o=b("a[rel="+c+"], area[rel="+c+"]");q=o.index(this)}I()}});return this};b.fancybox=function(a,c){var g;if(!h){h=true;g=typeof c!=="undefined"?c:{};o=[];q=parseInt(g.index,10)||0;if(b.isArray(a)){for(var k=
38
- 0,C=a.length;k<C;k++)if(typeof a[k]=="object")b(a[k]).data("fancybox",b.extend({},g,a[k]));else a[k]=b({}).data("fancybox",b.extend({content:a[k]},g));o=jQuery.merge(o,a)}else{if(typeof a=="object")b(a).data("fancybox",b.extend({},g,a));else a=b({}).data("fancybox",b.extend({content:a},g));o.push(a)}if(q>o.length||q<0)q=0;I()}};b.fancybox.showActivity=function(){clearInterval(K);t.show();K=setInterval(Z,66)};b.fancybox.hideActivity=function(){t.hide()};b.fancybox.next=function(){return b.fancybox.pos(p+
39
- 1)};b.fancybox.prev=function(){return b.fancybox.pos(p-1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a);o=l;if(a>-1&&a<l.length){q=a;I()}else if(d.cyclic&&l.length>1){q=a>=l.length?0:l.length-1;I()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");N();e.onCancel(o,q,e);h=false}};b.fancybox.close=function(){function a(){u.fadeOut("fast");n.empty().hide();f.hide();b.event.trigger("fancybox-cleanup");j.empty();d.onClosed(l,p,d);l=e=[];p=q=0;d=e={};h=false}if(!(h||f.is(":hidden"))){h=
40
- true;if(d&&false===d.onCleanup(l,p,d))h=false;else{N();b(E.add(z).add(A)).hide();b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");j.find("iframe").attr("src",M&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");d.titlePosition!=="inside"&&n.empty();f.stop();if(d.transitionOut=="elastic"){r=V();var c=f.position();i={top:c.top,left:c.left,width:f.width(),height:f.height()};if(d.opacity)i.opacity=1;n.empty().hide();B.prop=1;
41
- b(B).animate({prop:0},{duration:d.speedOut,easing:d.easingOut,step:T,complete:a})}else f.fadeOut(d.transitionOut=="none"?0:d.speedOut,a)}}};b.fancybox.resize=function(){u.is(":visible")&&u.css("height",b(document).height());b.fancybox.center(true)};b.fancybox.center=function(a){var c,g;if(!h){g=a===true?1:0;c=U();!g&&(f.width()>c[0]||f.height()>c[1])||f.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+(c[1]-j.height()-40)*0.5-d.padding)),left:parseInt(Math.max(c[2]-20,c[2]+(c[0]-j.width()-40)*0.5-
42
- d.padding))},typeof a=="number"?a:200)}};b.fancybox.init=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('<div id="fancybox-tmp"></div>'),t=b('<div id="fancybox-loading"><div></div></div>'),u=b('<div id="fancybox-overlay"></div>'),f=b('<div id="fancybox-wrap"></div>'));D=b('<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(f);
43
- D.append(j=b('<div id="fancybox-content"></div>'),E=b('<a id="fancybox-close"></a>'),n=b('<div id="fancybox-title"></div>'),z=b('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),A=b('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));E.click(b.fancybox.close);t.click(b.fancybox.cancel);z.click(function(a){a.preventDefault();b.fancybox.prev()});A.click(function(a){a.preventDefault();b.fancybox.next()});
44
- b.fn.mousewheel&&f.bind("mousewheel.fb",function(a,c){if(h)a.preventDefault();else if(b(a.target).get(0).clientHeight==0||b(a.target).get(0).scrollHeight===b(a.target).get(0).clientHeight){a.preventDefault();b.fancybox[c>0?"prev":"next"]()}});b.support.opacity||f.addClass("fancybox-ie");if(M){t.addClass("fancybox-ie6");f.addClass("fancybox-ie6");b('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(D)}}};
45
- b.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",
46
- easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};b(document).ready(function(){b.fancybox.init()})})(jQuery);
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.8
11
+ * Requires: jQuery v1.7+
12
  *
13
  * Dual licensed under the MIT and GPL licenses:
14
  * http://www.opensource.org/licenses/mit-license.php
15
  * http://www.gnu.org/licenses/gpl.html
16
+ *
17
  */
18
+ !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(){return!1===m.onError(n,l,m)?(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>'),void J())},I=function(){var e,f,h,i,j,k,d=n[l];if(G(),m=a.extend({},a.fn.fancybox.defaults,"undefined"==typeof a(d).data("fancybox")?m:a(d).data("fancybox")),k=m.onStart(n,l,m),k===!1)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).children("img:first").length?a(d).children("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(a(d).parent().is("#fancybox-content")===!0)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){var g="object"==typeof f?f:r;if(200==g.status){if("function"==typeof m.ajax.win){if(k=m.ajax.win(e,a,d,f),k===!1)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(),p.titleShow===!1)return void i.hide();if(z=a.isFunction(p.titleFormat)?p.titleFormat(z,q,o,p):M(z),!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",parseInt((i.width()-B.width-40)/2,10)*-1).appendTo(e);break;default:i.css({width:B.width-2*p.padding,paddingLeft:p.padding,paddingRight:p.padding}).appendTo(e)}i.hide()},O=function(){return(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||(b.preventDefault(),a.fancybox[37==b.keyCode?"prev":"next"]())}),p.showNavArrows?((p.cyclic&&q.length>1||0!==o)&&j.show(),void((p.cyclic&&q.length>1||o!=q.length-1)&&k.show())):(j.hide(),void k.hide())},P=function(){a.support.opacity||(g.get(0).style.removeAttribute("filter"),e.get(0).style.removeAttribute("filter")),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).get(0).clientHeight&&a(b.target).get(0).scrollHeight!==a(b.target).get(0).clientHeight||(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===m.allowfullscreen?"":" allowfullscreen")+"></iframe>").appendTo(g),e.show(),C=!1,a.fancybox.center(),p.onComplete(q,o,p),Q()},Q=function(){var b,c;q.length-1>o&&(b=q[o+1].href,"undefined"!=typeof b&&(b.match(t)||a(obj).hasClass("image"))&&(c=new Image,c.src=b)),o>0&&(b=q[o-1].href,"undefined"!=typeof b&&(b.match(t)||a(obj).hasClass("image"))&&(c=new Image,c.src=b))},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)};"undefined"!=typeof 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(){return c.is(":visible")?(a("div",c).css("top",x*-40+"px"),void(x=(x+1)%12)):void clearInterval(w)};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&&"nofollow"!==c?(n=a('a[rel="'+c+'"], area[rel="'+c+'"]'),l=n.index(this)):n.push(this),I()}}),this):this},a.fancybox=function(b){var c;if(!C){if(C=!0,c="undefined"!=typeof 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()),a.fancybox.center(!0)},a.fancybox.center=function(){var a,b;C||(b=arguments[0]===!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:"transparent"},svg:{wmode:"transparent"},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);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/jquery.easing.min.js ADDED
@@ -0,0 +1 @@
 
1
+ (function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],function($){return factory($)})}else if(typeof module==="object"&&typeof module.exports==="object"){exports=factory(require("jquery"))}else{factory(jQuery)}})(function($){$.easing["jswing"]=$.easing["swing"];var pow=Math.pow,sqrt=Math.sqrt,sin=Math.sin,cos=Math.cos,PI=Math.PI,c1=1.70158,c2=c1*1.525,c3=c1+1,c4=2*PI/3,c5=2*PI/4.5;function bounceOut(x){var n1=7.5625,d1=2.75;if(x<1/d1){return n1*x*x}else if(x<2/d1){return n1*(x-=1.5/d1)*x+.75}else if(x<2.5/d1){return n1*(x-=2.25/d1)*x+.9375}else{return n1*(x-=2.625/d1)*x+.984375}}$.extend($.easing,{def:"easeOutQuad",swing:function(x){return $.easing[$.easing.def](x)},easeInQuad:function(x){return x*x},easeOutQuad:function(x){return 1-(1-x)*(1-x)},easeInOutQuad:function(x){return x<.5?2*x*x:1-pow(-2*x+2,2)/2},easeInCubic:function(x){return x*x*x},easeOutCubic:function(x){return 1-pow(1-x,3)},easeInOutCubic:function(x){return x<.5?4*x*x*x:1-pow(-2*x+2,3)/2},easeInQuart:function(x){return x*x*x*x},easeOutQuart:function(x){return 1-pow(1-x,4)},easeInOutQuart:function(x){return x<.5?8*x*x*x*x:1-pow(-2*x+2,4)/2},easeInQuint:function(x){return x*x*x*x*x},easeOutQuint:function(x){return 1-pow(1-x,5)},easeInOutQuint:function(x){return x<.5?16*x*x*x*x*x:1-pow(-2*x+2,5)/2},easeInSine:function(x){return 1-cos(x*PI/2)},easeOutSine:function(x){return sin(x*PI/2)},easeInOutSine:function(x){return-(cos(PI*x)-1)/2},easeInExpo:function(x){return x===0?0:pow(2,10*x-10)},easeOutExpo:function(x){return x===1?1:1-pow(2,-10*x)},easeInOutExpo:function(x){return x===0?0:x===1?1:x<.5?pow(2,20*x-10)/2:(2-pow(2,-20*x+10))/2},easeInCirc:function(x){return 1-sqrt(1-pow(x,2))},easeOutCirc:function(x){return sqrt(1-pow(x-1,2))},easeInOutCirc:function(x){return x<.5?(1-sqrt(1-pow(2*x,2)))/2:(sqrt(1-pow(-2*x+2,2))+1)/2},easeInElastic:function(x){return x===0?0:x===1?1:-pow(2,10*x-10)*sin((x*10-10.75)*c4)},easeOutElastic:function(x){return x===0?0:x===1?1:pow(2,-10*x)*sin((x*10-.75)*c4)+1},easeInOutElastic:function(x){return x===0?0:x===1?1:x<.5?-(pow(2,20*x-10)*sin((20*x-11.125)*c5))/2:pow(2,-20*x+10)*sin((20*x-11.125)*c5)/2+1},easeInBack:function(x){return c3*x*x*x-c1*x*x},easeOutBack:function(x){return 1+c3*pow(x-1,3)+c1*pow(x-1,2)},easeInOutBack:function(x){return x<.5?pow(2*x,2)*((c2+1)*2*x-c2)/2:(pow(2*x-2,2)*((c2+1)*(x*2-2)+c2)+2)/2},easeInBounce:function(x){return 1-bounceOut(1-x)},easeOutBounce:bounceOut,easeInOutBounce:function(x){return x<.5?(1-bounceOut(1-2*x))/2:(1+bounceOut(2*x-1))/2}})});
js/jquery.mousewheel.pack.js ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * jQuery Mousewheel 3.1.13
3
+ *
4
+ * Copyright 2015 jQuery Foundation and other contributors
5
+ * Released under the MIT license.
6
+ * http://jquery.org/license
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)}})});
readme.txt CHANGED
@@ -1,235 +1,242 @@
1
- === FancyBox for WordPress ===
2
- Contributors: silkalns
3
- Tags: fancybox, lightbox, jquery, gallery, image, images, photo, photos, picture, pictures, zoom
4
- Requires at least: 3.4
5
- Tested up to: 4.6
6
- Stable tag: 3.0.10
7
- License: GPL/MIT
8
-
9
- Seamlessly integrates FancyBox lightbox into your WordPress blog: Upload, activate, and you're done. Additional configuration optional.
10
-
11
-
12
- == Description ==
13
-
14
- Seamlessly integrates FancyBox into your blog: Upload, activate, and you're done. Additional configuration optional.
15
-
16
- You can easily customize almost anything you can think about fancybox lightbox: the border, margin width and color, zoom speed, animation type, close button position, overlay color and opacity and even more advanced option like several options to group images into galleries, and more...
17
-
18
- By default, the plugin will use jQuery to apply FancyBox to ANY thumbnails that link directly to an image. This includes posts, the sidebar, etc, so you can activate it and it will be applied automatically.
19
-
20
- = Demo =
21
-
22
- You can see the plugin working on a <a href="http://blog.moskis.net/2012/01/20/teclado-apple-en-windows-7/" target="_blank">this blog</a> although there's nothing amazing to see, just a FancyBox simple implementation, that's the point ;) You can take a look at the code if you're curious, though.
23
-
24
- = Further Reading =
25
-
26
- This plugin is developed and maintained by Colorlib. Which is well know for their free <a href="https://colorlib.com/wp/themes/" rel="friend" target="_blank"></a>WordPress themes. However, now they are looking to extend their presence in plugin development and believe that FancyBox lightbox is a great way to start.
27
-
28
- If you are new to WordPress and want to lear more we have got you covered. Colorlib will teach you have to <a href="https://colorlib.com/" rel="friend">start a blog</a> or <a href="https://colorlib.com/wp/how-to-make-a-website/" rel="friend">create a website</a> and much more. If you are already familiar with WordPress you likely want to learn how to make it faster and more reliable. That's when you want to look into hosting and more specifically <a href="http://colorlib.com/wp/wordpress-hosting" rel="friend">WordPress hosting</a>.
29
-
30
- If you enjoy using FancyBox lightbox for WordPress please leave a [positive feedback](https://wordpress.org/support/plugin/fancybox-for-wordpress/reviews/?filter=5). We are committed to make it the best lightbox plugin for WordPress.
31
-
32
- == Changelog ==
33
-
34
- = 3.0.7 =
35
-
36
- * Updated Fancybox library
37
- * Updated other libraries this plugins depends on such as jQuery easing and jQuery Mousewheel
38
- * Tested plugin with WordPress 4.6
39
-
40
- = 3.0.6 =
41
- * Fixes to JavaScript code for showing and hiding elements as they are needed in Settings page. (Thanks to jono55 for reporting)
42
-
43
- = 3.0.5 =
44
- * Fixed the Revert Options button.
45
- * Fixed wrong version number being shown on the plugin's settings page.
46
- * Updated plugin and author links in readme and settings page.
47
- * Updated localization catalog (POT file).
48
- * Updated Spanish translation with minor updates.
49
- * Updated Frequently Asked Questions in readme file.
50
- * Removed version number from printed html source code.
51
- * Removed outdated/incomplete translation binaries.
52
-
53
- = 3.0.4 =
54
- * Renamed the setting affected by the security issue mentioned in 3.0.3. This should stop the malicious code from appearing on sites where the plugin is updated without removing the malicious code.
55
-
56
- = 3.0.3 =
57
- * Fixed a security issue. (Thanks to mickaelb for reporting and Konstantin Kovshenin for providing the fix)
58
-
59
- = 3.0.2 =
60
- * Added support for disabling fancybox on individual hyperlinked images by adding class='nolightbox'. (Thanks to Artem Russakovskii)
61
- * Added a link to the github project page in the info tab in the settings page.
62
- * Fixed and cleaned the installation code, new installations of the plugin should work now without need to go to the settings page.
63
- * Fixed false positives in filenames. (Thanks to Artem Russakovskii)
64
- * Fixed incompatibility with wordpress installations where the wp-content directory had been renamed.
65
- * Fixed an issue that could cause the version of the plugin to be removed from settings when deactivating the plugin.
66
- * Improved HTTPS support by using better code to retrieve the plugin url and load files.
67
- * Removed legacy code to suport upgrading settings from 2.x versions of the plugin. This was done to avoid possible issues with clean installations of the plugin.
68
- * Updated some CSS rules in jQuery UI
69
- * Some minor reformatting and cleanup of code (PHP comments, empty lines, )
70
-
71
- = 3.0.1 =
72
- * Updated: Localization catalog updated.
73
- * Updated: Spanish localization.
74
- * Fixed: Minor change in settings page that may fix options page being invisible in some cases.
75
-
76
- = 3.0.0 =
77
- * New: Fancybox v1.3.4 support This includes many new options, like title position.
78
- * New: Additional FancyBox Calls option that lets the user write their own additional code to use FancyBox on specific areas of the blog, like email subscription buttons, login, etc.
79
- * New: Revert settings button added to options page. When pressed, a confirmation dialog will appear.
80
- * New: Improvements in options page, irrelevant settings (settings that depend on a disabled setting) will hide on real time, meaning a cleaner look in the options page.
81
- * Updated: New cleaner code to select thumbnails on which to apply the fancbox script.
82
- * Updated: Many parts of plugins rewriten with many improvements in code.
83
- * Updated: Options are now serialized into a single row in the database.
84
- * Fixed: Plugin should be SSL friendly from now on.
85
- * Fixed: Do not call jQuery option in troubleshooting section didn't work if easing was enabled.
86
- * Fixed: Load at footer options should work better now.
87
- * Fixed: CSS external files now addded with wp_enqueue_style().
88
- * Fixed: has_cap error: User level value for options page removed, using role now instead. Thanks to [vonkanehoffen](http://wordpress.org/support/topic/plugin-fancybox-for-wordpress-has_cap-fix).
89
- * Removed: jQuery "noConflict" Mode option removed bacause jQuery bundled with WordPress always used noConflict.
90
- * Removed: Base64 data ("data:image/gif;base64,AAAA") in left and right fancybox link's backgrounds: It didn't seem to be working and it is usually regarded as suspicious code, so it has been removed.
91
-
92
- = 2.7.5 =
93
- * Fixed: Callback arguments are no longer added as "null" when they are not set in options page.
94
-
95
- = 2.7.4 =
96
- * Fixed: Little error tagging 2.7.3, a file didn't upload and broke options page.
97
- * Update: Language POT file
98
-
99
- = 2.7.3 =
100
- * Fixed: Settings not saving in some browsers. Thanks to [supertomate](http://wordpress.org/support/topic/plugin-fancybox-for-wordpress-save-changes-button-doesnt-submit-form?replies=7#post-1765041)
101
- * Fixed: JS being added to other plugins' configuration pages. Thanks to [Brandon Dove](http://wordpress.org/support/topic/plugin-fancybox-for-wordpress-theres-a-problem-with-is_plugin_page?replies=1#post-1888828)
102
- * Added: Support section in options page with better information
103
-
104
- = 2.7.2 =
105
- * Fixed: Layout problem in options page in WordPress 2.9
106
-
107
- = 2.7.1 =
108
- * Fixed: Z-index issue was left out in previus release
109
- * Fixed: Setting to close fancybox when clicking on the overlay wasn't available in the menu
110
- * Fixed: Frame width and height options are now in the "Other" tab
111
- * Fixed: Tabs now translated in Spanish localization
112
-
113
- = 2.7.0 =
114
- * New: Fancybox v1.2.6 support
115
- * New: New Admin page with tabs for better organization of all the options
116
- * Added: Setting to change the speed of the animation when changing gallery items
117
- * Added: Setting to enable or disable Escape key to close Fancybox
118
- * Added: Setting to show or hide close button
119
- * Added: Setting to close fancybox when clicking on the overlay
120
- * Added: Setting to enable or disable callback function on start, show and close events
121
- * Added: Italian translation
122
- * Added: Russian translation
123
- * Added: "Load JS at Footer" option
124
- * Added: New Changelog tab in Wordpress Plugin Directory
125
- * Fixed: Some typos in Spanish translation
126
- * Fixed: FancyBox not showing above some elements (those with zindex higher than 90)
127
- * Fixed: JavaScript code being included in all admin pages instead of just the plugin's options page.
128
- * Fixed: noClonflict preventing frames to work in Fancybox
129
- * Fixed: Custom frame width and height not being applied
130
- * Updated: Japanese translation
131
- * Updated: JS is now Minified instead of Packed
132
-
133
- = 2.6.0 =
134
- * Optimized the JavaScript code used to apply FancyBox
135
- * Updated Custom Expression section in Options Page
136
- * Fixed uppercase image extensions not being recognized
137
- * CSS is now loaded before the JavaScript for better parallelization
138
- * jquery.easing.1.3.js compressed (from 8,10kb to 3,47kb) and renamed to jquery.easing.1.3.pack.js
139
- * Added Turkish translation (some strings missing)
140
- * Added Japanese translation (some strings missing)
141
- * Updated Spanish translation
142
- * Updated to use new Plugin API in WP2.7 for better forward compatibility
143
- * Removed /wp-content/ reference in fancybox.php for better WP2.8 support
144
- * Optimized some code readability
145
-
146
- = 2.5.1 =
147
- * Fixed the plugin not working when selecting Gallery Type "By Post"
148
- * Fixed a bug that would prevent the title in the IMG tag from being copied to the A tag in some cases
149
- * Fixed the Custom Expression showing in the Admin panel when other gallery types are selected
150
-
151
- = 2.5 =
152
- * Support for localizations (Spanish and German localizations included)
153
- * Some parts of the code completely rewritten
154
- * Fixed fancybox files being loaded on the admin pages
155
- * New options for close button position, custom jquery expressions, iframe content
156
- * Options page mostly rewritten, better organized
157
- * Medium/advanced, troubleshooting/uninstall options collapsable, hidden by default
158
- * Better support guidelines and links on options page
159
- * Settings link on the Manage plugins page
160
- * Custom expression hidden when not used
161
- * Title atribute on IMG tags is now copied to its parent A tag for better caption support
162
- * New uninstall options and better handling of new options when installing/updating
163
- * Cleans any old options no longer needed when plugin is activated/updated
164
-
165
- = 2.2 =
166
- * Updated to FancyBox 1.2.1
167
- * Added new settings to Options Page: Easing, padding size, border color
168
- * Tweaked CSS to prevent some themes from adding unwanted styles to fancybox (especially background colors and link outlines)
169
- * Options Page reorganized in three sections: Appearance, Behaviour and Troubleshooting Settings, to make settings easier to find
170
-
171
- = 2.1.1 =
172
- * Fixed a new bug introduced in 2.1 that prevented options from being saved. Sorry about the mess :(
173
-
174
- = 2.1 =
175
- * Fixed a major bug in 2.0 that prevented it from working until plugin's options page was visited
176
- * Added two options for troubleshooting that might help in some cases if the plugin doesn't work: disable jQuery noConflict and skip jQuery call
177
- * Additional fixes to caption CSS: Captions should look better now in Hybrid theme, child themes, and other situations where general table elements are improperly styled
178
-
179
- = 2.0 =
180
- * Brand new Options Page in Admin Panel lets you easely customize many options: fancybox auto apply, image resize to fit, opacity fade while zooming, zoom speed, overlay on/off, overlay color, overlay opacity, close fancybox on image click, keep fancybox centered while scrolling
181
- * CSS completely updated for FancyBox 1.2.0
182
- * Captions fixed in IE
183
-
184
- = 1.3 =
185
- * Shadows and Close button should be fixed now
186
-
187
- = 1.2 =
188
- * Updated to FancyBox 1.2.0
189
- * Uses packed version of the JavaScript file (8kb instead of 14kb)
190
-
191
- = 1.1 =
192
- * Fixed FancyBox not being applied to .jpeg files
193
- * Fixed "Click to close" overlay text
194
- * Moved images to /img/ folder
195
-
196
-
197
- == Upgrade Notice ==
198
-
199
- = 3.0.5 =
200
- Fixes the Revert options button and wrong version number on settings page. Also updates links in settings page and readme file.
201
-
202
-
203
- == Installation ==
204
-
205
- 1. Upload the `fancybox-for-wordpress` folder to the `/wp-content/plugins/` directory
206
- 2. Activate the plugin through the 'Plugins' menu in WordPress
207
- 3. That's it, FancyBox will be automatically applied to all your image links and galleries.
208
- 4. If you want to customize a bit the look and feel of FancyBox, go to the Options Page under General Options in the WordPress Admin panel
209
-
210
-
211
- == Screenshots ==
212
-
213
- 1. Simple example of fancybox on a post. [Live demo here](http://blog.moskis.net/2012/01/20/teclado-apple-en-windows-7/)
214
- 2. Basic settings on Options Page in the Admin Panel. This makes it very easy to customize the plugin to your needs
215
-
216
-
217
- == Frequently Asked Questions ==
218
-
219
- **- There was a vulnerability detected in versions 3.0.2 and lower, is my site in danger?**
220
-
221
- This vulnerability was patched in version 3.0.3.
222
-
223
- An additional change was introduced in version 3.0.4 to make sure that the malicious code can't be printed to visitors even if it still remains in the database.
224
-
225
- If you think your site might still be using a vulnerable version of the plugin please log in to your WordPress admin panel, disable the plugin and clear any cache if your site uses a cache system.
226
-
227
- If you wish to continue using the plugin, check that the plugin is updated to the latest version from your admin panel and enable it. Then check the plugin's settings page and make sure there's no abnormal code in any of the fields, especially on the Extra Calls tab. If you are not sure about the code you see in the settings please use the Revert to Defaults button at the bottom of the settings page.
228
-
229
- If you think your site might be compromised in any other way check this guide: [WordPress Codex - FAQ My site was hacked](http://codex.wordpress.org/FAQ_My_site_was_hacked).
230
-
231
- **- Is the FancyBox script vulnerable or unsafe?**
232
-
233
- No, there's nothing wrong with the actual FancyBox script that i know of.
234
-
235
- The vulnerability detected in versions 3.0.2 and lower of the "FancyBox for WordPress" plugin was limited to the plugin itself. Other FancyBox plugins or manual implementations of FancyBox are unrelated to this issue.
 
 
 
 
 
 
 
1
+ === FancyBox for WordPress ===
2
+ Contributors: silkalns
3
+ Tags: fancybox, lightbox, jquery, gallery, image, images, photo, photos, picture, pictures, zoom
4
+ Requires at least: 3.4
5
+ Tested up to: 4.7
6
+ Stable tag: 3.0.14
7
+ License: GPL/MIT
8
+
9
+ Seamlessly integrates FancyBox lightbox into your WordPress blog: Upload, activate, and you're done. Additional configuration optional.
10
+
11
+
12
+ == Description ==
13
+
14
+ Seamlessly integrates FancyBox into your blog: Upload, activate, and you're done. Additional configuration optional.
15
+
16
+ You can easily customize almost anything you can think about fancybox lightbox: the border, margin width and color, zoom speed, animation type, close button position, overlay color and opacity and even more advanced option like several options to group images into galleries, and more...
17
+
18
+ By default, the plugin will use jQuery to apply FancyBox to ANY thumbnails that link directly to an image. This includes posts, the sidebar, etc, so you can activate it and it will be applied automatically.
19
+
20
+ = Demo =
21
+
22
+ You can see the plugin working on a <a href="http://blog.moskis.net/2012/01/20/teclado-apple-en-windows-7/" target="_blank">this blog</a> although there's nothing amazing to see, just a FancyBox simple implementation, that's the point ;) You can take a look at the code if you're curious, though.
23
+
24
+ = Further Reading =
25
+
26
+ This plugin is developed and maintained by Colorlib. Which is well know for their free <a href="https://colorlib.com/wp/themes/" target="_blank"></a>WordPress themes. However, now they are looking to extend their presence in plugin development and believe that FancyBox lightbox is a great way to start.
27
+
28
+ If you are new to WordPress and want to lear more we have got you covered. Colorlib will teach you have to <a href="https://colorlib.com/">start a blog</a> or <a href="https://colorlib.com/wp/how-to-make-a-website/">create a website</a> and much more. If you are already familiar with WordPress you likely want to learn how to make it faster and more reliable. That's when you want to look into hosting and more specifically <a href="http://colorlib.com/wp/wordpress-hosting">WordPress hosting</a>.
29
+
30
+ If you enjoy using FancyBox lightbox for WordPress please leave a [positive feedback](https://wordpress.org/support/plugin/fancybox-for-wordpress/reviews/?filter=5). We are committed to make it the best lightbox plugin for WordPress.
31
+
32
+ == Changelog ==
33
+
34
+ = 3.0.14 =
35
+ * Minor fixes.
36
+
37
+ = 3.0.12 =
38
+
39
+ Fixed errors causes by WordPress SVN.
40
+
41
+ = 3.0.7 =
42
+
43
+ * Updated Fancybox library
44
+ * Updated other libraries this plugins depends on such as jQuery easing and jQuery Mousewheel
45
+ * Tested plugin with WordPress 4.6
46
+
47
+ = 3.0.6 =
48
+ * Fixes to JavaScript code for showing and hiding elements as they are needed in Settings page. (Thanks to jono55 for reporting)
49
+
50
+ = 3.0.5 =
51
+ * Fixed the Revert Options button.
52
+ * Fixed wrong version number being shown on the plugin's settings page.
53
+ * Updated plugin and author links in readme and settings page.
54
+ * Updated localization catalog (POT file).
55
+ * Updated Spanish translation with minor updates.
56
+ * Updated Frequently Asked Questions in readme file.
57
+ * Removed version number from printed html source code.
58
+ * Removed outdated/incomplete translation binaries.
59
+
60
+ = 3.0.4 =
61
+ * Renamed the setting affected by the security issue mentioned in 3.0.3. This should stop the malicious code from appearing on sites where the plugin is updated without removing the malicious code.
62
+
63
+ = 3.0.3 =
64
+ * Fixed a security issue. (Thanks to mickaelb for reporting and Konstantin Kovshenin for providing the fix)
65
+
66
+ = 3.0.2 =
67
+ * Added support for disabling fancybox on individual hyperlinked images by adding class='nolightbox'. (Thanks to Artem Russakovskii)
68
+ * Added a link to the github project page in the info tab in the settings page.
69
+ * Fixed and cleaned the installation code, new installations of the plugin should work now without need to go to the settings page.
70
+ * Fixed false positives in filenames. (Thanks to Artem Russakovskii)
71
+ * Fixed incompatibility with wordpress installations where the wp-content directory had been renamed.
72
+ * Fixed an issue that could cause the version of the plugin to be removed from settings when deactivating the plugin.
73
+ * Improved HTTPS support by using better code to retrieve the plugin url and load files.
74
+ * Removed legacy code to suport upgrading settings from 2.x versions of the plugin. This was done to avoid possible issues with clean installations of the plugin.
75
+ * Updated some CSS rules in jQuery UI
76
+ * Some minor reformatting and cleanup of code (PHP comments, empty lines, )
77
+
78
+ = 3.0.1 =
79
+ * Updated: Localization catalog updated.
80
+ * Updated: Spanish localization.
81
+ * Fixed: Minor change in settings page that may fix options page being invisible in some cases.
82
+
83
+ = 3.0.0 =
84
+ * New: Fancybox v1.3.4 support This includes many new options, like title position.
85
+ * New: Additional FancyBox Calls option that lets the user write their own additional code to use FancyBox on specific areas of the blog, like email subscription buttons, login, etc.
86
+ * New: Revert settings button added to options page. When pressed, a confirmation dialog will appear.
87
+ * New: Improvements in options page, irrelevant settings (settings that depend on a disabled setting) will hide on real time, meaning a cleaner look in the options page.
88
+ * Updated: New cleaner code to select thumbnails on which to apply the fancbox script.
89
+ * Updated: Many parts of plugins rewriten with many improvements in code.
90
+ * Updated: Options are now serialized into a single row in the database.
91
+ * Fixed: Plugin should be SSL friendly from now on.
92
+ * Fixed: Do not call jQuery option in troubleshooting section didn't work if easing was enabled.
93
+ * Fixed: Load at footer options should work better now.
94
+ * Fixed: CSS external files now addded with wp_enqueue_style().
95
+ * Fixed: has_cap error: User level value for options page removed, using role now instead. Thanks to [vonkanehoffen](http://wordpress.org/support/topic/plugin-fancybox-for-wordpress-has_cap-fix).
96
+ * Removed: jQuery "noConflict" Mode option removed bacause jQuery bundled with WordPress always used noConflict.
97
+ * Removed: Base64 data ("data:image/gif;base64,AAAA") in left and right fancybox link's backgrounds: It didn't seem to be working and it is usually regarded as suspicious code, so it has been removed.
98
+
99
+ = 2.7.5 =
100
+ * Fixed: Callback arguments are no longer added as "null" when they are not set in options page.
101
+
102
+ = 2.7.4 =
103
+ * Fixed: Little error tagging 2.7.3, a file didn't upload and broke options page.
104
+ * Update: Language POT file
105
+
106
+ = 2.7.3 =
107
+ * Fixed: Settings not saving in some browsers. Thanks to [supertomate](http://wordpress.org/support/topic/plugin-fancybox-for-wordpress-save-changes-button-doesnt-submit-form?replies=7#post-1765041)
108
+ * Fixed: JS being added to other plugins' configuration pages. Thanks to [Brandon Dove](http://wordpress.org/support/topic/plugin-fancybox-for-wordpress-theres-a-problem-with-is_plugin_page?replies=1#post-1888828)
109
+ * Added: Support section in options page with better information
110
+
111
+ = 2.7.2 =
112
+ * Fixed: Layout problem in options page in WordPress 2.9
113
+
114
+ = 2.7.1 =
115
+ * Fixed: Z-index issue was left out in previus release
116
+ * Fixed: Setting to close fancybox when clicking on the overlay wasn't available in the menu
117
+ * Fixed: Frame width and height options are now in the "Other" tab
118
+ * Fixed: Tabs now translated in Spanish localization
119
+
120
+ = 2.7.0 =
121
+ * New: Fancybox v1.2.6 support
122
+ * New: New Admin page with tabs for better organization of all the options
123
+ * Added: Setting to change the speed of the animation when changing gallery items
124
+ * Added: Setting to enable or disable Escape key to close Fancybox
125
+ * Added: Setting to show or hide close button
126
+ * Added: Setting to close fancybox when clicking on the overlay
127
+ * Added: Setting to enable or disable callback function on start, show and close events
128
+ * Added: Italian translation
129
+ * Added: Russian translation
130
+ * Added: "Load JS at Footer" option
131
+ * Added: New Changelog tab in Wordpress Plugin Directory
132
+ * Fixed: Some typos in Spanish translation
133
+ * Fixed: FancyBox not showing above some elements (those with zindex higher than 90)
134
+ * Fixed: JavaScript code being included in all admin pages instead of just the plugin's options page.
135
+ * Fixed: noClonflict preventing frames to work in Fancybox
136
+ * Fixed: Custom frame width and height not being applied
137
+ * Updated: Japanese translation
138
+ * Updated: JS is now Minified instead of Packed
139
+
140
+ = 2.6.0 =
141
+ * Optimized the JavaScript code used to apply FancyBox
142
+ * Updated Custom Expression section in Options Page
143
+ * Fixed uppercase image extensions not being recognized
144
+ * CSS is now loaded before the JavaScript for better parallelization
145
+ * jquery.easing.1.3.js compressed (from 8,10kb to 3,47kb) and renamed to jquery.easing.1.3.pack.js
146
+ * Added Turkish translation (some strings missing)
147
+ * Added Japanese translation (some strings missing)
148
+ * Updated Spanish translation
149
+ * Updated to use new Plugin API in WP2.7 for better forward compatibility
150
+ * Removed /wp-content/ reference in fancybox.php for better WP2.8 support
151
+ * Optimized some code readability
152
+
153
+ = 2.5.1 =
154
+ * Fixed the plugin not working when selecting Gallery Type "By Post"
155
+ * Fixed a bug that would prevent the title in the IMG tag from being copied to the A tag in some cases
156
+ * Fixed the Custom Expression showing in the Admin panel when other gallery types are selected
157
+
158
+ = 2.5 =
159
+ * Support for localizations (Spanish and German localizations included)
160
+ * Some parts of the code completely rewritten
161
+ * Fixed fancybox files being loaded on the admin pages
162
+ * New options for close button position, custom jquery expressions, iframe content
163
+ * Options page mostly rewritten, better organized
164
+ * Medium/advanced, troubleshooting/uninstall options collapsable, hidden by default
165
+ * Better support guidelines and links on options page
166
+ * Settings link on the Manage plugins page
167
+ * Custom expression hidden when not used
168
+ * Title atribute on IMG tags is now copied to its parent A tag for better caption support
169
+ * New uninstall options and better handling of new options when installing/updating
170
+ * Cleans any old options no longer needed when plugin is activated/updated
171
+
172
+ = 2.2 =
173
+ * Updated to FancyBox 1.2.1
174
+ * Added new settings to Options Page: Easing, padding size, border color
175
+ * Tweaked CSS to prevent some themes from adding unwanted styles to fancybox (especially background colors and link outlines)
176
+ * Options Page reorganized in three sections: Appearance, Behaviour and Troubleshooting Settings, to make settings easier to find
177
+
178
+ = 2.1.1 =
179
+ * Fixed a new bug introduced in 2.1 that prevented options from being saved. Sorry about the mess :(
180
+
181
+ = 2.1 =
182
+ * Fixed a major bug in 2.0 that prevented it from working until plugin's options page was visited
183
+ * Added two options for troubleshooting that might help in some cases if the plugin doesn't work: disable jQuery noConflict and skip jQuery call
184
+ * Additional fixes to caption CSS: Captions should look better now in Hybrid theme, child themes, and other situations where general table elements are improperly styled
185
+
186
+ = 2.0 =
187
+ * Brand new Options Page in Admin Panel lets you easely customize many options: fancybox auto apply, image resize to fit, opacity fade while zooming, zoom speed, overlay on/off, overlay color, overlay opacity, close fancybox on image click, keep fancybox centered while scrolling
188
+ * CSS completely updated for FancyBox 1.2.0
189
+ * Captions fixed in IE
190
+
191
+ = 1.3 =
192
+ * Shadows and Close button should be fixed now
193
+
194
+ = 1.2 =
195
+ * Updated to FancyBox 1.2.0
196
+ * Uses packed version of the JavaScript file (8kb instead of 14kb)
197
+
198
+ = 1.1 =
199
+ * Fixed FancyBox not being applied to .jpeg files
200
+ * Fixed "Click to close" overlay text
201
+ * Moved images to /img/ folder
202
+
203
+
204
+ == Upgrade Notice ==
205
+
206
+ = 3.0.5 =
207
+ Fixes the Revert options button and wrong version number on settings page. Also updates links in settings page and readme file.
208
+
209
+
210
+ == Installation ==
211
+
212
+ 1. Upload the `fancybox-for-wordpress` folder to the `/wp-content/plugins/` directory
213
+ 2. Activate the plugin through the 'Plugins' menu in WordPress
214
+ 3. That's it, FancyBox will be automatically applied to all your image links and galleries.
215
+ 4. If you want to customize a bit the look and feel of FancyBox, go to the Options Page under General Options in the WordPress Admin panel
216
+
217
+
218
+ == Screenshots ==
219
+
220
+ 1. Simple example of fancybox on a post. [Live demo here](http://blog.moskis.net/2012/01/20/teclado-apple-en-windows-7/)
221
+ 2. Basic settings on Options Page in the Admin Panel. This makes it very easy to customize the plugin to your needs
222
+
223
+
224
+ == Frequently Asked Questions ==
225
+
226
+ **- There was a vulnerability detected in versions 3.0.2 and lower, is my site in danger?**
227
+
228
+ This vulnerability was patched in version 3.0.3.
229
+
230
+ An additional change was introduced in version 3.0.4 to make sure that the malicious code can't be printed to visitors even if it still remains in the database.
231
+
232
+ If you think your site might still be using a vulnerable version of the plugin please log in to your WordPress admin panel, disable the plugin and clear any cache if your site uses a cache system.
233
+
234
+ If you wish to continue using the plugin, check that the plugin is updated to the latest version from your admin panel and enable it. Then check the plugin's settings page and make sure there's no abnormal code in any of the fields, especially on the Extra Calls tab. If you are not sure about the code you see in the settings please use the Revert to Defaults button at the bottom of the settings page.
235
+
236
+ If you think your site might be compromised in any other way check this guide: [WordPress Codex - FAQ My site was hacked](http://codex.wordpress.org/FAQ_My_site_was_hacked).
237
+
238
+ **- Is the FancyBox script vulnerable or unsafe?**
239
+
240
+ No, there's nothing wrong with the actual FancyBox script that i know of.
241
+
242
+ The vulnerability detected in versions 3.0.2 and lower of the "FancyBox for WordPress" plugin was limited to the plugin itself. Other FancyBox plugins or manual implementations of FancyBox are unrelated to this issue.