Responsive Lightbox & Gallery - Version 1.2.0

Version Description

  • New: Added FancyBox script
  • Tweak: UI enhancements for options
  • Tweak: Better YouTube video handling (including https protocol)
Download this release

Release Info

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

Code changes from version 1.1.2 to 1.2.0

assets/fancybox/blank.gif ADDED
Binary file
assets/fancybox/fancy_close.png ADDED
Binary file
assets/fancybox/fancy_loading.png ADDED
Binary file
assets/fancybox/fancy_nav_left.png ADDED
Binary file
assets/fancybox/fancy_nav_right.png ADDED
Binary file
assets/fancybox/fancy_shadow_e.png ADDED
Binary file
assets/fancybox/fancy_shadow_n.png ADDED
Binary file
assets/fancybox/fancy_shadow_ne.png ADDED
Binary file
assets/fancybox/fancy_shadow_nw.png ADDED
Binary file
assets/fancybox/fancy_shadow_s.png ADDED
Binary file
assets/fancybox/fancy_shadow_se.png ADDED
Binary file
assets/fancybox/fancy_shadow_sw.png ADDED
Binary file
assets/fancybox/fancy_shadow_w.png ADDED
Binary file
assets/fancybox/fancy_title_left.png ADDED
Binary file
assets/fancybox/fancy_title_main.png ADDED
Binary file
assets/fancybox/fancy_title_over.png ADDED
Binary file
assets/fancybox/fancy_title_right.png ADDED
Binary file
assets/fancybox/fancybox-x.png ADDED
Binary file
assets/fancybox/fancybox-y.png ADDED
Binary file
assets/fancybox/fancybox.png ADDED
Binary file
assets/fancybox/jquery.easing-1.3.pack.js ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,359 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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'); }
328
+
329
+ .fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_left.png', sizingMethod='scale'); }
330
+ .fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_right.png', sizingMethod='scale'); }
331
+
332
+ .fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_over.png', sizingMethod='scale'); zoom: 1; }
333
+ .fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_left.png', sizingMethod='scale'); }
334
+ .fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_main.png', sizingMethod='scale'); }
335
+ .fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_right.png', sizingMethod='scale'); }
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'); }
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'); }
353
+ .fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_ne.png', sizingMethod='scale'); }
354
+ .fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_e.png', sizingMethod='scale'); }
355
+ .fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_se.png', sizingMethod='scale'); }
356
+ .fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_s.png', sizingMethod='scale'); }
357
+ .fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_sw.png', sizingMethod='scale'); }
358
+ .fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_w.png', sizingMethod='scale'); }
359
+ .fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_nw.png', sizingMethod='scale'); }
assets/fancybox/jquery.fancybox-1.3.4.js ADDED
@@ -0,0 +1,1177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 = 'http://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 = 'http://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/fancybox/jquery.mousewheel-3.0.4.pack.js ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
2
+ * Licensed under the MIT License (LICENSE.txt).
3
+ *
4
+ * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
5
+ * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
6
+ * Thanks to: Seamus Leahy for adding deltaX and deltaY
7
+ *
8
+ * Version: 3.0.4
9
+ *
10
+ * Requires: 1.2.2+
11
+ */
12
+
13
+ (function(d){function g(a){var b=a||window.event,i=[].slice.call(arguments,1),c=0,h=0,e=0;a=d.event.fix(b);a.type="mousewheel";if(a.wheelDelta)c=a.wheelDelta/120;if(a.detail)c=-a.detail/3;e=c;if(b.axis!==undefined&&b.axis===b.HORIZONTAL_AXIS){e=0;h=-1*c}if(b.wheelDeltaY!==undefined)e=b.wheelDeltaY/120;if(b.wheelDeltaX!==undefined)h=-1*b.wheelDeltaX/120;i.unshift(a,c,h,e);return d.event.handle.apply(this,i)}var f=["DOMMouseScroll","mousewheel"];d.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=
14
+ f.length;a;)this.addEventListener(f[--a],g,false);else this.onmousewheel=g},teardown:function(){if(this.removeEventListener)for(var a=f.length;a;)this.removeEventListener(f[--a],g,false);else this.onmousewheel=null}};d.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);
js/admin.js CHANGED
@@ -1,14 +1,65 @@
1
  jQuery(document).ready(function($) {
2
 
3
  $('.wplikebtns').buttonset();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  $('#rl_pp_opacity_span').slider({
5
- value: rlArgs.opacity,
6
  min: 0,
7
  max: 100,
8
  step: 1,
9
  orientation: 'horizontal',
10
  slide: function(e, ui) {
11
  $('#rl_pp_opacity_input').attr('value', ui.value);
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  }
13
  });
14
 
1
  jQuery(document).ready(function($) {
2
 
3
  $('.wplikebtns').buttonset();
4
+ $('#rl_fb_overlay_color_input').wpColorPicker();
5
+
6
+ $(document).on('click', '#rl-fb-modal-yes', function(event) {
7
+ $('#rl-fb-show-overlay-yes').trigger('click');
8
+ $('#rl-fb-show-overlay-no').button('disable');
9
+ $('#rl-fb-show-overlay-yes').button('disable');
10
+ $('#rl-fb-show-close-button-no').trigger('click');
11
+ $('#rl-fb-show-close-button-no').button('disable');
12
+ $('#rl-fb-show-close-button-yes').button('disable');
13
+ $('#rl-fb-enable-escape-button-no').trigger('click');
14
+ $('#rl-fb-enable-escape-button-no').button('disable');
15
+ $('#rl-fb-enable-escape-button-yes').button('disable');
16
+ $('#rl-fb-hide-on-overlay-click-no').trigger('click');
17
+ $('#rl-fb-hide-on-overlay-click-no').button('disable');
18
+ $('#rl-fb-hide-on-overlay-click-yes').button('disable');
19
+ $('#rl-fb-hide-on-content-click-no').trigger('click');
20
+ $('#rl-fb-hide-on-content-click-no').button('disable');
21
+ $('#rl-fb-hide-on-content-click-yes').button('disable');
22
+ });
23
+
24
+ $(document).on('click', '#rl-fb-modal-no', function(event) {
25
+ $('#rl-fb-show-overlay-no').button('enable');
26
+ $('#rl-fb-show-overlay-yes').button('enable');
27
+ $('#rl-fb-show-overlay-yes').trigger('click');
28
+ $('#rl-fb-show-close-button-no').button('enable');
29
+ $('#rl-fb-show-close-button-yes').button('enable');
30
+ $('#rl-fb-show-close-button-no').trigger('click');
31
+ $('#rl-fb-enable-escape-button-no').button('enable');
32
+ $('#rl-fb-enable-escape-button-yes').button('enable');
33
+ $('#rl-fb-enable-escape-button-no').trigger('click');
34
+ $('#rl-fb-hide-on-overlay-click-no').button('enable');
35
+ $('#rl-fb-hide-on-overlay-click-yes').button('enable');
36
+ $('#rl-fb-hide-on-overlay-click-no').trigger('click');
37
+ $('#rl-fb-hide-on-content-click-no').button('enable');
38
+ $('#rl-fb-hide-on-content-click-yes').button('enable');
39
+ $('#rl-fb-hide-on-content-click-no').trigger('click');
40
+ });
41
+
42
  $('#rl_pp_opacity_span').slider({
43
+ value: rlArgs.opacity_pp,
44
  min: 0,
45
  max: 100,
46
  step: 1,
47
  orientation: 'horizontal',
48
  slide: function(e, ui) {
49
  $('#rl_pp_opacity_input').attr('value', ui.value);
50
+ $('#rl_pp_opacity_span').attr('title', ui.value);
51
+ }
52
+ });
53
+
54
+ $('#rl_fb_overlay_opacity_span').slider({
55
+ value: rlArgs.opacity_fb,
56
+ min: 0,
57
+ max: 100,
58
+ step: 1,
59
+ orientation: 'horizontal',
60
+ slide: function(e, ui) {
61
+ $('#rl_fb_overlay_opacity_input').attr('value', ui.value);
62
+ $('#rl_fb_overlay_opacity_span').attr('title', ui.value);
63
  }
64
  });
65
 
js/front.js CHANGED
@@ -31,5 +31,36 @@ jQuery(document).ready(function($) {
31
  callback: function(){},
32
  ie6_fallback: true
33
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  }
35
  });
31
  callback: function(){},
32
  ie6_fallback: true
33
  });
34
+ } else if(rlArgs.script === 'fancybox') {
35
+ $('a[rel*="'+rlArgs.selector+'"]').fancybox({
36
+ modal: (rlArgs.modal === '1' ? true : false),
37
+ overlayShow: (rlArgs.showOverlay === '1' ? true : false),
38
+ showCloseButton: (rlArgs.showCloseButton === '1' ? true : false),
39
+ enableEscapeButton: (rlArgs.enableEscapeButton === '1' ? true : false),
40
+ hideOnOverlayClick: (rlArgs.hideOnOverlayClick === '1' ? true : false),
41
+ hideOnContentClick: (rlArgs.hideOnContentClick === '1' ? true : false),
42
+ cyclic: (rlArgs.cyclic === '1' ? true : false),
43
+ showNavArrows: (rlArgs.showNavArrows === '1' ? true : false),
44
+ autoScale: (rlArgs.autoScale === '1' ? true : false),
45
+ scrolling: rlArgs.scrolling,
46
+ centerOnScroll: (rlArgs.centerOnScroll === '1' ? true : false),
47
+ opacity: (rlArgs.opacity === '1' ? true : false),
48
+ overlayOpacity: parseFloat(rlArgs.overlayOpacity / 100),
49
+ overlayColor: rlArgs.overlayColor,
50
+ titleShow: (rlArgs.titleShow === '1' ? true : false),
51
+ titlePosition: rlArgs.titlePosition,
52
+ transitionIn: rlArgs.transitions,
53
+ transitionOut: rlArgs.transitions,
54
+ easingIn: rlArgs.easings,
55
+ easingOut: rlArgs.easings,
56
+ speedIn: parseInt(rlArgs.speeds),
57
+ speedOut: parseInt(rlArgs.speeds),
58
+ changeSpeed: parseInt(rlArgs.changeSpeed),
59
+ changeFade: parseInt(rlArgs.changeFade),
60
+ padding: parseInt(rlArgs.padding),
61
+ margin: parseInt(rlArgs.margin),
62
+ width: parseInt(rlArgs.videoWidth),
63
+ height: parseInt(rlArgs.videoHeight)
64
+ });
65
  }
66
  });
languages/responsive-lightbox-cs_CZ.mo ADDED
Binary file
languages/responsive-lightbox-pl_PL.mo CHANGED
Binary file
languages/responsive-lightbox-pl_PL.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Responsive Lightbox\n"
4
- "POT-Creation-Date: 2013-09-17 17:40+0100\n"
5
- "PO-Revision-Date: 2013-09-17 17:40+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@digitalfactory.pl>\n"
7
  "Language-Team: dFactory <info@dfactory.eu>\n"
8
  "Language: Polski\n"
@@ -15,245 +15,377 @@ msgstr ""
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
- #: ../responsive-lightbox.php:229
19
  msgid "prettyPhoto"
20
  msgstr "prettyPhoto"
21
 
22
- #: ../responsive-lightbox.php:231
23
  msgid "slow"
24
  msgstr "wolno"
25
 
26
- #: ../responsive-lightbox.php:232
27
  msgid "normal"
28
  msgstr "normalnie"
29
 
30
- #: ../responsive-lightbox.php:233
31
  msgid "fast"
32
  msgstr "szybko"
33
 
34
- #: ../responsive-lightbox.php:236
35
  msgid "default"
36
  msgstr ""
37
 
38
- #: ../responsive-lightbox.php:237
39
  msgid "light rounded"
40
  msgstr ""
41
 
42
- #: ../responsive-lightbox.php:238
43
  msgid "dark rounded"
44
  msgstr ""
45
 
46
- #: ../responsive-lightbox.php:239
47
  msgid "light square"
48
  msgstr ""
49
 
50
- #: ../responsive-lightbox.php:240
51
  msgid "dark square"
52
  msgstr ""
53
 
54
- #: ../responsive-lightbox.php:241
55
  msgid "facebook"
56
  msgstr ""
57
 
58
- #: ../responsive-lightbox.php:244
59
  msgid "window"
60
  msgstr ""
61
 
62
- #: ../responsive-lightbox.php:245
63
  msgid "transparent"
64
  msgstr ""
65
 
66
- #: ../responsive-lightbox.php:246
67
  msgid "opaque"
68
  msgstr ""
69
 
70
- #: ../responsive-lightbox.php:247
71
  msgid "direct"
72
  msgstr ""
73
 
74
- #: ../responsive-lightbox.php:248
75
  msgid "gpu"
76
  msgstr ""
77
 
78
- #: ../responsive-lightbox.php:253
79
  msgid "SwipeBox"
80
  msgstr "SwipeBox"
81
 
82
- #: ../responsive-lightbox.php:255
83
  msgid "CSS"
84
  msgstr "CSS"
85
 
86
- #: ../responsive-lightbox.php:256
87
  msgid "jQuery"
88
  msgstr "jQuery"
89
 
90
- #: ../responsive-lightbox.php:262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  msgid "Enable"
92
  msgstr "Włącz"
93
 
94
- #: ../responsive-lightbox.php:263
95
  msgid "Disable"
96
  msgstr "Wyłącz"
97
 
98
- #: ../responsive-lightbox.php:268 ../responsive-lightbox.php:368
99
  msgid "General settings"
100
  msgstr "Ustawienia ogólne"
101
 
102
- #: ../responsive-lightbox.php:273 ../responsive-lightbox.php:379
103
  msgid "Lightbox settings"
104
  msgstr "Ustawienia lightbox"
105
 
106
- #: ../responsive-lightbox.php:369
107
  msgid "Lightbox script"
108
  msgstr "Skrypt lightbox"
109
 
110
- #: ../responsive-lightbox.php:370
111
  msgid "Selector"
112
  msgstr "Znacznik"
113
 
114
- #: ../responsive-lightbox.php:371
115
  msgid "Galleries"
116
  msgstr "Galerie"
117
 
118
- #: ../responsive-lightbox.php:372
119
  msgid "Video links"
120
  msgstr "Linki video"
121
 
122
- #: ../responsive-lightbox.php:373
123
  msgid "Image links"
124
  msgstr "Linki obrazków"
125
 
126
- #: ../responsive-lightbox.php:374
127
  msgid "Single images as gallery"
128
  msgstr "Galeria pojedynczych obrazków"
129
 
130
- #: ../responsive-lightbox.php:375
131
  msgid "Deactivation"
132
  msgstr "Deaktywacja"
133
 
134
- #: ../responsive-lightbox.php:383
135
  msgid "Animation type"
136
  msgstr "Typ animacji"
137
 
138
- #: ../responsive-lightbox.php:384
139
  msgid "Top and bottom bars"
140
  msgstr "Górne i dolne paski"
141
 
142
- #: ../responsive-lightbox.php:385
143
  msgid "Video max width"
144
  msgstr "Maksymalna szerokość video"
145
 
146
- #: ../responsive-lightbox.php:389
147
  msgid "Animation speed"
148
  msgstr "Szybkość animacji"
149
 
150
- #: ../responsive-lightbox.php:390
151
  msgid "Slideshow"
152
  msgstr "Pokaz slidów"
153
 
154
- #: ../responsive-lightbox.php:391
155
  msgid "Slideshow autoplay"
156
  msgstr "Automatyczne odtwarzanie pokazu slajdów"
157
 
158
- #: ../responsive-lightbox.php:392
159
  msgid "Opacity"
160
  msgstr "Przezroczystość"
161
 
162
- #: ../responsive-lightbox.php:393
163
  msgid "Show title"
164
  msgstr "Wyświetlanie tytułu"
165
 
166
- #: ../responsive-lightbox.php:394
167
  msgid "Allow resize big images"
168
  msgstr "Powiększanie dużych zdjęć"
169
 
170
- #: ../responsive-lightbox.php:395
171
  msgid "Video width"
172
  msgstr "Szerokość video"
173
 
174
- #: ../responsive-lightbox.php:396
175
  msgid "Video height"
176
  msgstr "Wysokość video"
177
 
178
- #: ../responsive-lightbox.php:397
179
  msgid "Theme"
180
  msgstr "Motyw"
181
 
182
- #: ../responsive-lightbox.php:398
183
  msgid "Horizontal padding"
184
  msgstr "Odstępy w poziomie"
185
 
186
- #: ../responsive-lightbox.php:399
187
  msgid "Hide Flash"
188
  msgstr "Ukrywanie flash"
189
 
190
- #: ../responsive-lightbox.php:400
191
  msgid "Flash Window Mode (wmode)"
192
  msgstr "Tryb okna flash (wmode)"
193
 
194
- #: ../responsive-lightbox.php:401
195
  msgid "Video autoplay"
196
  msgstr "Automatyczne odtwarzanie wideo"
197
 
198
- #: ../responsive-lightbox.php:402
199
  msgid "Modal"
200
  msgstr "Tryb modal"
201
 
202
- #: ../responsive-lightbox.php:403
203
  msgid "Deeplinking"
204
  msgstr "Głębokie linki"
205
 
206
- #: ../responsive-lightbox.php:404
207
  msgid "Overlay gallery"
208
  msgstr "Efekt overlay galerii"
209
 
210
- #: ../responsive-lightbox.php:405
211
  msgid "Keyboard shortcuts"
212
  msgstr "Skróty klawiaturowe"
213
 
214
- #: ../responsive-lightbox.php:406
215
  msgid "Social (Twitter, Facebook)"
216
  msgstr "Linki społeczności (Twitter, Facebook)"
217
 
218
- #: ../responsive-lightbox.php:424
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
219
  msgid "Select your preffered ligthbox effect script."
220
  msgstr "Wybierz preferowany efekt lightbox."
221
 
222
- #: ../responsive-lightbox.php:434
223
  msgid "Select to which rel selector lightbox effect will be applied to."
224
  msgstr "Wybierz dla któego znacznika będzie dodawany efekt lightbox."
225
 
226
- #: ../responsive-lightbox.php:452
227
- msgid "Add lightbox to WordPress image galleries by default"
228
- msgstr "Dodaj efekt lightbox do galerii obrazków WordPressa"
229
 
230
- #: ../responsive-lightbox.php:470
231
- msgid "Add lightbox to YouTube and Vimeo video links by default"
232
- msgstr "Dodaj efekt lightbox do linków video (YouTube i Vimeo) WordPressa"
233
 
234
- #: ../responsive-lightbox.php:488
235
- msgid "Add lightbox to WordPress image links by default"
236
- msgstr "Dodaj efekt lightbox do pojedynczych obrazków WordPressa"
237
 
238
- #: ../responsive-lightbox.php:506
239
- msgid "Display single post images as a gallery"
240
- msgstr "Wyświetl pojedyncze obrazki jako pokaz sladów"
241
 
242
- #: ../responsive-lightbox.php:524
243
- msgid "Delete settings on plugin deactivation"
244
- msgstr "Usuń ustawienia przy deaktywacji wtyczki"
245
 
246
- #: ../responsive-lightbox.php:542
247
  msgid "Select a method of applying a lightbox effect."
248
  msgstr "Wybierz sposób dodawania efekty lightbox."
249
 
250
- #: ../responsive-lightbox.php:560
251
  msgid ""
252
  "Disable if you don't want to top and bottom bars to be hidden after a period "
253
  "of time."
254
  msgstr "Wyłącz to, jeśli nie chcesz ukrywać górnego i dolnego paska."
255
 
256
- #: ../responsive-lightbox.php:564
257
  msgid ""
258
  "Enter the time after which the top and bottom bars will be hidden (when "
259
  "hiding is enabled)."
@@ -261,91 +393,204 @@ msgstr ""
261
  "Podaj czas po którym chcesz ukryć górny i dolny pasek (jeśli opcja ukrywania "
262
  "jest włączona)."
263
 
264
- #: ../responsive-lightbox.php:574
265
- msgid "Enter the max video width in a lightbox"
266
- msgstr "Podaj maksymalną szerokość video"
267
 
268
- #: ../responsive-lightbox.php:592
269
- msgid "Select animation speed for lightbox effect"
270
- msgstr "Wybierz szybkość animacji efektu lightbox"
271
 
272
- #: ../responsive-lightbox.php:610
273
- msgid "Display images as slideshow"
274
- msgstr "Wyświetl obrazki jako pokaz sladów "
275
 
276
- #: ../responsive-lightbox.php:614
277
- msgid "Enter time (in miliseconds)"
278
- msgstr "Podaj czas w milisekundach"
279
 
280
- #: ../responsive-lightbox.php:632
281
- msgid "Automatically start slideshow"
282
- msgstr "Automatyczne rozpoczynanie pokazu slajdów"
283
 
284
- #: ../responsive-lightbox.php:645
285
- msgid "Value between 0 and 100, 100 for no opacity"
286
- msgstr "Wartość pomiędzy 0 i 100 100 oznacza brak przezroczystości)"
287
 
288
- #: ../responsive-lightbox.php:663
289
- msgid "Display image tiltle"
290
- msgstr "Wyświetlanie tytułu obrazka"
291
 
292
- #: ../responsive-lightbox.php:681
293
  msgid "Resize the photos bigger than viewport."
294
  msgstr "Zmiana wielkość zdjęć większych niż aktualny ekran."
295
 
296
- #: ../responsive-lightbox.php:691 ../responsive-lightbox.php:701
297
  msgid "in pixels"
298
  msgstr "w pikselach"
299
 
300
- #: ../responsive-lightbox.php:719
301
- msgid "Select theme for lightbox effect"
302
  msgstr "Wybierz motyw dla efektu lightbox."
303
 
304
- #: ../responsive-lightbox.php:729
305
- msgid "Horizontal padding (in pixels)"
306
- msgstr "Odstępy w poziomie (w pikselach)"
307
 
308
- #: ../responsive-lightbox.php:747
309
  msgid ""
310
  "Hides all the flash object on a page. Enable this if flash appears over "
311
- "prettyPhoto"
312
  msgstr ""
313
  "Ukywa wszystkie obiekty flash na stronie. Włącz to jeśli animacje flash "
314
- "wyświetlane są nad lightboxem"
315
 
316
- #: ../responsive-lightbox.php:765
317
- msgid "Select flash window mode"
318
- msgstr "Wybierz tryb okna flash"
319
 
320
- #: ../responsive-lightbox.php:783
321
- msgid "Automatically start videos"
322
- msgstr "Automatycznie rozpoczynaj video"
323
 
324
- #: ../responsive-lightbox.php:801
325
- msgid "If set to true, only the close button will close the window"
326
  msgstr ""
327
- "Jeśli będzie włączone, tylko kliknięcie przycisku Zamknij spowoduje "
328
- "zamknięcie okna."
329
 
330
- #: ../responsive-lightbox.php:819
331
- msgid "Allow prettyPhoto to update the url to enable deeplinking"
332
- msgstr "Zezwól prettyPhoto na aktualizacje adresów URL i głębokie linkowanie"
333
 
334
- #: ../responsive-lightbox.php:837
335
- msgid "If enabled, a gallery will overlay the fullscreen image on mouse over"
336
  msgstr ""
337
  "Jeśli będzie włączone, galeria będzie wyświetlana na cały ekran po "
338
- "najechaniu myszką"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
339
 
340
- #: ../responsive-lightbox.php:855
341
- msgid "Set to false if you open forms inside prettyPhoto"
342
- msgstr "Wyłącz to jeśli chcesz otwierać formularze wewnątrz prettyPhoto"
343
 
344
- #: ../responsive-lightbox.php:873
345
- msgid "Display links to Facebook and Twitter"
346
- msgstr "Wyświetl linki do Facebboka i Twittera"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
347
 
348
- #: ../responsive-lightbox.php:972
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
349
  msgid ""
350
  "Changes were not saved because there was attempt to save settings of "
351
  "inactive script. The site has been reloaded to the proper script settings."
@@ -353,15 +598,19 @@ msgstr ""
353
  "Zmiany nie zostały zapisane ponieważ wykryto próbę zapisu ustawień "
354
  "nieaktywnego skryptu. Strona została odświeżona z prawidłowymi ustawieniami."
355
 
356
- #: ../responsive-lightbox.php:984
357
  msgid "Settings of SwipeBox script were restored to defaults."
358
  msgstr "Ustawienia skryptu SwipeBox zostały przywrócone."
359
 
360
- #: ../responsive-lightbox.php:990
361
  msgid "Settings of prettyPhoto script were restored to defaults."
362
  msgstr "Ustawienia skryptu prettyPhoto zostały przywrócone."
363
 
364
- #: ../responsive-lightbox.php:994
 
 
 
 
365
  msgid ""
366
  "Changes were not set to defaults because there was attempt to reset settings "
367
  "of inactive script. The site has been reloaded to the proper script settings."
@@ -370,67 +619,64 @@ msgstr ""
370
  "resetowania ustawień nieaktywnego skryptu. Strona została odświeżona z "
371
  "prawidłowymi ustawieniami."
372
 
373
- #: ../responsive-lightbox.php:1008 ../responsive-lightbox.php:1009
374
- #: ../responsive-lightbox.php:1023 ../responsive-lightbox.php:1055
375
  msgid "Responsive Lightbox"
376
  msgstr "Efekt Lightbox"
377
 
378
- #: ../responsive-lightbox.php:1048
379
  msgid "Reset to defaults"
380
  msgstr "Resetuj do domyślnych"
381
 
382
- #: ../responsive-lightbox.php:1057
383
  msgid "Need support?"
384
  msgstr "Potrzebujesz pomocy?"
385
 
386
- #: ../responsive-lightbox.php:1058
387
  msgid ""
388
  "If you are having problems with this plugin, please talk about them in the"
389
  msgstr "Jeśli masz jakiekolwiek problemy z tą wtyczką, powiedz o nich na"
390
 
391
- #: ../responsive-lightbox.php:1058
392
  msgid "Support forum"
393
  msgstr "Forum pomocy"
394
 
395
- #: ../responsive-lightbox.php:1060
396
  msgid "Do you like this plugin?"
397
  msgstr "Lubisz tę wtyczkę?"
398
 
399
- #: ../responsive-lightbox.php:1061
400
  msgid "Rate it 5"
401
  msgstr "Oceń ją na 5"
402
 
403
- #: ../responsive-lightbox.php:1061
404
  msgid "on WordPress.org"
405
  msgstr "na WordPress.org"
406
 
407
- #: ../responsive-lightbox.php:1062
408
  msgid "Blog about it & link to the"
409
  msgstr "Napisz o niej i dodaj link"
410
 
411
- #: ../responsive-lightbox.php:1062
412
  msgid "plugin page"
413
  msgstr "do strony wtyczki"
414
 
415
- #: ../responsive-lightbox.php:1063
416
  msgid "Check out our other"
417
  msgstr "Sprawdź nasze pozostałe"
418
 
419
- #: ../responsive-lightbox.php:1063
420
  msgid "WordPress plugins"
421
  msgstr "wtyczki do WordPress'a"
422
 
423
- #: ../responsive-lightbox.php:1088
424
  msgid "Are you sure you want to reset scripts settings to defaults?"
425
  msgstr "Jesteś pewny, że chcesz zresetować ustawienia?"
426
 
427
- #: ../responsive-lightbox.php:1216
428
  msgid "Support"
429
  msgstr "Pomoc"
430
 
431
- #: ../responsive-lightbox.php:1238
432
  msgid "Settings"
433
  msgstr "Ustawienia"
434
-
435
- #~ msgid "Enter the time for images animation (in miliseconds)"
436
- #~ msgstr "Podaj czas trwania animacji między obrazkami (w milisekundach)"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Responsive Lightbox\n"
4
+ "POT-Creation-Date: 2013-10-03 18:13+0100\n"
5
+ "PO-Revision-Date: 2013-10-03 18:13+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@digitalfactory.pl>\n"
7
  "Language-Team: dFactory <info@dfactory.eu>\n"
8
  "Language: Polski\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
+ #: ../responsive-lightbox.php:256
19
  msgid "prettyPhoto"
20
  msgstr "prettyPhoto"
21
 
22
+ #: ../responsive-lightbox.php:258
23
  msgid "slow"
24
  msgstr "wolno"
25
 
26
+ #: ../responsive-lightbox.php:259
27
  msgid "normal"
28
  msgstr "normalnie"
29
 
30
+ #: ../responsive-lightbox.php:260
31
  msgid "fast"
32
  msgstr "szybko"
33
 
34
+ #: ../responsive-lightbox.php:263
35
  msgid "default"
36
  msgstr ""
37
 
38
+ #: ../responsive-lightbox.php:264
39
  msgid "light rounded"
40
  msgstr ""
41
 
42
+ #: ../responsive-lightbox.php:265
43
  msgid "dark rounded"
44
  msgstr ""
45
 
46
+ #: ../responsive-lightbox.php:266
47
  msgid "light square"
48
  msgstr ""
49
 
50
+ #: ../responsive-lightbox.php:267
51
  msgid "dark square"
52
  msgstr ""
53
 
54
+ #: ../responsive-lightbox.php:268
55
  msgid "facebook"
56
  msgstr ""
57
 
58
+ #: ../responsive-lightbox.php:271
59
  msgid "window"
60
  msgstr ""
61
 
62
+ #: ../responsive-lightbox.php:272
63
  msgid "transparent"
64
  msgstr ""
65
 
66
+ #: ../responsive-lightbox.php:273
67
  msgid "opaque"
68
  msgstr ""
69
 
70
+ #: ../responsive-lightbox.php:274
71
  msgid "direct"
72
  msgstr ""
73
 
74
+ #: ../responsive-lightbox.php:275
75
  msgid "gpu"
76
  msgstr ""
77
 
78
+ #: ../responsive-lightbox.php:280
79
  msgid "SwipeBox"
80
  msgstr "SwipeBox"
81
 
82
+ #: ../responsive-lightbox.php:282
83
  msgid "CSS"
84
  msgstr "CSS"
85
 
86
+ #: ../responsive-lightbox.php:283
87
  msgid "jQuery"
88
  msgstr "jQuery"
89
 
90
+ #: ../responsive-lightbox.php:287
91
+ msgid "FancyBox"
92
+ msgstr "FancyBox"
93
+
94
+ #: ../responsive-lightbox.php:289
95
+ msgid "elastic"
96
+ msgstr ""
97
+
98
+ #: ../responsive-lightbox.php:290
99
+ msgid "fade"
100
+ msgstr ""
101
+
102
+ #: ../responsive-lightbox.php:291
103
+ msgid "none"
104
+ msgstr "brak"
105
+
106
+ #: ../responsive-lightbox.php:294
107
+ msgid "auto"
108
+ msgstr "automatycznie"
109
+
110
+ #: ../responsive-lightbox.php:295
111
+ msgid "yes"
112
+ msgstr "tak"
113
+
114
+ #: ../responsive-lightbox.php:296
115
+ msgid "no"
116
+ msgstr "nie"
117
+
118
+ #: ../responsive-lightbox.php:299
119
+ msgid "swing"
120
+ msgstr ""
121
+
122
+ #: ../responsive-lightbox.php:300
123
+ msgid "linear"
124
+ msgstr ""
125
+
126
+ #: ../responsive-lightbox.php:303
127
+ msgid "outside"
128
+ msgstr ""
129
+
130
+ #: ../responsive-lightbox.php:304
131
+ msgid "inside"
132
+ msgstr ""
133
+
134
+ #: ../responsive-lightbox.php:305
135
+ msgid "over"
136
+ msgstr ""
137
+
138
+ #: ../responsive-lightbox.php:311
139
  msgid "Enable"
140
  msgstr "Włącz"
141
 
142
+ #: ../responsive-lightbox.php:312
143
  msgid "Disable"
144
  msgstr "Wyłącz"
145
 
146
+ #: ../responsive-lightbox.php:317 ../responsive-lightbox.php:417
147
  msgid "General settings"
148
  msgstr "Ustawienia ogólne"
149
 
150
+ #: ../responsive-lightbox.php:322 ../responsive-lightbox.php:428
151
  msgid "Lightbox settings"
152
  msgstr "Ustawienia lightbox"
153
 
154
+ #: ../responsive-lightbox.php:418
155
  msgid "Lightbox script"
156
  msgstr "Skrypt lightbox"
157
 
158
+ #: ../responsive-lightbox.php:419
159
  msgid "Selector"
160
  msgstr "Znacznik"
161
 
162
+ #: ../responsive-lightbox.php:420
163
  msgid "Galleries"
164
  msgstr "Galerie"
165
 
166
+ #: ../responsive-lightbox.php:421
167
  msgid "Video links"
168
  msgstr "Linki video"
169
 
170
+ #: ../responsive-lightbox.php:422
171
  msgid "Image links"
172
  msgstr "Linki obrazków"
173
 
174
+ #: ../responsive-lightbox.php:423
175
  msgid "Single images as gallery"
176
  msgstr "Galeria pojedynczych obrazków"
177
 
178
+ #: ../responsive-lightbox.php:424
179
  msgid "Deactivation"
180
  msgstr "Deaktywacja"
181
 
182
+ #: ../responsive-lightbox.php:432
183
  msgid "Animation type"
184
  msgstr "Typ animacji"
185
 
186
+ #: ../responsive-lightbox.php:433
187
  msgid "Top and bottom bars"
188
  msgstr "Górne i dolne paski"
189
 
190
+ #: ../responsive-lightbox.php:434
191
  msgid "Video max width"
192
  msgstr "Maksymalna szerokość video"
193
 
194
+ #: ../responsive-lightbox.php:438
195
  msgid "Animation speed"
196
  msgstr "Szybkość animacji"
197
 
198
+ #: ../responsive-lightbox.php:439
199
  msgid "Slideshow"
200
  msgstr "Pokaz slidów"
201
 
202
+ #: ../responsive-lightbox.php:440
203
  msgid "Slideshow autoplay"
204
  msgstr "Automatyczne odtwarzanie pokazu slajdów"
205
 
206
+ #: ../responsive-lightbox.php:441 ../responsive-lightbox.php:470
207
  msgid "Opacity"
208
  msgstr "Przezroczystość"
209
 
210
+ #: ../responsive-lightbox.php:442
211
  msgid "Show title"
212
  msgstr "Wyświetlanie tytułu"
213
 
214
+ #: ../responsive-lightbox.php:443
215
  msgid "Allow resize big images"
216
  msgstr "Powiększanie dużych zdjęć"
217
 
218
+ #: ../responsive-lightbox.php:444 ../responsive-lightbox.php:482
219
  msgid "Video width"
220
  msgstr "Szerokość video"
221
 
222
+ #: ../responsive-lightbox.php:445 ../responsive-lightbox.php:483
223
  msgid "Video height"
224
  msgstr "Wysokość video"
225
 
226
+ #: ../responsive-lightbox.php:446
227
  msgid "Theme"
228
  msgstr "Motyw"
229
 
230
+ #: ../responsive-lightbox.php:447
231
  msgid "Horizontal padding"
232
  msgstr "Odstępy w poziomie"
233
 
234
+ #: ../responsive-lightbox.php:448
235
  msgid "Hide Flash"
236
  msgstr "Ukrywanie flash"
237
 
238
+ #: ../responsive-lightbox.php:449
239
  msgid "Flash Window Mode (wmode)"
240
  msgstr "Tryb okna flash (wmode)"
241
 
242
+ #: ../responsive-lightbox.php:450
243
  msgid "Video autoplay"
244
  msgstr "Automatyczne odtwarzanie wideo"
245
 
246
+ #: ../responsive-lightbox.php:451 ../responsive-lightbox.php:459
247
  msgid "Modal"
248
  msgstr "Tryb modal"
249
 
250
+ #: ../responsive-lightbox.php:452
251
  msgid "Deeplinking"
252
  msgstr "Głębokie linki"
253
 
254
+ #: ../responsive-lightbox.php:453
255
  msgid "Overlay gallery"
256
  msgstr "Efekt overlay galerii"
257
 
258
+ #: ../responsive-lightbox.php:454
259
  msgid "Keyboard shortcuts"
260
  msgstr "Skróty klawiaturowe"
261
 
262
+ #: ../responsive-lightbox.php:455
263
  msgid "Social (Twitter, Facebook)"
264
  msgstr "Linki społeczności (Twitter, Facebook)"
265
 
266
+ #: ../responsive-lightbox.php:460
267
+ msgid "Show overlay"
268
+ msgstr "Wyświetlanie tła"
269
+
270
+ #: ../responsive-lightbox.php:461
271
+ msgid "Show close button"
272
+ msgstr "Wyświetlanie przycisku Zamknij"
273
+
274
+ #: ../responsive-lightbox.php:462
275
+ msgid "Enable escape button"
276
+ msgstr "Wyświetlanie przycisku Wyjdź"
277
+
278
+ #: ../responsive-lightbox.php:463
279
+ msgid "Hide on overlay click"
280
+ msgstr "Ukryj po kliknięciu w tło"
281
+
282
+ #: ../responsive-lightbox.php:464
283
+ msgid "Hide on content click"
284
+ msgstr "Ukryj po kliknięciu w treść"
285
+
286
+ #: ../responsive-lightbox.php:465
287
+ msgid "Cyclic"
288
+ msgstr "Cykliczność"
289
+
290
+ #: ../responsive-lightbox.php:466
291
+ msgid "Show nav arrows"
292
+ msgstr "Wyświetlanie strzałek"
293
+
294
+ #: ../responsive-lightbox.php:467
295
+ msgid "Auto scale"
296
+ msgstr "Automatyczne skalowanie"
297
+
298
+ #: ../responsive-lightbox.php:468
299
+ msgid "Scrolling (in/out)"
300
+ msgstr "Przewijanie"
301
+
302
+ #: ../responsive-lightbox.php:469
303
+ msgid "Center on scroll"
304
+ msgstr "Centrowanie przy przewijaniu"
305
+
306
+ #: ../responsive-lightbox.php:471
307
+ msgid "Overlay opacity"
308
+ msgstr "Przezroczystość tła"
309
+
310
+ #: ../responsive-lightbox.php:472
311
+ msgid "Overlay color"
312
+ msgstr "Kolor tła"
313
+
314
+ #: ../responsive-lightbox.php:473
315
+ msgid "Title show"
316
+ msgstr "Wyświetlanie tytułu"
317
+
318
+ #: ../responsive-lightbox.php:474
319
+ msgid "Title position"
320
+ msgstr "Pozycja tytułu"
321
+
322
+ #: ../responsive-lightbox.php:475
323
+ msgid "Transition (in/out)"
324
+ msgstr "Efekty przejścia"
325
+
326
+ #: ../responsive-lightbox.php:476
327
+ msgid "Easings (in/out)"
328
+ msgstr "Wygładzanie animacji"
329
+
330
+ #: ../responsive-lightbox.php:477
331
+ msgid "Speed (in/out)"
332
+ msgstr "Szybkość"
333
+
334
+ #: ../responsive-lightbox.php:478
335
+ msgid "Change speed"
336
+ msgstr "Zmień szybkość"
337
+
338
+ #: ../responsive-lightbox.php:479
339
+ msgid "Change fade"
340
+ msgstr "Zmień zanikanie"
341
+
342
+ #: ../responsive-lightbox.php:480
343
+ msgid "Padding"
344
+ msgstr "Odstęp (padding)"
345
+
346
+ #: ../responsive-lightbox.php:481
347
+ msgid "Margin"
348
+ msgstr "Margines (margin)"
349
+
350
+ #: ../responsive-lightbox.php:501
351
  msgid "Select your preffered ligthbox effect script."
352
  msgstr "Wybierz preferowany efekt lightbox."
353
 
354
+ #: ../responsive-lightbox.php:511
355
  msgid "Select to which rel selector lightbox effect will be applied to."
356
  msgstr "Wybierz dla któego znacznika będzie dodawany efekt lightbox."
357
 
358
+ #: ../responsive-lightbox.php:529
359
+ msgid "Add lightbox to WordPress image galleries by default."
360
+ msgstr "Dodaj efekt lightbox do galerii obrazków WordPressa."
361
 
362
+ #: ../responsive-lightbox.php:547
363
+ msgid "Add lightbox to YouTube and Vimeo video links by default."
364
+ msgstr "Dodaj efekt lightbox do linków video (YouTube i Vimeo) WordPressa."
365
 
366
+ #: ../responsive-lightbox.php:565
367
+ msgid "Add lightbox to WordPress image links by default."
368
+ msgstr "Dodaj efekt lightbox do pojedynczych obrazków WordPressa."
369
 
370
+ #: ../responsive-lightbox.php:583
371
+ msgid "Display single post images as a gallery."
372
+ msgstr "Wyświetl pojedyncze obrazki jako pokaz sladów."
373
 
374
+ #: ../responsive-lightbox.php:601
375
+ msgid "Delete settings on plugin deactivation."
376
+ msgstr "Usuń ustawienia przy deaktywacji wtyczki."
377
 
378
+ #: ../responsive-lightbox.php:619
379
  msgid "Select a method of applying a lightbox effect."
380
  msgstr "Wybierz sposób dodawania efekty lightbox."
381
 
382
+ #: ../responsive-lightbox.php:637
383
  msgid ""
384
  "Disable if you don't want to top and bottom bars to be hidden after a period "
385
  "of time."
386
  msgstr "Wyłącz to, jeśli nie chcesz ukrywać górnego i dolnego paska."
387
 
388
+ #: ../responsive-lightbox.php:640
389
  msgid ""
390
  "Enter the time after which the top and bottom bars will be hidden (when "
391
  "hiding is enabled)."
393
  "Podaj czas po którym chcesz ukryć górny i dolny pasek (jeśli opcja ukrywania "
394
  "jest włączona)."
395
 
396
+ #: ../responsive-lightbox.php:651
397
+ msgid "Enter the max video width in a lightbox."
398
+ msgstr "Podaj maksymalną szerokość video."
399
 
400
+ #: ../responsive-lightbox.php:669
401
+ msgid "Select animation speed for lightbox effect."
402
+ msgstr "Wybierz szybkość animacji efektu lightbox."
403
 
404
+ #: ../responsive-lightbox.php:687
405
+ msgid "Display images as slideshow."
406
+ msgstr "Wyświetl obrazki jako pokaz sladów ."
407
 
408
+ #: ../responsive-lightbox.php:690
409
+ msgid "Enter time (in miliseconds)."
410
+ msgstr "Podaj czas (w milisekundach)."
411
 
412
+ #: ../responsive-lightbox.php:709
413
+ msgid "Automatically start slideshow."
414
+ msgstr "Automatyczne rozpoczynanie pokazu slajdów."
415
 
416
+ #: ../responsive-lightbox.php:722
417
+ msgid "Value between 0 and 100, 100 for no opacity."
418
+ msgstr "Wartość pomiędzy 0 i 100 (100 oznacza brak przezroczystości)."
419
 
420
+ #: ../responsive-lightbox.php:740
421
+ msgid "Display image tiltle."
422
+ msgstr "Wyświetlanie tytułu obrazka."
423
 
424
+ #: ../responsive-lightbox.php:758
425
  msgid "Resize the photos bigger than viewport."
426
  msgstr "Zmiana wielkość zdjęć większych niż aktualny ekran."
427
 
428
+ #: ../responsive-lightbox.php:768 ../responsive-lightbox.php:778
429
  msgid "in pixels"
430
  msgstr "w pikselach"
431
 
432
+ #: ../responsive-lightbox.php:796
433
+ msgid "Select theme for lightbox effect."
434
  msgstr "Wybierz motyw dla efektu lightbox."
435
 
436
+ #: ../responsive-lightbox.php:806
437
+ msgid "Horizontal padding (in pixels)."
438
+ msgstr "Odstępy w poziomie (w pikselach)."
439
 
440
+ #: ../responsive-lightbox.php:824
441
  msgid ""
442
  "Hides all the flash object on a page. Enable this if flash appears over "
443
+ "prettyPhoto."
444
  msgstr ""
445
  "Ukywa wszystkie obiekty flash na stronie. Włącz to jeśli animacje flash "
446
+ "wyświetlane są nad lightboxem."
447
 
448
+ #: ../responsive-lightbox.php:842
449
+ msgid "Select flash window mode."
450
+ msgstr "Wybierz tryb okna flash."
451
 
452
+ #: ../responsive-lightbox.php:860
453
+ msgid "Automatically start videos."
454
+ msgstr "Automatycznie rozpoczynaj video."
455
 
456
+ #: ../responsive-lightbox.php:878
457
+ msgid "If set to true, only the close button will close the window."
458
  msgstr ""
459
+ "Jeśli będzie włączone, tylko kliknięcie przycisku spowoduje zamknięcie okna."
 
460
 
461
+ #: ../responsive-lightbox.php:896
462
+ msgid "Allow prettyPhoto to update the url to enable deeplinking."
463
+ msgstr "Zezwól prettyPhoto na aktualizacje adresów URL i głębokie linkowanie."
464
 
465
+ #: ../responsive-lightbox.php:914
466
+ msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
467
  msgstr ""
468
  "Jeśli będzie włączone, galeria będzie wyświetlana na cały ekran po "
469
+ "najechaniu myszką."
470
+
471
+ #: ../responsive-lightbox.php:932
472
+ msgid "Set to false if you open forms inside prettyPhoto."
473
+ msgstr "Wyłącz to jeśli chcesz otwierać formularze wewnątrz prettyPhoto."
474
+
475
+ #: ../responsive-lightbox.php:950
476
+ msgid "Display links to Facebook and Twitter."
477
+ msgstr "Wyświetl linki do Facebboka i Twittera."
478
+
479
+ #: ../responsive-lightbox.php:968
480
+ msgid "The transition type."
481
+ msgstr "Typ animacji."
482
+
483
+ #: ../responsive-lightbox.php:978
484
+ msgid "Space between FancyBox wrapper and content."
485
+ msgstr "Przestrzeń między FancyBox a treścią"
486
 
487
+ #: ../responsive-lightbox.php:988
488
+ msgid "Space between viewport and FancyBox wrapper."
489
+ msgstr "Przestrzeń między ekranem a Fancybox"
490
 
491
+ #: ../responsive-lightbox.php:1006
492
+ msgid ""
493
+ "When true, \"overlayShow\" is set to TRUE and \"hideOnOverlayClick\", "
494
+ "\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set "
495
+ "to FALSE."
496
+ msgstr ""
497
+ "Jeśli będzie włączone, opcja \"overlayShow\" także zostanie ustawiona na "
498
+ "TRUE, natomiast \"hideOnOverlayClick\", \"hideOnContentClick\", "
499
+ "\"enableEscapeButton\", \"showCloseButton\" zostaną ustawione na FALSE."
500
+
501
+ #: ../responsive-lightbox.php:1024
502
+ msgid "Toggle overlay."
503
+ msgstr "Włącz tło."
504
+
505
+ #: ../responsive-lightbox.php:1042
506
+ msgid "Toggle close button."
507
+ msgstr "Włącz przycisk Zamknij."
508
+
509
+ #: ../responsive-lightbox.php:1060
510
+ msgid "Toggle if pressing Esc button closes FancyBox."
511
+ msgstr "Włącz zamykanie FancyBox przy pomocy Esc."
512
 
513
+ #: ../responsive-lightbox.php:1078
514
+ msgid "Toggle if clicking the overlay should close FancyBox."
515
+ msgstr "Włącz zamykanie FancyBox kliknięciem w tło."
516
+
517
+ #: ../responsive-lightbox.php:1096
518
+ msgid "Toggle if clicking the content should close FancyBox."
519
+ msgstr "Włącz zamykanie FancyBox kliknięciem w treść."
520
+
521
+ #: ../responsive-lightbox.php:1114
522
+ msgid ""
523
+ "When true, galleries will be cyclic, allowing you to keep pressing next/back."
524
+ msgstr "Jeśli będzie włączone, galerie będą wyświetlane cyklicznie."
525
+
526
+ #: ../responsive-lightbox.php:1132
527
+ msgid "Toggle navigation arrows."
528
+ msgstr "Włącz strzałki nawigacyjne."
529
+
530
+ #: ../responsive-lightbox.php:1150
531
+ msgid "If true, FancyBox is scaled to fit in viewport."
532
+ msgstr "Jeśli będzie włączone, FancyBox będzie skalowany do rozmiaru okna."
533
+
534
+ #: ../responsive-lightbox.php:1168
535
+ msgid "Set the overflow CSS property to create or hide scrollbars."
536
+ msgstr ""
537
+ "Ustaw parametr overflow dw CSS aby tworzyć lub ukrywać elementy nawigacji."
538
+
539
+ #: ../responsive-lightbox.php:1186
540
+ msgid "When true, FancyBox is centered while scrolling page."
541
+ msgstr ""
542
+ "Jeśli będzie zaznaczone, FancyBox będzie wycentrowany w trakcie przewijania "
543
+ "strony."
544
+
545
+ #: ../responsive-lightbox.php:1204
546
+ msgid "When true, transparency of content is changed for elastic transitions."
547
+ msgstr ""
548
+ "Jeśli będzie zaznaczone, przezroczystość treści zmieni się w trakcie "
549
+ "animacji."
550
+
551
+ #: ../responsive-lightbox.php:1217
552
+ msgid "Opacity of the overlay."
553
+ msgstr "Przezroczystość tła."
554
+
555
+ #: ../responsive-lightbox.php:1227
556
+ msgid "Color of the overlay."
557
+ msgstr "Kolor tła."
558
+
559
+ #: ../responsive-lightbox.php:1245
560
+ msgid "Toggle title."
561
+ msgstr "Wyświetlanie tytułu."
562
+
563
+ #: ../responsive-lightbox.php:1263
564
+ msgid "The position of title."
565
+ msgstr "Pozycja tytułu."
566
+
567
+ #: ../responsive-lightbox.php:1281
568
+ msgid "Easing used for elastic animations."
569
+ msgstr "Wygładzanie animacji dla trybu elastic."
570
+
571
+ #: ../responsive-lightbox.php:1291
572
+ msgid "Speed of the fade and elastic transitions, in milliseconds."
573
+ msgstr "Podaj czas trwania animacji fade i elastic (w milisekundach)"
574
+
575
+ #: ../responsive-lightbox.php:1301
576
+ msgid "Speed of resizing when changing gallery items, in milliseconds."
577
+ msgstr ""
578
+ "Szybkość zmiany wielkości okna w trakcie przechodzenia między obrazkami (w "
579
+ "milisekundach)."
580
+
581
+ #: ../responsive-lightbox.php:1311
582
+ msgid "Speed of the content fading while changing gallery items."
583
+ msgstr "Szybkość zanikania elementów w trakcie przechodzenia między obrazkami."
584
+
585
+ #: ../responsive-lightbox.php:1321
586
+ msgid "Width of the video."
587
+ msgstr "Szerokość video."
588
+
589
+ #: ../responsive-lightbox.php:1331
590
+ msgid "Height of the video."
591
+ msgstr "Wysokość video."
592
+
593
+ #: ../responsive-lightbox.php:1510
594
  msgid ""
595
  "Changes were not saved because there was attempt to save settings of "
596
  "inactive script. The site has been reloaded to the proper script settings."
598
  "Zmiany nie zostały zapisane ponieważ wykryto próbę zapisu ustawień "
599
  "nieaktywnego skryptu. Strona została odświeżona z prawidłowymi ustawieniami."
600
 
601
+ #: ../responsive-lightbox.php:1522
602
  msgid "Settings of SwipeBox script were restored to defaults."
603
  msgstr "Ustawienia skryptu SwipeBox zostały przywrócone."
604
 
605
+ #: ../responsive-lightbox.php:1528
606
  msgid "Settings of prettyPhoto script were restored to defaults."
607
  msgstr "Ustawienia skryptu prettyPhoto zostały przywrócone."
608
 
609
+ #: ../responsive-lightbox.php:1534
610
+ msgid "Settings of FancyBox script were restored to defaults."
611
+ msgstr "Ustawienia skryptu FancyBox zostały przywrócone."
612
+
613
+ #: ../responsive-lightbox.php:1538
614
  msgid ""
615
  "Changes were not set to defaults because there was attempt to reset settings "
616
  "of inactive script. The site has been reloaded to the proper script settings."
619
  "resetowania ustawień nieaktywnego skryptu. Strona została odświeżona z "
620
  "prawidłowymi ustawieniami."
621
 
622
+ #: ../responsive-lightbox.php:1552 ../responsive-lightbox.php:1553
623
+ #: ../responsive-lightbox.php:1567 ../responsive-lightbox.php:1599
624
  msgid "Responsive Lightbox"
625
  msgstr "Efekt Lightbox"
626
 
627
+ #: ../responsive-lightbox.php:1592
628
  msgid "Reset to defaults"
629
  msgstr "Resetuj do domyślnych"
630
 
631
+ #: ../responsive-lightbox.php:1601
632
  msgid "Need support?"
633
  msgstr "Potrzebujesz pomocy?"
634
 
635
+ #: ../responsive-lightbox.php:1602
636
  msgid ""
637
  "If you are having problems with this plugin, please talk about them in the"
638
  msgstr "Jeśli masz jakiekolwiek problemy z tą wtyczką, powiedz o nich na"
639
 
640
+ #: ../responsive-lightbox.php:1602
641
  msgid "Support forum"
642
  msgstr "Forum pomocy"
643
 
644
+ #: ../responsive-lightbox.php:1604
645
  msgid "Do you like this plugin?"
646
  msgstr "Lubisz tę wtyczkę?"
647
 
648
+ #: ../responsive-lightbox.php:1605
649
  msgid "Rate it 5"
650
  msgstr "Oceń ją na 5"
651
 
652
+ #: ../responsive-lightbox.php:1605
653
  msgid "on WordPress.org"
654
  msgstr "na WordPress.org"
655
 
656
+ #: ../responsive-lightbox.php:1606
657
  msgid "Blog about it & link to the"
658
  msgstr "Napisz o niej i dodaj link"
659
 
660
+ #: ../responsive-lightbox.php:1606
661
  msgid "plugin page"
662
  msgstr "do strony wtyczki"
663
 
664
+ #: ../responsive-lightbox.php:1607
665
  msgid "Check out our other"
666
  msgstr "Sprawdź nasze pozostałe"
667
 
668
+ #: ../responsive-lightbox.php:1607
669
  msgid "WordPress plugins"
670
  msgstr "wtyczki do WordPress'a"
671
 
672
+ #: ../responsive-lightbox.php:1634
673
  msgid "Are you sure you want to reset scripts settings to defaults?"
674
  msgstr "Jesteś pewny, że chcesz zresetować ustawienia?"
675
 
676
+ #: ../responsive-lightbox.php:1831
677
  msgid "Support"
678
  msgstr "Pomoc"
679
 
680
+ #: ../responsive-lightbox.php:1853
681
  msgid "Settings"
682
  msgstr "Ustawienia"
 
 
 
languages/responsive-lightbox.pot CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Responsive Lightbox\n"
4
- "POT-Creation-Date: 2013-09-17 17:40+0100\n"
5
- "PO-Revision-Date: 2013-09-17 17:40+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@digitalfactory.pl>\n"
7
  "Language-Team: dFactory <info@dfactory.eu>\n"
8
  "Language: English\n"
@@ -15,406 +15,646 @@ msgstr ""
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
- #: ../responsive-lightbox.php:229
19
  msgid "prettyPhoto"
20
  msgstr ""
21
 
22
- #: ../responsive-lightbox.php:231
23
  msgid "slow"
24
  msgstr ""
25
 
26
- #: ../responsive-lightbox.php:232
27
  msgid "normal"
28
  msgstr ""
29
 
30
- #: ../responsive-lightbox.php:233
31
  msgid "fast"
32
  msgstr ""
33
 
34
- #: ../responsive-lightbox.php:236
35
  msgid "default"
36
  msgstr ""
37
 
38
- #: ../responsive-lightbox.php:237
39
  msgid "light rounded"
40
  msgstr ""
41
 
42
- #: ../responsive-lightbox.php:238
43
  msgid "dark rounded"
44
  msgstr ""
45
 
46
- #: ../responsive-lightbox.php:239
47
  msgid "light square"
48
  msgstr ""
49
 
50
- #: ../responsive-lightbox.php:240
51
  msgid "dark square"
52
  msgstr ""
53
 
54
- #: ../responsive-lightbox.php:241
55
  msgid "facebook"
56
  msgstr ""
57
 
58
- #: ../responsive-lightbox.php:244
59
  msgid "window"
60
  msgstr ""
61
 
62
- #: ../responsive-lightbox.php:245
63
  msgid "transparent"
64
  msgstr ""
65
 
66
- #: ../responsive-lightbox.php:246
67
  msgid "opaque"
68
  msgstr ""
69
 
70
- #: ../responsive-lightbox.php:247
71
  msgid "direct"
72
  msgstr ""
73
 
74
- #: ../responsive-lightbox.php:248
75
  msgid "gpu"
76
  msgstr ""
77
 
78
- #: ../responsive-lightbox.php:253
79
  msgid "SwipeBox"
80
  msgstr ""
81
 
82
- #: ../responsive-lightbox.php:255
83
  msgid "CSS"
84
  msgstr ""
85
 
86
- #: ../responsive-lightbox.php:256
87
  msgid "jQuery"
88
  msgstr ""
89
 
90
- #: ../responsive-lightbox.php:262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  msgid "Enable"
92
  msgstr ""
93
 
94
- #: ../responsive-lightbox.php:263
95
  msgid "Disable"
96
  msgstr ""
97
 
98
- #: ../responsive-lightbox.php:268 ../responsive-lightbox.php:368
99
  msgid "General settings"
100
  msgstr ""
101
 
102
- #: ../responsive-lightbox.php:273 ../responsive-lightbox.php:379
103
  msgid "Lightbox settings"
104
  msgstr ""
105
 
106
- #: ../responsive-lightbox.php:369
107
  msgid "Lightbox script"
108
  msgstr ""
109
 
110
- #: ../responsive-lightbox.php:370
111
  msgid "Selector"
112
  msgstr ""
113
 
114
- #: ../responsive-lightbox.php:371
115
  msgid "Galleries"
116
  msgstr ""
117
 
118
- #: ../responsive-lightbox.php:372
119
  msgid "Video links"
120
  msgstr ""
121
 
122
- #: ../responsive-lightbox.php:373
123
  msgid "Image links"
124
  msgstr ""
125
 
126
- #: ../responsive-lightbox.php:374
127
  msgid "Single images as gallery"
128
  msgstr ""
129
 
130
- #: ../responsive-lightbox.php:375
131
  msgid "Deactivation"
132
  msgstr ""
133
 
134
- #: ../responsive-lightbox.php:383
135
  msgid "Animation type"
136
  msgstr ""
137
 
138
- #: ../responsive-lightbox.php:384
139
  msgid "Top and bottom bars"
140
  msgstr ""
141
 
142
- #: ../responsive-lightbox.php:385
143
  msgid "Video max width"
144
  msgstr ""
145
 
146
- #: ../responsive-lightbox.php:389
147
  msgid "Animation speed"
148
  msgstr ""
149
 
150
- #: ../responsive-lightbox.php:390
151
  msgid "Slideshow"
152
  msgstr ""
153
 
154
- #: ../responsive-lightbox.php:391
155
  msgid "Slideshow autoplay"
156
  msgstr ""
157
 
158
- #: ../responsive-lightbox.php:392
159
  msgid "Opacity"
160
  msgstr ""
161
 
162
- #: ../responsive-lightbox.php:393
163
  msgid "Show title"
164
  msgstr ""
165
 
166
- #: ../responsive-lightbox.php:394
167
  msgid "Allow resize big images"
168
  msgstr ""
169
 
170
- #: ../responsive-lightbox.php:395
171
  msgid "Video width"
172
  msgstr ""
173
 
174
- #: ../responsive-lightbox.php:396
175
  msgid "Video height"
176
  msgstr ""
177
 
178
- #: ../responsive-lightbox.php:397
179
  msgid "Theme"
180
  msgstr ""
181
 
182
- #: ../responsive-lightbox.php:398
183
  msgid "Horizontal padding"
184
  msgstr ""
185
 
186
- #: ../responsive-lightbox.php:399
187
  msgid "Hide Flash"
188
  msgstr ""
189
 
190
- #: ../responsive-lightbox.php:400
191
  msgid "Flash Window Mode (wmode)"
192
  msgstr ""
193
 
194
- #: ../responsive-lightbox.php:401
195
  msgid "Video autoplay"
196
  msgstr ""
197
 
198
- #: ../responsive-lightbox.php:402
199
  msgid "Modal"
200
  msgstr ""
201
 
202
- #: ../responsive-lightbox.php:403
203
  msgid "Deeplinking"
204
  msgstr ""
205
 
206
- #: ../responsive-lightbox.php:404
207
  msgid "Overlay gallery"
208
  msgstr ""
209
 
210
- #: ../responsive-lightbox.php:405
211
  msgid "Keyboard shortcuts"
212
  msgstr ""
213
 
214
- #: ../responsive-lightbox.php:406
215
  msgid "Social (Twitter, Facebook)"
216
  msgstr ""
217
 
218
- #: ../responsive-lightbox.php:424
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
219
  msgid "Select your preffered ligthbox effect script."
220
  msgstr ""
221
 
222
- #: ../responsive-lightbox.php:434
223
  msgid "Select to which rel selector lightbox effect will be applied to."
224
  msgstr ""
225
 
226
- #: ../responsive-lightbox.php:452
227
- msgid "Add lightbox to WordPress image galleries by default"
228
  msgstr ""
229
 
230
- #: ../responsive-lightbox.php:470
231
- msgid "Add lightbox to YouTube and Vimeo video links by default"
232
  msgstr ""
233
 
234
- #: ../responsive-lightbox.php:488
235
- msgid "Add lightbox to WordPress image links by default"
236
  msgstr ""
237
 
238
- #: ../responsive-lightbox.php:506
239
- msgid "Display single post images as a gallery"
240
  msgstr ""
241
 
242
- #: ../responsive-lightbox.php:524
243
- msgid "Delete settings on plugin deactivation"
244
  msgstr ""
245
 
246
- #: ../responsive-lightbox.php:542
247
  msgid "Select a method of applying a lightbox effect."
248
  msgstr ""
249
 
250
- #: ../responsive-lightbox.php:560
251
  msgid ""
252
  "Disable if you don't want to top and bottom bars to be hidden after a period "
253
  "of time."
254
  msgstr ""
255
 
256
- #: ../responsive-lightbox.php:564
257
  msgid ""
258
  "Enter the time after which the top and bottom bars will be hidden (when "
259
  "hiding is enabled)."
260
  msgstr ""
261
 
262
- #: ../responsive-lightbox.php:574
263
- msgid "Enter the max video width in a lightbox"
264
  msgstr ""
265
 
266
- #: ../responsive-lightbox.php:592
267
- msgid "Select animation speed for lightbox effect"
268
  msgstr ""
269
 
270
- #: ../responsive-lightbox.php:610
271
- msgid "Display images as slideshow"
272
  msgstr ""
273
 
274
- #: ../responsive-lightbox.php:614
275
- msgid "Enter time (in miliseconds)"
276
  msgstr ""
277
 
278
- #: ../responsive-lightbox.php:632
279
- msgid "Automatically start slideshow"
280
  msgstr ""
281
 
282
- #: ../responsive-lightbox.php:645
283
- msgid "Value between 0 and 100, 100 for no opacity"
284
  msgstr ""
285
 
286
- #: ../responsive-lightbox.php:663
287
- msgid "Display image tiltle"
288
  msgstr ""
289
 
290
- #: ../responsive-lightbox.php:681
291
  msgid "Resize the photos bigger than viewport."
292
  msgstr ""
293
 
294
- #: ../responsive-lightbox.php:691 ../responsive-lightbox.php:701
295
  msgid "in pixels"
296
  msgstr ""
297
 
298
- #: ../responsive-lightbox.php:719
299
- msgid "Select theme for lightbox effect"
300
  msgstr ""
301
 
302
- #: ../responsive-lightbox.php:729
303
- msgid "Horizontal padding (in pixels)"
304
  msgstr ""
305
 
306
- #: ../responsive-lightbox.php:747
307
  msgid ""
308
  "Hides all the flash object on a page. Enable this if flash appears over "
309
- "prettyPhoto"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
310
  msgstr ""
311
 
312
- #: ../responsive-lightbox.php:765
313
- msgid "Select flash window mode"
314
  msgstr ""
315
 
316
- #: ../responsive-lightbox.php:783
317
- msgid "Automatically start videos"
318
  msgstr ""
319
 
320
- #: ../responsive-lightbox.php:801
321
- msgid "If set to true, only the close button will close the window"
322
  msgstr ""
323
 
324
- #: ../responsive-lightbox.php:819
325
- msgid "Allow prettyPhoto to update the url to enable deeplinking"
326
  msgstr ""
327
 
328
- #: ../responsive-lightbox.php:837
329
- msgid "If enabled, a gallery will overlay the fullscreen image on mouse over"
330
  msgstr ""
331
 
332
- #: ../responsive-lightbox.php:855
333
- msgid "Set to false if you open forms inside prettyPhoto"
 
334
  msgstr ""
335
 
336
- #: ../responsive-lightbox.php:873
337
- msgid "Display links to Facebook and Twitter"
338
  msgstr ""
339
 
340
- #: ../responsive-lightbox.php:972
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
341
  msgid ""
342
  "Changes were not saved because there was attempt to save settings of "
343
  "inactive script. The site has been reloaded to the proper script settings."
344
  msgstr ""
345
 
346
- #: ../responsive-lightbox.php:984
347
  msgid "Settings of SwipeBox script were restored to defaults."
348
  msgstr ""
349
 
350
- #: ../responsive-lightbox.php:990
351
  msgid "Settings of prettyPhoto script were restored to defaults."
352
  msgstr ""
353
 
354
- #: ../responsive-lightbox.php:994
 
 
 
 
355
  msgid ""
356
  "Changes were not set to defaults because there was attempt to reset settings "
357
  "of inactive script. The site has been reloaded to the proper script settings."
358
  msgstr ""
359
 
360
- #: ../responsive-lightbox.php:1008 ../responsive-lightbox.php:1009
361
- #: ../responsive-lightbox.php:1023 ../responsive-lightbox.php:1055
362
  msgid "Responsive Lightbox"
363
  msgstr ""
364
 
365
- #: ../responsive-lightbox.php:1048
366
  msgid "Reset to defaults"
367
  msgstr ""
368
 
369
- #: ../responsive-lightbox.php:1057
370
  msgid "Need support?"
371
  msgstr ""
372
 
373
- #: ../responsive-lightbox.php:1058
374
  msgid ""
375
  "If you are having problems with this plugin, please talk about them in the"
376
  msgstr ""
377
 
378
- #: ../responsive-lightbox.php:1058
379
  msgid "Support forum"
380
  msgstr ""
381
 
382
- #: ../responsive-lightbox.php:1060
383
  msgid "Do you like this plugin?"
384
  msgstr ""
385
 
386
- #: ../responsive-lightbox.php:1061
387
  msgid "Rate it 5"
388
  msgstr ""
389
 
390
- #: ../responsive-lightbox.php:1061
391
  msgid "on WordPress.org"
392
  msgstr ""
393
 
394
- #: ../responsive-lightbox.php:1062
395
  msgid "Blog about it & link to the"
396
  msgstr ""
397
 
398
- #: ../responsive-lightbox.php:1062
399
  msgid "plugin page"
400
  msgstr ""
401
 
402
- #: ../responsive-lightbox.php:1063
403
  msgid "Check out our other"
404
  msgstr ""
405
 
406
- #: ../responsive-lightbox.php:1063
407
  msgid "WordPress plugins"
408
  msgstr ""
409
 
410
- #: ../responsive-lightbox.php:1088
411
  msgid "Are you sure you want to reset scripts settings to defaults?"
412
  msgstr ""
413
 
414
- #: ../responsive-lightbox.php:1216
415
  msgid "Support"
416
  msgstr ""
417
 
418
- #: ../responsive-lightbox.php:1238
419
  msgid "Settings"
420
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Responsive Lightbox\n"
4
+ "POT-Creation-Date: 2013-10-03 18:09+0100\n"
5
+ "PO-Revision-Date: 2013-10-03 18:09+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@digitalfactory.pl>\n"
7
  "Language-Team: dFactory <info@dfactory.eu>\n"
8
  "Language: English\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
+ #: ../responsive-lightbox.php:256
19
  msgid "prettyPhoto"
20
  msgstr ""
21
 
22
+ #: ../responsive-lightbox.php:258
23
  msgid "slow"
24
  msgstr ""
25
 
26
+ #: ../responsive-lightbox.php:259
27
  msgid "normal"
28
  msgstr ""
29
 
30
+ #: ../responsive-lightbox.php:260
31
  msgid "fast"
32
  msgstr ""
33
 
34
+ #: ../responsive-lightbox.php:263
35
  msgid "default"
36
  msgstr ""
37
 
38
+ #: ../responsive-lightbox.php:264
39
  msgid "light rounded"
40
  msgstr ""
41
 
42
+ #: ../responsive-lightbox.php:265
43
  msgid "dark rounded"
44
  msgstr ""
45
 
46
+ #: ../responsive-lightbox.php:266
47
  msgid "light square"
48
  msgstr ""
49
 
50
+ #: ../responsive-lightbox.php:267
51
  msgid "dark square"
52
  msgstr ""
53
 
54
+ #: ../responsive-lightbox.php:268
55
  msgid "facebook"
56
  msgstr ""
57
 
58
+ #: ../responsive-lightbox.php:271
59
  msgid "window"
60
  msgstr ""
61
 
62
+ #: ../responsive-lightbox.php:272
63
  msgid "transparent"
64
  msgstr ""
65
 
66
+ #: ../responsive-lightbox.php:273
67
  msgid "opaque"
68
  msgstr ""
69
 
70
+ #: ../responsive-lightbox.php:274
71
  msgid "direct"
72
  msgstr ""
73
 
74
+ #: ../responsive-lightbox.php:275
75
  msgid "gpu"
76
  msgstr ""
77
 
78
+ #: ../responsive-lightbox.php:280
79
  msgid "SwipeBox"
80
  msgstr ""
81
 
82
+ #: ../responsive-lightbox.php:282
83
  msgid "CSS"
84
  msgstr ""
85
 
86
+ #: ../responsive-lightbox.php:283
87
  msgid "jQuery"
88
  msgstr ""
89
 
90
+ #: ../responsive-lightbox.php:287
91
+ msgid "FancyBox"
92
+ msgstr ""
93
+
94
+ #: ../responsive-lightbox.php:289
95
+ msgid "elastic"
96
+ msgstr ""
97
+
98
+ #: ../responsive-lightbox.php:290
99
+ msgid "fade"
100
+ msgstr ""
101
+
102
+ #: ../responsive-lightbox.php:291
103
+ msgid "none"
104
+ msgstr ""
105
+
106
+ #: ../responsive-lightbox.php:294
107
+ msgid "auto"
108
+ msgstr ""
109
+
110
+ #: ../responsive-lightbox.php:295
111
+ msgid "yes"
112
+ msgstr ""
113
+
114
+ #: ../responsive-lightbox.php:296
115
+ msgid "no"
116
+ msgstr ""
117
+
118
+ #: ../responsive-lightbox.php:299
119
+ msgid "swing"
120
+ msgstr ""
121
+
122
+ #: ../responsive-lightbox.php:300
123
+ msgid "linear"
124
+ msgstr ""
125
+
126
+ #: ../responsive-lightbox.php:303
127
+ msgid "outside"
128
+ msgstr ""
129
+
130
+ #: ../responsive-lightbox.php:304
131
+ msgid "inside"
132
+ msgstr ""
133
+
134
+ #: ../responsive-lightbox.php:305
135
+ msgid "over"
136
+ msgstr ""
137
+
138
+ #: ../responsive-lightbox.php:311
139
  msgid "Enable"
140
  msgstr ""
141
 
142
+ #: ../responsive-lightbox.php:312
143
  msgid "Disable"
144
  msgstr ""
145
 
146
+ #: ../responsive-lightbox.php:317 ../responsive-lightbox.php:417
147
  msgid "General settings"
148
  msgstr ""
149
 
150
+ #: ../responsive-lightbox.php:322 ../responsive-lightbox.php:428
151
  msgid "Lightbox settings"
152
  msgstr ""
153
 
154
+ #: ../responsive-lightbox.php:418
155
  msgid "Lightbox script"
156
  msgstr ""
157
 
158
+ #: ../responsive-lightbox.php:419
159
  msgid "Selector"
160
  msgstr ""
161
 
162
+ #: ../responsive-lightbox.php:420
163
  msgid "Galleries"
164
  msgstr ""
165
 
166
+ #: ../responsive-lightbox.php:421
167
  msgid "Video links"
168
  msgstr ""
169
 
170
+ #: ../responsive-lightbox.php:422
171
  msgid "Image links"
172
  msgstr ""
173
 
174
+ #: ../responsive-lightbox.php:423
175
  msgid "Single images as gallery"
176
  msgstr ""
177
 
178
+ #: ../responsive-lightbox.php:424
179
  msgid "Deactivation"
180
  msgstr ""
181
 
182
+ #: ../responsive-lightbox.php:432
183
  msgid "Animation type"
184
  msgstr ""
185
 
186
+ #: ../responsive-lightbox.php:433
187
  msgid "Top and bottom bars"
188
  msgstr ""
189
 
190
+ #: ../responsive-lightbox.php:434
191
  msgid "Video max width"
192
  msgstr ""
193
 
194
+ #: ../responsive-lightbox.php:438
195
  msgid "Animation speed"
196
  msgstr ""
197
 
198
+ #: ../responsive-lightbox.php:439
199
  msgid "Slideshow"
200
  msgstr ""
201
 
202
+ #: ../responsive-lightbox.php:440
203
  msgid "Slideshow autoplay"
204
  msgstr ""
205
 
206
+ #: ../responsive-lightbox.php:441 ../responsive-lightbox.php:470
207
  msgid "Opacity"
208
  msgstr ""
209
 
210
+ #: ../responsive-lightbox.php:442
211
  msgid "Show title"
212
  msgstr ""
213
 
214
+ #: ../responsive-lightbox.php:443
215
  msgid "Allow resize big images"
216
  msgstr ""
217
 
218
+ #: ../responsive-lightbox.php:444 ../responsive-lightbox.php:482
219
  msgid "Video width"
220
  msgstr ""
221
 
222
+ #: ../responsive-lightbox.php:445 ../responsive-lightbox.php:483
223
  msgid "Video height"
224
  msgstr ""
225
 
226
+ #: ../responsive-lightbox.php:446
227
  msgid "Theme"
228
  msgstr ""
229
 
230
+ #: ../responsive-lightbox.php:447
231
  msgid "Horizontal padding"
232
  msgstr ""
233
 
234
+ #: ../responsive-lightbox.php:448
235
  msgid "Hide Flash"
236
  msgstr ""
237
 
238
+ #: ../responsive-lightbox.php:449
239
  msgid "Flash Window Mode (wmode)"
240
  msgstr ""
241
 
242
+ #: ../responsive-lightbox.php:450
243
  msgid "Video autoplay"
244
  msgstr ""
245
 
246
+ #: ../responsive-lightbox.php:451 ../responsive-lightbox.php:459
247
  msgid "Modal"
248
  msgstr ""
249
 
250
+ #: ../responsive-lightbox.php:452
251
  msgid "Deeplinking"
252
  msgstr ""
253
 
254
+ #: ../responsive-lightbox.php:453
255
  msgid "Overlay gallery"
256
  msgstr ""
257
 
258
+ #: ../responsive-lightbox.php:454
259
  msgid "Keyboard shortcuts"
260
  msgstr ""
261
 
262
+ #: ../responsive-lightbox.php:455
263
  msgid "Social (Twitter, Facebook)"
264
  msgstr ""
265
 
266
+ #: ../responsive-lightbox.php:460
267
+ msgid "Show overlay"
268
+ msgstr ""
269
+
270
+ #: ../responsive-lightbox.php:461
271
+ msgid "Show close button"
272
+ msgstr ""
273
+
274
+ #: ../responsive-lightbox.php:462
275
+ msgid "Enable escape button"
276
+ msgstr ""
277
+
278
+ #: ../responsive-lightbox.php:463
279
+ msgid "Hide on overlay click"
280
+ msgstr ""
281
+
282
+ #: ../responsive-lightbox.php:464
283
+ msgid "Hide on content click"
284
+ msgstr ""
285
+
286
+ #: ../responsive-lightbox.php:465
287
+ msgid "Cyclic"
288
+ msgstr ""
289
+
290
+ #: ../responsive-lightbox.php:466
291
+ msgid "Show nav arrows"
292
+ msgstr ""
293
+
294
+ #: ../responsive-lightbox.php:467
295
+ msgid "Auto scale"
296
+ msgstr ""
297
+
298
+ #: ../responsive-lightbox.php:468
299
+ msgid "Scrolling (in/out)"
300
+ msgstr ""
301
+
302
+ #: ../responsive-lightbox.php:469
303
+ msgid "Center on scroll"
304
+ msgstr ""
305
+
306
+ #: ../responsive-lightbox.php:471
307
+ msgid "Overlay opacity"
308
+ msgstr ""
309
+
310
+ #: ../responsive-lightbox.php:472
311
+ msgid "Overlay color"
312
+ msgstr ""
313
+
314
+ #: ../responsive-lightbox.php:473
315
+ msgid "Title show"
316
+ msgstr ""
317
+
318
+ #: ../responsive-lightbox.php:474
319
+ msgid "Title position"
320
+ msgstr ""
321
+
322
+ #: ../responsive-lightbox.php:475
323
+ msgid "Transition (in/out)"
324
+ msgstr ""
325
+
326
+ #: ../responsive-lightbox.php:476
327
+ msgid "Easings (in/out)"
328
+ msgstr ""
329
+
330
+ #: ../responsive-lightbox.php:477
331
+ msgid "Speed (in/out)"
332
+ msgstr ""
333
+
334
+ #: ../responsive-lightbox.php:478
335
+ msgid "Change speed"
336
+ msgstr ""
337
+
338
+ #: ../responsive-lightbox.php:479
339
+ msgid "Change fade"
340
+ msgstr ""
341
+
342
+ #: ../responsive-lightbox.php:480
343
+ msgid "Padding"
344
+ msgstr ""
345
+
346
+ #: ../responsive-lightbox.php:481
347
+ msgid "Margin"
348
+ msgstr ""
349
+
350
+ #: ../responsive-lightbox.php:501
351
  msgid "Select your preffered ligthbox effect script."
352
  msgstr ""
353
 
354
+ #: ../responsive-lightbox.php:511
355
  msgid "Select to which rel selector lightbox effect will be applied to."
356
  msgstr ""
357
 
358
+ #: ../responsive-lightbox.php:529
359
+ msgid "Add lightbox to WordPress image galleries by default."
360
  msgstr ""
361
 
362
+ #: ../responsive-lightbox.php:547
363
+ msgid "Add lightbox to YouTube and Vimeo video links by default."
364
  msgstr ""
365
 
366
+ #: ../responsive-lightbox.php:565
367
+ msgid "Add lightbox to WordPress image links by default."
368
  msgstr ""
369
 
370
+ #: ../responsive-lightbox.php:583
371
+ msgid "Display single post images as a gallery."
372
  msgstr ""
373
 
374
+ #: ../responsive-lightbox.php:601
375
+ msgid "Delete settings on plugin deactivation."
376
  msgstr ""
377
 
378
+ #: ../responsive-lightbox.php:619
379
  msgid "Select a method of applying a lightbox effect."
380
  msgstr ""
381
 
382
+ #: ../responsive-lightbox.php:637
383
  msgid ""
384
  "Disable if you don't want to top and bottom bars to be hidden after a period "
385
  "of time."
386
  msgstr ""
387
 
388
+ #: ../responsive-lightbox.php:640
389
  msgid ""
390
  "Enter the time after which the top and bottom bars will be hidden (when "
391
  "hiding is enabled)."
392
  msgstr ""
393
 
394
+ #: ../responsive-lightbox.php:651
395
+ msgid "Enter the max video width in a lightbox."
396
  msgstr ""
397
 
398
+ #: ../responsive-lightbox.php:669
399
+ msgid "Select animation speed for lightbox effect."
400
  msgstr ""
401
 
402
+ #: ../responsive-lightbox.php:687
403
+ msgid "Display images as slideshow."
404
  msgstr ""
405
 
406
+ #: ../responsive-lightbox.php:690
407
+ msgid "Enter time (in miliseconds)."
408
  msgstr ""
409
 
410
+ #: ../responsive-lightbox.php:709
411
+ msgid "Automatically start slideshow."
412
  msgstr ""
413
 
414
+ #: ../responsive-lightbox.php:722
415
+ msgid "Value between 0 and 100, 100 for no opacity."
416
  msgstr ""
417
 
418
+ #: ../responsive-lightbox.php:740
419
+ msgid "Display image tiltle."
420
  msgstr ""
421
 
422
+ #: ../responsive-lightbox.php:758
423
  msgid "Resize the photos bigger than viewport."
424
  msgstr ""
425
 
426
+ #: ../responsive-lightbox.php:768 ../responsive-lightbox.php:778
427
  msgid "in pixels"
428
  msgstr ""
429
 
430
+ #: ../responsive-lightbox.php:796
431
+ msgid "Select theme for lightbox effect."
432
  msgstr ""
433
 
434
+ #: ../responsive-lightbox.php:806
435
+ msgid "Horizontal padding (in pixels)."
436
  msgstr ""
437
 
438
+ #: ../responsive-lightbox.php:824
439
  msgid ""
440
  "Hides all the flash object on a page. Enable this if flash appears over "
441
+ "prettyPhoto."
442
+ msgstr ""
443
+
444
+ #: ../responsive-lightbox.php:842
445
+ msgid "Select flash window mode."
446
+ msgstr ""
447
+
448
+ #: ../responsive-lightbox.php:860
449
+ msgid "Automatically start videos."
450
+ msgstr ""
451
+
452
+ #: ../responsive-lightbox.php:878
453
+ msgid "If set to true, only the close button will close the window."
454
+ msgstr ""
455
+
456
+ #: ../responsive-lightbox.php:896
457
+ msgid "Allow prettyPhoto to update the url to enable deeplinking."
458
+ msgstr ""
459
+
460
+ #: ../responsive-lightbox.php:914
461
+ msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
462
+ msgstr ""
463
+
464
+ #: ../responsive-lightbox.php:932
465
+ msgid "Set to false if you open forms inside prettyPhoto."
466
+ msgstr ""
467
+
468
+ #: ../responsive-lightbox.php:950
469
+ msgid "Display links to Facebook and Twitter."
470
+ msgstr ""
471
+
472
+ #: ../responsive-lightbox.php:968
473
+ msgid "The transition type."
474
+ msgstr ""
475
+
476
+ #: ../responsive-lightbox.php:978
477
+ msgid "Space between FancyBox wrapper and content."
478
+ msgstr ""
479
+
480
+ #: ../responsive-lightbox.php:988
481
+ msgid "Space between viewport and FancyBox wrapper."
482
+ msgstr ""
483
+
484
+ #: ../responsive-lightbox.php:1006
485
+ msgid ""
486
+ "When true, \"overlayShow\" is set to TRUE and \"hideOnOverlayClick\", "
487
+ "\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set "
488
+ "to FALSE."
489
  msgstr ""
490
 
491
+ #: ../responsive-lightbox.php:1024
492
+ msgid "Toggle overlay."
493
  msgstr ""
494
 
495
+ #: ../responsive-lightbox.php:1042
496
+ msgid "Toggle close button."
497
  msgstr ""
498
 
499
+ #: ../responsive-lightbox.php:1060
500
+ msgid "Toggle if pressing Esc button closes FancyBox."
501
  msgstr ""
502
 
503
+ #: ../responsive-lightbox.php:1078
504
+ msgid "Toggle if clicking the overlay should close FancyBox."
505
  msgstr ""
506
 
507
+ #: ../responsive-lightbox.php:1096
508
+ msgid "Toggle if clicking the content should close FancyBox."
509
  msgstr ""
510
 
511
+ #: ../responsive-lightbox.php:1114
512
+ msgid ""
513
+ "When true, galleries will be cyclic, allowing you to keep pressing next/back."
514
  msgstr ""
515
 
516
+ #: ../responsive-lightbox.php:1132
517
+ msgid "Toggle navigation arrows."
518
  msgstr ""
519
 
520
+ #: ../responsive-lightbox.php:1150
521
+ msgid "If true, FancyBox is scaled to fit in viewport."
522
+ msgstr ""
523
+
524
+ #: ../responsive-lightbox.php:1168
525
+ msgid "Set the overflow CSS property to create or hide scrollbars."
526
+ msgstr ""
527
+
528
+ #: ../responsive-lightbox.php:1186
529
+ msgid "When true, FancyBox is centered while scrolling page."
530
+ msgstr ""
531
+
532
+ #: ../responsive-lightbox.php:1204
533
+ msgid "When true, transparency of content is changed for elastic transitions."
534
+ msgstr ""
535
+
536
+ #: ../responsive-lightbox.php:1217
537
+ msgid "Opacity of the overlay."
538
+ msgstr ""
539
+
540
+ #: ../responsive-lightbox.php:1227
541
+ msgid "Color of the overlay."
542
+ msgstr ""
543
+
544
+ #: ../responsive-lightbox.php:1245
545
+ msgid "Toggle title."
546
+ msgstr ""
547
+
548
+ #: ../responsive-lightbox.php:1263
549
+ msgid "The position of title."
550
+ msgstr ""
551
+
552
+ #: ../responsive-lightbox.php:1281
553
+ msgid "Easing used for elastic animations."
554
+ msgstr ""
555
+
556
+ #: ../responsive-lightbox.php:1291
557
+ msgid "Speed of the fade and elastic transitions, in milliseconds."
558
+ msgstr ""
559
+
560
+ #: ../responsive-lightbox.php:1301
561
+ msgid "Speed of resizing when changing gallery items, in milliseconds."
562
+ msgstr ""
563
+
564
+ #: ../responsive-lightbox.php:1311
565
+ msgid "Speed of the content fading while changing gallery items."
566
+ msgstr ""
567
+
568
+ #: ../responsive-lightbox.php:1321
569
+ msgid "Width of the video."
570
+ msgstr ""
571
+
572
+ #: ../responsive-lightbox.php:1331
573
+ msgid "Height of the video."
574
+ msgstr ""
575
+
576
+ #: ../responsive-lightbox.php:1510
577
  msgid ""
578
  "Changes were not saved because there was attempt to save settings of "
579
  "inactive script. The site has been reloaded to the proper script settings."
580
  msgstr ""
581
 
582
+ #: ../responsive-lightbox.php:1522
583
  msgid "Settings of SwipeBox script were restored to defaults."
584
  msgstr ""
585
 
586
+ #: ../responsive-lightbox.php:1528
587
  msgid "Settings of prettyPhoto script were restored to defaults."
588
  msgstr ""
589
 
590
+ #: ../responsive-lightbox.php:1534
591
+ msgid "Settings of FancyBox script were restored to defaults."
592
+ msgstr ""
593
+
594
+ #: ../responsive-lightbox.php:1538
595
  msgid ""
596
  "Changes were not set to defaults because there was attempt to reset settings "
597
  "of inactive script. The site has been reloaded to the proper script settings."
598
  msgstr ""
599
 
600
+ #: ../responsive-lightbox.php:1552 ../responsive-lightbox.php:1553
601
+ #: ../responsive-lightbox.php:1567 ../responsive-lightbox.php:1599
602
  msgid "Responsive Lightbox"
603
  msgstr ""
604
 
605
+ #: ../responsive-lightbox.php:1592
606
  msgid "Reset to defaults"
607
  msgstr ""
608
 
609
+ #: ../responsive-lightbox.php:1601
610
  msgid "Need support?"
611
  msgstr ""
612
 
613
+ #: ../responsive-lightbox.php:1602
614
  msgid ""
615
  "If you are having problems with this plugin, please talk about them in the"
616
  msgstr ""
617
 
618
+ #: ../responsive-lightbox.php:1602
619
  msgid "Support forum"
620
  msgstr ""
621
 
622
+ #: ../responsive-lightbox.php:1604
623
  msgid "Do you like this plugin?"
624
  msgstr ""
625
 
626
+ #: ../responsive-lightbox.php:1605
627
  msgid "Rate it 5"
628
  msgstr ""
629
 
630
+ #: ../responsive-lightbox.php:1605
631
  msgid "on WordPress.org"
632
  msgstr ""
633
 
634
+ #: ../responsive-lightbox.php:1606
635
  msgid "Blog about it & link to the"
636
  msgstr ""
637
 
638
+ #: ../responsive-lightbox.php:1606
639
  msgid "plugin page"
640
  msgstr ""
641
 
642
+ #: ../responsive-lightbox.php:1607
643
  msgid "Check out our other"
644
  msgstr ""
645
 
646
+ #: ../responsive-lightbox.php:1607
647
  msgid "WordPress plugins"
648
  msgstr ""
649
 
650
+ #: ../responsive-lightbox.php:1634
651
  msgid "Are you sure you want to reset scripts settings to defaults?"
652
  msgstr ""
653
 
654
+ #: ../responsive-lightbox.php:1831
655
  msgid "Support"
656
  msgstr ""
657
 
658
+ #: ../responsive-lightbox.php:1853
659
  msgid "Settings"
660
  msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.dfactory.eu/
4
  Tags: gallery, images, lightbox, links, photos, template, theme, photo, image, picture, slideshow, modal, overlay, YouTube, Vimeo, video, videos
5
  Requires at least: 3.3
6
  Tested up to: 3.6.1
7
- Stable tag: 1.1.2
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -18,7 +18,7 @@ For more information, check out plugin page at [dFactory](http://www.dfactory.eu
18
 
19
  = Features include: =
20
 
21
- * Select from 2 responsive lightbox scripts
22
  * Automatically add lightbox to WordPress image galleries
23
  * Automatically add lightbox to WordPress image links
24
  * Automatically add lightbox to WordPress video links (YouTube, Vimeo)
@@ -54,6 +54,11 @@ No questions yet.
54
 
55
  == Changelog ==
56
 
 
 
 
 
 
57
  = 1.1.2 =
58
  * New: Japanese translation, thanks to stranger-jp
59
 
@@ -89,5 +94,5 @@ Initial release
89
 
90
  == Upgrade Notice ==
91
 
92
- = 1.1.2 =
93
- New: Japanese translation, thanks to stranger-jp
4
  Tags: gallery, images, lightbox, links, photos, template, theme, photo, image, picture, slideshow, modal, overlay, YouTube, Vimeo, video, videos
5
  Requires at least: 3.3
6
  Tested up to: 3.6.1
7
+ Stable tag: 1.2.0
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
18
 
19
  = Features include: =
20
 
21
+ * Select from 3 responsive lightbox scripts
22
  * Automatically add lightbox to WordPress image galleries
23
  * Automatically add lightbox to WordPress image links
24
  * Automatically add lightbox to WordPress video links (YouTube, Vimeo)
54
 
55
  == Changelog ==
56
 
57
+ = 1.2.0 =
58
+ * New: Added FancyBox script
59
+ * Tweak: UI enhancements for options
60
+ * Tweak: Better YouTube video handling (including https protocol)
61
+
62
  = 1.1.2 =
63
  * New: Japanese translation, thanks to stranger-jp
64
 
94
 
95
  == Upgrade Notice ==
96
 
97
+ = 1.2.0 =
98
+ * New: Added FancyBox script
responsive-lightbox.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Responsive Lightbox
4
  Description: Responsive Lightbox allows users to view larger versions of images and galleries in a lightbox (overlay) effect optimized for mobile devices.
5
- Version: 1.1.2
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
@@ -60,9 +60,36 @@ class Responsive_Lightbox
60
  'hide_bars' => TRUE,
61
  'hide_bars_delay' => 5000,
62
  'video_max_width' => 1080
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  )
64
  ),
65
- 'version' => '1.0.5'
66
  );
67
  private $scripts = array();
68
  private $options = array();
@@ -76,7 +103,9 @@ class Responsive_Lightbox
76
  register_deactivation_hook(__FILE__, array(&$this, 'multisite_deactivation'));
77
 
78
  //changes from older versions
79
- if(version_compare((($db_version = get_option('responsive_lightbox_version')) === FALSE ? '1.0.0' : $db_version), '1.0.5', '<'))
 
 
80
  {
81
  if(($array = get_option('rl_settings')) !== FALSE)
82
  {
@@ -93,6 +122,9 @@ class Responsive_Lightbox
93
  update_option('responsive_lightbox_version', $this->defaults['version']);
94
  }
95
 
 
 
 
96
  $this->options['settings'] = array_merge($this->defaults['settings'], (($array = get_option('responsive_lightbox_settings')) === FALSE ? array() : $array));
97
  $this->options['configuration'] = array_merge($this->defaults['configuration'], (($array = get_option('responsive_lightbox_configuration')) === FALSE ? array() : $array));
98
 
@@ -122,7 +154,7 @@ class Responsive_Lightbox
122
 
123
  public function add_videos_lightbox_selector($content)
124
  {
125
- preg_match_all('/<a(.*?)href=(?:\'|")(http:\/\/(?:www\.)?((youtube\.com\/watch\?v=[a-z0-9]{11})|(vimeo\.com\/[0-9]{8,})))(?:\'|")(.*?)>/i', $content, $links);
126
 
127
  if(isset($links[0]))
128
  {
@@ -165,7 +197,7 @@ class Responsive_Lightbox
165
  if(isset($links[0]))
166
  {
167
  if($this->options['settings']['images_as_gallery'] === TRUE)
168
- $rel_hash = '[gallery-'.wp_generate_password(4).']';
169
 
170
  foreach($links[0] as $id => $link)
171
  {
@@ -255,6 +287,28 @@ class Responsive_Lightbox
255
  'css' => __('CSS', 'responsive-lightbox'),
256
  'jquery' => __('jQuery', 'responsive-lightbox')
257
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  )
259
  );
260
 
@@ -382,7 +436,7 @@ class Responsive_Lightbox
382
  {
383
  add_settings_field('rl_sw_animation', __('Animation type', 'responsive-lightbox'), array(&$this, 'rl_sw_animation'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
384
  add_settings_field('rl_sw_hide_bars', __('Top and bottom bars', 'responsive-lightbox'), array(&$this, 'rl_sw_hide_bars'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
385
- add_settings_field('rl_video_max_width', __('Video max width', 'responsive-lightbox'), array(&$this, 'rl_video_max_width'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
386
  }
387
  elseif($this->options['settings']['script'] === 'prettyphoto')
388
  {
@@ -405,18 +459,46 @@ class Responsive_Lightbox
405
  add_settings_field('rl_pp_keyboard_shortcuts', __('Keyboard shortcuts', 'responsive-lightbox'), array(&$this, 'rl_pp_keyboard_shortcuts'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
406
  add_settings_field('rl_pp_social', __('Social (Twitter, Facebook)', 'responsive-lightbox'), array(&$this, 'rl_pp_social'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
407
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
408
  }
409
 
410
 
411
  public function rl_script()
412
  {
413
  echo '
414
- <div class="wplikebtns">';
415
 
416
  foreach($this->scripts as $val => $trans)
417
  {
418
  echo '
419
- <input id="rl-script-'.$val.'" type="radio" name="responsive_lightbox_settings[script]" value="'.$val.'" '.checked($val, $this->options['settings']['script'], FALSE).' />
420
  <label for="rl-script-'.$val.'">'.$trans['name'].'</label>';
421
  }
422
 
@@ -429,8 +511,8 @@ class Responsive_Lightbox
429
  public function rl_selector()
430
  {
431
  echo '
432
- <div>
433
- <input type="text" value="'.$this->options['settings']['selector'].'" name="responsive_lightbox_settings[selector]" />
434
  <p class="description">'.__('Select to which rel selector lightbox effect will be applied to.', 'responsive-lightbox').'</p>
435
  </div>';
436
  }
@@ -439,17 +521,17 @@ class Responsive_Lightbox
439
  public function rl_galleries()
440
  {
441
  echo '
442
- <div class="wplikebtns">';
443
 
444
  foreach($this->choices as $val => $trans)
445
  {
446
  echo '
447
- <input id="rl-galleries-'.$val.'" type="radio" name="responsive_lightbox_settings[galleries]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['settings']['galleries'], FALSE).' />
448
  <label for="rl-galleries-'.$val.'">'.$trans.'</label>';
449
  }
450
 
451
  echo '
452
- <p class="description">'.__('Add lightbox to WordPress image galleries by default', 'responsive-lightbox').'</p>
453
  </div>';
454
  }
455
 
@@ -457,17 +539,17 @@ class Responsive_Lightbox
457
  public function rl_videos()
458
  {
459
  echo '
460
- <div class="wplikebtns">';
461
 
462
  foreach($this->choices as $val => $trans)
463
  {
464
  echo '
465
- <input id="rl-videos-'.$val.'" type="radio" name="responsive_lightbox_settings[videos]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['settings']['videos'], FALSE).' />
466
  <label for="rl-videos-'.$val.'">'.$trans.'</label>';
467
  }
468
 
469
  echo '
470
- <p class="description">'.__('Add lightbox to YouTube and Vimeo video links by default', 'responsive-lightbox').'</p>
471
  </div>';
472
  }
473
 
@@ -475,17 +557,17 @@ class Responsive_Lightbox
475
  public function rl_image_links()
476
  {
477
  echo '
478
- <div class="wplikebtns">';
479
 
480
  foreach($this->choices as $val => $trans)
481
  {
482
  echo '
483
- <input id="rl-image-links-'.$val.'" type="radio" name="responsive_lightbox_settings[image_links]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['settings']['image_links'], FALSE).' />
484
  <label for="rl-image-links-'.$val.'">'.$trans.'</label>';
485
  }
486
 
487
  echo '
488
- <p class="description">'.__('Add lightbox to WordPress image links by default', 'responsive-lightbox').'</p>
489
  </div>';
490
  }
491
 
@@ -493,17 +575,17 @@ class Responsive_Lightbox
493
  public function rl_images_as_gallery()
494
  {
495
  echo '
496
- <div class="wplikebtns">';
497
 
498
  foreach($this->choices as $val => $trans)
499
  {
500
  echo '
501
- <input id="rl-images-as-gallery-'.$val.'" type="radio" name="responsive_lightbox_settings[images_as_gallery]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['settings']['images_as_gallery'], FALSE).' />
502
  <label for="rl-images-as-gallery-'.$val.'">'.$trans.'</label>';
503
  }
504
 
505
  echo '
506
- <p class="description">'.__('Display single post images as a gallery', 'responsive-lightbox').'</p>
507
  </div>';
508
  }
509
 
@@ -511,17 +593,17 @@ class Responsive_Lightbox
511
  public function rl_deactivation_delete()
512
  {
513
  echo '
514
- <div class="wplikebtns">';
515
 
516
  foreach($this->choices as $val => $trans)
517
  {
518
  echo '
519
- <input id="rl-deactivation-delete-'.$val.'" type="radio" name="responsive_lightbox_settings[deactivation_delete]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['settings']['deactivation_delete'], FALSE).' />
520
  <label for="rl-deactivation-delete-'.$val.'">'.$trans.'</label>';
521
  }
522
 
523
  echo '
524
- <p class="description">'.__('Delete settings on plugin deactivation', 'responsive-lightbox').'</p>
525
  </div>';
526
  }
527
 
@@ -529,13 +611,13 @@ class Responsive_Lightbox
529
  public function rl_sw_animation()
530
  {
531
  echo '
532
- <div class="wplikebtns">';
533
 
534
  foreach($this->scripts['swipebox']['animations'] as $val => $trans)
535
  {
536
  echo '
537
- <input id="rl-animation-'.$val.'" type="radio" name="responsive_lightbox_configuration[swipebox][animation]" value="'.$val.'" '.checked($val, $this->options['configuration']['swipebox']['animation'], FALSE).' />
538
- <label for="rl-animation-'.$val.'">'.$trans.'</label>';
539
  }
540
 
541
  echo '
@@ -547,31 +629,31 @@ class Responsive_Lightbox
547
  public function rl_sw_hide_bars()
548
  {
549
  echo '
550
- <div class="wplikebtns">';
551
 
552
  foreach($this->choices as $val => $trans)
553
  {
554
  echo '
555
- <input id="rl-hide-bars-'.$val.'" type="radio" name="responsive_lightbox_configuration[swipebox][hide_bars]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['swipebox']['hide_bars'], FALSE).' />
556
- <label for="rl-hide-bars-'.$val.'">'.$trans.'</label>';
557
  }
558
 
559
  echo '
560
  <p class="description">'.__('Disable if you don\'t want to top and bottom bars to be hidden after a period of time.', 'responsive-lightbox').'</p>
561
- </div>
562
- <div id="rl_sw_hide_bars_delay"'.($this->options['configuration']['swipebox']['hide_bars'] === FALSE ? ' style="display: none;"' : '').'>
563
- <input type="text" name="responsive_lightbox_configuration[swipebox][hide_bars_delay]" value="'.$this->options['configuration']['swipebox']['hide_bars_delay'].'" />
564
- <p class="description">'.__('Enter the time after which the top and bottom bars will be hidden (when hiding is enabled).', 'responsive-lightbox').'</p>
565
  </div>';
566
  }
567
 
568
 
569
- public function rl_video_max_width()
570
  {
571
  echo '
572
- <div>
573
- <input type="text" name="responsive_lightbox_configuration[swipebox][video_max_width]" value="'.$this->options['configuration']['swipebox']['video_max_width'].'" />
574
- <p class="description">'.__('Enter the max video width in a lightbox', 'responsive-lightbox').'</p>
575
  </div>';
576
  }
577
 
@@ -579,17 +661,17 @@ class Responsive_Lightbox
579
  public function rl_pp_animation_speed()
580
  {
581
  echo '
582
- <div class="wplikebtns">';
583
 
584
  foreach($this->scripts['prettyphoto']['animation_speeds'] as $val => $trans)
585
  {
586
  echo '
587
- <input id="rl-animation-speed-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][animation_speed]" value="'.$val.'" '.checked($val, $this->options['configuration']['prettyphoto']['animation_speed'], FALSE).' />
588
- <label for="rl-animation-speed-'.$val.'">'.$trans.'</label>';
589
  }
590
 
591
  echo '
592
- <p class="description">'.__('Select animation speed for lightbox effect', 'responsive-lightbox').'</p>
593
  </div>';
594
  }
595
 
@@ -597,21 +679,21 @@ class Responsive_Lightbox
597
  public function rl_pp_slideshow()
598
  {
599
  echo '
600
- <div class="wplikebtns">';
601
 
602
  foreach($this->choices as $val => $trans)
603
  {
604
  echo '
605
- <input id="rl-slideshow-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][slideshow]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['slideshow'], FALSE).' />
606
- <label for="rl-slideshow-'.$val.'">'.$trans.'</label>';
607
  }
608
 
609
  echo '
610
- <p class="description">'.__('Display images as slideshow', 'responsive-lightbox').'</p>
611
- </div>
612
- <div id="rl_pp_slideshow_delay"'.($this->options['configuration']['prettyphoto']['slideshow'] === FALSE ? ' style="display: none;"' : '').'>
613
- <input type="text" name="responsive_lightbox_configuration[prettyphoto][slideshow_delay]" value="'.$this->options['configuration']['prettyphoto']['slideshow_delay'].'" />
614
- <p class="description">'.__('Enter time (in miliseconds)', 'responsive-lightbox').'</p>
615
  </div>';
616
  }
617
 
@@ -619,17 +701,17 @@ class Responsive_Lightbox
619
  public function rl_pp_slideshow_autoplay()
620
  {
621
  echo '
622
- <div class="wplikebtns">';
623
 
624
  foreach($this->choices as $val => $trans)
625
  {
626
  echo '
627
- <input id="rl-slideshow-autoplay-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][slideshow_autoplay]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['slideshow_autoplay'], FALSE).' />
628
- <label for="rl-slideshow-autoplay-'.$val.'">'.$trans.'</label>';
629
  }
630
 
631
  echo '
632
- <p class="description">'.__('Automatically start slideshow', 'responsive-lightbox').'</p>
633
  </div>';
634
  }
635
 
@@ -637,12 +719,12 @@ class Responsive_Lightbox
637
  public function rl_pp_opacity()
638
  {
639
  echo '
640
- <div>
641
- <input type="text" id="rl_pp_opacity_input" class="hide-if-js" name="responsive_lightbox_configuration[prettyphoto][opacity]" value="'.$this->options['configuration']['prettyphoto']['opacity'].'" />
642
  <div class="wplike-slider">
643
- <span class="left hide-if-no-js">0</span><span class="middle" id="rl_pp_opacity_span"></span><span class="right hide-if-no-js">100</span>
644
  </div>
645
- <p class="description">'.__('Value between 0 and 100, 100 for no opacity', 'responsive-lightbox').'</p>
646
  </div>';
647
  }
648
 
@@ -650,17 +732,17 @@ class Responsive_Lightbox
650
  public function rl_pp_title()
651
  {
652
  echo '
653
- <div class="wplikebtns">';
654
 
655
  foreach($this->choices as $val => $trans)
656
  {
657
  echo '
658
- <input id="rl-show-title-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][show_title]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['show_title'], FALSE).' />
659
- <label for="rl-show-title-'.$val.'">'.$trans.'</label>';
660
  }
661
 
662
  echo '
663
- <p class="description">'.__('Display image tiltle', 'responsive-lightbox').'</p>
664
  </div>';
665
  }
666
 
@@ -668,13 +750,13 @@ class Responsive_Lightbox
668
  public function rl_pp_allow_resize()
669
  {
670
  echo '
671
- <div class="wplikebtns">';
672
 
673
  foreach($this->choices as $val => $trans)
674
  {
675
  echo '
676
- <input id="rl-allow-resize-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][allow_resize]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['allow_resize'], FALSE).' />
677
- <label for="rl-allow-resize-'.$val.'">'.$trans.'</label>';
678
  }
679
 
680
  echo '
@@ -686,8 +768,8 @@ class Responsive_Lightbox
686
  public function rl_pp_width()
687
  {
688
  echo '
689
- <div>
690
- <input type="text" name="responsive_lightbox_configuration[prettyphoto][width]" value="'.$this->options['configuration']['prettyphoto']['width'].'" />
691
  <p class="description">'.__('in pixels', 'responsive-lightbox').'</p>
692
  </div>';
693
  }
@@ -696,8 +778,8 @@ class Responsive_Lightbox
696
  public function rl_pp_height()
697
  {
698
  echo '
699
- <div>
700
- <input type="text" name="responsive_lightbox_configuration[prettyphoto][height]" value="'.$this->options['configuration']['prettyphoto']['height'].'" />
701
  <p class="description">'.__('in pixels', 'responsive-lightbox').'</p>
702
  </div>';
703
  }
@@ -706,17 +788,17 @@ class Responsive_Lightbox
706
  public function rl_pp_theme()
707
  {
708
  echo '
709
- <div class="wplikebtns">';
710
 
711
  foreach($this->scripts['prettyphoto']['themes'] as $val => $trans)
712
  {
713
  echo '
714
- <input id="rl-theme-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][theme]" value="'.$val.'" '.checked($val, $this->options['configuration']['prettyphoto']['theme'], FALSE).' />
715
- <label for="rl-theme-'.$val.'">'.$trans.'</label>';
716
  }
717
 
718
  echo '
719
- <p class="description">'.__('Select theme for lightbox effect', 'responsive-lightbox').'</p>
720
  </div>';
721
  }
722
 
@@ -724,9 +806,9 @@ class Responsive_Lightbox
724
  public function rl_pp_horizontal_padding()
725
  {
726
  echo '
727
- <div>
728
- <input type="text" name="responsive_lightbox_configuration[prettyphoto][horizontal_padding]" value="'.$this->options['configuration']['prettyphoto']['horizontal_padding'].'" />
729
- <p class="description">'.__('Horizontal padding (in pixels)', 'responsive-lightbox').'</p>
730
  </div>';
731
  }
732
 
@@ -734,17 +816,17 @@ class Responsive_Lightbox
734
  public function rl_pp_hide_flash()
735
  {
736
  echo '
737
- <div class="wplikebtns">';
738
 
739
  foreach($this->choices as $val => $trans)
740
  {
741
  echo '
742
- <input id="rl-hide-flash-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][hide_flash]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['hide_flash'], FALSE).' />
743
- <label for="rl-hide-flash-'.$val.'">'.$trans.'</label>';
744
  }
745
 
746
  echo '
747
- <p class="description">'.__('Hides all the flash object on a page. Enable this if flash appears over prettyPhoto', 'responsive-lightbox').'</p>
748
  </div>';
749
  }
750
 
@@ -752,17 +834,17 @@ class Responsive_Lightbox
752
  public function rl_pp_wmode()
753
  {
754
  echo '
755
- <div class="wplikebtns">';
756
 
757
  foreach($this->scripts['prettyphoto']['wmodes'] as $val => $trans)
758
  {
759
  echo '
760
- <input id="rl-wmode-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][wmode]" value="'.$val.'" '.checked($val, $this->options['configuration']['prettyphoto']['wmode'], FALSE).' />
761
- <label for="rl-wmode-'.$val.'">'.$trans.'</label>';
762
  }
763
 
764
  echo '
765
- <p class="description">'.__('Select flash window mode', 'responsive-lightbox').'</p>
766
  </div>';
767
  }
768
 
@@ -770,17 +852,17 @@ class Responsive_Lightbox
770
  public function rl_pp_video_autoplay()
771
  {
772
  echo '
773
- <div class="wplikebtns">';
774
 
775
  foreach($this->choices as $val => $trans)
776
  {
777
  echo '
778
- <input id="rl-video-autoplay-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][video_autoplay]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['video_autoplay'], FALSE).' />
779
- <label for="rl-video-autoplay-'.$val.'">'.$trans.'</label>';
780
  }
781
 
782
  echo '
783
- <p class="description">'.__('Automatically start videos', 'responsive-lightbox').'</p>
784
  </div>';
785
  }
786
 
@@ -788,17 +870,17 @@ class Responsive_Lightbox
788
  public function rl_pp_modal()
789
  {
790
  echo '
791
- <div class="wplikebtns">';
792
 
793
  foreach($this->choices as $val => $trans)
794
  {
795
  echo '
796
- <input id="rl-modal-close-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][modal]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['modal'], FALSE).' />
797
- <label for="rl-modal-close-'.$val.'">'.$trans.'</label>';
798
  }
799
 
800
  echo '
801
- <p class="description">'.__('If set to true, only the close button will close the window', 'responsive-lightbox').'</p>
802
  </div>';
803
  }
804
 
@@ -806,17 +888,17 @@ class Responsive_Lightbox
806
  public function rl_pp_deeplinking()
807
  {
808
  echo '
809
- <div class="wplikebtns">';
810
 
811
  foreach($this->choices as $val => $trans)
812
  {
813
  echo '
814
- <input id="rl-deeplinking-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][deeplinking]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['deeplinking'], FALSE).' />
815
- <label for="rl-deeplinking-'.$val.'">'.$trans.'</label>';
816
  }
817
 
818
  echo '
819
- <p class="description">'.__('Allow prettyPhoto to update the url to enable deeplinking', 'responsive-lightbox').'</p>
820
  </div>';
821
  }
822
 
@@ -824,17 +906,17 @@ class Responsive_Lightbox
824
  public function rl_pp_overlay_gallery()
825
  {
826
  echo '
827
- <div class="wplikebtns">';
828
 
829
  foreach($this->choices as $val => $trans)
830
  {
831
  echo '
832
- <input id="rl-overlay-gallery-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][overlay_gallery]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['overlay_gallery'], FALSE).' />
833
- <label for="rl-overlay-gallery-'.$val.'">'.$trans.'</label>';
834
  }
835
 
836
  echo '
837
- <p class="description">'.__('If enabled, a gallery will overlay the fullscreen image on mouse over', 'responsive-lightbox').'</p>
838
  </div>';
839
  }
840
 
@@ -842,17 +924,17 @@ class Responsive_Lightbox
842
  public function rl_pp_keyboard_shortcuts()
843
  {
844
  echo '
845
- <div class="wplikebtns">';
846
 
847
  foreach($this->choices as $val => $trans)
848
  {
849
  echo '
850
- <input id="rl-keyboard-shortcuts-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][keyboard_shortcuts]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['keyboard_shortcuts'], FALSE).' />
851
- <label for="rl-keyboard-shortcuts-'.$val.'">'.$trans.'</label>';
852
  }
853
 
854
  echo '
855
- <p class="description">'.__('Set to false if you open forms inside prettyPhoto', 'responsive-lightbox').'</p>
856
  </div>';
857
  }
858
 
@@ -860,17 +942,398 @@ class Responsive_Lightbox
860
  public function rl_pp_social()
861
  {
862
  echo '
863
- <div class="wplikebtns">';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
864
 
865
  foreach($this->choices as $val => $trans)
866
  {
867
  echo '
868
- <input id="rl-social-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][social]" value="'.$val.'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['social'], FALSE).' />
869
- <label for="rl-social-'.$val.'">'.$trans.'</label>';
870
  }
871
 
872
  echo '
873
- <p class="description">'.__('Display links to Facebook and Twitter', 'responsive-lightbox').'</p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
874
  </div>';
875
  }
876
 
@@ -883,86 +1346,166 @@ class Responsive_Lightbox
883
  if(isset($_POST['save_rl_settings']))
884
  {
885
  //script
886
- $input['script'] = (isset($input['script']) && in_array($input['script'], array_keys($this->scripts)) ? $input['script'] : $this->options['settings']['script']);
887
 
888
  //selector
889
- $input['selector'] = sanitize_text_field(isset($input['selector']) && $input['selector'] !== '' ? $input['selector'] : $this->options['settings']['selector']);
890
 
891
  //checkboxes
892
- $input['galleries'] = (isset($input['galleries']) && in_array($input['galleries'], array_keys($this->choices)) ? ($input['galleries'] === 'yes' ? TRUE : FALSE) : $this->options['settings']['galleries']);
893
- $input['videos'] = (isset($input['videos']) && in_array($input['videos'], array_keys($this->choices)) ? ($input['videos'] === 'yes' ? TRUE : FALSE) : $this->options['settings']['videos']);
894
- $input['image_links'] = (isset($input['image_links']) && in_array($input['image_links'], array_keys($this->choices)) ? ($input['image_links'] === 'yes' ? TRUE : FALSE) : $this->options['settings']['image_links']);
895
- $input['images_as_gallery'] = (isset($input['images_as_gallery']) && in_array($input['images_as_gallery'], array_keys($this->choices)) ? ($input['images_as_gallery'] === 'yes' ? TRUE : FALSE) : $this->options['settings']['images_as_gallery']);
896
- $input['deactivation_delete'] = (isset($input['deactivation_delete']) && in_array($input['deactivation_delete'], array_keys($this->choices)) ? ($input['deactivation_delete'] === 'yes' ? TRUE : FALSE) : $this->options['settings']['deactivation_delete']);
897
  }
898
  elseif(isset($_POST['save_rl_configuration']))
899
  {
900
  if($this->options['settings']['script'] === 'swipebox' && $_POST['script_r'] === 'swipebox')
901
  {
902
  //animation
903
- $input['swipebox']['animation'] = (isset($input['swipebox']['animation']) && in_array($input['swipebox']['animation'], array_keys($this->scripts['swipebox']['animations'])) ? $input['swipebox']['animation'] : $this->options['configuration']['swipebox']['animation']);
904
 
905
  //hide bars
906
- $input['swipebox']['hide_bars'] = (isset($input['swipebox']['hide_bars']) && in_array($input['swipebox']['hide_bars'], array_keys($this->choices)) ? ($input['swipebox']['hide_bars'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['swipebox']['hide_bars']);
907
- $input['swipebox']['hide_bars_delay'] = (int)($input['swipebox']['hide_bars_delay'] > 0 ? $input['swipebox']['hide_bars_delay'] : $this->options['configuration']['swipebox']['hide_bars_delay']);
908
- $input['swipebox']['video_max_width'] = (int)($input['swipebox']['video_max_width'] > 0 ? $input['swipebox']['video_max_width'] : $this->options['configuration']['swipebox']['video_max_width']);
909
  }
910
  elseif($this->options['settings']['script'] === 'prettyphoto' && $_POST['script_r'] === 'prettyphoto')
911
  {
912
  //animation speed
913
- $input['prettyphoto']['animation_speed'] = (isset($input['prettyphoto']['animation_speed']) && in_array($input['prettyphoto']['animation_speed'], array_keys($this->scripts['prettyphoto']['animation_speeds'])) ? $input['prettyphoto']['animation_speed'] : $this->options['configuration']['prettyphoto']['animation_speed']);
914
 
915
  //slideshows
916
- $input['prettyphoto']['slideshow'] = (isset($input['prettyphoto']['slideshow']) && in_array($input['prettyphoto']['slideshow'], array_keys($this->choices)) ? ($input['prettyphoto']['slideshow'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['slideshow']);
917
- $input['prettyphoto']['slideshow_delay'] = (int)($input['prettyphoto']['slideshow_delay'] > 0 ? $input['prettyphoto']['slideshow_delay'] : $this->options['configuration']['prettyphoto']['slideshow_delay']);
918
- $input['prettyphoto']['slideshow_autoplay'] = (isset($input['prettyphoto']['slideshow_autoplay']) && in_array($input['prettyphoto']['slideshow_autoplay'], array_keys($this->choices)) ? ($input['prettyphoto']['slideshow_autoplay'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['slideshow_autoplay']);
919
 
920
  //opacity
921
  $input['prettyphoto']['opacity'] = (int)$input['prettyphoto']['opacity'];
922
 
923
  if($input['prettyphoto']['opacity'] < 0 || $input['prettyphoto']['opacity'] > 100)
924
- $input['prettyphoto']['opacity'] = $this->options['configuration']['prettyphoto']['opacity'];
925
 
926
  //title
927
- $input['prettyphoto']['show_title'] = (isset($input['prettyphoto']['show_title']) && in_array($input['prettyphoto']['show_title'], array_keys($this->choices)) ? ($input['prettyphoto']['show_title'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['show_title']);
928
 
929
  //resize
930
- $input['prettyphoto']['allow_resize'] = (isset($input['prettyphoto']['allow_resize']) && in_array($input['prettyphoto']['allow_resize'], array_keys($this->choices)) ? ($input['prettyphoto']['allow_resize'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['allow_resize']);
931
 
932
  //dimensions
933
- $input['prettyphoto']['width'] = (int)($input['prettyphoto']['width'] > 0 ? $input['prettyphoto']['width'] : $this->options['configuration']['prettyphoto']['width']);
934
- $input['prettyphoto']['height'] = (int)($input['prettyphoto']['height'] > 0 ? $input['prettyphoto']['height'] : $this->options['configuration']['prettyphoto']['height']);
935
 
936
  //separator
937
- $input['prettyphoto']['separator'] = sanitize_text_field(isset($input['prettyphoto']['separator']) && $input['prettyphoto']['separator'] !== '' ? $input['prettyphoto']['separator'] : $this->options['configuration']['prettyphoto']['separator']);
938
 
939
  //theme
940
- $input['prettyphoto']['theme'] = (isset($input['prettyphoto']['theme']) && in_array($input['prettyphoto']['theme'], array_keys($this->scripts['prettyphoto']['themes'])) ? $input['prettyphoto']['theme'] : $this->options['configuration']['prettyphoto']['theme']);
941
 
942
  //padding
943
- $input['prettyphoto']['horizontal_padding'] = (int)($input['prettyphoto']['horizontal_padding'] > 0 ? $input['prettyphoto']['horizontal_padding'] : $this->options['configuration']['prettyphoto']['horizontal_padding']);
944
 
945
  //flash
946
- $input['prettyphoto']['hide_flash'] = (isset($input['prettyphoto']['hide_flash']) && in_array($input['prettyphoto']['hide_flash'], array_keys($this->choices)) ? ($input['prettyphoto']['hide_flash'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['hide_flash']);
947
- $input['prettyphoto']['wmode'] = (isset($input['prettyphoto']['wmode']) && in_array($input['prettyphoto']['wmode'], array_keys($this->scripts['prettyphoto']['wmodes'])) ? $input['prettyphoto']['wmode'] : $this->options['configuration']['prettyphoto']['wmode']);
948
 
949
  //video autoplay
950
- $input['prettyphoto']['video_autoplay'] = (isset($input['prettyphoto']['video_autoplay']) && in_array($input['prettyphoto']['video_autoplay'], array_keys($this->choices)) ? ($input['prettyphoto']['video_autoplay'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['video_autoplay']);
951
 
952
  //modal
953
- $input['prettyphoto']['modal'] = (isset($input['prettyphoto']['modal']) && in_array($input['prettyphoto']['modal'], array_keys($this->choices)) ? ($input['prettyphoto']['modal'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['modal']);
954
 
955
  //deeplinking
956
- $input['prettyphoto']['deeplinking'] = (isset($input['prettyphoto']['deeplinking']) && in_array($input['prettyphoto']['deeplinking'], array_keys($this->choices)) ? ($input['prettyphoto']['deeplinking'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['deeplinking']);
957
 
958
  //overlay gallery
959
- $input['prettyphoto']['overlay_gallery'] = (isset($input['prettyphoto']['overlay_gallery']) && in_array($input['prettyphoto']['overlay_gallery'], array_keys($this->choices)) ? ($input['prettyphoto']['overlay_gallery'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['overlay_gallery']);
960
 
961
  //keyboard shortcuts
962
- $input['prettyphoto']['keyboard_shortcuts'] = (isset($input['prettyphoto']['keyboard_shortcuts']) && in_array($input['prettyphoto']['keyboard_shortcuts'], array_keys($this->choices)) ? ($input['prettyphoto']['keyboard_shortcuts'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['keyboard_shortcuts']);
963
 
964
  //social
965
- $input['prettyphoto']['social'] = (isset($input['prettyphoto']['social']) && in_array($input['prettyphoto']['social'], array_keys($this->choices)) ? ($input['prettyphoto']['social'] === 'yes' ? TRUE : FALSE) : $this->options['configuration']['prettyphoto']['social']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
966
  }
967
  else
968
  {
@@ -989,6 +1532,12 @@ class Responsive_Lightbox
989
 
990
  add_settings_error('reset_prettyphoto_settings', 'prettyphoto_reset', __('Settings of prettyPhoto script were restored to defaults.', 'responsive-lightbox'), 'updated');
991
  }
 
 
 
 
 
 
992
  else
993
  {
994
  add_settings_error('reset_script_settings', 'reset_invalid_script_page', __('Changes were not set to defaults because there was attempt to reset settings of inactive script. The site has been reloaded to the proper script settings.', 'responsive-lightbox'), 'error');
@@ -1033,7 +1582,7 @@ class Responsive_Lightbox
1033
  </h2>
1034
  <div class="metabox-holder postbox-container responsive-lightbox-settings">
1035
  <form action="options.php" method="post">
1036
- <input type="hidden" name="script_r" value="'.$this->options['settings']['script'].'" />';
1037
 
1038
  wp_nonce_field('update-options');
1039
  settings_fields($this->tabs[$tab_key]['key']);
@@ -1055,12 +1604,12 @@ class Responsive_Lightbox
1055
  <h3 class="metabox-title">'.__('Responsive Lightbox', 'responsive-lightbox').'</h3>
1056
  <div class="inner">
1057
  <h3>'.__('Need support?', 'responsive-lightbox').'</h3>
1058
- <p>'.__('If you are having problems with this plugin, please talk about them in the', 'responsive-lightbox').' <a href="http://dfactory.eu/support/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=support" target="_blank" title="'.__('Support forum', 'responsive-lightbox').'">'.__('Support forum', 'responsive-lightbox').'</a></p>
1059
  <hr />
1060
  <h3>'.__('Do you like this plugin?', 'responsive-lightbox').'</h3>
1061
  <p><a href="http://wordpress.org/support/view/plugin-reviews/responsive-lightbox" target="_blank" title="'.__('Rate it 5', 'responsive-lightbox').'">'.__('Rate it 5', 'responsive-lightbox').'</a> '.__('on WordPress.org', 'responsive-lightbox').'<br />'.
1062
- __('Blog about it & link to the', 'responsive-lightbox').' <a href="http://dfactory.eu/plugins/responsive-lightbox/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=blog-about" target="_blank" title="'.__('plugin page', 'responsive-lightbox').'">'.__('plugin page', 'responsive-lightbox').'</a><br />'.
1063
- __('Check out our other', 'responsive-lightbox').' <a href="http://dfactory.eu/plugins/responsive-lightbox/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=other-plugins" target="_blank" title="'.__('WordPress plugins', 'responsive-lightbox').'">'.__('WordPress plugins', 'responsive-lightbox').'</a>
1064
  </p>
1065
  <hr />
1066
  <p class="df-link">Created by <a href="http://www.dfactory.eu/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=created-by" target="_blank" title="dFactory - Quality plugins for WordPress"><img src="'.plugins_url('/images/logo-dfactory.png' , __FILE__ ).'" title="dFactory - Quality plugins for WordPress" alt="dFactory - Quality plugins for WordPress" /></a></p>
@@ -1075,30 +1624,39 @@ class Responsive_Lightbox
1075
  {
1076
  if($page === 'settings_page_responsive-lightbox')
1077
  {
1078
- wp_enqueue_script(
1079
  'responsive-lightbox-admin',
1080
  plugins_url('js/admin.js', __FILE__),
1081
- array('jquery', 'jquery-ui-core', 'jquery-ui-button', 'jquery-ui-slider')
1082
  );
1083
 
 
 
1084
  wp_localize_script(
1085
  'responsive-lightbox-admin',
1086
  'rlArgs',
1087
  array(
1088
  'resetScriptToDefaults' => __('Are you sure you want to reset scripts settings to defaults?', 'responsive-lightbox'),
1089
- 'opacity' => $this->options['configuration']['prettyphoto']['opacity']
 
1090
  )
1091
  );
1092
 
1093
- wp_enqueue_style(
 
 
1094
  'responsive-lightbox-admin',
1095
  plugins_url('css/admin.css', __FILE__)
1096
  );
1097
 
1098
- wp_enqueue_style(
 
 
1099
  'responsive-lightbox-wplike',
1100
  plugins_url('css/wp-like-ui-theme.css', __FILE__)
1101
  );
 
 
1102
  }
1103
  }
1104
 
@@ -1113,17 +1671,21 @@ class Responsive_Lightbox
1113
 
1114
  if($this->options['settings']['script'] === 'prettyphoto')
1115
  {
1116
- wp_enqueue_script(
1117
  'responsive-lightbox-prettyphoto',
1118
  plugins_url('assets/prettyphoto/js/jquery.prettyPhoto.js', __FILE__),
1119
  array('jquery')
1120
  );
1121
 
1122
- wp_enqueue_style(
1123
- 'responsive-lightbox-front',
 
 
1124
  plugins_url('assets/prettyphoto/css/prettyPhoto.css', __FILE__)
1125
  );
1126
 
 
 
1127
  $args = array_merge(
1128
  $args,
1129
  array(
@@ -1152,17 +1714,21 @@ class Responsive_Lightbox
1152
  }
1153
  elseif($this->options['settings']['script'] === 'swipebox')
1154
  {
1155
- wp_enqueue_script(
1156
  'responsive-lightbox-swipebox',
1157
  plugins_url('assets/swipebox/source/jquery.swipebox.min.js', __FILE__),
1158
  array('jquery')
1159
  );
1160
 
1161
- wp_enqueue_style(
1162
- 'responsive-lightbox-front',
 
 
1163
  plugins_url('assets/swipebox/source/swipebox.css', __FILE__)
1164
  );
1165
 
 
 
1166
  $args = array_merge(
1167
  $args,
1168
  array(
@@ -1173,14 +1739,68 @@ class Responsive_Lightbox
1173
  )
1174
  );
1175
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1176
 
1177
- wp_enqueue_script(
1178
  'responsive-lightbox-front',
1179
  plugins_url('js/front.js', __FILE__),
1180
  array('jquery')
1181
  );
1182
 
1183
- wp_localize_script('responsive-lightbox-front', 'rlArgs', $args);
 
 
 
 
 
 
1184
  }
1185
 
1186
 
2
  /*
3
  Plugin Name: Responsive Lightbox
4
  Description: Responsive Lightbox allows users to view larger versions of images and galleries in a lightbox (overlay) effect optimized for mobile devices.
5
+ Version: 1.2.0
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
60
  'hide_bars' => TRUE,
61
  'hide_bars_delay' => 5000,
62
  'video_max_width' => 1080
63
+ ),
64
+ 'fancybox' => array(
65
+ 'modal' => FALSE,
66
+ 'show_overlay' => TRUE,
67
+ 'show_close_button' => TRUE,
68
+ 'enable_escape_button' => TRUE,
69
+ 'hide_on_overlay_click' => TRUE,
70
+ 'hide_on_content_click' => FALSE,
71
+ 'cyclic' => FALSE,
72
+ 'show_nav_arrows' => TRUE,
73
+ 'auto_scale' => TRUE,
74
+ 'scrolling' => 'yes',
75
+ 'center_on_scroll' => TRUE,
76
+ 'opacity' => TRUE,
77
+ 'overlay_opacity' => 70,
78
+ 'overlay_color' => '#666',
79
+ 'title_show' => TRUE,
80
+ 'title_position' => 'outside',
81
+ 'transitions' => 'fade',
82
+ 'easings' => 'swing',
83
+ 'speeds' => 300,
84
+ 'change_speed' => 300,
85
+ 'change_fade' => 100,
86
+ 'padding' => 5,
87
+ 'margin' => 5,
88
+ 'video_width' => 1080,
89
+ 'video_height' => 720
90
  )
91
  ),
92
+ 'version' => '1.2.0'
93
  );
94
  private $scripts = array();
95
  private $options = array();
103
  register_deactivation_hook(__FILE__, array(&$this, 'multisite_deactivation'));
104
 
105
  //changes from older versions
106
+ $db_version = get_option('responsive_lightbox_version');
107
+
108
+ if(version_compare(($db_version === FALSE ? '1.0.0' : $db_version), '1.0.5', '<'))
109
  {
110
  if(($array = get_option('rl_settings')) !== FALSE)
111
  {
122
  update_option('responsive_lightbox_version', $this->defaults['version']);
123
  }
124
 
125
+ if(version_compare(($db_version === FALSE ? '1.0.0' : $db_version), '1.2.0', '<'))
126
+ update_option('responsive_lightbox_version', $this->defaults['version']);
127
+
128
  $this->options['settings'] = array_merge($this->defaults['settings'], (($array = get_option('responsive_lightbox_settings')) === FALSE ? array() : $array));
129
  $this->options['configuration'] = array_merge($this->defaults['configuration'], (($array = get_option('responsive_lightbox_configuration')) === FALSE ? array() : $array));
130
 
154
 
155
  public function add_videos_lightbox_selector($content)
156
  {
157
+ preg_match_all('/<a(.*?)href=(?:\'|")((?:(?:http|https):\/\/)?(?:www\.)?((youtube\.com\/watch\?v=[a-z0-9_\-]+)|(vimeo\.com\/[0-9]{8,})))(?:\'|")(.*?)>/i', $content, $links);
158
 
159
  if(isset($links[0]))
160
  {
197
  if(isset($links[0]))
198
  {
199
  if($this->options['settings']['images_as_gallery'] === TRUE)
200
+ $rel_hash = '[gallery-'.wp_generate_password(4, FALSE, FALSE).']';
201
 
202
  foreach($links[0] as $id => $link)
203
  {
287
  'css' => __('CSS', 'responsive-lightbox'),
288
  'jquery' => __('jQuery', 'responsive-lightbox')
289
  )
290
+ ),
291
+ 'fancybox' => array(
292
+ 'name' => __('FancyBox', 'responsive-lightbox'),
293
+ 'transitions' => array(
294
+ 'elastic' => __('elastic', 'responsive-lightbox'),
295
+ 'fade' => __('fade', 'responsive-lightbox'),
296
+ 'none' => __('none', 'responsive-lightbox')
297
+ ),
298
+ 'scrollings' => array(
299
+ 'auto' => __('auto', 'responsive-lightbox'),
300
+ 'yes' => __('yes', 'responsive-lightbox'),
301
+ 'no' => __('no', 'responsive-lightbox')
302
+ ),
303
+ 'easings' => array(
304
+ 'swing' => __('swing', 'responsive-lightbox'),
305
+ 'linear' => __('linear', 'responsive-lightbox')
306
+ ),
307
+ 'positions' => array(
308
+ 'outside' => __('outside', 'responsive-lightbox'),
309
+ 'inside' => __('inside', 'responsive-lightbox'),
310
+ 'over' => __('over', 'responsive-lightbox')
311
+ )
312
  )
313
  );
314
 
436
  {
437
  add_settings_field('rl_sw_animation', __('Animation type', 'responsive-lightbox'), array(&$this, 'rl_sw_animation'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
438
  add_settings_field('rl_sw_hide_bars', __('Top and bottom bars', 'responsive-lightbox'), array(&$this, 'rl_sw_hide_bars'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
439
+ add_settings_field('rl_sw_video_max_width', __('Video max width', 'responsive-lightbox'), array(&$this, 'rl_sw_video_max_width'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
440
  }
441
  elseif($this->options['settings']['script'] === 'prettyphoto')
442
  {
459
  add_settings_field('rl_pp_keyboard_shortcuts', __('Keyboard shortcuts', 'responsive-lightbox'), array(&$this, 'rl_pp_keyboard_shortcuts'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
460
  add_settings_field('rl_pp_social', __('Social (Twitter, Facebook)', 'responsive-lightbox'), array(&$this, 'rl_pp_social'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
461
  }
462
+ elseif($this->options['settings']['script'] === 'fancybox')
463
+ {
464
+ add_settings_field('rl_fb_modal', __('Modal', 'responsive-lightbox'), array(&$this, 'rl_fb_modal'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
465
+ add_settings_field('rl_fb_show_overlay', __('Show overlay', 'responsive-lightbox'), array(&$this, 'rl_fb_show_overlay'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
466
+ add_settings_field('rl_fb_show_close_button', __('Show close button', 'responsive-lightbox'), array(&$this, 'rl_fb_show_close_button'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
467
+ add_settings_field('rl_fb_enable_escape_button', __('Enable escape button', 'responsive-lightbox'), array(&$this, 'rl_fb_enable_escape_button'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
468
+ add_settings_field('rl_fb_hide_on_overlay_click', __('Hide on overlay click', 'responsive-lightbox'), array(&$this, 'rl_fb_hide_on_overlay_click'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
469
+ add_settings_field('rl_fb_hide_on_content_click', __('Hide on content click', 'responsive-lightbox'), array(&$this, 'rl_fb_hide_on_content_click'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
470
+ add_settings_field('rl_fb_cyclic', __('Cyclic', 'responsive-lightbox'), array(&$this, 'rl_fb_cyclic'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
471
+ add_settings_field('rl_fb_show_nav_arrows', __('Show nav arrows', 'responsive-lightbox'), array(&$this, 'rl_fb_show_nav_arrows'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
472
+ add_settings_field('rl_fb_auto_scale', __('Auto scale', 'responsive-lightbox'), array(&$this, 'rl_fb_auto_scale'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
473
+ add_settings_field('rl_fb_scrolling', __('Scrolling (in/out)', 'responsive-lightbox'), array(&$this, 'rl_fb_scrolling'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
474
+ add_settings_field('rl_fb_center_on_scroll', __('Center on scroll', 'responsive-lightbox'), array(&$this, 'rl_fb_center_on_scroll'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
475
+ add_settings_field('rl_fb_opacity', __('Opacity', 'responsive-lightbox'), array(&$this, 'rl_fb_opacity'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
476
+ add_settings_field('rl_fb_overlay_opacity', __('Overlay opacity', 'responsive-lightbox'), array(&$this, 'rl_fb_overlay_opacity'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
477
+ add_settings_field('rl_fb_overlay_color', __('Overlay color', 'responsive-lightbox'), array(&$this, 'rl_fb_overlay_color'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
478
+ add_settings_field('rl_fb_title_show', __('Title show', 'responsive-lightbox'), array(&$this, 'rl_fb_title_show'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
479
+ add_settings_field('rl_fb_title_position', __('Title position', 'responsive-lightbox'), array(&$this, 'rl_fb_title_position'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
480
+ add_settings_field('rl_fb_transitions', __('Transition (in/out)', 'responsive-lightbox'), array(&$this, 'rl_fb_transitions'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
481
+ add_settings_field('rl_fb_easings', __('Easings (in/out)', 'responsive-lightbox'), array(&$this, 'rl_fb_easings'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
482
+ add_settings_field('rl_fb_speeds', __('Speed (in/out)', 'responsive-lightbox'), array(&$this, 'rl_fb_speeds'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
483
+ add_settings_field('rl_fb_change_speed', __('Change speed', 'responsive-lightbox'), array(&$this, 'rl_fb_change_speed'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
484
+ add_settings_field('rl_fb_change_fade', __('Change fade', 'responsive-lightbox'), array(&$this, 'rl_fb_change_fade'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
485
+ add_settings_field('rl_fb_padding', __('Padding', 'responsive-lightbox'), array(&$this, 'rl_fb_padding'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
486
+ add_settings_field('rl_fb_margin', __('Margin', 'responsive-lightbox'), array(&$this, 'rl_fb_margin'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
487
+ add_settings_field('rl_fb_video_width', __('Video width', 'responsive-lightbox'), array(&$this, 'rl_fb_video_width'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
488
+ add_settings_field('rl_fb_video_height', __('Video height', 'responsive-lightbox'), array(&$this, 'rl_fb_video_height'), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration');
489
+ }
490
  }
491
 
492
 
493
  public function rl_script()
494
  {
495
  echo '
496
+ <div id="rl_script" class="wplikebtns">';
497
 
498
  foreach($this->scripts as $val => $trans)
499
  {
500
  echo '
501
+ <input id="rl-script-'.$val.'" type="radio" name="responsive_lightbox_settings[script]" value="'.esc_attr($val).'" '.checked($val, $this->options['settings']['script'], FALSE).' />
502
  <label for="rl-script-'.$val.'">'.$trans['name'].'</label>';
503
  }
504
 
511
  public function rl_selector()
512
  {
513
  echo '
514
+ <div id="rl_selector">
515
+ <input type="text" value="'.esc_attr($this->options['settings']['selector']).'" name="responsive_lightbox_settings[selector]" />
516
  <p class="description">'.__('Select to which rel selector lightbox effect will be applied to.', 'responsive-lightbox').'</p>
517
  </div>';
518
  }
521
  public function rl_galleries()
522
  {
523
  echo '
524
+ <div id="rl_galleries" class="wplikebtns">';
525
 
526
  foreach($this->choices as $val => $trans)
527
  {
528
  echo '
529
+ <input id="rl-galleries-'.$val.'" type="radio" name="responsive_lightbox_settings[galleries]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['settings']['galleries'], FALSE).' />
530
  <label for="rl-galleries-'.$val.'">'.$trans.'</label>';
531
  }
532
 
533
  echo '
534
+ <p class="description">'.__('Add lightbox to WordPress image galleries by default.', 'responsive-lightbox').'</p>
535
  </div>';
536
  }
537
 
539
  public function rl_videos()
540
  {
541
  echo '
542
+ <div id="rl_videos" class="wplikebtns">';
543
 
544
  foreach($this->choices as $val => $trans)
545
  {
546
  echo '
547
+ <input id="rl-videos-'.$val.'" type="radio" name="responsive_lightbox_settings[videos]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['settings']['videos'], FALSE).' />
548
  <label for="rl-videos-'.$val.'">'.$trans.'</label>';
549
  }
550
 
551
  echo '
552
+ <p class="description">'.__('Add lightbox to YouTube and Vimeo video links by default.', 'responsive-lightbox').'</p>
553
  </div>';
554
  }
555
 
557
  public function rl_image_links()
558
  {
559
  echo '
560
+ <div id="rl_image_links" class="wplikebtns">';
561
 
562
  foreach($this->choices as $val => $trans)
563
  {
564
  echo '
565
+ <input id="rl-image-links-'.$val.'" type="radio" name="responsive_lightbox_settings[image_links]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['settings']['image_links'], FALSE).' />
566
  <label for="rl-image-links-'.$val.'">'.$trans.'</label>';
567
  }
568
 
569
  echo '
570
+ <p class="description">'.__('Add lightbox to WordPress image links by default.', 'responsive-lightbox').'</p>
571
  </div>';
572
  }
573
 
575
  public function rl_images_as_gallery()
576
  {
577
  echo '
578
+ <div id="rl_images_as_gallery" class="wplikebtns">';
579
 
580
  foreach($this->choices as $val => $trans)
581
  {
582
  echo '
583
+ <input id="rl-images-as-gallery-'.$val.'" type="radio" name="responsive_lightbox_settings[images_as_gallery]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['settings']['images_as_gallery'], FALSE).' />
584
  <label for="rl-images-as-gallery-'.$val.'">'.$trans.'</label>';
585
  }
586
 
587
  echo '
588
+ <p class="description">'.__('Display single post images as a gallery.', 'responsive-lightbox').'</p>
589
  </div>';
590
  }
591
 
593
  public function rl_deactivation_delete()
594
  {
595
  echo '
596
+ <div id="rl_deactivation_delete" class="wplikebtns">';
597
 
598
  foreach($this->choices as $val => $trans)
599
  {
600
  echo '
601
+ <input id="rl-deactivation-delete-'.$val.'" type="radio" name="responsive_lightbox_settings[deactivation_delete]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['settings']['deactivation_delete'], FALSE).' />
602
  <label for="rl-deactivation-delete-'.$val.'">'.$trans.'</label>';
603
  }
604
 
605
  echo '
606
+ <p class="description">'.__('Delete settings on plugin deactivation.', 'responsive-lightbox').'</p>
607
  </div>';
608
  }
609
 
611
  public function rl_sw_animation()
612
  {
613
  echo '
614
+ <div id="rl_sw_animation" class="wplikebtns">';
615
 
616
  foreach($this->scripts['swipebox']['animations'] as $val => $trans)
617
  {
618
  echo '
619
+ <input id="rl-sw-animation-'.$val.'" type="radio" name="responsive_lightbox_configuration[swipebox][animation]" value="'.esc_attr($val).'" '.checked($val, $this->options['configuration']['swipebox']['animation'], FALSE).' />
620
+ <label for="rl-sw-animation-'.$val.'">'.$trans.'</label>';
621
  }
622
 
623
  echo '
629
  public function rl_sw_hide_bars()
630
  {
631
  echo '
632
+ <div id="rl_sw_hide_bars" class="wplikebtns">';
633
 
634
  foreach($this->choices as $val => $trans)
635
  {
636
  echo '
637
+ <input id="rl-sw-hide-bars-'.$val.'" type="radio" name="responsive_lightbox_configuration[swipebox][hide_bars]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['swipebox']['hide_bars'], FALSE).' />
638
+ <label for="rl-sw-hide-bars-'.$val.'">'.$trans.'</label>';
639
  }
640
 
641
  echo '
642
  <p class="description">'.__('Disable if you don\'t want to top and bottom bars to be hidden after a period of time.', 'responsive-lightbox').'</p>
643
+ <div id="rl_sw_hide_bars_delay"'.($this->options['configuration']['swipebox']['hide_bars'] === FALSE ? ' style="display: none;"' : '').'>
644
+ <input type="text" name="responsive_lightbox_configuration[swipebox][hide_bars_delay]" value="'.esc_attr($this->options['configuration']['swipebox']['hide_bars_delay']).'" />
645
+ <p class="description">'.__('Enter the time after which the top and bottom bars will be hidden (when hiding is enabled).', 'responsive-lightbox').'</p>
646
+ </div>
647
  </div>';
648
  }
649
 
650
 
651
+ public function rl_sw_video_max_width()
652
  {
653
  echo '
654
+ <div id="rl_sw_video_max_width">
655
+ <input type="text" name="responsive_lightbox_configuration[swipebox][video_max_width]" value="'.esc_attr($this->options['configuration']['swipebox']['video_max_width']).'" />
656
+ <p class="description">'.__('Enter the max video width in a lightbox.', 'responsive-lightbox').'</p>
657
  </div>';
658
  }
659
 
661
  public function rl_pp_animation_speed()
662
  {
663
  echo '
664
+ <div id="rl_pp_animation_speed" class="wplikebtns">';
665
 
666
  foreach($this->scripts['prettyphoto']['animation_speeds'] as $val => $trans)
667
  {
668
  echo '
669
+ <input id="rl-pp-animation-speed-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][animation_speed]" value="'.esc_attr($val).'" '.checked($val, $this->options['configuration']['prettyphoto']['animation_speed'], FALSE).' />
670
+ <label for="rl-pp-animation-speed-'.$val.'">'.$trans.'</label>';
671
  }
672
 
673
  echo '
674
+ <p class="description">'.__('Select animation speed for lightbox effect.', 'responsive-lightbox').'</p>
675
  </div>';
676
  }
677
 
679
  public function rl_pp_slideshow()
680
  {
681
  echo '
682
+ <div id="rl_pp_slideshow" class="wplikebtns">';
683
 
684
  foreach($this->choices as $val => $trans)
685
  {
686
  echo '
687
+ <input id="rl-pp-slideshow-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][slideshow]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['slideshow'], FALSE).' />
688
+ <label for="rl-pp-slideshow-'.$val.'">'.$trans.'</label>';
689
  }
690
 
691
  echo '
692
+ <p class="description">'.__('Display images as slideshow.', 'responsive-lightbox').'</p>
693
+ <div id="rl_pp_slideshow_delay"'.($this->options['configuration']['prettyphoto']['slideshow'] === FALSE ? ' style="display: none;"' : '').'>
694
+ <input type="text" name="responsive_lightbox_configuration[prettyphoto][slideshow_delay]" value="'.esc_attr($this->options['configuration']['prettyphoto']['slideshow_delay']).'" />
695
+ <p class="description">'.__('Enter time (in miliseconds).', 'responsive-lightbox').'</p>
696
+ </div>
697
  </div>';
698
  }
699
 
701
  public function rl_pp_slideshow_autoplay()
702
  {
703
  echo '
704
+ <div id="rl_pp_slideshow_autoplay" class="wplikebtns">';
705
 
706
  foreach($this->choices as $val => $trans)
707
  {
708
  echo '
709
+ <input id="rl-pp-slideshow-autoplay-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][slideshow_autoplay]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['slideshow_autoplay'], FALSE).' />
710
+ <label for="rl-pp-slideshow-autoplay-'.$val.'">'.$trans.'</label>';
711
  }
712
 
713
  echo '
714
+ <p class="description">'.__('Automatically start slideshow.', 'responsive-lightbox').'</p>
715
  </div>';
716
  }
717
 
719
  public function rl_pp_opacity()
720
  {
721
  echo '
722
+ <div id="rl_pp_opacity">
723
+ <input type="text" id="rl_pp_opacity_input" class="hide-if-js" name="responsive_lightbox_configuration[prettyphoto][opacity]" value="'.esc_attr($this->options['configuration']['prettyphoto']['opacity']).'" />
724
  <div class="wplike-slider">
725
+ <span class="left hide-if-no-js">0</span><span class="middle" id="rl_pp_opacity_span" title="'.esc_attr($this->options['configuration']['prettyphoto']['opacity']).'"></span><span class="right hide-if-no-js">100</span>
726
  </div>
727
+ <p class="description">'.__('Value between 0 and 100, 100 for no opacity.', 'responsive-lightbox').'</p>
728
  </div>';
729
  }
730
 
732
  public function rl_pp_title()
733
  {
734
  echo '
735
+ <div id="rl_pp_title" class="wplikebtns">';
736
 
737
  foreach($this->choices as $val => $trans)
738
  {
739
  echo '
740
+ <input id="rl-pp-show-title-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][show_title]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['show_title'], FALSE).' />
741
+ <label for="rl-pp-show-title-'.$val.'">'.$trans.'</label>';
742
  }
743
 
744
  echo '
745
+ <p class="description">'.__('Display image tiltle.', 'responsive-lightbox').'</p>
746
  </div>';
747
  }
748
 
750
  public function rl_pp_allow_resize()
751
  {
752
  echo '
753
+ <div id="rl_pp_allow_resize" class="wplikebtns">';
754
 
755
  foreach($this->choices as $val => $trans)
756
  {
757
  echo '
758
+ <input id="rl-pp-allow-resize-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][allow_resize]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['allow_resize'], FALSE).' />
759
+ <label for="rl-pp-allow-resize-'.$val.'">'.$trans.'</label>';
760
  }
761
 
762
  echo '
768
  public function rl_pp_width()
769
  {
770
  echo '
771
+ <div id="rl_pp_width">
772
+ <input type="text" name="responsive_lightbox_configuration[prettyphoto][width]" value="'.esc_attr($this->options['configuration']['prettyphoto']['width']).'" />
773
  <p class="description">'.__('in pixels', 'responsive-lightbox').'</p>
774
  </div>';
775
  }
778
  public function rl_pp_height()
779
  {
780
  echo '
781
+ <div id="rl_pp_height">
782
+ <input type="text" name="responsive_lightbox_configuration[prettyphoto][height]" value="'.esc_attr($this->options['configuration']['prettyphoto']['height']).'" />
783
  <p class="description">'.__('in pixels', 'responsive-lightbox').'</p>
784
  </div>';
785
  }
788
  public function rl_pp_theme()
789
  {
790
  echo '
791
+ <div id="rl_pp_theme" class="wplikebtns">';
792
 
793
  foreach($this->scripts['prettyphoto']['themes'] as $val => $trans)
794
  {
795
  echo '
796
+ <input id="rl-pp-theme-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][theme]" value="'.esc_attr($val).'" '.checked($val, $this->options['configuration']['prettyphoto']['theme'], FALSE).' />
797
+ <label for="rl-pp-theme-'.$val.'">'.$trans.'</label>';
798
  }
799
 
800
  echo '
801
+ <p class="description">'.__('Select theme for lightbox effect.', 'responsive-lightbox').'</p>
802
  </div>';
803
  }
804
 
806
  public function rl_pp_horizontal_padding()
807
  {
808
  echo '
809
+ <div id="rl_pp_horizontal_padding">
810
+ <input type="text" name="responsive_lightbox_configuration[prettyphoto][horizontal_padding]" value="'.esc_attr($this->options['configuration']['prettyphoto']['horizontal_padding']).'" />
811
+ <p class="description">'.__('Horizontal padding (in pixels).', 'responsive-lightbox').'</p>
812
  </div>';
813
  }
814
 
816
  public function rl_pp_hide_flash()
817
  {
818
  echo '
819
+ <div id="rl_pp_hide_flash" class="wplikebtns">';
820
 
821
  foreach($this->choices as $val => $trans)
822
  {
823
  echo '
824
+ <input id="rl-pp-hide-flash-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][hide_flash]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['hide_flash'], FALSE).' />
825
+ <label for="rl-pp-hide-flash-'.$val.'">'.$trans.'</label>';
826
  }
827
 
828
  echo '
829
+ <p class="description">'.__('Hides all the flash object on a page. Enable this if flash appears over prettyPhoto.', 'responsive-lightbox').'</p>
830
  </div>';
831
  }
832
 
834
  public function rl_pp_wmode()
835
  {
836
  echo '
837
+ <div id="rl_pp_wmode" class="wplikebtns">';
838
 
839
  foreach($this->scripts['prettyphoto']['wmodes'] as $val => $trans)
840
  {
841
  echo '
842
+ <input id="rl-pp-wmode-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][wmode]" value="'.esc_attr($val).'" '.checked($val, $this->options['configuration']['prettyphoto']['wmode'], FALSE).' />
843
+ <label for="rl-pp-wmode-'.$val.'">'.$trans.'</label>';
844
  }
845
 
846
  echo '
847
+ <p class="description">'.__('Select flash window mode.', 'responsive-lightbox').'</p>
848
  </div>';
849
  }
850
 
852
  public function rl_pp_video_autoplay()
853
  {
854
  echo '
855
+ <div id="rl_pp_video_autoplay" class="wplikebtns">';
856
 
857
  foreach($this->choices as $val => $trans)
858
  {
859
  echo '
860
+ <input id="rl-pp-video-autoplay-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][video_autoplay]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['video_autoplay'], FALSE).' />
861
+ <label for="rl-pp-video-autoplay-'.$val.'">'.$trans.'</label>';
862
  }
863
 
864
  echo '
865
+ <p class="description">'.__('Automatically start videos.', 'responsive-lightbox').'</p>
866
  </div>';
867
  }
868
 
870
  public function rl_pp_modal()
871
  {
872
  echo '
873
+ <div id="rl_pp_modal" class="wplikebtns">';
874
 
875
  foreach($this->choices as $val => $trans)
876
  {
877
  echo '
878
+ <input id="rl-pp-modal-close-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][modal]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['modal'], FALSE).' />
879
+ <label for="rl-pp-modal-close-'.$val.'">'.$trans.'</label>';
880
  }
881
 
882
  echo '
883
+ <p class="description">'.__('If set to true, only the close button will close the window.', 'responsive-lightbox').'</p>
884
  </div>';
885
  }
886
 
888
  public function rl_pp_deeplinking()
889
  {
890
  echo '
891
+ <div id="rl_pp_deeplinking" class="wplikebtns">';
892
 
893
  foreach($this->choices as $val => $trans)
894
  {
895
  echo '
896
+ <input id="rl-pp-deeplinking-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][deeplinking]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['deeplinking'], FALSE).' />
897
+ <label for="rl-pp-deeplinking-'.$val.'">'.$trans.'</label>';
898
  }
899
 
900
  echo '
901
+ <p class="description">'.__('Allow prettyPhoto to update the url to enable deeplinking.', 'responsive-lightbox').'</p>
902
  </div>';
903
  }
904
 
906
  public function rl_pp_overlay_gallery()
907
  {
908
  echo '
909
+ <div id="rl_pp_overlay_gallery" class="wplikebtns">';
910
 
911
  foreach($this->choices as $val => $trans)
912
  {
913
  echo '
914
+ <input id="rl-pp-overlay-gallery-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][overlay_gallery]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['overlay_gallery'], FALSE).' />
915
+ <label for="rl-pp-overlay-gallery-'.$val.'">'.$trans.'</label>';
916
  }
917
 
918
  echo '
919
+ <p class="description">'.__('If enabled, a gallery will overlay the fullscreen image on mouse over.', 'responsive-lightbox').'</p>
920
  </div>';
921
  }
922
 
924
  public function rl_pp_keyboard_shortcuts()
925
  {
926
  echo '
927
+ <div id="rl_pp_keyboard_shortcuts" class="wplikebtns">';
928
 
929
  foreach($this->choices as $val => $trans)
930
  {
931
  echo '
932
+ <input id="rl-pp-keyboard-shortcuts-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][keyboard_shortcuts]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['keyboard_shortcuts'], FALSE).' />
933
+ <label for="rl-pp-keyboard-shortcuts-'.$val.'">'.$trans.'</label>';
934
  }
935
 
936
  echo '
937
+ <p class="description">'.__('Set to false if you open forms inside prettyPhoto.', 'responsive-lightbox').'</p>
938
  </div>';
939
  }
940
 
942
  public function rl_pp_social()
943
  {
944
  echo '
945
+ <div id="rl_pp_social" class="wplikebtns">';
946
+
947
+ foreach($this->choices as $val => $trans)
948
+ {
949
+ echo '
950
+ <input id="rl-pp-social-'.$val.'" type="radio" name="responsive_lightbox_configuration[prettyphoto][social]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['prettyphoto']['social'], FALSE).' />
951
+ <label for="rl-pp-social-'.$val.'">'.$trans.'</label>';
952
+ }
953
+
954
+ echo '
955
+ <p class="description">'.__('Display links to Facebook and Twitter.', 'responsive-lightbox').'</p>
956
+ </div>';
957
+ }
958
+
959
+
960
+ public function rl_fb_transitions()
961
+ {
962
+ echo '
963
+ <div id="rl_fb_transition" class="wplikebtns">';
964
+
965
+ foreach($this->scripts['fancybox']['transitions'] as $val => $trans)
966
+ {
967
+ echo '
968
+ <input id="rl-fb-transitions-'.$val.'" type="radio" name="responsive_lightbox_configuration[fancybox][transitions]" value="'.esc_attr($val).'" '.checked($val, $this->options['configuration']['fancybox']['transitions'], FALSE).' />
969
+ <label for="rl-fb-transitions-'.$val.'">'.$trans.'</label>';
970
+ }
971
+
972
+ echo '
973
+ <p class="description">'.__('The transition type.', 'responsive-lightbox').'</p>
974
+ </div>';
975
+ }
976
+
977
+
978
+ public function rl_fb_padding()
979
+ {
980
+ echo '
981
+ <div id="rl_fb_padding">
982
+ <input type="text" name="responsive_lightbox_configuration[fancybox][padding]" value="'.esc_attr($this->options['configuration']['fancybox']['padding']).'" />
983
+ <p class="description">'.__('Space between FancyBox wrapper and content.', 'responsive-lightbox').'</p>
984
+ </div>';
985
+ }
986
+
987
+
988
+ public function rl_fb_margin()
989
+ {
990
+ echo '
991
+ <div id="rl_fb_margin">
992
+ <input type="text" name="responsive_lightbox_configuration[fancybox][margin]" value="'.esc_attr($this->options['configuration']['fancybox']['margin']).'" />
993
+ <p class="description">'.__('Space between viewport and FancyBox wrapper.', 'responsive-lightbox').'</p>
994
+ </div>';
995
+ }
996
+
997
+
998
+ public function rl_fb_modal()
999
+ {
1000
+ echo '
1001
+ <div id="rl_fb_modal" class="wplikebtns">';
1002
+
1003
+ foreach($this->choices as $val => $trans)
1004
+ {
1005
+ echo '
1006
+ <input id="rl-fb-modal-'.$val.'" type="radio" name="responsive_lightbox_configuration[fancybox][modal]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['modal'], FALSE).' />
1007
+ <label for="rl-fb-modal-'.$val.'">'.$trans.'</label>';
1008
+ }
1009
+
1010
+ echo '
1011
+ <p class="description">'.__('When true, "overlayShow" is set to TRUE and "hideOnOverlayClick", "hideOnContentClick", "enableEscapeButton", "showCloseButton" are set to FALSE.', 'responsive-lightbox').'</p>
1012
+ </div>';
1013
+ }
1014
+
1015
+
1016
+ public function rl_fb_show_overlay()
1017
+ {
1018
+ echo '
1019
+ <div id="rl_fb_show_overlay" class="wplikebtns">';
1020
+
1021
+ foreach($this->choices as $val => $trans)
1022
+ {
1023
+ echo '
1024
+ <input id="rl-fb-show-overlay-'.$val.'" type="radio" name="responsive_lightbox_configuration[fancybox][show_overlay]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['show_overlay'], FALSE).' '.disabled($this->options['configuration']['fancybox']['modal'], TRUE, FALSE).' />
1025
+ <label for="rl-fb-show-overlay-'.$val.'">'.$trans.'</label>';
1026
+ }
1027
+
1028
+ echo '
1029
+ <p class="description">'.__('Toggle overlay.', 'responsive-lightbox').'</p>
1030
+ </div>';
1031
+ }
1032
+
1033
+
1034
+ public function rl_fb_show_close_button()
1035
+ {
1036
+ echo '
1037
+ <div id="rl_fb_show_close_button" class="wplikebtns">';
1038
+
1039
+ foreach($this->choices as $val => $trans)
1040
+ {
1041
+ echo '
1042
+ <input id="rl-fb-show-close-button-'.$val.'" type="radio" name="responsive_lightbox_configuration[fancybox][show_close_button]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['show_close_button'], FALSE).' '.disabled($this->options['configuration']['fancybox']['modal'], TRUE, FALSE).' />
1043
+ <label for="rl-fb-show-close-button-'.$val.'">'.$trans.'</label>';
1044
+ }
1045
+
1046
+ echo '
1047
+ <p class="description">'.__('Toggle close button.', 'responsive-lightbox').'</p>
1048
+ </div>';
1049
+ }
1050
+
1051
+
1052
+ public function rl_fb_enable_escape_button()
1053
+ {
1054
+ echo '
1055
+ <div id="rl_fb_enable_escape_button" class="wplikebtns">';
1056
+
1057
+ foreach($this->choices as $val => $trans)
1058
+ {
1059
+ echo '
1060
+ <input id="rl-fb-enable-escape-button-'.$val.'" type="radio" name="responsive_lightbox_configuration[fancybox][enable_escape_button]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['enable_escape_button'], FALSE).' '.disabled($this->options['configuration']['fancybox']['modal'], TRUE, FALSE).' />
1061
+ <label for="rl-fb-enable-escape-button-'.$val.'">'.$trans.'</label>';
1062
+ }
1063
+
1064
+ echo '
1065
+ <p class="description">'.__('Toggle if pressing Esc button closes FancyBox.', 'responsive-lightbox').'</p>
1066
+ </div>';
1067
+ }
1068
+
1069
+
1070
+ public function rl_fb_hide_on_overlay_click()
1071
+ {
1072
+ echo '
1073
+ <div id="rl_fb_hide_on_overlay_click" class="wplikebtns">';
1074
+
1075
+ foreach($this->choices as $val => $trans)
1076
+ {
1077
+ echo '
1078
+ <input id="rl-fb-hide-on-overlay-click-'.$val.'" type="radio" name="responsive_lightbox_configuration[fancybox][hide_on_overlay_click]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['hide_on_overlay_click'], FALSE).' '.disabled($this->options['configuration']['fancybox']['modal'], TRUE, FALSE).' />
1079
+ <label for="rl-fb-hide-on-overlay-click-'.$val.'">'.$trans.'</label>';
1080
+ }
1081
+
1082
+ echo '
1083
+ <p class="description">'.__('Toggle if clicking the overlay should close FancyBox.', 'responsive-lightbox').'</p>
1084
+ </div>';
1085
+ }
1086
+
1087
+
1088
+ public function rl_fb_hide_on_content_click()
1089
+ {
1090
+ echo '
1091
+ <div id="rl_fb_hide_on_content_click" class="wplikebtns">';
1092
+
1093
+ foreach($this->choices as $val => $trans)
1094
+ {
1095
+ echo '
1096
+ <input id="rl-fb-hide-on-content-click-'.$val.'" type="radio" name="responsive_lightbox_configuration[fancybox][hide_on_content_click]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['hide_on_content_click'], FALSE).' '.disabled($this->options['configuration']['fancybox']['modal'], TRUE, FALSE).' />
1097
+ <label for="rl-fb-hide-on-content-click-'.$val.'">'.$trans.'</label>';
1098
+ }
1099
+
1100
+ echo '
1101
+ <p class="description">'.__('Toggle if clicking the content should close FancyBox.', 'responsive-lightbox').'</p>
1102
+ </div>';
1103
+ }
1104
+
1105
+
1106
+ public function rl_fb_cyclic()
1107
+ {
1108
+ echo '
1109
+ <div id="rl_fb_cyclic" class="wplikebtns">';
1110
+
1111
+ foreach($this->choices as $val => $trans)
1112
+ {
1113
+ echo '
1114
+ <input id="rl-fb-cyclic-'.$val.'" type="radio" name="responsive_lightbox_configuration[fancybox][cyclic]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['cyclic'], FALSE).' />
1115
+ <label for="rl-fb-cyclic-'.$val.'">'.$trans.'</label>';
1116
+ }
1117
+
1118
+ echo '
1119
+ <p class="description">'.__('When true, galleries will be cyclic, allowing you to keep pressing next/back.', 'responsive-lightbox').'</p>
1120
+ </div>';
1121
+ }
1122
+
1123
+
1124
+ public function rl_fb_show_nav_arrows()
1125
+ {
1126
+ echo '
1127
+ <div id="rl_fb_show_nav_arrows" class="wplikebtns">';
1128
+
1129
+ foreach($this->choices as $val => $trans)
1130
+ {
1131
+ echo '
1132
+ <input id="rl-fb-show-nav-arrows-'.$val.'" type="radio" name="responsive_lightbox_configuration[fancybox][show_nav_arrows]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['show_nav_arrows'], FALSE).' />
1133
+ <label for="rl-fb-show-nav-arrows-'.$val.'">'.$trans.'</label>';
1134
+ }
1135
+
1136
+ echo '
1137
+ <p class="description">'.__('Toggle navigation arrows.', 'responsive-lightbox').'</p>
1138
+ </div>';
1139
+ }
1140
+
1141
+
1142
+ public function rl_fb_auto_scale()
1143
+ {
1144
+ echo '
1145
+ <div id="rl_fb_auto_scale" class="wplikebtns">';
1146
+
1147
+ foreach($this->choices as $val => $trans)
1148
+ {
1149
+ echo '
1150
+ <input id="rl-fb-auto-scale-'.$val.'" type="radio" name="responsive_lightbox_configuration[fancybox][auto_scale]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['auto_scale'], FALSE).' />
1151
+ <label for="rl-fb-auto-scale-'.$val.'">'.$trans.'</label>';
1152
+ }
1153
+
1154
+ echo '
1155
+ <p class="description">'.__('If true, FancyBox is scaled to fit in viewport.', 'responsive-lightbox').'</p>
1156
+ </div>';
1157
+ }
1158
+
1159
+
1160
+ public function rl_fb_scrolling()
1161
+ {
1162
+ echo '
1163
+ <div id="rl_fb_scrolling" class="wplikebtns">';
1164
+
1165
+ foreach($this->scripts['fancybox']['scrollings'] as $val => $trans)
1166
+ {
1167
+ echo '
1168
+ <input id="rl-fb-scrolling-'.$val.'" type="radio" name="responsive_lightbox_configuration[fancybox][scrolling]" value="'.esc_attr($val).'" '.checked($val, $this->options['configuration']['fancybox']['scrolling'], FALSE).' />
1169
+ <label for="rl-fb-scrolling-'.$val.'">'.$trans.'</label>';
1170
+ }
1171
+
1172
+ echo '
1173
+ <p class="description">'.__('Set the overflow CSS property to create or hide scrollbars.', 'responsive-lightbox').'</p>
1174
+ </div>';
1175
+ }
1176
+
1177
+
1178
+ public function rl_fb_center_on_scroll()
1179
+ {
1180
+ echo '
1181
+ <div id="rl_fb_center_on_scroll" class="wplikebtns">';
1182
+
1183
+ foreach($this->choices as $val => $trans)
1184
+ {
1185
+ echo '
1186
+ <input id="rl-fb-center-on-scroll-'.$val.'" type="radio" name="responsive_lightbox_configuration[fancybox][center_on_scroll]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['center_on_scroll'], FALSE).' />
1187
+ <label for="rl-fb-center-on-scroll-'.$val.'">'.$trans.'</label>';
1188
+ }
1189
+
1190
+ echo '
1191
+ <p class="description">'.__('When true, FancyBox is centered while scrolling page.', 'responsive-lightbox').'</p>
1192
+ </div>';
1193
+ }
1194
+
1195
+
1196
+ public function rl_fb_opacity()
1197
+ {
1198
+ echo '
1199
+ <div id="rl_fb_opacity" class="wplikebtns">';
1200
 
1201
  foreach($this->choices as $val => $trans)
1202
  {
1203
  echo '
1204
+ <input id="rl-fb-opacity-'.$val.'" type="radio" name="responsive_lightbox_configuration[fancybox][opacity]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['opacity'], FALSE).' />
1205
+ <label for="rl-fb-opacity-'.$val.'">'.$trans.'</label>';
1206
  }
1207
 
1208
  echo '
1209
+ <p class="description">'.__('When true, transparency of content is changed for elastic transitions.', 'responsive-lightbox').'</p>
1210
+ </div>';
1211
+ }
1212
+
1213
+
1214
+ public function rl_fb_overlay_opacity()
1215
+ {
1216
+ echo '
1217
+ <div id="rl_fb_overlay_opacity">
1218
+ <input type="text" id="rl_fb_overlay_opacity_input" class="hide-if-js" name="responsive_lightbox_configuration[fancybox][overlay_opacity]" value="'.esc_attr($this->options['configuration']['fancybox']['overlay_opacity']).'" />
1219
+ <div class="wplike-slider">
1220
+ <span class="left hide-if-no-js">0</span><span class="middle" id="rl_fb_overlay_opacity_span" title="'.esc_attr($this->options['configuration']['fancybox']['overlay_opacity']).'"></span><span class="right hide-if-no-js">100</span>
1221
+ </div>
1222
+ <p class="description">'.__('Opacity of the overlay.', 'responsive-lightbox').'</p>
1223
+ </div>';
1224
+ }
1225
+
1226
+
1227
+ public function rl_fb_overlay_color()
1228
+ {
1229
+ echo '
1230
+ <div id="rl_fb_overlay_color">
1231
+ <input type="text" value="'.esc_attr($this->options['configuration']['fancybox']['overlay_color']).'" id="rl_fb_overlay_color_input" name="responsive_lightbox_configuration[fancybox][overlay_color]" data-default-color="'.$this->defaults['configuration']['fancybox']['overlay_color'].'" />
1232
+ <p class="description">'.__('Color of the overlay.', 'responsive-lightbox').'</p>
1233
+ </div>';
1234
+ }
1235
+
1236
+
1237
+ public function rl_fb_title_show()
1238
+ {
1239
+ echo '
1240
+ <div id="rl_fb_title_show" class="wplikebtns">';
1241
+
1242
+ foreach($this->choices as $val => $trans)
1243
+ {
1244
+ echo '
1245
+ <input id="rl-fb-title-show-'.$val.'" type="radio" name="responsive_lightbox_configuration[fancybox][title_show]" value="'.esc_attr($val).'" '.checked(($val === 'yes' ? TRUE : FALSE), $this->options['configuration']['fancybox']['title_show'], FALSE).' />
1246
+ <label for="rl-fb-title-show-'.$val.'">'.$trans.'</label>';
1247
+ }
1248
+
1249
+ echo '
1250
+ <p class="description">'.__('Toggle title.', 'responsive-lightbox').'</p>
1251
+ </div>';
1252
+ }
1253
+
1254
+
1255
+ public function rl_fb_title_position()
1256
+ {
1257
+ echo '
1258
+ <div id="rl_fb_title_position" class="wplikebtns">';
1259
+
1260
+ foreach($this->scripts['fancybox']['positions'] as $val => $trans)
1261
+ {
1262
+ echo '
1263
+ <input id="rl-fb-title-position-'.$val.'" type="radio" name="responsive_lightbox_configuration[fancybox][title_position]" value="'.esc_attr($val).'" '.checked($val, $this->options['configuration']['fancybox']['title_position'], FALSE).' />
1264
+ <label for="rl-fb-title-position-'.$val.'">'.$trans.'</label>';
1265
+ }
1266
+
1267
+ echo '
1268
+ <p class="description">'.__('The position of title.', 'responsive-lightbox').'</p>
1269
+ </div>';
1270
+ }
1271
+
1272
+
1273
+ public function rl_fb_easings()
1274
+ {
1275
+ echo '
1276
+ <div id="rl_fb_easings" class="wplikebtns">';
1277
+
1278
+ foreach($this->scripts['fancybox']['easings'] as $val => $trans)
1279
+ {
1280
+ echo '
1281
+ <input id="rl-fb-easings-'.$val.'" type="radio" name="responsive_lightbox_configuration[fancybox][easings]" value="'.esc_attr($val).'" '.checked($val, $this->options['configuration']['fancybox']['easings'], FALSE).' />
1282
+ <label for="rl-fb-easings-'.$val.'">'.$trans.'</label>';
1283
+ }
1284
+
1285
+ echo '
1286
+ <p class="description">'.__('Easing used for elastic animations.', 'responsive-lightbox').'</p>
1287
+ </div>';
1288
+ }
1289
+
1290
+
1291
+ public function rl_fb_speeds()
1292
+ {
1293
+ echo '
1294
+ <div id="rl_fb_speeds">
1295
+ <input type="text" value="'.esc_attr($this->options['configuration']['fancybox']['speeds']).'" name="responsive_lightbox_configuration[fancybox][speeds]" />
1296
+ <p class="description">'.__('Speed of the fade and elastic transitions, in milliseconds.', 'responsive-lightbox').'</p>
1297
+ </div>';
1298
+ }
1299
+
1300
+
1301
+ public function rl_fb_change_speed()
1302
+ {
1303
+ echo '
1304
+ <div id="rl_fb_change_speed">
1305
+ <input type="text" value="'.esc_attr($this->options['configuration']['fancybox']['change_speed']).'" name="responsive_lightbox_configuration[fancybox][change_speed]" />
1306
+ <p class="description">'.__('Speed of resizing when changing gallery items, in milliseconds.', 'responsive-lightbox').'</p>
1307
+ </div>';
1308
+ }
1309
+
1310
+
1311
+ public function rl_fb_change_fade()
1312
+ {
1313
+ echo '
1314
+ <div id="rl_fb_change_fade">
1315
+ <input type="text" value="'.esc_attr($this->options['configuration']['fancybox']['change_fade']).'" name="responsive_lightbox_configuration[fancybox][change_fade]" />
1316
+ <p class="description">'.__('Speed of the content fading while changing gallery items.', 'responsive-lightbox').'</p>
1317
+ </div>';
1318
+ }
1319
+
1320
+
1321
+ public function rl_fb_video_width()
1322
+ {
1323
+ echo '
1324
+ <div id="rl_fb_video_width">
1325
+ <input type="text" value="'.esc_attr($this->options['configuration']['fancybox']['video_width']).'" name="responsive_lightbox_configuration[fancybox][video_width]" />
1326
+ <p class="description">'.__('Width of the video.', 'responsive-lightbox').'</p>
1327
+ </div>';
1328
+ }
1329
+
1330
+
1331
+ public function rl_fb_video_height()
1332
+ {
1333
+ echo '
1334
+ <div id="rl_fb_video_height">
1335
+ <input type="text" value="'.esc_attr($this->options['configuration']['fancybox']['video_height']).'" name="responsive_lightbox_configuration[fancybox][video_height]" />
1336
+ <p class="description">'.__('Height of the video.', 'responsive-lightbox').'</p>
1337
  </div>';
1338
  }
1339
 
1346
  if(isset($_POST['save_rl_settings']))
1347
  {
1348
  //script
1349
+ $input['script'] = (isset($input['script']) && in_array($input['script'], array_keys($this->scripts)) ? $input['script'] : $this->defaults['settings']['script']);
1350
 
1351
  //selector
1352
+ $input['selector'] = sanitize_text_field(isset($input['selector']) && $input['selector'] !== '' ? $input['selector'] : $this->defaults['settings']['selector']);
1353
 
1354
  //checkboxes
1355
+ $input['galleries'] = (isset($input['galleries']) && in_array($input['galleries'], array_keys($this->choices)) ? ($input['galleries'] === 'yes' ? TRUE : FALSE) : $this->defaults['settings']['galleries']);
1356
+ $input['videos'] = (isset($input['videos']) && in_array($input['videos'], array_keys($this->choices)) ? ($input['videos'] === 'yes' ? TRUE : FALSE) : $this->defaults['settings']['videos']);
1357
+ $input['image_links'] = (isset($input['image_links']) && in_array($input['image_links'], array_keys($this->choices)) ? ($input['image_links'] === 'yes' ? TRUE : FALSE) : $this->defaults['settings']['image_links']);
1358
+ $input['images_as_gallery'] = (isset($input['images_as_gallery']) && in_array($input['images_as_gallery'], array_keys($this->choices)) ? ($input['images_as_gallery'] === 'yes' ? TRUE : FALSE) : $this->defaults['settings']['images_as_gallery']);
1359
+ $input['deactivation_delete'] = (isset($input['deactivation_delete']) && in_array($input['deactivation_delete'], array_keys($this->choices)) ? ($input['deactivation_delete'] === 'yes' ? TRUE : FALSE) : $this->defaults['settings']['deactivation_delete']);
1360
  }
1361
  elseif(isset($_POST['save_rl_configuration']))
1362
  {
1363
  if($this->options['settings']['script'] === 'swipebox' && $_POST['script_r'] === 'swipebox')
1364
  {
1365
  //animation
1366
+ $input['swipebox']['animation'] = (isset($input['swipebox']['animation']) && in_array($input['swipebox']['animation'], array_keys($this->scripts['swipebox']['animations'])) ? $input['swipebox']['animation'] : $this->defaults['configuration']['swipebox']['animation']);
1367
 
1368
  //hide bars
1369
+ $input['swipebox']['hide_bars'] = (isset($input['swipebox']['hide_bars']) && in_array($input['swipebox']['hide_bars'], array_keys($this->choices)) ? ($input['swipebox']['hide_bars'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['swipebox']['hide_bars']);
1370
+ $input['swipebox']['hide_bars_delay'] = (int)($input['swipebox']['hide_bars_delay'] > 0 ? $input['swipebox']['hide_bars_delay'] : $this->defaults['configuration']['swipebox']['hide_bars_delay']);
1371
+ $input['swipebox']['video_max_width'] = (int)($input['swipebox']['video_max_width'] > 0 ? $input['swipebox']['video_max_width'] : $this->defaults['configuration']['swipebox']['video_max_width']);
1372
  }
1373
  elseif($this->options['settings']['script'] === 'prettyphoto' && $_POST['script_r'] === 'prettyphoto')
1374
  {
1375
  //animation speed
1376
+ $input['prettyphoto']['animation_speed'] = (isset($input['prettyphoto']['animation_speed']) && in_array($input['prettyphoto']['animation_speed'], array_keys($this->scripts['prettyphoto']['animation_speeds'])) ? $input['prettyphoto']['animation_speed'] : $this->defaults['configuration']['prettyphoto']['animation_speed']);
1377
 
1378
  //slideshows
1379
+ $input['prettyphoto']['slideshow'] = (isset($input['prettyphoto']['slideshow']) && in_array($input['prettyphoto']['slideshow'], array_keys($this->choices)) ? ($input['prettyphoto']['slideshow'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['slideshow']);
1380
+ $input['prettyphoto']['slideshow_delay'] = (int)($input['prettyphoto']['slideshow_delay'] > 0 ? $input['prettyphoto']['slideshow_delay'] : $this->defaults['configuration']['prettyphoto']['slideshow_delay']);
1381
+ $input['prettyphoto']['slideshow_autoplay'] = (isset($input['prettyphoto']['slideshow_autoplay']) && in_array($input['prettyphoto']['slideshow_autoplay'], array_keys($this->choices)) ? ($input['prettyphoto']['slideshow_autoplay'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['slideshow_autoplay']);
1382
 
1383
  //opacity
1384
  $input['prettyphoto']['opacity'] = (int)$input['prettyphoto']['opacity'];
1385
 
1386
  if($input['prettyphoto']['opacity'] < 0 || $input['prettyphoto']['opacity'] > 100)
1387
+ $input['prettyphoto']['opacity'] = $this->defaults['configuration']['prettyphoto']['opacity'];
1388
 
1389
  //title
1390
+ $input['prettyphoto']['show_title'] = (isset($input['prettyphoto']['show_title']) && in_array($input['prettyphoto']['show_title'], array_keys($this->choices)) ? ($input['prettyphoto']['show_title'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['show_title']);
1391
 
1392
  //resize
1393
+ $input['prettyphoto']['allow_resize'] = (isset($input['prettyphoto']['allow_resize']) && in_array($input['prettyphoto']['allow_resize'], array_keys($this->choices)) ? ($input['prettyphoto']['allow_resize'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['allow_resize']);
1394
 
1395
  //dimensions
1396
+ $input['prettyphoto']['width'] = (int)($input['prettyphoto']['width'] > 0 ? $input['prettyphoto']['width'] : $this->defaults['configuration']['prettyphoto']['width']);
1397
+ $input['prettyphoto']['height'] = (int)($input['prettyphoto']['height'] > 0 ? $input['prettyphoto']['height'] : $this->defaults['configuration']['prettyphoto']['height']);
1398
 
1399
  //separator
1400
+ $input['prettyphoto']['separator'] = sanitize_text_field(isset($input['prettyphoto']['separator']) && $input['prettyphoto']['separator'] !== '' ? $input['prettyphoto']['separator'] : $this->defaults['configuration']['prettyphoto']['separator']);
1401
 
1402
  //theme
1403
+ $input['prettyphoto']['theme'] = (isset($input['prettyphoto']['theme']) && in_array($input['prettyphoto']['theme'], array_keys($this->scripts['prettyphoto']['themes'])) ? $input['prettyphoto']['theme'] : $this->defaults['configuration']['prettyphoto']['theme']);
1404
 
1405
  //padding
1406
+ $input['prettyphoto']['horizontal_padding'] = (int)($input['prettyphoto']['horizontal_padding'] > 0 ? $input['prettyphoto']['horizontal_padding'] : $this->defaults['configuration']['prettyphoto']['horizontal_padding']);
1407
 
1408
  //flash
1409
+ $input['prettyphoto']['hide_flash'] = (isset($input['prettyphoto']['hide_flash']) && in_array($input['prettyphoto']['hide_flash'], array_keys($this->choices)) ? ($input['prettyphoto']['hide_flash'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['hide_flash']);
1410
+ $input['prettyphoto']['wmode'] = (isset($input['prettyphoto']['wmode']) && in_array($input['prettyphoto']['wmode'], array_keys($this->scripts['prettyphoto']['wmodes'])) ? $input['prettyphoto']['wmode'] : $this->defaults['configuration']['prettyphoto']['wmode']);
1411
 
1412
  //video autoplay
1413
+ $input['prettyphoto']['video_autoplay'] = (isset($input['prettyphoto']['video_autoplay']) && in_array($input['prettyphoto']['video_autoplay'], array_keys($this->choices)) ? ($input['prettyphoto']['video_autoplay'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['video_autoplay']);
1414
 
1415
  //modal
1416
+ $input['prettyphoto']['modal'] = (isset($input['prettyphoto']['modal']) && in_array($input['prettyphoto']['modal'], array_keys($this->choices)) ? ($input['prettyphoto']['modal'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['modal']);
1417
 
1418
  //deeplinking
1419
+ $input['prettyphoto']['deeplinking'] = (isset($input['prettyphoto']['deeplinking']) && in_array($input['prettyphoto']['deeplinking'], array_keys($this->choices)) ? ($input['prettyphoto']['deeplinking'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['deeplinking']);
1420
 
1421
  //overlay gallery
1422
+ $input['prettyphoto']['overlay_gallery'] = (isset($input['prettyphoto']['overlay_gallery']) && in_array($input['prettyphoto']['overlay_gallery'], array_keys($this->choices)) ? ($input['prettyphoto']['overlay_gallery'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['overlay_gallery']);
1423
 
1424
  //keyboard shortcuts
1425
+ $input['prettyphoto']['keyboard_shortcuts'] = (isset($input['prettyphoto']['keyboard_shortcuts']) && in_array($input['prettyphoto']['keyboard_shortcuts'], array_keys($this->choices)) ? ($input['prettyphoto']['keyboard_shortcuts'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['keyboard_shortcuts']);
1426
 
1427
  //social
1428
+ $input['prettyphoto']['social'] = (isset($input['prettyphoto']['social']) && in_array($input['prettyphoto']['social'], array_keys($this->choices)) ? ($input['prettyphoto']['social'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['prettyphoto']['social']);
1429
+ }
1430
+ elseif($this->options['settings']['script'] === 'fancybox' && $_POST['script_r'] === 'fancybox')
1431
+ {
1432
+ //modal
1433
+ $input['fancybox']['modal'] = (isset($input['fancybox']['modal']) && in_array($input['fancybox']['modal'], array_keys($this->choices)) ? ($input['fancybox']['modal'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['modal']);
1434
+
1435
+ //show overlay
1436
+ $input['fancybox']['show_overlay'] = (isset($input['fancybox']['show_overlay']) && in_array($input['fancybox']['show_overlay'], array_keys($this->choices)) ? ($input['fancybox']['show_overlay'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['show_overlay']);
1437
+
1438
+ //show close button
1439
+ $input['fancybox']['show_close_button'] = (isset($input['fancybox']['show_close_button']) && in_array($input['fancybox']['show_close_button'], array_keys($this->choices)) ? ($input['fancybox']['show_close_button'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['show_close_button']);
1440
+
1441
+ //enable escape button
1442
+ $input['fancybox']['enable_escape_button'] = (isset($input['fancybox']['enable_escape_button']) && in_array($input['fancybox']['enable_escape_button'], array_keys($this->choices)) ? ($input['fancybox']['enable_escape_button'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['enable_escape_button']);
1443
+
1444
+ //hide on overlay click
1445
+ $input['fancybox']['hide_on_overlay_click'] = (isset($input['fancybox']['hide_on_overlay_click']) && in_array($input['fancybox']['hide_on_overlay_click'], array_keys($this->choices)) ? ($input['fancybox']['hide_on_overlay_click'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['hide_on_overlay_click']);
1446
+
1447
+ //hide on content click
1448
+ $input['fancybox']['hide_on_content_click'] = (isset($input['fancybox']['hide_on_content_click']) && in_array($input['fancybox']['hide_on_content_click'], array_keys($this->choices)) ? ($input['fancybox']['hide_on_content_click'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['hide_on_content_click']);
1449
+
1450
+ //cyclic
1451
+ $input['fancybox']['cyclic'] = (isset($input['fancybox']['cyclic']) && in_array($input['fancybox']['cyclic'], array_keys($this->choices)) ? ($input['fancybox']['cyclic'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['cyclic']);
1452
+
1453
+ //show nav arrows
1454
+ $input['fancybox']['show_nav_arrows'] = (isset($input['fancybox']['show_nav_arrows']) && in_array($input['fancybox']['show_nav_arrows'], array_keys($this->choices)) ? ($input['fancybox']['show_nav_arrows'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['show_nav_arrows']);
1455
+
1456
+ //auto scale
1457
+ $input['fancybox']['auto_scale'] = (isset($input['fancybox']['auto_scale']) && in_array($input['fancybox']['auto_scale'], array_keys($this->choices)) ? ($input['fancybox']['auto_scale'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['auto_scale']);
1458
+
1459
+ //scrolling
1460
+ $input['fancybox']['scrolling'] = (isset($input['fancybox']['scrolling']) && in_array($input['fancybox']['scrolling'], array_keys($this->scripts['fancybox']['scrollings'])) ? $input['fancybox']['scrolling'] : $this->defaults['configuration']['fancybox']['scrolling']);
1461
+
1462
+ //center on scroll
1463
+ $input['fancybox']['center_on_scroll'] = (isset($input['fancybox']['center_on_scroll']) && in_array($input['fancybox']['center_on_scroll'], array_keys($this->choices)) ? ($input['fancybox']['center_on_scroll'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['center_on_scroll']);
1464
+
1465
+ //opacity
1466
+ $input['fancybox']['opacity'] = (isset($input['fancybox']['opacity']) && in_array($input['fancybox']['opacity'], array_keys($this->choices)) ? ($input['fancybox']['opacity'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['opacity']);
1467
+
1468
+ //title_show
1469
+ $input['fancybox']['title_show'] = (isset($input['fancybox']['title_show']) && in_array($input['fancybox']['title_show'], array_keys($this->choices)) ? ($input['fancybox']['title_show'] === 'yes' ? TRUE : FALSE) : $this->defaults['configuration']['fancybox']['title_show']);
1470
+
1471
+ //overlay opacity
1472
+ $input['fancybox']['overlay_opacity'] = (int)$input['fancybox']['overlay_opacity'];
1473
+
1474
+ if($input['fancybox']['overlay_opacity'] < 0 || $input['fancybox']['overlay_opacity'] > 100)
1475
+ $input['fancybox']['overlay_opacity'] = $this->defaults['configuration']['fancybox']['overlay_opacity'];
1476
+
1477
+ //overlay color
1478
+ $input['fancybox']['overlay_color'] = sanitize_text_field($input['fancybox']['overlay_color']);
1479
+
1480
+ //title position
1481
+ $input['fancybox']['title_position'] = (isset($input['fancybox']['title_position']) && in_array($input['fancybox']['title_position'], array_keys($this->scripts['fancybox']['positions'])) ? $input['fancybox']['title_position'] : $this->defaults['configuration']['fancybox']['title_position']);
1482
+
1483
+ //transitions
1484
+ $input['fancybox']['transitions'] = (isset($input['fancybox']['transitions']) && in_array($input['fancybox']['transitions'], array_keys($this->scripts['fancybox']['transitions'])) ? $input['fancybox']['transitions'] : $this->defaults['configuration']['fancybox']['transitions']);
1485
+
1486
+ //easings
1487
+ $input['fancybox']['easings'] = (isset($input['fancybox']['easings']) && in_array($input['fancybox']['easings'], array_keys($this->scripts['fancybox']['easings'])) ? $input['fancybox']['easings'] : $this->defaults['configuration']['fancybox']['easings']);
1488
+
1489
+ //speeds
1490
+ $input['fancybox']['speeds'] = (int)($input['fancybox']['speeds'] > 0 ? $input['fancybox']['speeds'] : $this->defaults['configuration']['fancybox']['speeds']);
1491
+
1492
+ //change speed
1493
+ $input['fancybox']['change_speed'] = (int)($input['fancybox']['change_speed'] > 0 ? $input['fancybox']['change_speed'] : $this->defaults['configuration']['fancybox']['change_speed']);
1494
+
1495
+ //change fade
1496
+ $input['fancybox']['change_fade'] = (int)($input['fancybox']['change_fade'] > 0 ? $input['fancybox']['change_fade'] : $this->defaults['configuration']['fancybox']['change_fade']);
1497
+
1498
+ //padding
1499
+ $input['fancybox']['padding'] = (int)($input['fancybox']['padding'] > 0 ? $input['fancybox']['padding'] : $this->defaults['configuration']['fancybox']['padding']);
1500
+
1501
+ //margin
1502
+ $input['fancybox']['margin'] = (int)($input['fancybox']['margin'] > 0 ? $input['fancybox']['margin'] : $this->defaults['configuration']['fancybox']['margin']);
1503
+
1504
+ //video width
1505
+ $input['fancybox']['video_width'] = (int)($input['fancybox']['video_width'] > 0 ? $input['fancybox']['video_width'] : $this->defaults['configuration']['fancybox']['video_width']);
1506
+
1507
+ //video height
1508
+ $input['fancybox']['video_height'] = (int)($input['fancybox']['video_height'] > 0 ? $input['fancybox']['video_height'] : $this->defaults['configuration']['fancybox']['video_height']);
1509
  }
1510
  else
1511
  {
1532
 
1533
  add_settings_error('reset_prettyphoto_settings', 'prettyphoto_reset', __('Settings of prettyPhoto script were restored to defaults.', 'responsive-lightbox'), 'updated');
1534
  }
1535
+ elseif($this->options['settings']['script'] === 'fancybox' && $_POST['script_r'] === 'fancybox')
1536
+ {
1537
+ $input['fancybox'] = $this->defaults['configuration']['fancybox'];
1538
+
1539
+ add_settings_error('reset_prettyphoto_settings', 'prettyphoto_reset', __('Settings of FancyBox script were restored to defaults.', 'responsive-lightbox'), 'updated');
1540
+ }
1541
  else
1542
  {
1543
  add_settings_error('reset_script_settings', 'reset_invalid_script_page', __('Changes were not set to defaults because there was attempt to reset settings of inactive script. The site has been reloaded to the proper script settings.', 'responsive-lightbox'), 'error');
1582
  </h2>
1583
  <div class="metabox-holder postbox-container responsive-lightbox-settings">
1584
  <form action="options.php" method="post">
1585
+ <input type="hidden" name="script_r" value="'.esc_attr($this->options['settings']['script']).'" />';
1586
 
1587
  wp_nonce_field('update-options');
1588
  settings_fields($this->tabs[$tab_key]['key']);
1604
  <h3 class="metabox-title">'.__('Responsive Lightbox', 'responsive-lightbox').'</h3>
1605
  <div class="inner">
1606
  <h3>'.__('Need support?', 'responsive-lightbox').'</h3>
1607
+ <p>'.__('If you are having problems with this plugin, please talk about them in the', 'responsive-lightbox').' <a href="http://www.dfactory.eu/support/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=support" target="_blank" title="'.__('Support forum', 'responsive-lightbox').'">'.__('Support forum', 'responsive-lightbox').'</a></p>
1608
  <hr />
1609
  <h3>'.__('Do you like this plugin?', 'responsive-lightbox').'</h3>
1610
  <p><a href="http://wordpress.org/support/view/plugin-reviews/responsive-lightbox" target="_blank" title="'.__('Rate it 5', 'responsive-lightbox').'">'.__('Rate it 5', 'responsive-lightbox').'</a> '.__('on WordPress.org', 'responsive-lightbox').'<br />'.
1611
+ __('Blog about it & link to the', 'responsive-lightbox').' <a href="http://www.dfactory.eu/plugins/responsive-lightbox/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=blog-about" target="_blank" title="'.__('plugin page', 'responsive-lightbox').'">'.__('plugin page', 'responsive-lightbox').'</a><br />'.
1612
+ __('Check out our other', 'responsive-lightbox').' <a href="http://www.dfactory.eu/plugins/responsive-lightbox/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=other-plugins" target="_blank" title="'.__('WordPress plugins', 'responsive-lightbox').'">'.__('WordPress plugins', 'responsive-lightbox').'</a>
1613
  </p>
1614
  <hr />
1615
  <p class="df-link">Created by <a href="http://www.dfactory.eu/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=created-by" target="_blank" title="dFactory - Quality plugins for WordPress"><img src="'.plugins_url('/images/logo-dfactory.png' , __FILE__ ).'" title="dFactory - Quality plugins for WordPress" alt="dFactory - Quality plugins for WordPress" /></a></p>
1624
  {
1625
  if($page === 'settings_page_responsive-lightbox')
1626
  {
1627
+ wp_register_script(
1628
  'responsive-lightbox-admin',
1629
  plugins_url('js/admin.js', __FILE__),
1630
+ array('jquery', 'jquery-ui-core', 'jquery-ui-button', 'jquery-ui-slider', 'wp-color-picker')
1631
  );
1632
 
1633
+ wp_enqueue_script('responsive-lightbox-admin');
1634
+
1635
  wp_localize_script(
1636
  'responsive-lightbox-admin',
1637
  'rlArgs',
1638
  array(
1639
  'resetScriptToDefaults' => __('Are you sure you want to reset scripts settings to defaults?', 'responsive-lightbox'),
1640
+ 'opacity_pp' => $this->options['configuration']['prettyphoto']['opacity'],
1641
+ 'opacity_fb' => $this->options['configuration']['fancybox']['overlay_opacity']
1642
  )
1643
  );
1644
 
1645
+ wp_enqueue_style('wp-color-picker');
1646
+
1647
+ wp_register_style(
1648
  'responsive-lightbox-admin',
1649
  plugins_url('css/admin.css', __FILE__)
1650
  );
1651
 
1652
+ wp_enqueue_style('responsive-lightbox-admin');
1653
+
1654
+ wp_register_style(
1655
  'responsive-lightbox-wplike',
1656
  plugins_url('css/wp-like-ui-theme.css', __FILE__)
1657
  );
1658
+
1659
+ wp_enqueue_style('responsive-lightbox-wplike');
1660
  }
1661
  }
1662
 
1671
 
1672
  if($this->options['settings']['script'] === 'prettyphoto')
1673
  {
1674
+ wp_register_script(
1675
  'responsive-lightbox-prettyphoto',
1676
  plugins_url('assets/prettyphoto/js/jquery.prettyPhoto.js', __FILE__),
1677
  array('jquery')
1678
  );
1679
 
1680
+ wp_enqueue_script('responsive-lightbox-prettyphoto');
1681
+
1682
+ wp_register_style(
1683
+ 'responsive-lightbox-prettyphoto-front',
1684
  plugins_url('assets/prettyphoto/css/prettyPhoto.css', __FILE__)
1685
  );
1686
 
1687
+ wp_enqueue_style('responsive-lightbox-prettyphoto-front');
1688
+
1689
  $args = array_merge(
1690
  $args,
1691
  array(
1714
  }
1715
  elseif($this->options['settings']['script'] === 'swipebox')
1716
  {
1717
+ wp_register_script(
1718
  'responsive-lightbox-swipebox',
1719
  plugins_url('assets/swipebox/source/jquery.swipebox.min.js', __FILE__),
1720
  array('jquery')
1721
  );
1722
 
1723
+ wp_enqueue_script('responsive-lightbox-swipebox');
1724
+
1725
+ wp_register_style(
1726
+ 'responsive-lightbox-swipebox-front',
1727
  plugins_url('assets/swipebox/source/swipebox.css', __FILE__)
1728
  );
1729
 
1730
+ wp_enqueue_style('responsive-lightbox-swipebox-front');
1731
+
1732
  $args = array_merge(
1733
  $args,
1734
  array(
1739
  )
1740
  );
1741
  }
1742
+ elseif($this->options['settings']['script'] === 'fancybox')
1743
+ {
1744
+ wp_register_script(
1745
+ 'responsive-lightbox-fancybox',
1746
+ plugins_url('assets/fancybox/jquery.fancybox-1.3.4.js', __FILE__),
1747
+ array('jquery')
1748
+ );
1749
+
1750
+ wp_enqueue_script('responsive-lightbox-fancybox');
1751
+
1752
+ wp_register_style(
1753
+ 'responsive-lightbox-fancybox-front',
1754
+ plugins_url('assets/fancybox/jquery.fancybox-1.3.4.css', __FILE__)
1755
+ );
1756
+
1757
+ wp_enqueue_style('responsive-lightbox-fancybox-front');
1758
+
1759
+ $args = array_merge(
1760
+ $args,
1761
+ array(
1762
+ 'modal' => $this->getBooleanValue($this->options['configuration']['fancybox']['modal']),
1763
+ 'showOverlay' => $this->getBooleanValue($this->options['configuration']['fancybox']['show_overlay']),
1764
+ 'showCloseButton' => $this->getBooleanValue($this->options['configuration']['fancybox']['show_close_button']),
1765
+ 'enableEscapeButton' => $this->getBooleanValue($this->options['configuration']['fancybox']['enable_escape_button']),
1766
+ 'hideOnOverlayClick' => $this->getBooleanValue($this->options['configuration']['fancybox']['hide_on_overlay_click']),
1767
+ 'hideOnContentClick' => $this->getBooleanValue($this->options['configuration']['fancybox']['hide_on_content_click']),
1768
+ 'cyclic' => $this->getBooleanValue($this->options['configuration']['fancybox']['cyclic']),
1769
+ 'showNavArrows' => $this->getBooleanValue($this->options['configuration']['fancybox']['show_nav_arrows']),
1770
+ 'autoScale' => $this->getBooleanValue($this->options['configuration']['fancybox']['auto_scale']),
1771
+ 'scrolling' => $this->options['configuration']['fancybox']['scrolling'],
1772
+ 'centerOnScroll' => $this->getBooleanValue($this->options['configuration']['fancybox']['center_on_scroll']),
1773
+ 'opacity' => $this->getBooleanValue($this->options['configuration']['fancybox']['opacity']),
1774
+ 'overlayOpacity' => $this->options['configuration']['fancybox']['overlay_opacity'],
1775
+ 'overlayColor' => $this->options['configuration']['fancybox']['overlay_color'],
1776
+ 'titleShow' => $this->getBooleanValue($this->options['configuration']['fancybox']['title_show']),
1777
+ 'titlePosition' => $this->options['configuration']['fancybox']['title_position'],
1778
+ 'transitions' => $this->options['configuration']['fancybox']['transitions'],
1779
+ 'easings' => $this->options['configuration']['fancybox']['easings'],
1780
+ 'speeds' => $this->options['configuration']['fancybox']['speeds'],
1781
+ 'changeSpeed' => $this->options['configuration']['fancybox']['change_speed'],
1782
+ 'changeFade' => $this->options['configuration']['fancybox']['change_fade'],
1783
+ 'padding' => $this->options['configuration']['fancybox']['padding'],
1784
+ 'margin' => $this->options['configuration']['fancybox']['margin'],
1785
+ 'videoWidth' => $this->options['configuration']['fancybox']['video_width'],
1786
+ 'videoHeight' => $this->options['configuration']['fancybox']['video_height']
1787
+ )
1788
+ );
1789
+ }
1790
 
1791
+ wp_register_script(
1792
  'responsive-lightbox-front',
1793
  plugins_url('js/front.js', __FILE__),
1794
  array('jquery')
1795
  );
1796
 
1797
+ wp_enqueue_script('responsive-lightbox-front');
1798
+
1799
+ wp_localize_script(
1800
+ 'responsive-lightbox-front',
1801
+ 'rlArgs',
1802
+ $args
1803
+ );
1804
  }
1805
 
1806