Responsive Lightbox & Gallery - Version 2.0.1

Version Description

  • Fix: Syntax error in frontend.php on line 522
Download this release

Release Info

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

Code changes from version 2.0 to 2.0.1

assets/fancybox/jquery.easing-1.3.pack.js DELETED
@@ -1,72 +0,0 @@
1
- /*
2
- * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
3
- *
4
- * Uses the built in easing capabilities added In jQuery 1.1
5
- * to offer multiple easing options
6
- *
7
- * TERMS OF USE - jQuery Easing
8
- *
9
- * Open source under the BSD License.
10
- *
11
- * Copyright © 2008 George McGinley Smith
12
- * All rights reserved.
13
- *
14
- * Redistribution and use in source and binary forms, with or without modification,
15
- * are permitted provided that the following conditions are met:
16
- *
17
- * Redistributions of source code must retain the above copyright notice, this list of
18
- * conditions and the following disclaimer.
19
- * Redistributions in binary form must reproduce the above copyright notice, this list
20
- * of conditions and the following disclaimer in the documentation and/or other materials
21
- * provided with the distribution.
22
- *
23
- * Neither the name of the author nor the names of contributors may be used to endorse
24
- * or promote products derived from this software without specific prior written permission.
25
- *
26
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
27
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
28
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
29
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
31
- * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
32
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
33
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
34
- * OF THE POSSIBILITY OF SUCH DAMAGE.
35
- *
36
- */
37
-
38
- // t: current time, b: begInnIng value, c: change In value, d: duration
39
- eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{}))
40
-
41
- /*
42
- *
43
- * TERMS OF USE - EASING EQUATIONS
44
- *
45
- * Open source under the BSD License.
46
- *
47
- * Copyright © 2001 Robert Penner
48
- * All rights reserved.
49
- *
50
- * Redistribution and use in source and binary forms, with or without modification,
51
- * are permitted provided that the following conditions are met:
52
- *
53
- * Redistributions of source code must retain the above copyright notice, this list of
54
- * conditions and the following disclaimer.
55
- * Redistributions in binary form must reproduce the above copyright notice, this list
56
- * of conditions and the following disclaimer in the documentation and/or other materials
57
- * provided with the distribution.
58
- *
59
- * Neither the name of the author nor the names of contributors may be used to endorse
60
- * or promote products derived from this software without specific prior written permission.
61
- *
62
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
63
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
64
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
65
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
66
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
67
- * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
68
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
69
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
70
- * OF THE POSSIBILITY OF SUCH DAMAGE.
71
- *
72
- */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/fancybox/jquery.fancybox-1.3.4.css DELETED
@@ -1,359 +0,0 @@
1
- /*
2
- * FancyBox - jQuery Plugin
3
- * Simple and fancy lightbox alternative
4
- *
5
- * Examples and documentation at: http://fancybox.net
6
- *
7
- * Copyright (c) 2008 - 2010 Janis Skarnelis
8
- * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
- *
10
- * Version: 1.3.4 (11/11/2010)
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
- #fancybox-loading {
19
- position: fixed;
20
- top: 50%;
21
- left: 50%;
22
- width: 40px;
23
- height: 40px;
24
- margin-top: -20px;
25
- margin-left: -20px;
26
- cursor: pointer;
27
- overflow: hidden;
28
- z-index: 1104;
29
- display: none;
30
- }
31
-
32
- #fancybox-loading div {
33
- position: absolute;
34
- top: 0;
35
- left: 0;
36
- width: 40px;
37
- height: 480px;
38
- background-image: url('fancybox.png');
39
- }
40
-
41
- #fancybox-overlay {
42
- position: absolute;
43
- top: 0;
44
- left: 0;
45
- width: 100%;
46
- z-index: 1100;
47
- display: none;
48
- }
49
-
50
- #fancybox-tmp {
51
- padding: 0;
52
- margin: 0;
53
- border: 0;
54
- overflow: auto;
55
- display: none;
56
- }
57
-
58
- #fancybox-wrap {
59
- position: absolute;
60
- top: 0;
61
- left: 0;
62
- padding: 20px;
63
- z-index: 1101;
64
- outline: none;
65
- display: none;
66
- }
67
-
68
- #fancybox-outer {
69
- position: relative;
70
- width: 100%;
71
- height: 100%;
72
- background: #fff;
73
- }
74
-
75
- #fancybox-content {
76
- width: 0;
77
- height: 0;
78
- padding: 0;
79
- outline: none;
80
- position: relative;
81
- overflow: hidden;
82
- z-index: 1102;
83
- border: 0px solid #fff;
84
- }
85
-
86
- #fancybox-hide-sel-frame {
87
- position: absolute;
88
- top: 0;
89
- left: 0;
90
- width: 100%;
91
- height: 100%;
92
- background: transparent;
93
- z-index: 1101;
94
- }
95
-
96
- #fancybox-close {
97
- position: absolute;
98
- top: -15px;
99
- right: -15px;
100
- width: 30px;
101
- height: 30px;
102
- background: transparent url('fancybox.png') -40px 0px;
103
- cursor: pointer;
104
- z-index: 1103;
105
- display: none;
106
- }
107
-
108
- #fancybox-error {
109
- color: #444;
110
- font: normal 12px/20px Arial;
111
- padding: 14px;
112
- margin: 0;
113
- }
114
-
115
- #fancybox-img {
116
- width: 100%;
117
- height: 100%;
118
- padding: 0;
119
- margin: 0;
120
- border: none;
121
- outline: none;
122
- line-height: 0;
123
- vertical-align: top;
124
- }
125
-
126
- #fancybox-frame {
127
- width: 100%;
128
- height: 100%;
129
- border: none;
130
- display: block;
131
- }
132
-
133
- #fancybox-left, #fancybox-right {
134
- position: absolute;
135
- bottom: 0px;
136
- height: 100%;
137
- width: 35%;
138
- cursor: pointer;
139
- outline: none;
140
- background: transparent url('blank.gif');
141
- z-index: 1102;
142
- display: none;
143
- }
144
-
145
- #fancybox-left {
146
- left: 0px;
147
- }
148
-
149
- #fancybox-right {
150
- right: 0px;
151
- }
152
-
153
- #fancybox-left-ico, #fancybox-right-ico {
154
- position: absolute;
155
- top: 50%;
156
- left: -9999px;
157
- width: 30px;
158
- height: 30px;
159
- margin-top: -15px;
160
- cursor: pointer;
161
- z-index: 1102;
162
- display: block;
163
- }
164
-
165
- #fancybox-left-ico {
166
- background-image: url('fancybox.png');
167
- background-position: -40px -30px;
168
- }
169
-
170
- #fancybox-right-ico {
171
- background-image: url('fancybox.png');
172
- background-position: -40px -60px;
173
- }
174
-
175
- #fancybox-left:hover, #fancybox-right:hover {
176
- visibility: visible; /* IE6 */
177
- }
178
-
179
- #fancybox-left:hover span {
180
- left: 20px;
181
- }
182
-
183
- #fancybox-right:hover span {
184
- left: auto;
185
- right: 20px;
186
- }
187
-
188
- .fancybox-bg {
189
- position: absolute;
190
- padding: 0;
191
- margin: 0;
192
- border: 0;
193
- width: 20px;
194
- height: 20px;
195
- z-index: 1001;
196
- }
197
-
198
- #fancybox-bg-n {
199
- top: -20px;
200
- left: 0;
201
- width: 100%;
202
- background-image: url('fancybox-x.png');
203
- }
204
-
205
- #fancybox-bg-ne {
206
- top: -20px;
207
- right: -20px;
208
- background-image: url('fancybox.png');
209
- background-position: -40px -162px;
210
- }
211
-
212
- #fancybox-bg-e {
213
- top: 0;
214
- right: -20px;
215
- height: 100%;
216
- background-image: url('fancybox-y.png');
217
- background-position: -20px 0px;
218
- }
219
-
220
- #fancybox-bg-se {
221
- bottom: -20px;
222
- right: -20px;
223
- background-image: url('fancybox.png');
224
- background-position: -40px -182px;
225
- }
226
-
227
- #fancybox-bg-s {
228
- bottom: -20px;
229
- left: 0;
230
- width: 100%;
231
- background-image: url('fancybox-x.png');
232
- background-position: 0px -20px;
233
- }
234
-
235
- #fancybox-bg-sw {
236
- bottom: -20px;
237
- left: -20px;
238
- background-image: url('fancybox.png');
239
- background-position: -40px -142px;
240
- }
241
-
242
- #fancybox-bg-w {
243
- top: 0;
244
- left: -20px;
245
- height: 100%;
246
- background-image: url('fancybox-y.png');
247
- }
248
-
249
- #fancybox-bg-nw {
250
- top: -20px;
251
- left: -20px;
252
- background-image: url('fancybox.png');
253
- background-position: -40px -122px;
254
- }
255
-
256
- #fancybox-title {
257
- font-family: Helvetica;
258
- font-size: 12px;
259
- z-index: 1102;
260
- }
261
-
262
- .fancybox-title-inside {
263
- padding-bottom: 10px;
264
- text-align: center;
265
- color: #333;
266
- background: #fff;
267
- position: relative;
268
- }
269
-
270
- .fancybox-title-outside {
271
- padding-top: 10px;
272
- color: #fff;
273
- }
274
-
275
- .fancybox-title-over {
276
- position: absolute;
277
- bottom: 0;
278
- left: 0;
279
- color: #FFF;
280
- text-align: left;
281
- }
282
-
283
- #fancybox-title-over {
284
- padding: 10px;
285
- background-image: url('fancy_title_over.png');
286
- display: block;
287
- }
288
-
289
- .fancybox-title-float {
290
- position: absolute;
291
- left: 0;
292
- bottom: -20px;
293
- height: 32px;
294
- }
295
-
296
- #fancybox-title-float-wrap {
297
- border: none;
298
- border-collapse: collapse;
299
- width: auto;
300
- }
301
-
302
- #fancybox-title-float-wrap td {
303
- border: none;
304
- white-space: nowrap;
305
- }
306
-
307
- #fancybox-title-float-left {
308
- padding: 0 0 0 15px;
309
- background: url('fancybox.png') -40px -90px no-repeat;
310
- }
311
-
312
- #fancybox-title-float-main {
313
- color: #FFF;
314
- line-height: 29px;
315
- font-weight: bold;
316
- padding: 0 0 3px 0;
317
- background: url('fancybox-x.png') 0px -40px;
318
- }
319
-
320
- #fancybox-title-float-right {
321
- padding: 0 0 0 15px;
322
- background: url('fancybox.png') -55px -90px no-repeat;
323
- }
324
-
325
- /* IE6 */
326
-
327
- .fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_close.png', sizingMethod='scale', enabled='true'); }
328
-
329
- .fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_left.png', sizingMethod='scale', enabled='true'); }
330
- .fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_right.png', sizingMethod='scale', enabled='true'); }
331
-
332
- .fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_over.png', sizingMethod='scale', enabled='true'); zoom: 1; }
333
- .fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_left.png', sizingMethod='scale', enabled='true'); }
334
- .fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_main.png', sizingMethod='scale', enabled='true'); }
335
- .fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_right.png', sizingMethod='scale', enabled='true'); }
336
-
337
- .fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame {
338
- height: expression(this.parentNode.clientHeight + "px");
339
- }
340
-
341
- #fancybox-loading.fancybox-ie6 {
342
- position: absolute; margin-top: 0;
343
- 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');
344
- }
345
-
346
- #fancybox-loading.fancybox-ie6 div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_loading.png', sizingMethod='scale', enabled='true'); }
347
-
348
- /* IE6, IE7, IE8 */
349
-
350
- .fancybox-ie .fancybox-bg { background: transparent !important; }
351
-
352
- .fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_n.png', sizingMethod='scale', enabled='true'); }
353
- .fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_ne.png', sizingMethod='scale', enabled='true'); }
354
- .fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_e.png', sizingMethod='scale', enabled='true'); }
355
- .fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_se.png', sizingMethod='scale', enabled='true'); }
356
- .fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_s.png', sizingMethod='scale', enabled='true'); }
357
- .fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_sw.png', sizingMethod='scale', enabled='true'); }
358
- .fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_w.png', sizingMethod='scale', enabled='true'); }
359
- .fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_nw.png', sizingMethod='scale', enabled='true'); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/fancybox/jquery.fancybox-1.3.4.js DELETED
@@ -1,1177 +0,0 @@
1
- /*
2
- * FancyBox - jQuery Plugin
3
- * Simple and fancy lightbox alternative
4
- *
5
- * Examples and documentation at: http://fancybox.net
6
- *
7
- * Copyright (c) 2008 - 2010 Janis Skarnelis
8
- * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
9
- *
10
- * Version: 1.3.4 (11/11/2010)
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($) {
19
- var tmp, loading, overlay, wrap, outer, content, close, title, nav_left, nav_right,
20
-
21
- videoToShow = '',
22
-
23
- selectedIndex = 0, selectedOpts = {}, selectedArray = [], currentIndex = 0, currentOpts = {}, currentArray = [],
24
-
25
- ajaxLoader = null, imgPreloader = new Image(), imgRegExp = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i, swfRegExp = /[^\.]\.(swf)\s*$/i,
26
-
27
- loadingTimer, loadingFrame = 1,
28
-
29
- titleHeight = 0, titleStr = '', start_pos, final_pos, busy = false, fx = $.extend($('<div/>')[0], { prop: 0 }),
30
-
31
- isIE6 = $.browser.msie && $.browser.version < 7 && !window.XMLHttpRequest,
32
-
33
- /*
34
- * Private methods
35
- */
36
-
37
- _abort = function() {
38
- loading.hide();
39
-
40
- imgPreloader.onerror = imgPreloader.onload = null;
41
-
42
- if (ajaxLoader) {
43
- ajaxLoader.abort();
44
- }
45
-
46
- tmp.empty();
47
- },
48
-
49
- _error = function() {
50
- if (false === selectedOpts.onError(selectedArray, selectedIndex, selectedOpts)) {
51
- loading.hide();
52
- busy = false;
53
- return;
54
- }
55
-
56
- selectedOpts.titleShow = false;
57
-
58
- selectedOpts.width = 'auto';
59
- selectedOpts.height = 'auto';
60
-
61
- tmp.html( '<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>' );
62
-
63
- _process_inline();
64
- },
65
-
66
- _is_video = function(videoURL) {
67
- var matchesYoutube = videoURL.match(/(?:(?:http|https):\/\/)?(?:www\.)?youtube.com\/watch\?v=([a-zA-Z0-9\-_]+)/);
68
-
69
- if(matchesYoutube) {
70
- videoToShow = '//www.youtube.com/embed/'+matchesYoutube[1];
71
- return true;
72
- }
73
-
74
- var matchesVimeo = videoURL.match(/(?:(?:http|https):\/\/)?(?:www\.)?vimeo.com\/([0-9]+)/);
75
-
76
- if (matchesVimeo){
77
- videoToShow = '//player.vimeo.com/video/'+matchesVimeo[1];
78
- return true;
79
- }
80
-
81
- return false;
82
- },
83
-
84
- _start = function() {
85
- var obj = selectedArray[ selectedIndex ],
86
- href,
87
- type,
88
- title,
89
- str,
90
- emb,
91
- ret;
92
-
93
- _abort();
94
-
95
- selectedOpts = $.extend({}, $.fn.fancybox.defaults, (typeof $(obj).data('fancybox') == 'undefined' ? selectedOpts : $(obj).data('fancybox')));
96
-
97
- ret = selectedOpts.onStart(selectedArray, selectedIndex, selectedOpts);
98
-
99
- if (ret === false) {
100
- busy = false;
101
- return;
102
- } else if (typeof ret == 'object') {
103
- selectedOpts = $.extend(selectedOpts, ret);
104
- }
105
-
106
- title = selectedOpts.title || (obj.nodeName ? $(obj).attr('title') : obj.title) || '';
107
-
108
- if (obj.nodeName && !selectedOpts.orig) {
109
- selectedOpts.orig = $(obj).children("img:first").length ? $(obj).children("img:first") : $(obj);
110
- }
111
-
112
- if (title === '' && selectedOpts.orig && selectedOpts.titleFromAlt) {
113
- title = selectedOpts.orig.attr('alt');
114
- }
115
-
116
- href = selectedOpts.href || (obj.nodeName ? $(obj).attr('href') : obj.href) || null;
117
-
118
- if ((/^(?:javascript)/i).test(href) || href == '#') {
119
- href = null;
120
- }
121
-
122
- if (selectedOpts.type) {
123
- type = selectedOpts.type;
124
-
125
- if (!href) {
126
- href = selectedOpts.content;
127
- }
128
-
129
- } else if (selectedOpts.content) {
130
- type = 'html';
131
-
132
- } else if (href) {
133
- if (href.match(imgRegExp)) {
134
- type = 'image';
135
-
136
- } else if (href.match(swfRegExp)) {
137
- type = 'swf';
138
-
139
- } else if ($(obj).hasClass('iframe') || _is_video($(obj).attr('href'))) {
140
- type = 'iframe';
141
-
142
- } else if (href.indexOf("#") === 0) {
143
- type = 'inline';
144
-
145
- } else {
146
- type = 'ajax';
147
- }
148
- }
149
-
150
- if (!type) {
151
- _error();
152
- return;
153
- }
154
-
155
- if (type == 'inline') {
156
- obj = href.substr(href.indexOf("#"));
157
- type = $(obj).length > 0 ? 'inline' : 'ajax';
158
- }
159
-
160
- selectedOpts.type = type;
161
- selectedOpts.href = href;
162
- selectedOpts.title = title;
163
-
164
- if (selectedOpts.autoDimensions) {
165
- if (selectedOpts.type == 'html' || selectedOpts.type == 'inline' || selectedOpts.type == 'ajax') {
166
- selectedOpts.width = 'auto';
167
- selectedOpts.height = 'auto';
168
- } else {
169
- selectedOpts.autoDimensions = false;
170
- }
171
- }
172
-
173
- if (selectedOpts.modal) {
174
- selectedOpts.overlayShow = true;
175
- selectedOpts.hideOnOverlayClick = false;
176
- selectedOpts.hideOnContentClick = false;
177
- selectedOpts.enableEscapeButton = false;
178
- selectedOpts.showCloseButton = false;
179
- }
180
-
181
- selectedOpts.padding = parseInt(selectedOpts.padding, 10);
182
- selectedOpts.margin = parseInt(selectedOpts.margin, 10);
183
-
184
- tmp.css('padding', (selectedOpts.padding + selectedOpts.margin));
185
-
186
- $('.fancybox-inline-tmp').unbind('fancybox-cancel').bind('fancybox-change', function() {
187
- $(this).replaceWith(content.children());
188
- });
189
-
190
- switch (type) {
191
- case 'html' :
192
- tmp.html( selectedOpts.content );
193
- _process_inline();
194
- break;
195
-
196
- case 'inline' :
197
- if ( $(obj).parent().is('#fancybox-content') === true) {
198
- busy = false;
199
- return;
200
- }
201
-
202
- $('<div class="fancybox-inline-tmp" />')
203
- .hide()
204
- .insertBefore( $(obj) )
205
- .bind('fancybox-cleanup', function() {
206
- $(this).replaceWith(content.children());
207
- }).bind('fancybox-cancel', function() {
208
- $(this).replaceWith(tmp.children());
209
- });
210
-
211
- $(obj).appendTo(tmp);
212
-
213
- _process_inline();
214
- break;
215
-
216
- case 'image':
217
- busy = false;
218
-
219
- $.fancybox.showActivity();
220
-
221
- imgPreloader = new Image();
222
-
223
- imgPreloader.onerror = function() {
224
- _error();
225
- };
226
-
227
- imgPreloader.onload = function() {
228
- busy = true;
229
-
230
- imgPreloader.onerror = imgPreloader.onload = null;
231
-
232
- _process_image();
233
- };
234
-
235
- imgPreloader.src = href;
236
- break;
237
-
238
- case 'swf':
239
- selectedOpts.scrolling = 'no';
240
-
241
- str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + selectedOpts.width + '" height="' + selectedOpts.height + '"><param name="movie" value="' + href + '"></param>';
242
- emb = '';
243
-
244
- $.each(selectedOpts.swf, function(name, val) {
245
- str += '<param name="' + name + '" value="' + val + '"></param>';
246
- emb += ' ' + name + '="' + val + '"';
247
- });
248
-
249
- str += '<embed src="' + href + '" type="application/x-shockwave-flash" width="' + selectedOpts.width + '" height="' + selectedOpts.height + '"' + emb + '></embed></object>';
250
-
251
- tmp.html(str);
252
-
253
- _process_inline();
254
- break;
255
-
256
- case 'ajax':
257
- busy = false;
258
-
259
- $.fancybox.showActivity();
260
-
261
- selectedOpts.ajax.win = selectedOpts.ajax.success;
262
-
263
- ajaxLoader = $.ajax($.extend({}, selectedOpts.ajax, {
264
- url : href,
265
- data : selectedOpts.ajax.data || {},
266
- error : function(XMLHttpRequest, textStatus, errorThrown) {
267
- if ( XMLHttpRequest.status > 0 ) {
268
- _error();
269
- }
270
- },
271
- success : function(data, textStatus, XMLHttpRequest) {
272
- var o = typeof XMLHttpRequest == 'object' ? XMLHttpRequest : ajaxLoader;
273
- if (o.status == 200) {
274
- if ( typeof selectedOpts.ajax.win == 'function' ) {
275
- ret = selectedOpts.ajax.win(href, data, textStatus, XMLHttpRequest);
276
-
277
- if (ret === false) {
278
- loading.hide();
279
- return;
280
- } else if (typeof ret == 'string' || typeof ret == 'object') {
281
- data = ret;
282
- }
283
- }
284
-
285
- tmp.html( data );
286
- _process_inline();
287
- }
288
- }
289
- }));
290
-
291
- break;
292
-
293
- case 'iframe':
294
- _show();
295
- break;
296
- }
297
- },
298
-
299
- _process_inline = function() {
300
- var
301
- w = selectedOpts.width,
302
- h = selectedOpts.height;
303
-
304
- if (w.toString().indexOf('%') > -1) {
305
- w = parseInt( ($(window).width() - (selectedOpts.margin * 2)) * parseFloat(w) / 100, 10) + 'px';
306
-
307
- } else {
308
- w = w == 'auto' ? 'auto' : w + 'px';
309
- }
310
-
311
- if (h.toString().indexOf('%') > -1) {
312
- h = parseInt( ($(window).height() - (selectedOpts.margin * 2)) * parseFloat(h) / 100, 10) + 'px';
313
-
314
- } else {
315
- h = h == 'auto' ? 'auto' : h + 'px';
316
- }
317
-
318
- tmp.wrapInner('<div style="width:' + w + ';height:' + h + ';overflow: ' + (selectedOpts.scrolling == 'auto' ? 'auto' : (selectedOpts.scrolling == 'yes' ? 'scroll' : 'hidden')) + ';position:relative;"></div>');
319
-
320
- selectedOpts.width = tmp.width();
321
- selectedOpts.height = tmp.height();
322
-
323
- _show();
324
- },
325
-
326
- _process_image = function() {
327
- selectedOpts.width = imgPreloader.width;
328
- selectedOpts.height = imgPreloader.height;
329
-
330
- $("<img />").attr({
331
- 'id' : 'fancybox-img',
332
- 'src' : imgPreloader.src,
333
- 'alt' : selectedOpts.title
334
- }).appendTo( tmp );
335
-
336
- _show();
337
- },
338
-
339
- _show = function() {
340
- var pos, equal;
341
-
342
- loading.hide();
343
-
344
- if (wrap.is(":visible") && false === currentOpts.onCleanup(currentArray, currentIndex, currentOpts)) {
345
- $.event.trigger('fancybox-cancel');
346
-
347
- busy = false;
348
- return;
349
- }
350
-
351
- busy = true;
352
-
353
- $(content.add( overlay )).unbind();
354
-
355
- $(window).unbind("resize.fb scroll.fb");
356
- $(document).unbind('keydown.fb');
357
-
358
- if (wrap.is(":visible") && currentOpts.titlePosition !== 'outside') {
359
- wrap.css('height', wrap.height());
360
- }
361
-
362
- currentArray = selectedArray;
363
- currentIndex = selectedIndex;
364
- currentOpts = selectedOpts;
365
-
366
- if (currentOpts.overlayShow) {
367
- overlay.css({
368
- 'background-color' : currentOpts.overlayColor,
369
- 'opacity' : currentOpts.overlayOpacity,
370
- 'cursor' : currentOpts.hideOnOverlayClick ? 'pointer' : 'auto',
371
- 'height' : $(document).height()
372
- });
373
-
374
- if (!overlay.is(':visible')) {
375
- if (isIE6) {
376
- $('select:not(#fancybox-tmp select)').filter(function() {
377
- return this.style.visibility !== 'hidden';
378
- }).css({'visibility' : 'hidden'}).one('fancybox-cleanup', function() {
379
- this.style.visibility = 'inherit';
380
- });
381
- }
382
-
383
- overlay.show();
384
- }
385
- } else {
386
- overlay.hide();
387
- }
388
-
389
- final_pos = _get_zoom_to();
390
-
391
- _process_title();
392
-
393
- if (wrap.is(":visible")) {
394
- $( close.add( nav_left ).add( nav_right ) ).hide();
395
-
396
- pos = wrap.position(),
397
-
398
- start_pos = {
399
- top : pos.top,
400
- left : pos.left,
401
- width : wrap.width(),
402
- height : wrap.height()
403
- };
404
-
405
- equal = (start_pos.width == final_pos.width && start_pos.height == final_pos.height);
406
-
407
- content.fadeTo(currentOpts.changeFade, 0.3, function() {
408
- var finish_resizing = function() {
409
- content.html( tmp.contents() ).fadeTo(currentOpts.changeFade, 1, _finish);
410
- };
411
-
412
- $.event.trigger('fancybox-change');
413
-
414
- content
415
- .empty()
416
- .removeAttr('filter')
417
- .css({
418
- 'border-width' : currentOpts.padding,
419
- 'width' : final_pos.width - currentOpts.padding * 2,
420
- 'height' : selectedOpts.autoDimensions ? 'auto' : final_pos.height - titleHeight - currentOpts.padding * 2
421
- });
422
-
423
- if (equal) {
424
- finish_resizing();
425
-
426
- } else {
427
- fx.prop = 0;
428
-
429
- $(fx).animate({prop: 1}, {
430
- duration : currentOpts.changeSpeed,
431
- easing : currentOpts.easingChange,
432
- step : _draw,
433
- complete : finish_resizing
434
- });
435
- }
436
- });
437
-
438
- return;
439
- }
440
-
441
- wrap.removeAttr("style");
442
-
443
- content.css('border-width', currentOpts.padding);
444
-
445
- if (currentOpts.transitionIn == 'elastic') {
446
- start_pos = _get_zoom_from();
447
-
448
- content.html( tmp.contents() );
449
-
450
- wrap.show();
451
-
452
- if (currentOpts.opacity) {
453
- final_pos.opacity = 0;
454
- }
455
-
456
- fx.prop = 0;
457
-
458
- $(fx).animate({prop: 1}, {
459
- duration : currentOpts.speedIn,
460
- easing : currentOpts.easingIn,
461
- step : _draw,
462
- complete : _finish
463
- });
464
-
465
- return;
466
- }
467
-
468
- if (currentOpts.titlePosition == 'inside' && titleHeight > 0) {
469
- title.show();
470
- }
471
-
472
- content
473
- .css({
474
- 'width' : final_pos.width - currentOpts.padding * 2,
475
- 'height' : selectedOpts.autoDimensions ? 'auto' : final_pos.height - titleHeight - currentOpts.padding * 2
476
- })
477
- .html( tmp.contents() );
478
-
479
- wrap
480
- .css(final_pos)
481
- .fadeIn( currentOpts.transitionIn == 'none' ? 0 : currentOpts.speedIn, _finish );
482
- },
483
-
484
- _format_title = function(title) {
485
- if (title && title.length) {
486
- if (currentOpts.titlePosition == 'float') {
487
- return '<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">' + title + '</td><td id="fancybox-title-float-right"></td></tr></table>';
488
- }
489
-
490
- return '<div id="fancybox-title-' + currentOpts.titlePosition + '">' + title + '</div>';
491
- }
492
-
493
- return false;
494
- },
495
-
496
- _process_title = function() {
497
- titleStr = currentOpts.title || '';
498
- titleHeight = 0;
499
-
500
- title
501
- .empty()
502
- .removeAttr('style')
503
- .removeClass();
504
-
505
- if (currentOpts.titleShow === false) {
506
- title.hide();
507
- return;
508
- }
509
-
510
- titleStr = $.isFunction(currentOpts.titleFormat) ? currentOpts.titleFormat(titleStr, currentArray, currentIndex, currentOpts) : _format_title(titleStr);
511
-
512
- if (!titleStr || titleStr === '') {
513
- title.hide();
514
- return;
515
- }
516
-
517
- title
518
- .addClass('fancybox-title-' + currentOpts.titlePosition)
519
- .html( titleStr )
520
- .appendTo( 'body' )
521
- .show();
522
-
523
- switch (currentOpts.titlePosition) {
524
- case 'inside':
525
- title
526
- .css({
527
- 'width' : final_pos.width - (currentOpts.padding * 2),
528
- 'marginLeft' : currentOpts.padding,
529
- 'marginRight' : currentOpts.padding
530
- });
531
-
532
- titleHeight = title.outerHeight(true);
533
-
534
- title.appendTo( outer );
535
-
536
- final_pos.height += titleHeight;
537
- break;
538
-
539
- case 'over':
540
- title
541
- .css({
542
- 'marginLeft' : currentOpts.padding,
543
- 'width' : final_pos.width - (currentOpts.padding * 2),
544
- 'bottom' : currentOpts.padding
545
- })
546
- .appendTo( outer );
547
- break;
548
-
549
- case 'float':
550
- title
551
- .css('left', parseInt((title.width() - final_pos.width - 40)/ 2, 10) * -1)
552
- .appendTo( wrap );
553
- break;
554
-
555
- default:
556
- title
557
- .css({
558
- 'width' : final_pos.width - (currentOpts.padding * 2),
559
- 'paddingLeft' : currentOpts.padding,
560
- 'paddingRight' : currentOpts.padding
561
- })
562
- .appendTo( wrap );
563
- break;
564
- }
565
-
566
- title.hide();
567
- },
568
-
569
- _set_navigation = function() {
570
- if (currentOpts.enableEscapeButton || currentOpts.enableKeyboardNav) {
571
- $(document).bind('keydown.fb', function(e) {
572
- if (e.keyCode == 27 && currentOpts.enableEscapeButton) {
573
- e.preventDefault();
574
- $.fancybox.close();
575
-
576
- } else if ((e.keyCode == 37 || e.keyCode == 39) && currentOpts.enableKeyboardNav && e.target.tagName !== 'INPUT' && e.target.tagName !== 'TEXTAREA' && e.target.tagName !== 'SELECT') {
577
- e.preventDefault();
578
- $.fancybox[ e.keyCode == 37 ? 'prev' : 'next']();
579
- }
580
- });
581
- }
582
-
583
- if (!currentOpts.showNavArrows) {
584
- nav_left.hide();
585
- nav_right.hide();
586
- return;
587
- }
588
-
589
- if ((currentOpts.cyclic && currentArray.length > 1) || currentIndex !== 0) {
590
- nav_left.show();
591
- }
592
-
593
- if ((currentOpts.cyclic && currentArray.length > 1) || currentIndex != (currentArray.length -1)) {
594
- nav_right.show();
595
- }
596
- },
597
-
598
- _finish = function () {
599
- if (!$.support.opacity) {
600
- content.get(0).style.removeAttribute('filter');
601
- wrap.get(0).style.removeAttribute('filter');
602
- }
603
-
604
- if (selectedOpts.autoDimensions) {
605
- content.css('height', 'auto');
606
- }
607
-
608
- wrap.css('height', 'auto');
609
-
610
- if (titleStr && titleStr.length) {
611
- title.show();
612
- }
613
-
614
- if (currentOpts.showCloseButton) {
615
- close.show();
616
- }
617
-
618
- _set_navigation();
619
-
620
- if (currentOpts.hideOnContentClick) {
621
- content.bind('click', $.fancybox.close);
622
- }
623
-
624
- if (currentOpts.hideOnOverlayClick) {
625
- overlay.bind('click', $.fancybox.close);
626
- }
627
-
628
- $(window).bind("resize.fb", $.fancybox.resize);
629
-
630
- if (currentOpts.centerOnScroll) {
631
- $(window).bind("scroll.fb", $.fancybox.center);
632
- }
633
-
634
- if (currentOpts.type == 'iframe') {
635
- $('<iframe id="fancybox-frame" name="fancybox-frame' + new Date().getTime() + '" frameborder="0" hspace="0" ' + ($.browser.msie ? 'allowtransparency="true""' : '') + ' scrolling="' + selectedOpts.scrolling + '" src="' + (videoToShow !== '' ? videoToShow : currentOpts.href) + '"></iframe>').appendTo(content);
636
-
637
- videoToShow = ''
638
- }
639
-
640
- wrap.show();
641
-
642
- busy = false;
643
-
644
- $.fancybox.center();
645
-
646
- currentOpts.onComplete(currentArray, currentIndex, currentOpts);
647
-
648
- _preload_images();
649
- },
650
-
651
- _preload_images = function() {
652
- var href,
653
- objNext;
654
-
655
- if ((currentArray.length -1) > currentIndex) {
656
- href = currentArray[ currentIndex + 1 ].href;
657
-
658
- if (typeof href !== 'undefined' && href.match(imgRegExp)) {
659
- objNext = new Image();
660
- objNext.src = href;
661
- }
662
- }
663
-
664
- if (currentIndex > 0) {
665
- href = currentArray[ currentIndex - 1 ].href;
666
-
667
- if (typeof href !== 'undefined' && href.match(imgRegExp)) {
668
- objNext = new Image();
669
- objNext.src = href;
670
- }
671
- }
672
- },
673
-
674
- _draw = function(pos) {
675
- var dim = {
676
- width : parseInt(start_pos.width + (final_pos.width - start_pos.width) * pos, 10),
677
- height : parseInt(start_pos.height + (final_pos.height - start_pos.height) * pos, 10),
678
-
679
- top : parseInt(start_pos.top + (final_pos.top - start_pos.top) * pos, 10),
680
- left : parseInt(start_pos.left + (final_pos.left - start_pos.left) * pos, 10)
681
- };
682
-
683
- if (typeof final_pos.opacity !== 'undefined') {
684
- dim.opacity = pos < 0.5 ? 0.5 : pos;
685
- }
686
-
687
- wrap.css(dim);
688
-
689
- content.css({
690
- 'width' : dim.width - currentOpts.padding * 2,
691
- 'height' : dim.height - (titleHeight * pos) - currentOpts.padding * 2
692
- });
693
- },
694
-
695
- _get_viewport = function() {
696
- return [
697
- $(window).width() - (currentOpts.margin * 2),
698
- $(window).height() - (currentOpts.margin * 2),
699
- $(document).scrollLeft() + currentOpts.margin,
700
- $(document).scrollTop() + currentOpts.margin
701
- ];
702
- },
703
-
704
- _get_zoom_to = function () {
705
- var view = _get_viewport(),
706
- to = {},
707
- resize = currentOpts.autoScale,
708
- double_padding = currentOpts.padding * 2,
709
- ratio;
710
-
711
- if (currentOpts.width.toString().indexOf('%') > -1) {
712
- to.width = parseInt((view[0] * parseFloat(currentOpts.width)) / 100, 10);
713
- } else {
714
- to.width = currentOpts.width + double_padding;
715
- }
716
-
717
- if (currentOpts.height.toString().indexOf('%') > -1) {
718
- to.height = parseInt((view[1] * parseFloat(currentOpts.height)) / 100, 10);
719
- } else {
720
- to.height = currentOpts.height + double_padding;
721
- }
722
-
723
- if (resize && (to.width > view[0] || to.height > view[1])) {
724
- if (selectedOpts.type == 'image' || selectedOpts.type == 'swf') {
725
- ratio = (currentOpts.width ) / (currentOpts.height );
726
-
727
- if ((to.width ) > view[0]) {
728
- to.width = view[0];
729
- to.height = parseInt(((to.width - double_padding) / ratio) + double_padding, 10);
730
- }
731
-
732
- if ((to.height) > view[1]) {
733
- to.height = view[1];
734
- to.width = parseInt(((to.height - double_padding) * ratio) + double_padding, 10);
735
- }
736
-
737
- } else {
738
- to.width = Math.min(to.width, view[0]);
739
- to.height = Math.min(to.height, view[1]);
740
- }
741
- }
742
-
743
- to.top = parseInt(Math.max(view[3] - 20, view[3] + ((view[1] - to.height - 40) * 0.5)), 10);
744
- to.left = parseInt(Math.max(view[2] - 20, view[2] + ((view[0] - to.width - 40) * 0.5)), 10);
745
-
746
- return to;
747
- },
748
-
749
- _get_obj_pos = function(obj) {
750
- var pos = obj.offset();
751
-
752
- pos.top += parseInt( obj.css('paddingTop'), 10 ) || 0;
753
- pos.left += parseInt( obj.css('paddingLeft'), 10 ) || 0;
754
-
755
- pos.top += parseInt( obj.css('border-top-width'), 10 ) || 0;
756
- pos.left += parseInt( obj.css('border-left-width'), 10 ) || 0;
757
-
758
- pos.width = obj.width();
759
- pos.height = obj.height();
760
-
761
- return pos;
762
- },
763
-
764
- _get_zoom_from = function() {
765
- var orig = selectedOpts.orig ? $(selectedOpts.orig) : false,
766
- from = {},
767
- pos,
768
- view;
769
-
770
- if (orig && orig.length) {
771
- pos = _get_obj_pos(orig);
772
-
773
- from = {
774
- width : pos.width + (currentOpts.padding * 2),
775
- height : pos.height + (currentOpts.padding * 2),
776
- top : pos.top - currentOpts.padding - 20,
777
- left : pos.left - currentOpts.padding - 20
778
- };
779
-
780
- } else {
781
- view = _get_viewport();
782
-
783
- from = {
784
- width : currentOpts.padding * 2,
785
- height : currentOpts.padding * 2,
786
- top : parseInt(view[3] + view[1] * 0.5, 10),
787
- left : parseInt(view[2] + view[0] * 0.5, 10)
788
- };
789
- }
790
-
791
- return from;
792
- },
793
-
794
- _animate_loading = function() {
795
- if (!loading.is(':visible')){
796
- clearInterval(loadingTimer);
797
- return;
798
- }
799
-
800
- $('div', loading).css('top', (loadingFrame * -40) + 'px');
801
-
802
- loadingFrame = (loadingFrame + 1) % 12;
803
- };
804
-
805
- /*
806
- * Public methods
807
- */
808
-
809
- $.fn.fancybox = function(options) {
810
- if (!$(this).length) {
811
- return this;
812
- }
813
-
814
- $(this)
815
- .data('fancybox', $.extend({}, options, ($.metadata ? $(this).metadata() : {})))
816
- .unbind('click.fb')
817
- .bind('click.fb', function(e) {
818
- e.preventDefault();
819
-
820
- if (busy) {
821
- return;
822
- }
823
-
824
- busy = true;
825
-
826
- $(this).blur();
827
-
828
- selectedArray = [];
829
- selectedIndex = 0;
830
-
831
- var rel = $(this).attr('rel') || '';
832
-
833
- if (!rel || rel == '' || rel === 'nofollow') {
834
- selectedArray.push(this);
835
- } else {
836
- selectedArray = $('a[rel="'+rel+'"], area[rel="'+rel+'"]');
837
- selectedIndex = selectedArray.index(this);
838
- }
839
-
840
- _start();
841
-
842
- return;
843
- });
844
-
845
- return this;
846
- };
847
-
848
- $.fancybox = function(obj) {
849
- var opts;
850
-
851
- if (busy) {
852
- return;
853
- }
854
-
855
- busy = true;
856
- opts = typeof arguments[1] !== 'undefined' ? arguments[1] : {};
857
-
858
- selectedArray = [];
859
- selectedIndex = parseInt(opts.index, 10) || 0;
860
-
861
- if ($.isArray(obj)) {
862
- for (var i = 0, j = obj.length; i < j; i++) {
863
- if (typeof obj[i] == 'object') {
864
- $(obj[i]).data('fancybox', $.extend({}, opts, obj[i]));
865
- } else {
866
- obj[i] = $({}).data('fancybox', $.extend({content : obj[i]}, opts));
867
- }
868
- }
869
-
870
- selectedArray = jQuery.merge(selectedArray, obj);
871
-
872
- } else {
873
- if (typeof obj == 'object') {
874
- $(obj).data('fancybox', $.extend({}, opts, obj));
875
- } else {
876
- obj = $({}).data('fancybox', $.extend({content : obj}, opts));
877
- }
878
-
879
- selectedArray.push(obj);
880
- }
881
-
882
- if (selectedIndex > selectedArray.length || selectedIndex < 0) {
883
- selectedIndex = 0;
884
- }
885
-
886
- _start();
887
- };
888
-
889
- $.fancybox.showActivity = function() {
890
- clearInterval(loadingTimer);
891
-
892
- loading.show();
893
- loadingTimer = setInterval(_animate_loading, 66);
894
- };
895
-
896
- $.fancybox.hideActivity = function() {
897
- loading.hide();
898
- };
899
-
900
- $.fancybox.next = function() {
901
- return $.fancybox.pos( currentIndex + 1);
902
- };
903
-
904
- $.fancybox.prev = function() {
905
- return $.fancybox.pos( currentIndex - 1);
906
- };
907
-
908
- $.fancybox.pos = function(pos) {
909
- if (busy) {
910
- return;
911
- }
912
-
913
- pos = parseInt(pos);
914
-
915
- selectedArray = currentArray;
916
-
917
- if (pos > -1 && pos < currentArray.length) {
918
- selectedIndex = pos;
919
- _start();
920
-
921
- } else if (currentOpts.cyclic && currentArray.length > 1) {
922
- selectedIndex = pos >= currentArray.length ? 0 : currentArray.length - 1;
923
- _start();
924
- }
925
-
926
- return;
927
- };
928
-
929
- $.fancybox.cancel = function() {
930
- if (busy) {
931
- return;
932
- }
933
-
934
- busy = true;
935
-
936
- $.event.trigger('fancybox-cancel');
937
-
938
- _abort();
939
-
940
- selectedOpts.onCancel(selectedArray, selectedIndex, selectedOpts);
941
-
942
- busy = false;
943
- };
944
-
945
- // Note: within an iframe use - parent.$.fancybox.close();
946
- $.fancybox.close = function() {
947
- if (busy || wrap.is(':hidden')) {
948
- return;
949
- }
950
-
951
- busy = true;
952
-
953
- if (currentOpts && false === currentOpts.onCleanup(currentArray, currentIndex, currentOpts)) {
954
- busy = false;
955
- return;
956
- }
957
-
958
- _abort();
959
-
960
- $(close.add( nav_left ).add( nav_right )).hide();
961
-
962
- $(content.add( overlay )).unbind();
963
-
964
- $(window).unbind("resize.fb scroll.fb");
965
- $(document).unbind('keydown.fb');
966
-
967
- content.find('iframe').attr('src', isIE6 && /^https/i.test(window.location.href || '') ? 'javascript:void(false)' : 'about:blank');
968
-
969
- if (currentOpts.titlePosition !== 'inside') {
970
- title.empty();
971
- }
972
-
973
- wrap.stop();
974
-
975
- function _cleanup() {
976
- overlay.fadeOut('fast');
977
-
978
- title.empty().hide();
979
- wrap.hide();
980
-
981
- $.event.trigger('fancybox-cleanup');
982
-
983
- content.empty();
984
-
985
- currentOpts.onClosed(currentArray, currentIndex, currentOpts);
986
-
987
- currentArray = selectedOpts = [];
988
- currentIndex = selectedIndex = 0;
989
- currentOpts = selectedOpts = {};
990
-
991
- busy = false;
992
- }
993
-
994
- if (currentOpts.transitionOut == 'elastic') {
995
- start_pos = _get_zoom_from();
996
-
997
- var pos = wrap.position();
998
-
999
- final_pos = {
1000
- top : pos.top ,
1001
- left : pos.left,
1002
- width : wrap.width(),
1003
- height : wrap.height()
1004
- };
1005
-
1006
- if (currentOpts.opacity) {
1007
- final_pos.opacity = 1;
1008
- }
1009
-
1010
- title.empty().hide();
1011
-
1012
- fx.prop = 1;
1013
-
1014
- $(fx).animate({ prop: 0 }, {
1015
- duration : currentOpts.speedOut,
1016
- easing : currentOpts.easingOut,
1017
- step : _draw,
1018
- complete : _cleanup
1019
- });
1020
-
1021
- } else {
1022
- wrap.fadeOut( currentOpts.transitionOut == 'none' ? 0 : currentOpts.speedOut, _cleanup);
1023
- }
1024
- };
1025
-
1026
- $.fancybox.resize = function() {
1027
- if (overlay.is(':visible')) {
1028
- overlay.css('height', $(document).height());
1029
- }
1030
-
1031
- $.fancybox.center(true);
1032
- };
1033
-
1034
- $.fancybox.center = function() {
1035
- var view, align;
1036
-
1037
- if (busy) {
1038
- return;
1039
- }
1040
-
1041
- align = arguments[0] === true ? 1 : 0;
1042
- view = _get_viewport();
1043
-
1044
- if (!align && (wrap.width() > view[0] || wrap.height() > view[1])) {
1045
- return;
1046
- }
1047
-
1048
- wrap
1049
- .stop()
1050
- .animate({
1051
- 'top' : parseInt(Math.max(view[3] - 20, view[3] + ((view[1] - content.height() - 40) * 0.5) - currentOpts.padding)),
1052
- 'left' : parseInt(Math.max(view[2] - 20, view[2] + ((view[0] - content.width() - 40) * 0.5) - currentOpts.padding))
1053
- }, typeof arguments[0] == 'number' ? arguments[0] : 200);
1054
- };
1055
-
1056
- $.fancybox.init = function() {
1057
- if ($("#fancybox-wrap").length) {
1058
- return;
1059
- }
1060
-
1061
- $('body').append(
1062
- tmp = $('<div id="fancybox-tmp"></div>'),
1063
- loading = $('<div id="fancybox-loading"><div></div></div>'),
1064
- overlay = $('<div id="fancybox-overlay"></div>'),
1065
- wrap = $('<div id="fancybox-wrap"></div>')
1066
- );
1067
-
1068
- outer = $('<div id="fancybox-outer"></div>')
1069
- .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>')
1070
- .appendTo( wrap );
1071
-
1072
- outer.append(
1073
- content = $('<div id="fancybox-content"></div>'),
1074
- close = $('<a id="fancybox-close"></a>'),
1075
- title = $('<div id="fancybox-title"></div>'),
1076
-
1077
- nav_left = $('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),
1078
- nav_right = $('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')
1079
- );
1080
-
1081
- close.click($.fancybox.close);
1082
- loading.click($.fancybox.cancel);
1083
-
1084
- nav_left.click(function(e) {
1085
- e.preventDefault();
1086
- $.fancybox.prev();
1087
- });
1088
-
1089
- nav_right.click(function(e) {
1090
- e.preventDefault();
1091
- $.fancybox.next();
1092
- });
1093
-
1094
- if ($.fn.mousewheel) {
1095
- wrap.bind('mousewheel.fb', function(e, delta) {
1096
- if (busy) {
1097
- e.preventDefault();
1098
-
1099
- } else if ($(e.target).get(0).clientHeight == 0 || $(e.target).get(0).scrollHeight === $(e.target).get(0).clientHeight) {
1100
- e.preventDefault();
1101
- $.fancybox[ delta > 0 ? 'prev' : 'next']();
1102
- }
1103
- });
1104
- }
1105
-
1106
- if (!$.support.opacity) {
1107
- wrap.addClass('fancybox-ie');
1108
- }
1109
-
1110
- if (isIE6) {
1111
- loading.addClass('fancybox-ie6');
1112
- wrap.addClass('fancybox-ie6');
1113
-
1114
- $('<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(outer);
1115
- }
1116
- };
1117
-
1118
- $.fn.fancybox.defaults = {
1119
- padding : 10,
1120
- margin : 40,
1121
- opacity : false,
1122
- modal : false,
1123
- cyclic : false,
1124
- scrolling : 'auto', // 'auto', 'yes' or 'no'
1125
-
1126
- width : 560,
1127
- height : 340,
1128
-
1129
- autoScale : true,
1130
- autoDimensions : true,
1131
- centerOnScroll : false,
1132
-
1133
- ajax : {},
1134
- swf : { wmode: 'transparent' },
1135
-
1136
- hideOnOverlayClick : true,
1137
- hideOnContentClick : false,
1138
-
1139
- overlayShow : true,
1140
- overlayOpacity : 0.7,
1141
- overlayColor : '#777',
1142
-
1143
- titleShow : true,
1144
- titlePosition : 'float', // 'float', 'outside', 'inside' or 'over'
1145
- titleFormat : null,
1146
- titleFromAlt : false,
1147
-
1148
- transitionIn : 'fade', // 'elastic', 'fade' or 'none'
1149
- transitionOut : 'fade', // 'elastic', 'fade' or 'none'
1150
-
1151
- speedIn : 300,
1152
- speedOut : 300,
1153
-
1154
- changeSpeed : 300,
1155
- changeFade : 'fast',
1156
-
1157
- easingIn : 'swing',
1158
- easingOut : 'swing',
1159
-
1160
- showCloseButton : true,
1161
- showNavArrows : true,
1162
- enableEscapeButton : true,
1163
- enableKeyboardNav : true,
1164
-
1165
- onStart : function(){},
1166
- onCancel : function(){},
1167
- onComplete : function(){},
1168
- onCleanup : function(){},
1169
- onClosed : function(){},
1170
- onError : function(){}
1171
- };
1172
-
1173
- $(document).ready(function() {
1174
- $.fancybox.init();
1175
- });
1176
-
1177
- })(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/prettyphoto/README.md DELETED
@@ -1,30 +0,0 @@
1
- prettyPhoto v3.1.4
2
- © Copyright, Stephane Caron
3
- http://www.no-margin-for-errors.com
4
-
5
-
6
- ============================= Released under =============================
7
-
8
- Creative Commons 2.5
9
- http://creativecommons.org/licenses/by/2.5/
10
-
11
- OR
12
-
13
- GPLV2 license
14
- http://www.gnu.org/licenses/gpl-2.0.html
15
-
16
- You are free to use prettyPhoto in commercial projects as long as the
17
- copyright header is left intact.
18
-
19
- ============================ More information ============================
20
- http://www.no-margin-for-errors.com/projects/prettyPhoto/
21
-
22
-
23
- ============================== Description ===============================
24
-
25
- prettyPhoto is a jQuery based lightbox clone. Not only does it support images,
26
- it also add support for videos, flash, YouTube, iFrame. It's a full blown
27
- media modal box.
28
-
29
- Please refer to http://www.no-margin-for-errors.com/projects/prettyPhoto/
30
- for all the details on how to use.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/swipebox/README.md DELETED
@@ -1,70 +0,0 @@
1
- Swipebox
2
- ================================
3
-
4
- A touchable jQuery lightbox.
5
-
6
- [View project page](http://brutaldesign.github.com/swipebox)
7
-
8
- ##What is Swipebox ?
9
-
10
- Swipebox is a jQuery "lightbox" plugin for desktop, mobile and tablet.
11
-
12
- ##Features
13
-
14
- - Swipe gestures for mobile
15
- - Keyboard Navigation for desktop
16
- - CSS transitions with jQuery fallback
17
- - Retina support for UI icons
18
- - Easy CSS customization
19
-
20
- ###Compatibility
21
-
22
- Chrome, Safari, Firefox, Opera, IE8+, IOS4+, Android, windows phone.
23
-
24
- ##Usage
25
-
26
- ###Javascript
27
-
28
- Include jquery and the swipebox script in your head tags or right before your body closing tag.
29
-
30
- ```html
31
- <script src="lib/jquery-1.9.0.js"></script>
32
- <script src="source/jquery.swipebox.js"></script>
33
- ```
34
-
35
- ###CSS
36
-
37
- Include the swipebox CSS style in your head tags.
38
-
39
- ```html
40
- <link rel="stylesheet" href="source/swipebox.css">
41
- ```
42
-
43
- ###HTML
44
-
45
- Use a specific class for your links and use the title attribute as caption.
46
-
47
- ```html
48
- <a href="big/image.jpg" class="swipebox" title="My Caption">
49
- ```
50
-
51
- ###Fire the plugin
52
-
53
- Bind the swipebox behaviour on every link with the "swipebox" class.
54
-
55
- ```javascript
56
- $(".swipebox").swipebox();
57
- ```
58
-
59
- ###Options
60
-
61
- ```javascript
62
- useCSS : true, // false will force the use of jQuery for animations
63
- hideBarsDelay : 3000, // 0 to always show caption and action bar
64
- videoMaxWidth : 1140, // videos max width
65
- beforeOpen: function(){} , // called before opening
66
- afterClose: function(){} // called after closing
67
- ```
68
-
69
- ####Credits
70
- Photos by [Daniele Zedda](http://www.flickr.com/photos/astragony/)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/tosrus/README.md DELETED
@@ -1,28 +0,0 @@
1
- jQuery.TosRUs
2
- ================
3
-
4
- A one-stop-shop jQuery plugin for scrolling/swiping through all different kinds of content.
5
- On a desktop, tablet or smartphone, inside a HTML element or as a lightbox popup.
6
-
7
- Demo's: http://tosrus.frebsite.nl/examples.php<br />
8
- Documentation: http://tosrus.frebsite.nl
9
-
10
- <img src="http://tosrus.frebsite.nl/img/preview-3.png" width="100%" border="0" />
11
-
12
- ### Features
13
-
14
- + Creates lightbox popup galleries just as easy as "inline" sliders.
15
- + Works just as well on a desktop as it does on a tablet or smartphone.
16
- + Responsive CSS interface for sizing and positioning.
17
- + Drag or swipe to slide to the next/previous slide(s).
18
- + Slides are automatically grouped into a gallery.
19
- + Very customizable through a series of options with device dependent defaults.
20
- + Supports showing images, video's and HTML content.
21
- + Viewport-scale dependent buttons and caption sizes.
22
-
23
- ### More info
24
- Please visit http://tosrus.frebsite.nl
25
-
26
- ### Licence
27
- The jQuery.TosRUs plugin is licensed under the MIT license:
28
- + http://en.wikipedia.org/wiki/MIT_License
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/tosrus/js/jquery.tosrus.min.js DELETED
@@ -1,13 +0,0 @@
1
- /*
2
- * jQuery Touch Optimized Sliders "R"Us 2.4.0
3
- *
4
- * Copyright (c) Fred Heusschen
5
- * www.frebsite.nl
6
- *
7
- * Plugin website:
8
- * tosrus.frebsite.nl
9
- *
10
- * Licensed under the MIT license.
11
- * http://en.wikipedia.org/wiki/MIT_License
12
- */
13
- !function(s){function i(){o=function(s){return t+"-"+s},d=function(s){return t+"-"+s},a=function(s){return s+"."+t},s.each([o,d,a],function(s,i){i.add=function(s){s=s.split(" ");for(var e in s)i[s[e]]=i(s[e])}}),o.add("touch desktop scale-1 scale-2 scale-3 wrapper opened opening fixed inline hover slider slide loading noanimation fastanimation"),d.add("slide anchor"),a.add("open opening close closing prev next slideTo sliding click pinch scroll resize orientationchange load loading loaded transitionend webkitTransitionEnd"),r={complObject:function(i,e){return s.isPlainObject(i)||(i=e),i},complBoolean:function(s,i){return"boolean"!=typeof s&&(s=i),s},complNumber:function(i,e){return s.isNumeric(i)||(i=e),i},complString:function(s,i){return"string"!=typeof s&&(s=i),s},isPercentage:function(s){return"string"==typeof s&&"%"==s.slice(-1)},getPercentage:function(s){return parseInt(s.slice(0,-1))},resizeRatio:function(s,i,e,t,n){var o=i.width(),d=i.height();e&&o>e&&(o=e),t&&d>t&&(d=t),n>o/d?d=o/n:o=d*n,s.width(o).height(d)},transitionend:function(s,i,e){var t=!1,n=function(){t||i.call(s[0]),t=!0};s.one(a.transitionend,n),s.one(a.webkitTransitionEnd,n),setTimeout(n,1.1*e)},setViewportScale:function(){if(l.viewportScale){var s=l.viewportScale.getScale();"undefined"!=typeof s&&(s=1/s,l.$body.removeClass(o["scale-1"]).removeClass(o["scale-2"]).removeClass(o["scale-3"]).addClass(o["scale-"+Math.max(Math.min(Math.round(s),3),1)]))}}},l={$wndw:s(window),$html:s("html"),$body:s("body"),scrollPosition:0,viewportScale:null,viewportScaleInterval:null},l.$body.addClass(s[e].support.touch?o.touch:o.desktop),l.$wndw.on(a.scroll,function(s){l.$body.hasClass(o.opened)&&(window.scrollTo(0,l.scrollPosition),s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation())}),!l.viewportScale&&s[e].support.touch&&"undefined"!=typeof FlameViewportScale&&(l.viewportScale=new FlameViewportScale,r.setViewportScale(),l.$wndw.on(a.orientationchange+" "+a.resize,function(){l.viewportScaleInterval&&(clearTimeout(l.viewportScaleInterval),l.viewportScaleInterval=null),l.viewportScaleInterval=setTimeout(function(){r.setViewportScale()},500)})),s[e]._c=o,s[e]._d=d,s[e]._e=a,s[e]._f=r,s[e]._g=l}var e="tosrus",t="tos",n="2.4.0";if(!s[e]){var o={},d={},a={},r={},l={};s[e]=function(s,i,e){return this.$node=s,this.opts=i,this.conf=e,this.vars={},this.nodes={},this.slides={},this._init(),this},s[e].prototype={_init:function(){var i=this;this._complementOptions(),this.vars.fixed="window"==this.opts.wrapper.target,this.nodes.$wrpr=s('<div class="'+o.wrapper+'" />'),this.nodes.$sldr=s('<div class="'+o.slider+'" />').appendTo(this.nodes.$wrpr),this.nodes.$wrpr.addClass(this.vars.fixed?o.fixed:o.inline).addClass(o("fx-"+this.opts.effect)).addClass(o(this.opts.slides.scale)).addClass(this.opts.wrapper.classes),this.nodes.$wrpr.on(a.open+" "+a.close+" "+a.prev+" "+a.next+" "+a.slideTo,function(s){arguments=Array.prototype.slice.call(arguments);var s=arguments.shift(),e=s.type;s.stopPropagation(),"function"==typeof i[e]&&i[e].apply(i,arguments)}).on(a.opening+" "+a.closing+" "+a.sliding+" "+a.loading+" "+a.loaded,function(s){s.stopPropagation()}).on(a.click,function(e){switch(e.stopPropagation(),i.opts.wrapper.onClick){case"toggleUI":i.nodes.$wrpr.toggleClass(o.hover);break;case"close":s(e.target).is("img")||i.close()}}),this.nodes.$anchors=this._initAnchors(),this.nodes.$slides=this._initSlides(),this.slides.total=this.nodes.$slides.length,this.slides.visible=this.opts.slides.visible,this.slides.index=0,this.vars.opened=!0;for(var t=0;t<s[e].addons.length;t++)s.isFunction(this["_addon_"+s[e].addons[t]])&&this["_addon_"+s[e].addons[t]]();for(var n=0;n<s[e].ui.length;n++)this.nodes.$wrpr.find("."+o[s[e].ui[n]]).length&&this.nodes.$wrpr.addClass(o("has-"+s[e].ui[n]));"close"==this.opts.wrapper.onClick&&this.nodes.$uibg.add(this.nodes.$capt||s()).add(this.nodes.$pagr||s()).on(a.click,function(s){s.stopPropagation()}),this.vars.fixed?(this.nodes.$wrpr.appendTo(l.$body),this.close(!0)):(this.nodes.$wrpr.appendTo(this.opts.wrapper.target),this.opts.show?(this.vars.opened=!1,this.open(0,!0)):this.close(!0))},open:function(i,e){var t=this;this.vars.opened||(this.vars.fixed&&(l.scrollPosition=l.$wndw.scrollTop(),l.$body.addClass(o.opened),r.setViewportScale()),e?this.nodes.$wrpr.addClass(o.opening).trigger(a.opening,[i,e]):setTimeout(function(){t.nodes.$wrpr.addClass(o.opening).trigger(a.opening,[i,e])},5),this.nodes.$wrpr.addClass(o.hover).addClass(o.opened)),this.vars.opened=!0,this._loadContents(),s.isNumeric(i)&&(e=e||!this.vars.opened,this.slideTo(i,e))},close:function(i){this.vars.opened&&(this.vars.fixed&&l.$body.removeClass(o.opened),i?this.nodes.$wrpr.removeClass(o.opened):r.transitionend(this.nodes.$wrpr,function(){s(this).removeClass(o.opened)},this.conf.transitionDuration),this.nodes.$wrpr.removeClass(o.hover).removeClass(o.opening).trigger(a.closing,[this.slides.index,i])),this.vars.opened=!1},prev:function(i,e){s.isNumeric(i)||(i=this.opts.slides.slide),this.slideTo(this.slides.index-i,e)},next:function(i,e){s.isNumeric(i)||(i=this.opts.slides.slide),this.slideTo(this.slides.index+i,e)},slideTo:function(i,t){if(!this.vars.opened)return!1;if(!s.isNumeric(i))return!1;var n=!0;if(0>i){var d=0==this.slides.index;this.opts.infinite?i=d?this.slides.total-this.slides.visible:0:(i=0,d&&(n=!1))}if(i+this.slides.visible>this.slides.total){var l=this.slides.index+this.slides.visible>=this.slides.total;this.opts.infinite?i=l?0:this.slides.total-this.slides.visible:(i=this.slides.total-this.slides.visible,l&&(n=!1))}if(this.slides.index=i,this._loadContents(),n){var h=0-this.slides.index*this.opts.slides.width+this.opts.slides.offset;this.slides.widthPercentage&&(h+="%"),t&&(this.nodes.$sldr.addClass(o.noanimation),r.transitionend(this.nodes.$sldr,function(){s(this).removeClass(o.noanimation)},5));for(var c in s[e].effects)if(c==this.opts.effect){s[e].effects[c].call(this,h,t);break}this.nodes.$wrpr.trigger(a.sliding,[i,t])}},_initAnchors:function(){var i=this,t=s();if(this.$node.is("a"))for(var n in s[e].media)t=t.add(this.$node.filter(function(){if(i.opts.media[n]&&i.opts.media[n].filterAnchors){var t=i.opts.media[n].filterAnchors.call(i,s(this));if("boolean"==typeof t)return t}return s[e].media[n].filterAnchors.call(i,s(this))}));return t},_initSlides:function(){return this[this.$node.is("a")?"_initSlidesFromAnchors":"_initSlidesFromContent"](),this.nodes.$sldr.children().css("width",this.opts.slides.width+(this.slides.widthPercentage?"%":"px"))},_initSlidesFromAnchors:function(){var i=this;this.nodes.$anchors.each(function(e){var t=s(this),n=s('<div class="'+o.slide+" "+o.loading+'" />').data(d.anchor,t).appendTo(i.nodes.$sldr);t.data(d.slide,n).on(a.click,function(s){s.preventDefault(),i.open(e)})})},_initSlidesFromContent:function(){var i=this;this.$node.children().each(function(){var t=s(this);s('<div class="'+o.slide+'" />').append(t).appendTo(i.nodes.$sldr);for(var n in s[e].media){var d=null;if(i.opts.media[n]&&i.opts.media[n].filterSlides&&(d=i.opts.media[n].filterSlides.call(i,t)),"boolean"!=typeof d&&(d=s[e].media[n].filterSlides.call(i,t)),d){s[e].media[n].initSlides.call(i,t),t.parent().addClass(o(n));break}}})},_loadContents:function(){var s=this;switch(this.opts.slides.load){case"all":this._loadContent(0,this.slides.total);break;case"visible":this._loadContent(this.slides.index,this.slides.index+this.slides.visible);break;case"near-visible":default:this._loadContent(this.slides.index,this.slides.index+this.slides.visible),setTimeout(function(){s._loadContent(s.slides.index-s.slides.visible,s.slides.index),s._loadContent(s.slides.index+s.slides.visible,s.slides.index+2*s.slides.visible)},this.conf.transitionDuration)}},_loadContent:function(i,t){var n=this;this.nodes.$slides.slice(i,t).each(function(){var i=s(this);if(0==i.children().length){var t=i.data(d.anchor),r=t.attr("href");for(var l in s[e].media){var h=null;if(n.opts.media[l]&&n.opts.media[l].filterAnchors&&(h=n.opts.media[l].filterAnchors.call(n,t)),"boolean"!=typeof h&&(h=s[e].media[l].filterAnchors.call(n,t)),h){s[e].media[l].initAnchors.call(n,i,r),i.addClass(o(l));break}}i.trigger(a.loading,[i.data(d.anchor)])}})},_complementOptions:function(){if("undefined"==typeof this.opts.wrapper.target&&(this.opts.wrapper.target=this.$node.is("a")?"window":this.$node),"window"!=this.opts.wrapper.target&&"string"==typeof this.opts.wrapper.target&&(this.opts.wrapper.target=s(this.opts.wrapper.target)),this.opts.show=r.complBoolean(this.opts.show,"window"!=this.opts.wrapper.target),s.isNumeric(this.opts.slides.width))this.slides.widthPercentage=!1,this.opts.slides.visible=r.complNumber(this.opts.slides.visible,1);else{var i=r.isPercentage(this.opts.slides.width)?r.getPercentage(this.opts.slides.width):!1;this.slides.widthPercentage=!0,this.opts.slides.visible=r.complNumber(this.opts.slides.visible,i?Math.floor(100/i):1),this.opts.slides.width=i?i:Math.ceil(1e4/this.opts.slides.visible)/100}this.opts.slides.slide=r.complNumber(this.opts.slides.slide,this.opts.slides.visible),this.opts.slides.offset=r.isPercentage(this.opts.slides.offset)?r.getPercentage(this.opts.slides.offset):r.complNumber(this.opts.slides.offset,0)},_uniqueID:function(){return this.__uniqueID||(this.__uniqueID=0),this.__uniqueID++,o("uid-"+this.__uniqueID)}},s.fn[e]=function(t,n,o,d){l.$wndw||i(),t=s.extend(!0,{},s[e].defaults,t),t=s.extend(!0,{},t,s[e].support.touch?o:n),d=s.extend(!0,{},s[e].configuration,d);var a=new s[e](this,t,d);return this.data(e,a),a.nodes.$wrpr},s[e].support={touch:"ontouchstart"in window.document||navigator.msMaxTouchPoints},s[e].defaults={infinite:!1,effect:"slide",wrapper:{classes:"",onClick:"toggleUI"},slides:{offset:0,scale:"fit",load:"near-visible",visible:1},media:{}},s[e].configuration={transitionDuration:400},s[e].constants={},s[e].debug=function(){},s[e].deprecated=function(s,i){"undefined"!=typeof console&&"undefined"!=typeof console.warn&&console.warn(e+": "+s+" is deprecated, use "+i+" instead.")},s[e].effects={slide:function(s){this.nodes.$sldr.css("left",s)},fade:function(i){r.transitionend(this.nodes.$sldr,function(){s(this).css("left",i).css("opacity",1)},this.conf.transitionDuration),this.nodes.$sldr.css("opacity",0)}},s[e].version=n,s[e].media={},s[e].addons=[],s[e].ui=[]}}(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/class-frontend.php CHANGED
@@ -519,7 +519,7 @@ class Responsive_Lightbox_Frontend {
519
  $data = get_post_meta( $shortcode_atts['rl_gallery_id'], '_rl_' . $key, true );
520
 
521
  // add those fields
522
- if ( ! empty( $data['menu_item'] && is_array( $data[$data['menu_item']] ) ) )
523
  $field_atts += $data[$data['menu_item']];
524
  }
525
  }
519
  $data = get_post_meta( $shortcode_atts['rl_gallery_id'], '_rl_' . $key, true );
520
 
521
  // add those fields
522
+ if ( ! empty( $data['menu_item'] ) && is_array( $data[$data['menu_item']] ) )
523
  $field_atts += $data[$data['menu_item']];
524
  }
525
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.dfactory.eu/
4
  Tags: gallery, images, lightbox, photos, theme, photo, image, picture, slideshow, modal, overlay, video
5
  Requires at least: 4.0
6
  Tested up to: 4.9.5
7
- Stable tag: 2.0
8
  Requires PHP: 5.2.4
9
  License: MIT License
10
  License URI: http://opensource.org/licenses/MIT
@@ -78,6 +78,10 @@ No questions yet.
78
 
79
  == Changelog ==
80
 
 
 
 
 
81
  = 2.0 =
82
  * New: Powerful gallery builder
83
  * New: 3 gallery templates - Basic Grid, Slider and Masonry
@@ -334,5 +338,6 @@ Initial release
334
 
335
  == Upgrade Notice ==
336
 
337
- = 2.0 =
338
- * Major upgrade: Powerful gallery builder, gallery templates and a new lightbox
 
4
  Tags: gallery, images, lightbox, photos, theme, photo, image, picture, slideshow, modal, overlay, video
5
  Requires at least: 4.0
6
  Tested up to: 4.9.5
7
+ Stable tag: 2.0.1
8
  Requires PHP: 5.2.4
9
  License: MIT License
10
  License URI: http://opensource.org/licenses/MIT
78
 
79
  == Changelog ==
80
 
81
+ = 2.0.1 =
82
+
83
+ * Fix: Syntax error in frontend.php on line 522
84
+
85
  = 2.0 =
86
  * New: Powerful gallery builder
87
  * New: 3 gallery templates - Basic Grid, Slider and Masonry
338
 
339
  == Upgrade Notice ==
340
 
341
+ = 2.0.1 =
342
+
343
+ * Fix: Syntax error in frontend.php on line 522
responsive-lightbox.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Responsive Lightbox & Gallery
4
  Description: Responsive Lightbox & Gallery allows users to create galleries and view larger versions of images, galleries and videos in a lightbox (overlay) effect optimized for mobile devices.
5
- Version: 2.0
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
@@ -41,7 +41,7 @@ include_once( RESPONSIVE_LIGHTBOX_PATH . 'includes' . DIRECTORY_SEPARATOR . 'fun
41
  * Responsive Lightbox class.
42
  *
43
  * @class Responsive_Lightbox
44
- * @version 2.0
45
  */
46
  class Responsive_Lightbox {
47
 
@@ -237,7 +237,7 @@ class Responsive_Lightbox {
237
  'origin_left' => true,
238
  'origin_top' => true
239
  ),
240
- 'version' => '2.0.0',
241
  'activation_date' => ''
242
  );
243
  public $options = array();
2
  /*
3
  Plugin Name: Responsive Lightbox & Gallery
4
  Description: Responsive Lightbox & Gallery allows users to create galleries and view larger versions of images, galleries and videos in a lightbox (overlay) effect optimized for mobile devices.
5
+ Version: 2.0.1
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
41
  * Responsive Lightbox class.
42
  *
43
  * @class Responsive_Lightbox
44
+ * @version 2.0.1
45
  */
46
  class Responsive_Lightbox {
47
 
237
  'origin_left' => true,
238
  'origin_top' => true
239
  ),
240
+ 'version' => '2.0.1',
241
  'activation_date' => ''
242
  );
243
  public $options = array();