Responsive Lightbox & Gallery - Version 1.5.0

Version Description

  • New: Revamped User Interface
  • New: Option to force lightbox for custom WP gallery replacements like Jetpack tiled galleries
Download this release

Release Info

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

Code changes from version 1.4.14 to 1.5.0

css/admin.css CHANGED
@@ -38,6 +38,9 @@
38
  .responsive-lightbox-settings {
39
  margin-right: 300px;
40
  }
 
 
 
41
  .responsive-lightbox-settings hr, .df-credits hr {
42
  border: solid #eee;
43
  border-width: 1px 0 0;
@@ -54,6 +57,15 @@
54
  margin-top: 4px;
55
  display: block;
56
  }
 
 
 
 
 
 
 
 
 
57
 
58
  .wplike-slider span.middle {
59
  width: 150px;
@@ -75,4 +87,385 @@
75
  .responsive-lightbox-settings {
76
  margin-right: 0;
77
  }
78
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  .responsive-lightbox-settings {
39
  margin-right: 300px;
40
  }
41
+ .responsive-lightbox-settings td > label {
42
+ margin-right: 5px;
43
+ }
44
  .responsive-lightbox-settings hr, .df-credits hr {
45
  border: solid #eee;
46
  border-width: 1px 0 0;
57
  margin-top: 4px;
58
  display: block;
59
  }
60
+ .responsive-lightbox-settings output {
61
+ display: inline-block;
62
+ font-size: inherit;
63
+ margin: 0;
64
+ text-align: left;
65
+ }
66
+ .rtl .responsive-lightbox-settings output {
67
+ text-align: right;
68
+ }
69
 
70
  .wplike-slider span.middle {
71
  width: 150px;
87
  .responsive-lightbox-settings {
88
  margin-right: 0;
89
  }
90
+ }
91
+
92
+ /*
93
+ * checkBo lightweight jQuery plugin v0.1.4 by @ElmahdiMahmoud
94
+ * Licensed under the MIT license - https://github.com/elmahdim/checkbo/blob/master/LICENSE
95
+ *
96
+ * Custom checkbox and radio
97
+ * Author URL: elmahdim.com
98
+ */
99
+ .cb-checkbox .cb-inner, .cb-checkbox i {
100
+ width:18px;
101
+ height:18px;
102
+ -moz-border-radius:3px;
103
+ -webkit-border-radius:3px;
104
+ border-radius:3px
105
+ }
106
+ .cb-checkbox.cb-sm i, .cb-checkbox.cb-sm .cb-inner {
107
+ width:14px;
108
+ height:14px
109
+ }
110
+ .cb-checkbox.cb-md i, .cb-checkbox.cb-md .cb-inner {
111
+ width:24px;
112
+ height:24px;
113
+ -moz-border-radius:4px;
114
+ -webkit-border-radius:4px;
115
+ border-radius:4px
116
+ }
117
+ .cb-checkbox.cb-lg i, .cb-checkbox.cb-lg .cb-inner {
118
+ width:30px;
119
+ height:30px;
120
+ -moz-border-radius:6px;
121
+ -webkit-border-radius:6px;
122
+ border-radius:6px
123
+ }
124
+ .cb-radio .cb-inner {
125
+ width:18px;
126
+ height:18px
127
+ }
128
+ .cb-radio.cb-sm .cb-inner {
129
+ width:14px;
130
+ height:14px
131
+ }
132
+ .cb-radio.cb-md .cb-inner {
133
+ width:24px;
134
+ height:24px
135
+ }
136
+ .cb-radio.cb-lg .cb-inner {
137
+ width:30px;
138
+ height:30px
139
+ }
140
+ .cb-checkbox, .cb-radio {
141
+ padding:3px 0;
142
+ color:inherit;
143
+ cursor:pointer;
144
+ overflow:hidden;
145
+ font-size:inherit;
146
+ font-weight:normal;
147
+ display:inline-block;
148
+ line-height:18px
149
+ }
150
+ .cb-checkbox.disabled, .cb-checkbox.disabled *, .cb-radio.disabled, .cb-radio.disabled * {
151
+ cursor:default
152
+ }
153
+ .cb-checkbox input[type="checkbox"], .cb-radio input[type="radio"], .cb-switcher input[type="checkbox"], .cb-switcher input[type="radio"] {
154
+ display:none
155
+ }
156
+ .cb-checkbox.disabled, .cb-checkbox.disabled *, .cb-radio.disabled, .cb-radio.disabled *, .cb-switcher.disabled, .cb-switcher.disabled * {
157
+ cursor:default
158
+ }
159
+ .cb-checkbox.disabled {
160
+ color:#ddd
161
+ }
162
+ .cb-checkbox.disabled .cb-inner {
163
+ color:#ddd
164
+ }
165
+ .cb-checkbox.disabled:hover .cb-inner {
166
+ border-color:#ddd
167
+ }
168
+ .cb-checkbox.disabled.checked .cb-inner {
169
+ background-color:#ddd;
170
+ border-color:#ddd
171
+ }
172
+ .cb-radio.disabled {
173
+ color:#ddd
174
+ }
175
+ .cb-radio.disabled .cb-inner {
176
+ border-color:#ddd
177
+ }
178
+ .cb-radio.disabled i {
179
+ background-color:transparent
180
+ }
181
+ .cb-radio.disabled.checked .cb-inner {
182
+ border-color:#ddd
183
+ }
184
+ .cb-radio.disabled.checked .cb-inner i {
185
+ background-color:#ddd
186
+ }
187
+ .cb-radio.disabled:hover .cb-inner {
188
+ border-color:#ddd
189
+ }
190
+ .cb-checkbox .cb-inner {
191
+ float:left;
192
+ overflow:hidden;
193
+ margin:0 5px 0 0;
194
+ position:relative;
195
+ background:#f2f2f2;
196
+ display:inline-block;
197
+ border:1px solid #d6d6d6;
198
+ -moz-transition:all 0.5s ease;
199
+ -o-transition:all 0.5s ease;
200
+ -webkit-transition:all 0.5s ease;
201
+ transition:all 0.5s ease
202
+ }
203
+ .cb-checkbox i {
204
+ top:1px;
205
+ left:2px;
206
+ display:block;
207
+ position:absolute
208
+ }
209
+ .cb-checkbox i:before, .cb-checkbox i:after {
210
+ height:0;
211
+ width:2px;
212
+ content:"";
213
+ display:block;
214
+ position:absolute;
215
+ background-color:#fff;
216
+ -moz-transition:all 0.2s ease;
217
+ -o-transition:all 0.2s ease;
218
+ -webkit-transition:all 0.2s ease;
219
+ transition:all 0.2s ease
220
+ }
221
+ .cb-checkbox i:before {
222
+ top:0;
223
+ left:0;
224
+ -moz-transform:rotate(-45deg);
225
+ -ms-transform:rotate(-45deg);
226
+ -webkit-transform:rotate(-45deg);
227
+ transform:rotate(-45deg)
228
+ }
229
+ .cb-checkbox i:after {
230
+ left:7px;
231
+ bottom:5px;
232
+ -moz-transition-delay:0.3s;
233
+ -o-transition-delay:0.3s;
234
+ -webkit-transition-delay:0.3s;
235
+ transition-delay:0.3s;
236
+ -moz-transform:rotate(30deg);
237
+ -ms-transform:rotate(30deg);
238
+ -webkit-transform:rotate(30deg);
239
+ transform:rotate(30deg)
240
+ }
241
+ .cb-radio .cb-inner {
242
+ float:left;
243
+ overflow:hidden;
244
+ margin:0 5px 0 0;
245
+ position:relative;
246
+ display:inline-block;
247
+ border:1px solid #d7d7d7;
248
+ background-color:#f2f2f2;
249
+ -moz-border-radius:100%;
250
+ -webkit-border-radius:100%;
251
+ border-radius:100%;
252
+ -moz-transition:all 0.1s ease;
253
+ -o-transition:all 0.1s ease;
254
+ -webkit-transition:all 0.1s ease;
255
+ transition:all 0.1s ease
256
+ }
257
+ .cb-radio i {
258
+ top:50%;
259
+ left:50%;
260
+ width:6px;
261
+ height:6px;
262
+ margin-top:-3px;
263
+ margin-left:-3px;
264
+ position:absolute;
265
+ background-color:transparent;
266
+ -moz-border-radius:100%;
267
+ -webkit-border-radius:100%;
268
+ border-radius:100%;
269
+ -moz-transform:scale(0.05, 5);
270
+ -ms-transform:scale(0.05, 5);
271
+ -webkit-transform:scale(0.05, 5);
272
+ transform:scale(0.05, 5);
273
+ -moz-transition:all 0.2s ease;
274
+ -o-transition:all 0.2s ease;
275
+ -webkit-transition:all 0.2s ease;
276
+ transition:all 0.2s ease
277
+ }
278
+ .cb-checkbox.cb-sm, .cb-radio.cb-sm {
279
+ line-height:14px
280
+ }
281
+ .cb-checkbox.cb-md, .cb-radio.cb-md {
282
+ line-height:24px
283
+ }
284
+ .cb-checkbox.cb-lg, .cb-radio.cb-lg {
285
+ line-height:30px
286
+ }
287
+ .cb-checkbox.cb-sm i:before {
288
+ top:4px;
289
+ left:1px
290
+ }
291
+ .cb-checkbox.cb-sm i:after {
292
+ left:5px
293
+ }
294
+ .cb-checkbox.cb-md i:before {
295
+ top:10px;
296
+ left:5px
297
+ }
298
+ .cb-checkbox.cb-md i:after {
299
+ bottom:6px;
300
+ left:11px
301
+ }
302
+ .cb-checkbox.checked .cb-inner {
303
+ border-color:#0073aa;
304
+ background-color:#00a0d2;
305
+ box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15);
306
+ }
307
+ .cb-checkbox.checked:hover .cb-inner {
308
+ background-color:#0091cd
309
+ }
310
+ .cb-checkbox.checked.cb-sm i:before {
311
+ top:4px;
312
+ left:1px
313
+ }
314
+ .cb-checkbox.checked.cb-sm i:after {
315
+ height:9px
316
+ }
317
+ .cb-checkbox.checked.cb-md i:before {
318
+ top:10px;
319
+ left:4px;
320
+ height:8px
321
+ }
322
+ .cb-checkbox.checked.cb-md i:after {
323
+ bottom:6px;
324
+ left:11px;
325
+ height:16px
326
+ }
327
+ .cb-checkbox.checked.cb-lg i:before {
328
+ top:11px;
329
+ left:6px;
330
+ height:12px
331
+ }
332
+ .cb-checkbox.checked.cb-lg i:after {
333
+ left:14px;
334
+ bottom:7px;
335
+ height:20px
336
+ }
337
+ .cb-checkbox.checked i:before {
338
+ top:6px;
339
+ left:2px;
340
+ height:6px
341
+ }
342
+ .cb-checkbox.checked i:after {
343
+ height:12px
344
+ }
345
+ .cb-radio.checked .cb-inner {
346
+ background:#fff;
347
+ box-shadow:0 0 3px #efefef
348
+ }
349
+ .cb-radio.checked i {
350
+ -moz-transform:scale(1.1, 1.1);
351
+ -ms-transform:scale(1.1, 1.1);
352
+ -webkit-transform:scale(1.1, 1.1);
353
+ transform:scale(1.1, 1.1);
354
+ background-color:#00a0d2
355
+ }
356
+ .cb-checkbox:hover .cb-inner, .cb-radio:hover .cb-inner {
357
+ border-color:#0073aa
358
+ }
359
+ .cb-switcher {
360
+ display:inline-block;
361
+ border:1px solid #eee;
362
+ background-color:#fff;
363
+ width:95px;
364
+ height:35px;
365
+ position:relative;
366
+ -moz-border-radius:20px;
367
+ -webkit-border-radius:20px;
368
+ border-radius:20px;
369
+ -moz-transition:background 0.4s ease;
370
+ -o-transition:background 0.4s ease;
371
+ -webkit-transition:background 0.4s ease;
372
+ transition:background 0.4s ease
373
+ }
374
+ .cb-switcher, .cb-switcher * {
375
+ cursor:pointer
376
+ }
377
+ .cb-switcher ::-moz-selection {
378
+ background-color:transparent
379
+ }
380
+ .cb-switcher ::selection {
381
+ background-color:transparent
382
+ }
383
+ .cb-switcher .cb-state {
384
+ z-index:1;
385
+ text-align:center;
386
+ font-size:12px
387
+ }
388
+ .cb-switcher .cb-state, .cb-switcher:before {
389
+ width:34px;
390
+ height:34px;
391
+ line-height:34px;
392
+ position:absolute;
393
+ left:0;
394
+ top:-1px;
395
+ -moz-border-radius:100%;
396
+ -webkit-border-radius:100%;
397
+ border-radius:100%;
398
+ -moz-transition:all 0.4s ease;
399
+ -o-transition:all 0.4s ease;
400
+ -webkit-transition:all 0.4s ease;
401
+ transition:all 0.4s ease
402
+ }
403
+ .cb-switcher:before {
404
+ content:"";
405
+ background-color:#eee;
406
+ -moz-box-shadow:1px 1px 1px rgba(0, 0, 0, 0.1);
407
+ -webkit-box-shadow:1px 1px 1px rgba(0, 0, 0, 0.1);
408
+ box-shadow:1px 1px 1px rgba(0, 0, 0, 0.1)
409
+ }
410
+ .cb-switcher.checked {
411
+ background-color:#00a0d2
412
+ }
413
+ .cb-switcher.checked .cb-state, .cb-switcher.checked:before {
414
+ left:60px;
415
+ color:#00a0d2
416
+ }
417
+ .cb-switcher.checked:before {
418
+ background-color:#fff;
419
+ -moz-box-shadow:-1px 1px 1px rgba(0, 0, 0, 0.1);
420
+ -webkit-box-shadow:-1px 1px 1px rgba(0, 0, 0, 0.1);
421
+ box-shadow:-1px 1px 1px rgba(0, 0, 0, 0.1)
422
+ }
423
+ .cb-switcher.checked .inner-switcher:before {
424
+ border-top-color:#0073aa
425
+ }
426
+ .cb-switcher.checked .inner-switcher:after {
427
+ border-bottom-color:#0073aa
428
+ }
429
+ .cb-switcher .inner-switcher:before, .cb-switcher .inner-switcher:after {
430
+ content:"";
431
+ position:absolute;
432
+ left:50%;
433
+ width:0;
434
+ height:0;
435
+ z-index:2;
436
+ margin-left:-20px;
437
+ border-left:20px solid transparent;
438
+ border-right:20px solid transparent;
439
+ -moz-transition:border 0.4s ease;
440
+ -o-transition:border 0.4s ease;
441
+ -webkit-transition:border 0.4s ease;
442
+ transition:border 0.4s ease
443
+ }
444
+ .cb-switcher .inner-switcher:before {
445
+ border-top:17px solid #fff;
446
+ top:0
447
+ }
448
+ .cb-switcher .inner-switcher:after {
449
+ border-bottom:17px solid #fff;
450
+ bottom:0
451
+ }
452
+ .cb-state {
453
+ color:#ccc;
454
+ display:inline-block
455
+ }
456
+ .cb-switcher-group .cb-state {
457
+ position:relative;
458
+ top:7px
459
+ }
460
+ .is-hidden {
461
+ display:none !important;
462
+ visibility:hidden !important
463
+ }
464
+ output {
465
+ display: block;
466
+ font-size: 30px;
467
+ font-weight: bold;
468
+ text-align: center;
469
+ margin: 30px 0;
470
+ width: 100%;
471
+ }
includes/class-frontend.php ADDED
@@ -0,0 +1,279 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) )
3
+ exit;
4
+
5
+ new Responsive_Lightbox_Frontend();
6
+
7
+ /**
8
+ * Responsive Lightbox frontend class.
9
+ *
10
+ * @class Responsive_Lightbox_Frontend
11
+ */
12
+ class Responsive_Lightbox_Frontend {
13
+
14
+ private $options = array();
15
+ private $defaults = array();
16
+ private $gallery_no = 0;
17
+
18
+ public function __construct() {
19
+ // set instance
20
+ Responsive_Lightbox()->frontend = $this;
21
+
22
+ // set vars
23
+ $this->defaults = Responsive_Lightbox()->defaults;
24
+ $this->options = Responsive_Lightbox()->options;
25
+
26
+ // filters
27
+ add_filter( 'post_gallery', array( &$this, 'gallery_attributes' ), 1000, 10, 2 );
28
+
29
+ if ( $this->options['settings']['galleries'] === true ) {
30
+ add_filter( 'wp_get_attachment_link', array( &$this, 'add_gallery_lightbox_selector' ), 1000, 6 );
31
+ }
32
+
33
+ if ( $this->options['settings']['videos'] === true ) {
34
+ add_filter( 'the_content', array( &$this, 'add_videos_lightbox_selector' ) );
35
+ }
36
+
37
+ if ( $this->options['settings']['image_links'] === true || $this->options['settings']['images_as_gallery'] === true ) {
38
+ add_filter( 'the_content', array( &$this, 'add_links_lightbox_selector' ) );
39
+ }
40
+
41
+ if ( $this->options['settings']['force_custom_gallery'] === true ) {
42
+ add_filter( 'post_gallery', array( &$this, 'add_tiled_gallery_lightbox_selector' ), 2000, 10, 2 );
43
+ }
44
+ }
45
+
46
+ /**
47
+ * Add lightbox to videos
48
+ *
49
+ * @param mixed $content
50
+ * @return mixed
51
+ */
52
+ public function add_videos_lightbox_selector( $content ) {
53
+ preg_match_all( '/<a(.*?)href=(?:\'|")((?:(?:http|https):\/\/)?(?:www\.)?(((?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch\?v=|\/watch\?.+&v=))([\w-]{11})(?:.+))|(vimeo\.com\/[0-9]{8,})))(?:\'|")(.*?)>/i', $content, $links );
54
+
55
+ if ( isset( $links[0] ) ) {
56
+ foreach ( $links[0] as $id => $link ) {
57
+ if ( preg_match( '/<a.*?rel=(?:\'|")(.*?)(?:\'|").*?>/', $link, $result ) === 1 ) {
58
+ if ( isset( $result[1] ) ) {
59
+ $new_rels = array();
60
+ $rels = explode( ' ', $result[1] );
61
+
62
+ if ( in_array( $this->options['settings']['selector'], $rels, true ) ) {
63
+ foreach ( $rels as $no => $rel ) {
64
+ if ( $rel !== $this->options['settings']['selector'] )
65
+ $new_rels[] = $rel;
66
+ }
67
+
68
+ $content = str_replace( $link, preg_replace( '/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . ( ! empty( $new_rel ) ? simplode( ' ', $new_rels ) . ' ' : '') . $this->options['settings']['selector'] . '-video-' . $id . '"', $link ), $content );
69
+ } else
70
+ $content = str_replace( $link, preg_replace( '/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . ( $result[1] !== '' ? $result[1] . ' ' : '' ) . $this->options['settings']['selector'] . '-video-' . $id . '"', $link ), $content );
71
+ }
72
+ } else
73
+ $content = str_replace( $link, '<a' . $links[1][$id] . 'href="' . $links[2][$id] . '"' . $links[6][$id] . ' rel="' . $this->options['settings']['selector'] . '-video-' . $id . '">', $content );
74
+ }
75
+ }
76
+
77
+ return $content;
78
+ }
79
+
80
+ /**
81
+ * Add lightbox to to image links
82
+ *
83
+ * @param mixed $content
84
+ * @return mixed
85
+ */
86
+ public function add_links_lightbox_selector( $content ) {
87
+ preg_match_all( '/<a(.*?)href=(?:\'|")([^<]*?).(bmp|gif|jpeg|jpg|png)(?:\'|")(.*?)>/i', $content, $links );
88
+
89
+ if ( isset( $links[0] ) ) {
90
+ if ( $this->options['settings']['images_as_gallery'] === true )
91
+ $rel_hash = '[gallery-' . $this->generate_password( 4 ) . ']';
92
+
93
+ foreach ( $links[0] as $id => $link ) {
94
+ if ( preg_match( '/<a.*?rel=(?:\'|")(.*?)(?:\'|").*?>/', $link, $result ) === 1 ) {
95
+ if ( $this->options['settings']['images_as_gallery'] === true ) {
96
+ $content = str_replace( $link, preg_replace( '/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . $this->options['settings']['selector'] . $rel_hash . '"' . ( $this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ), $link ), $content );
97
+ } else {
98
+ if ( isset( $result[1] ) ) {
99
+ $new_rels = array();
100
+ $rels = explode( ' ', $result[1] );
101
+
102
+ if ( in_array( $this->options['settings']['selector'], $rels, true ) ) {
103
+ foreach ( $rels as $no => $rel ) {
104
+ if ( $rel !== $this->options['settings']['selector'] )
105
+ $new_rels[] = $rel;
106
+ }
107
+
108
+ $content = str_replace( $link, preg_replace( '/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . ( ! empty( $new_rels ) ? implode( ' ', $new_rels ) . ' ' : '' ) . $this->options['settings']['selector'] . '-' . $id . '"' . ( $this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ), $link ), $content );
109
+ } else
110
+ $content = str_replace( $link, preg_replace( '/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . ( $result[1] !== '' ? $result[1] . ' ' : '' ) . $this->options['settings']['selector'] . '-' . $id . '"' . ( $this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ), $link ), $content );
111
+ }
112
+ }
113
+ } else
114
+ $content = str_replace( $link, '<a' . $links[1][$id] . 'href="' . $links[2][$id] . '.' . $links[3][$id] . '"' . $links[4][$id] . ' rel="' . $this->options['settings']['selector'] . ( $this->options['settings']['images_as_gallery'] === true ? $rel_hash : '-' . $id ) . '"' . ( $this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ) . '>', $content );
115
+ }
116
+ }
117
+
118
+ return $content;
119
+ }
120
+
121
+ /**
122
+ * Add lightbox to gallery
123
+ */
124
+ public function add_gallery_lightbox_selector( $link, $id, $size, $permalink, $icon, $text ) {
125
+
126
+ // gallery image title
127
+ $title = '';
128
+
129
+ if ( ( $title_arg = $this->options['settings']['gallery_image_title'] ) !== 'default' ) {
130
+ $title_arg = apply_filters( 'rl_lightbox_attachment_image_title_arg', $title_arg, $link, $id );
131
+ $title = wp_strip_all_tags( trim( $this->get_attachment_title( $id, $title_arg ) ) );
132
+ }
133
+
134
+ if ( $title ) {
135
+ $link = str_replace( '<a href', '<a title="'. $title .'" href', $link );
136
+ }
137
+
138
+ $link = ( preg_match( '/<a.*? rel=("|\').*?("|\')>/', $link ) === 1 ? preg_replace( '/(<a.*? rel=(?:"|\').*?)((?:"|\').*?>)/', '$1 ' . $this->options['settings']['selector'] . '[gallery-' . $this->gallery_no . ']' . '$2', $link ) : preg_replace( '/(<a.*?)>/', '$1 rel="' . $this->options['settings']['selector'] . '[gallery-' . $this->gallery_no . ']' . '">', $link ) );
139
+
140
+ $link = ( preg_match( '/<a.*? href=("|\').*?("|\')>/', $link ) === 1 ? preg_replace( '/(<a.*? href=(?:"|\')).*?((?:"|\').*?>)/', '$1' . wp_get_attachment_url( $id ) . '$2', $link ) : preg_replace( '/(<a.*?)>/', '$1 href="' . wp_get_attachment_url( $id ) . '">', $link ) );
141
+
142
+ // gallery image size
143
+ if ( $permalink && $this->options['settings']['gallery_image_size'] !== 'full' ) {
144
+ $image = wp_get_attachment_image_src( $id, $this->options['settings']['gallery_image_size'] );
145
+ $link = preg_replace( '/href=\'(.*?)\'/', 'href=\'' . $image[0] . '\'', $link );
146
+ }
147
+
148
+ return apply_filters( 'rl_lightbox_attachment_link', $link, $id, $size, $permalink, $icon, $text );
149
+ }
150
+
151
+ /**
152
+ * Add lightbox to Jetpack tiled gallery
153
+ *
154
+ * @param mixed $content
155
+ * @param array $attr
156
+ * @return mixed
157
+ */
158
+ public function add_tiled_gallery_lightbox_selector( $content, $attr ) {
159
+ preg_match_all( '/<a(.*?)href=(?:\'|")([^<]*?).(bmp|gif|jpeg|jpg|png)(?:\'|")(.*?)>/i', $content, $links );
160
+
161
+ if ( isset( $links[0] ) ) {
162
+
163
+ foreach ( $links[0] as $id => $link ) {
164
+
165
+ // gallery image title
166
+ $title = '';
167
+
168
+ if ( ( $title_arg = $this->options['settings']['gallery_image_title'] ) !== 'default' ) {
169
+
170
+ $image_id = (int) $this->get_attachment_id_by_url( $links[2][$id] . '.' . $links[3][$id] );
171
+
172
+ if ( $image_id ) {
173
+ $title_arg = apply_filters( 'rl_lightbox_attachment_image_title_arg', $title_arg, $image_id, $links[2][$id] . '.' . $links[3][$id] );
174
+ $title = wp_strip_all_tags( trim( $this->get_attachment_title( $image_id, $title_arg ) ) );
175
+ }
176
+ }
177
+
178
+ if ( preg_match( '/<a.*?rel=(?:\'|")(.*?)(?:\'|").*?>/', $link, $result ) === 1 ) {
179
+ $content = str_replace( $link, preg_replace( '/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . $this->options['settings']['selector'] . '"' . ( ! empty ( $title ) ? ' title="' . $title . '"' : '' ) . ( $this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ), $link ), $content );
180
+ } else {
181
+ $content = str_replace( $link, '<a' . $links[1][$id] . 'href="' . $links[2][$id] . '.' . $links[3][$id] . '"' . $links[4][$id] . ' rel="' . $this->options['settings']['selector'] . '"' . ( $this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ) . ( ! empty ( $title ) ? ' title="' . $title . '"' : '' ) . '>', $content );
182
+ }
183
+ }
184
+ }
185
+ return $content;
186
+ }
187
+
188
+ /**
189
+ * Get attachment title function
190
+ *
191
+ * @param int $id
192
+ * @param string $title_arg
193
+ * @return string
194
+ */
195
+ private function get_attachment_title( $id, $title_arg ) {
196
+
197
+ if ( empty( $title_arg ) || empty( $id ) ) {
198
+ return false;
199
+ }
200
+
201
+ switch( $title_arg ) {
202
+ case 'title':
203
+ $title = get_the_title( $id );
204
+ break;
205
+ case 'caption':
206
+ $title = get_post_field( 'post_excerpt', $id ) ;
207
+ break;
208
+ case 'alt':
209
+ $title = get_post_meta( $id, '_wp_attachment_image_alt', true );
210
+ break;
211
+ case 'description':
212
+ $title = get_post_field( 'post_content', $id ) ;
213
+ break;
214
+ default:
215
+ $title = '';
216
+ }
217
+
218
+ return apply_filters( 'rl_get_attachment_title', $title, $id, $title_arg );
219
+
220
+ }
221
+
222
+ /**
223
+ * Get attachment id by url function, adjusted to work cropped images
224
+ *
225
+ * @param string $url
226
+ * @return int
227
+ */
228
+ private function get_attachment_id_by_url( $url ) {
229
+ $post_id = attachment_url_to_postid( $url );
230
+
231
+ if ( ! $post_id ) {
232
+ $dir = wp_upload_dir();
233
+ $path = $url;
234
+
235
+ if ( 0 === strpos( $path, $dir['baseurl'] . '/' ) ) {
236
+ $path = substr( $path, strlen( $dir['baseurl'] . '/' ) );
237
+ }
238
+
239
+ if ( preg_match( '/^(.*)(\-\d*x\d*)(\.\w{1,})/i', $path, $matches ) ){
240
+ $url = $dir['baseurl'] . '/' . $matches[1] . $matches[3];
241
+ $post_id = attachment_url_to_postid( $url );
242
+ }
243
+ }
244
+
245
+ return (int) $post_id;
246
+ }
247
+
248
+ /**
249
+ * Helper: generate password without wp_rand() and DB call it uses
250
+ *
251
+ * @param int $length
252
+ * @return string
253
+ */
254
+ private function generate_password( $length = 64 ) {
255
+ $chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
256
+ $password = '';
257
+
258
+ for( $i = 0; $i < $length; $i++ ) {
259
+ $password .= substr( $chars, mt_rand( 0, strlen( $chars ) - 1 ), 1 );
260
+ }
261
+
262
+ return $password;
263
+ }
264
+
265
+ /**
266
+ * Helper: gallery number function
267
+ *
268
+ * @param mixed $content
269
+ * @param array $attr
270
+ * @return mixed
271
+ */
272
+ public function gallery_attributes( $content, $attr ) {
273
+
274
+ ++ $this->gallery_no;
275
+
276
+ return $content;
277
+ }
278
+
279
+ }
includes/class-settings.php ADDED
@@ -0,0 +1,1231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) )
3
+ exit;
4
+
5
+ new Responsive_Lightbox_Settings();
6
+
7
+ /**
8
+ * Responsive Lightbox settings class.
9
+ *
10
+ * @class Responsive_Lightbox_Settings
11
+ */
12
+ class Responsive_Lightbox_Settings {
13
+
14
+ private $settings = array();
15
+ private $scripts = array();
16
+ private $options = array();
17
+ private $defaults = array();
18
+ private $tabs = array();
19
+ private $choices = array();
20
+ private $loading_places = array();
21
+
22
+ public function __construct() {
23
+
24
+ // set instance
25
+ Responsive_Lightbox()->settings = $this;
26
+
27
+ // set vars
28
+ $this->defaults = Responsive_Lightbox()->defaults;
29
+ $this->options = Responsive_Lightbox()->options;
30
+
31
+ // actions
32
+ add_action( 'admin_init', array( &$this, 'register_settings' ) );
33
+ add_action( 'admin_menu', array( &$this, 'admin_menu_options' ) );
34
+ add_action( 'after_setup_theme', array( &$this, 'load_defaults' ) );
35
+ }
36
+
37
+ /**
38
+ * Load default settings.
39
+ *
40
+ * @return void
41
+ */
42
+ public function load_defaults() {
43
+
44
+ $this->scripts = array(
45
+ 'prettyphoto' => array(
46
+ 'name' => __( 'prettyPhoto', 'responsive-lightbox' ),
47
+ 'animation_speeds' => array(
48
+ 'slow' => __( 'slow', 'responsive-lightbox' ),
49
+ 'normal' => __( 'normal', 'responsive-lightbox' ),
50
+ 'fast' => __( 'fast', 'responsive-lightbox' )
51
+ ),
52
+ 'themes' => array(
53
+ 'pp_default' => __( 'default', 'responsive-lightbox' ),
54
+ 'light_rounded' => __( 'light rounded', 'responsive-lightbox' ),
55
+ 'dark_rounded' => __( 'dark rounded', 'responsive-lightbox' ),
56
+ 'light_square' => __( 'light square', 'responsive-lightbox' ),
57
+ 'dark_square' => __( 'dark square', 'responsive-lightbox' ),
58
+ 'facebook' => __( 'facebook', 'responsive-lightbox' )
59
+ ),
60
+ 'wmodes' => array(
61
+ 'window' => __( 'window', 'responsive-lightbox' ),
62
+ 'transparent' => __( 'transparent', 'responsive-lightbox' ),
63
+ 'opaque' => __( 'opaque', 'responsive-lightbox' ),
64
+ 'direct' => __( 'direct', 'responsive-lightbox' ),
65
+ 'gpu' => __( 'gpu', 'responsive-lightbox' )
66
+ )
67
+ ),
68
+ 'swipebox' => array(
69
+ 'name' => __( 'SwipeBox', 'responsive-lightbox' ),
70
+ 'animations' => array(
71
+ 'css' => __( 'CSS', 'responsive-lightbox' ),
72
+ 'jquery' => __( 'jQuery', 'responsive-lightbox' )
73
+ )
74
+ ),
75
+ 'fancybox' => array(
76
+ 'name' => __( 'FancyBox', 'responsive-lightbox' ),
77
+ 'transitions' => array(
78
+ 'elastic' => __( 'elastic', 'responsive-lightbox' ),
79
+ 'fade' => __( 'fade', 'responsive-lightbox' ),
80
+ 'none' => __( 'none', 'responsive-lightbox' )
81
+ ),
82
+ 'scrollings' => array(
83
+ 'auto' => __( 'auto', 'responsive-lightbox' ),
84
+ 'yes' => __( 'yes', 'responsive-lightbox' ),
85
+ 'no' => __( 'no', 'responsive-lightbox' )
86
+ ),
87
+ 'easings' => array(
88
+ 'swing' => __( 'swing', 'responsive-lightbox' ),
89
+ 'linear' => __( 'linear', 'responsive-lightbox' )
90
+ ),
91
+ 'positions' => array(
92
+ 'outside' => __( 'outside', 'responsive-lightbox' ),
93
+ 'inside' => __( 'inside', 'responsive-lightbox' ),
94
+ 'over' => __( 'over', 'responsive-lightbox' )
95
+ )
96
+ ),
97
+ 'nivo' => array(
98
+ 'name' => __( 'Nivo Lightbox', 'responsive-lightbox' ),
99
+ 'effects' => array(
100
+ 'fade' => __( 'fade', 'responsive-lightbox' ),
101
+ 'fadeScale' => __( 'fade scale', 'responsive-lightbox' ),
102
+ 'slideLeft' => __( 'slide left', 'responsive-lightbox' ),
103
+ 'slideRight' => __( 'slide right', 'responsive-lightbox' ),
104
+ 'slideUp' => __( 'slide up', 'responsive-lightbox' ),
105
+ 'slideDown' => __( 'slide down', 'responsive-lightbox' ),
106
+ 'fall' => __( 'fall', 'responsive-lightbox' )
107
+ )
108
+ ),
109
+ 'imagelightbox' => array(
110
+ 'name' => __( 'Image Lightbox', 'responsive-lightbox' )
111
+ )
112
+ );
113
+
114
+ $this->choices = array(
115
+ 'yes' => __( 'Enable', 'responsive-lightbox' ),
116
+ 'no' => __( 'Disable', 'responsive-lightbox' )
117
+ );
118
+
119
+ $this->gallery_image_titles = array(
120
+ 'default' => __( 'None (default)', 'responsive-lightbox' ),
121
+ 'title' => __( 'Image Title', 'responsive-lightbox' ),
122
+ 'caption' => __( 'Image Caption', 'responsive-lightbox' ),
123
+ 'alt' => __( 'Image Alt Text', 'responsive-lightbox' ),
124
+ 'description' => __( 'Image Description', 'responsive-lightbox' )
125
+ );
126
+
127
+ $this->loading_places = array(
128
+ 'header' => __( 'Header', 'responsive-lightbox' ),
129
+ 'footer' => __( 'Footer', 'responsive-lightbox' )
130
+ );
131
+
132
+ // get scripts
133
+ foreach ( $this->scripts as $key => $value ) {
134
+ $scripts[$key] = $value['name'];
135
+ }
136
+
137
+ // get image sizes
138
+ $sizes = apply_filters( 'image_size_names_choose', array(
139
+ 'thumbnail' => __( 'Thumbnail', 'responsive-lightbox' ),
140
+ 'medium' => __( 'Medium', 'responsive-lightbox' ),
141
+ 'large' => __( 'Large', 'responsive-lightbox' ),
142
+ 'full' => __( 'Full Size (default)', 'responsive-lightbox' ),
143
+ ) );
144
+
145
+ $this->settings = array(
146
+ 'settings' => array(
147
+ 'option_group' => 'responsive_lightbox_settings',
148
+ 'option_name' => 'responsive_lightbox_settings',
149
+ // 'callback' => array( &$this, 'validate_options' ),
150
+ 'sections' => array(
151
+ 'responsive_lightbox_settings' => array(
152
+ 'title' => __( 'General settings', 'responsive-lightbox' ),
153
+ // 'callback' => '',
154
+ // 'page' => '',
155
+ ),
156
+ ),
157
+ 'prefix' => 'rl',
158
+ 'fields' => array(
159
+ 'script' => array(
160
+ // 'name' => '',
161
+ 'title' => __( 'Lightbox script', 'responsive-lightbox' ),
162
+ // 'callback' => '',
163
+ // 'page' => '',
164
+ 'section' => 'responsive_lightbox_settings',
165
+ 'type' => 'radio',
166
+ 'label' => '',
167
+ 'description' => __( 'Select your preffered ligthbox effect script.', 'responsive-lightbox' ),
168
+ 'options' => $scripts,
169
+ // 'options_cb' => '',
170
+ // 'id' => '',
171
+ // 'class' => array(),
172
+ ),
173
+ 'selector' => array(
174
+ 'title' => __( 'Selector', 'responsive-lightbox' ),
175
+ 'section' => 'responsive_lightbox_settings',
176
+ 'type' => 'text',
177
+ 'description' => __( 'Enter the rel selector lightbox effect will be applied to.', 'responsive-lightbox' ),
178
+ ),
179
+ 'image_links' => array(
180
+ 'title' => __( 'Image links', 'responsive-lightbox' ),
181
+ 'section' => 'responsive_lightbox_settings',
182
+ 'type' => 'boolean',
183
+ 'label' => __( 'Add lightbox to WordPress image links by default.', 'responsive-lightbox' ),
184
+ ),
185
+ 'images_as_gallery' => array(
186
+ 'title' => __( 'Single images as gallery', 'responsive-lightbox' ),
187
+ 'section' => 'responsive_lightbox_settings',
188
+ 'type' => 'boolean',
189
+ 'label' => __( 'Display single post images as a gallery.', 'responsive-lightbox' ),
190
+ ),
191
+ 'galleries' => array(
192
+ 'title' => __( 'Galleries', 'responsive-lightbox' ),
193
+ 'section' => 'responsive_lightbox_settings',
194
+ 'type' => 'boolean',
195
+ 'label' => __( 'Add lightbox to WordPress image galleries by default.', 'responsive-lightbox' ),
196
+ ),
197
+ 'gallery_image_size' => array(
198
+ 'title' => __( 'Gallery image size', 'responsive-lightbox' ),
199
+ 'section' => 'responsive_lightbox_settings',
200
+ 'type' => 'select',
201
+ 'description' => __( 'Select image size for gallery image links.', 'responsive-lightbox' ),
202
+ 'options' => $sizes,
203
+ ),
204
+ 'gallery_image_title' => array(
205
+ 'title' => __( 'Gallery image title', 'responsive-lightbox' ),
206
+ 'section' => 'responsive_lightbox_settings',
207
+ 'type' => 'select',
208
+ 'description' => __( 'Select title for images in native WordPress galleries.', 'responsive-lightbox' ),
209
+ 'options' => $this->gallery_image_titles,
210
+ ),
211
+ 'force_custom_gallery' => array(
212
+ 'title' => __( 'Force gallery lightbox', 'responsive-lightbox' ),
213
+ 'section' => 'responsive_lightbox_settings',
214
+ 'type' => 'boolean',
215
+ 'label' => __( 'Try to force lightbox for custom WP gallery replacements, like Jetpack tiled galleries.', 'responsive-lightbox' ),
216
+ ),
217
+ 'videos' => array(
218
+ 'title' => __( 'Video links', 'responsive-lightbox' ),
219
+ 'section' => 'responsive_lightbox_settings',
220
+ 'type' => 'boolean',
221
+ 'label' => __( 'Add lightbox to YouTube and Vimeo video links by default.', 'responsive-lightbox' ),
222
+ ),
223
+ 'enable_custom_events' => array(
224
+ 'title' => __( 'Custom events', 'responsive-lightbox' ),
225
+ 'section' => 'responsive_lightbox_settings',
226
+ 'type' => 'multiple',
227
+ 'fields' => array(
228
+ 'enable_custom_events' => array(
229
+ 'type' => 'boolean',
230
+ 'label' => __( 'Enable triggering lightbox on custom jQuery events.', 'responsive-lightbox' ),
231
+ ),
232
+ 'custom_events' => array(
233
+ 'type' => 'text',
234
+ 'description' => __( 'Enter a space separated list of events.', 'responsive-lightbox' ),
235
+ )
236
+ ),
237
+ ),
238
+ 'loading_place' => array(
239
+ 'title' => __( 'Loading place', 'responsive-lightbox' ),
240
+ 'section' => 'responsive_lightbox_settings',
241
+ 'type' => 'radio',
242
+ 'description' => __( 'Select where all the lightbox scripts should be placed.', 'responsive-lightbox' ),
243
+ 'options' => $this->loading_places,
244
+ ),
245
+ 'deactivation_delete' => array(
246
+ 'title' => __( 'Delete data', 'responsive-lightbox' ),
247
+ 'section' => 'responsive_lightbox_settings',
248
+ 'type' => 'boolean',
249
+ 'label' => __( 'Delete all plugin settings on deactivation.', 'responsive-lightbox' ),
250
+ ),
251
+ ),
252
+ ),
253
+ 'configuration' => array(
254
+ 'option_group' => 'responsive_lightbox_configuration',
255
+ 'option_name' => 'responsive_lightbox_configuration',
256
+ // 'callback' => array( &$this, 'validate_options' ),
257
+ 'sections' => array(
258
+ 'responsive_lightbox_configuration' => array(
259
+ 'title' => __( 'Lightbox settings', 'responsive-lightbox' ) . ': ' . $this->scripts[$this->options['settings']['script']]['name'],
260
+ // 'callback' => '',
261
+ // 'page' => '',
262
+ ),
263
+ ),
264
+ 'prefix' => 'rl',
265
+ 'fields' => array(
266
+ )
267
+ )
268
+ );
269
+
270
+ switch ( $this->options['settings']['script'] ) {
271
+
272
+ case ( 'swipebox' ) :
273
+
274
+ $this->settings['configuration']['prefix'] = 'rl_sb';
275
+ $this->settings['configuration']['fields'] = array(
276
+ 'animation' => array(
277
+ 'title' => __( 'Animation type', 'responsive-lightbox' ),
278
+ 'section' => 'responsive_lightbox_configuration',
279
+ 'type' => 'radio',
280
+ 'label' => '',
281
+ 'description' => __( 'Select a method of applying a lightbox effect.', 'responsive-lightbox' ),
282
+ 'options' => $this->scripts['swipebox']['animations'],
283
+ 'parent' => 'swipebox'
284
+ ),
285
+ 'force_png_icons' => array(
286
+ 'title' => __( 'Force PNG icons', 'responsive-lightbox' ),
287
+ 'section' => 'responsive_lightbox_configuration',
288
+ 'type' => 'boolean',
289
+ 'label' => __( 'Enable this if you\'re having problems with navigation icons not visible on some devices.', 'responsive-lightbox' ),
290
+ 'parent' => 'swipebox'
291
+ ),
292
+ 'hide_close_mobile' => array(
293
+ 'title' => __( 'Hide close on mobile', 'responsive-lightbox' ),
294
+ 'section' => 'responsive_lightbox_configuration',
295
+ 'type' => 'boolean',
296
+ 'label' => __( 'Hide the close button on mobile devices.', 'responsive-lightbox' ),
297
+ 'parent' => 'swipebox'
298
+ ),
299
+ 'hide_bars' => array(
300
+ 'title' => __( 'Top and bottom bars', 'responsive-lightbox' ),
301
+ 'section' => 'responsive_lightbox_configuration',
302
+ 'type' => 'multiple',
303
+ 'fields' => array(
304
+ 'hide_bars' => array(
305
+ 'type' => 'boolean',
306
+ 'label' => __( 'Hide top and bottom bars after a period of time.', 'responsive-lightbox' ),
307
+ 'parent' => 'swipebox'
308
+ ),
309
+ 'hide_bars_delay' => array(
310
+ 'type' => 'number',
311
+ 'description' => __( 'Enter the time after which the top and bottom bars will be hidden (when hiding is enabled).', 'responsive-lightbox' ),
312
+ 'append' => 'ms',
313
+ 'parent' => 'swipebox'
314
+ )
315
+ )
316
+ ),
317
+ 'video_max_width' => array(
318
+ 'title' => __( 'Video max width', 'responsive-lightbox' ),
319
+ 'section' => 'responsive_lightbox_configuration',
320
+ 'type' => 'number',
321
+ 'description' => __( 'Enter the max video width in a lightbox.', 'responsive-lightbox' ),
322
+ 'append' => 'px',
323
+ 'parent' => 'swipebox'
324
+ ),
325
+ 'loop_at_end' => array(
326
+ 'title' => __( 'Loop at end', 'responsive-lightbox' ),
327
+ 'section' => 'responsive_lightbox_configuration',
328
+ 'type' => 'boolean',
329
+ 'label' => __( 'True will return to the first image after the last image is reached.', 'responsive-lightbox' ),
330
+ 'parent' => 'swipebox'
331
+ ),
332
+ );
333
+
334
+ break;
335
+
336
+ case ( 'prettyphoto' ) :
337
+
338
+ $this->settings['configuration']['prefix'] = 'rl_pp';
339
+ $this->settings['configuration']['fields'] = array(
340
+ 'animation_speed' => array(
341
+ 'title' => __( 'Animation speed', 'responsive-lightbox' ),
342
+ 'section' => 'responsive_lightbox_configuration',
343
+ 'type' => 'radio',
344
+ 'label' => '',
345
+ 'description' => __( 'Select animation speed for lightbox effect.', 'responsive-lightbox' ),
346
+ 'options' => $this->scripts['prettyphoto']['animation_speeds'],
347
+ 'parent' => 'prettyphoto'
348
+ ),
349
+ 'slideshow' => array(
350
+ 'title' => __( 'Slideshow', 'responsive-lightbox' ),
351
+ 'section' => 'responsive_lightbox_configuration',
352
+ 'type' => 'multiple',
353
+ 'fields' => array(
354
+ 'slideshow' => array(
355
+ 'type' => 'boolean',
356
+ 'label' => __( 'Display images as slideshow', 'responsive-lightbox' ),
357
+ 'parent' => 'prettyphoto'
358
+ ),
359
+ 'slideshow_delay' => array(
360
+ 'type' => 'number',
361
+ 'description' => __( 'Enter time (in miliseconds).', 'responsive-lightbox' ),
362
+ 'append' => 'ms',
363
+ 'parent' => 'prettyphoto'
364
+ )
365
+ )
366
+ ),
367
+ 'slideshow_autoplay' => array(
368
+ 'title' => __( 'Slideshow autoplay', 'responsive-lightbox' ),
369
+ 'section' => 'responsive_lightbox_configuration',
370
+ 'type' => 'boolean',
371
+ 'label' => __( 'Automatically start slideshow.', 'responsive-lightbox' ),
372
+ 'parent' => 'prettyphoto'
373
+ ),
374
+ 'opacity' => array(
375
+ 'title' => __( 'Opacity', 'responsive-lightbox' ),
376
+ 'section' => 'responsive_lightbox_configuration',
377
+ 'type' => 'range',
378
+ 'description' => __( 'Value between 0 and 100, 100 for no opacity.', 'responsive-lightbox' ),
379
+ 'min' => 0,
380
+ 'max' => 100,
381
+ 'parent' => 'prettyphoto'
382
+ ),
383
+ 'show_title' => array(
384
+ 'title' => __( 'Show title', 'responsive-lightbox' ),
385
+ 'section' => 'responsive_lightbox_configuration',
386
+ 'type' => 'boolean',
387
+ 'label' => __( 'Display image title.', 'responsive-lightbox' ),
388
+ 'parent' => 'prettyphoto'
389
+ ),
390
+ 'allow_resize' => array(
391
+ 'title' => __( 'Allow resize big images', 'responsive-lightbox' ),
392
+ 'section' => 'responsive_lightbox_configuration',
393
+ 'type' => 'boolean',
394
+ 'label' => __( 'Resize the photos bigger than viewport.', 'responsive-lightbox' ),
395
+ 'parent' => 'prettyphoto'
396
+ ),
397
+ 'allow_expand' => array(
398
+ 'title' => __( 'Allow expand', 'responsive-lightbox' ),
399
+ 'section' => 'responsive_lightbox_configuration',
400
+ 'type' => 'boolean',
401
+ 'label' => __( 'Allow expanding images.', 'responsive-lightbox' ),
402
+ 'parent' => 'prettyphoto'
403
+ ),
404
+ 'width' => array(
405
+ 'title' => __( 'Video width', 'responsive-lightbox' ),
406
+ 'section' => 'responsive_lightbox_configuration',
407
+ 'type' => 'number',
408
+ 'append' => 'px',
409
+ 'parent' => 'prettyphoto'
410
+ ),
411
+ 'height' => array(
412
+ 'title' => __( 'Video height', 'responsive-lightbox' ),
413
+ 'section' => 'responsive_lightbox_configuration',
414
+ 'type' => 'number',
415
+ 'append' => 'px',
416
+ 'parent' => 'prettyphoto'
417
+ ),
418
+ 'theme' => array(
419
+ 'title' => __( 'Theme', 'responsive-lightbox' ),
420
+ 'section' => 'responsive_lightbox_configuration',
421
+ 'type' => 'radio',
422
+ 'description' => __( 'Select the theme for lightbox effect.', 'responsive-lightbox' ),
423
+ 'options' => $this->scripts['prettyphoto']['themes'],
424
+ 'parent' => 'prettyphoto'
425
+ ),
426
+ 'horizontal_padding' => array(
427
+ 'title' => __( 'Horizontal padding', 'responsive-lightbox' ),
428
+ 'section' => 'responsive_lightbox_configuration',
429
+ 'type' => 'number',
430
+ 'append' => 'px',
431
+ 'parent' => 'prettyphoto'
432
+ ),
433
+ 'hide_flash' => array(
434
+ 'title' => __( 'Hide Flash', 'responsive-lightbox' ),
435
+ 'section' => 'responsive_lightbox_configuration',
436
+ 'type' => 'boolean',
437
+ 'label' => __( 'Hide all the flash objects on a page. Enable this if flash appears over prettyPhoto.', 'responsive-lightbox' ),
438
+ 'parent' => 'prettyphoto'
439
+ ),
440
+ 'wmode' => array(
441
+ 'title' => __( 'Flash Window Mode (wmode)', 'responsive-lightbox' ),
442
+ 'section' => 'responsive_lightbox_configuration',
443
+ 'type' => 'radio',
444
+ 'description' => __( 'Select flash window mode.', 'responsive-lightbox' ),
445
+ 'options' => $this->scripts['prettyphoto']['wmodes'],
446
+ 'parent' => 'prettyphoto'
447
+ ),
448
+ 'video_autoplay' => array(
449
+ 'title' => __( 'Video autoplay', 'responsive-lightbox' ),
450
+ 'section' => 'responsive_lightbox_configuration',
451
+ 'type' => 'boolean',
452
+ 'label' => __( 'Automatically start videos.', 'responsive-lightbox' ),
453
+ 'parent' => 'prettyphoto'
454
+ ),
455
+ 'modal' => array(
456
+ 'title' => __( 'Modal', 'responsive-lightbox' ),
457
+ 'section' => 'responsive_lightbox_configuration',
458
+ 'type' => 'boolean',
459
+ 'label' => __( 'If set to true, only the close button will close the window.', 'responsive-lightbox' ),
460
+ 'parent' => 'prettyphoto'
461
+ ),
462
+ 'deeplinking' => array(
463
+ 'title' => __( 'Deeplinking', 'responsive-lightbox' ),
464
+ 'section' => 'responsive_lightbox_configuration',
465
+ 'type' => 'boolean',
466
+ 'label' => __( 'Allow prettyPhoto to update the url to enable deeplinking.', 'responsive-lightbox' ),
467
+ 'parent' => 'prettyphoto'
468
+ ),
469
+ 'overlay_gallery' => array(
470
+ 'title' => __( 'Overlay gallery', 'responsive-lightbox' ),
471
+ 'section' => 'responsive_lightbox_configuration',
472
+ 'type' => 'boolean',
473
+ 'label' => __( 'If enabled, a gallery will overlay the fullscreen image on mouse over.', 'responsive-lightbox' ),
474
+ 'parent' => 'prettyphoto'
475
+ ),
476
+ 'keyboard_shortcuts' => array(
477
+ 'title' => __( 'Keyboard shortcuts', 'responsive-lightbox' ),
478
+ 'section' => 'responsive_lightbox_configuration',
479
+ 'type' => 'boolean',
480
+ 'label' => __( 'Set to false if you open forms inside prettyPhoto.', 'responsive-lightbox' ),
481
+ 'parent' => 'prettyphoto'
482
+ ),
483
+ 'social' => array(
484
+ 'title' => __( 'Social (Twitter, Facebook)', 'responsive-lightbox' ),
485
+ 'section' => 'responsive_lightbox_configuration',
486
+ 'type' => 'boolean',
487
+ 'label' => __( 'Display links to Facebook and Twitter.', 'responsive-lightbox' ),
488
+ 'parent' => 'prettyphoto'
489
+ ),
490
+ );
491
+
492
+ break;
493
+
494
+ case ( 'fancybox' ) :
495
+
496
+ $this->settings['configuration']['prefix'] = 'rl_fb';
497
+ $this->settings['configuration']['fields'] = array(
498
+ 'modal' => array(
499
+ 'title' => __( 'Modal', 'responsive-lightbox' ),
500
+ 'section' => 'responsive_lightbox_configuration',
501
+ 'type' => 'boolean',
502
+ 'label' => __( 'When true, "overlayShow" is set to true and "hideOnOverlayClick", "hideOnContentClick", "enableEscapeButton", "showCloseButton" are set to false.', 'responsive-lightbox' ),
503
+ 'parent' => 'fancybox'
504
+ ),
505
+ 'show_overlay' => array(
506
+ 'title' => __( 'Show overlay', 'responsive-lightbox' ),
507
+ 'section' => 'responsive_lightbox_configuration',
508
+ 'type' => 'boolean',
509
+ 'label' => __( 'Toggle overlay.', 'responsive-lightbox' ),
510
+ 'parent' => 'fancybox'
511
+ ),
512
+ 'show_close_button' => array(
513
+ 'title' => __( 'Show close button', 'responsive-lightbox' ),
514
+ 'section' => 'responsive_lightbox_configuration',
515
+ 'type' => 'boolean',
516
+ 'label' => __( 'Toggle close button.', 'responsive-lightbox' ),
517
+ 'parent' => 'fancybox'
518
+ ),
519
+ 'enable_escape_button' => array(
520
+ 'title' => __( 'Enable escape button', 'responsive-lightbox' ),
521
+ 'section' => 'responsive_lightbox_configuration',
522
+ 'type' => 'boolean',
523
+ 'label' => __( 'Toggle if pressing Esc button closes FancyBox.', 'responsive-lightbox' ),
524
+ 'parent' => 'fancybox'
525
+ ),
526
+ 'hide_on_overlay_click' => array(
527
+ 'title' => __( 'Hide on overlay click', 'responsive-lightbox' ),
528
+ 'section' => 'responsive_lightbox_configuration',
529
+ 'type' => 'boolean',
530
+ 'label' => __( 'Toggle if clicking the overlay should close FancyBox.', 'responsive-lightbox' ),
531
+ 'parent' => 'fancybox'
532
+ ),
533
+ 'hide_on_content_click' => array(
534
+ 'title' => __( 'Hide on content click', 'responsive-lightbox' ),
535
+ 'section' => 'responsive_lightbox_configuration',
536
+ 'type' => 'boolean',
537
+ 'label' => __( 'Toggle if clicking the content should close FancyBox.', 'responsive-lightbox' ),
538
+ 'parent' => 'fancybox'
539
+ ),
540
+ 'cyclic' => array(
541
+ 'title' => __( 'Cyclic', 'responsive-lightbox' ),
542
+ 'section' => 'responsive_lightbox_configuration',
543
+ 'type' => 'boolean',
544
+ 'label' => __( 'When true, galleries will be cyclic, allowing you to keep pressing next/back.', 'responsive-lightbox' ),
545
+ 'parent' => 'fancybox'
546
+ ),
547
+ 'show_nav_arrows' => array(
548
+ 'title' => __( 'Show nav arrows', 'responsive-lightbox' ),
549
+ 'section' => 'responsive_lightbox_configuration',
550
+ 'type' => 'boolean',
551
+ 'label' => __( 'Toggle navigation arrows.', 'responsive-lightbox' ),
552
+ 'parent' => 'fancybox'
553
+ ),
554
+ 'auto_scale' => array(
555
+ 'title' => __( 'Auto scale', 'responsive-lightbox' ),
556
+ 'section' => 'responsive_lightbox_configuration',
557
+ 'type' => 'boolean',
558
+ 'label' => __( 'If true, FancyBox is scaled to fit in viewport.', 'responsive-lightbox' ),
559
+ 'parent' => 'fancybox'
560
+ ),
561
+ 'scrolling' => array(
562
+ 'title' => __( 'Scrolling (in/out)', 'responsive-lightbox' ),
563
+ 'section' => 'responsive_lightbox_configuration',
564
+ 'type' => 'radio',
565
+ 'description' => __( 'Set the overflow CSS property to create or hide scrollbars.', 'responsive-lightbox' ),
566
+ 'options' => $this->scripts['fancybox']['scrollings'],
567
+ 'parent' => 'fancybox'
568
+ ),
569
+ 'center_on_scroll' => array(
570
+ 'title' => __( 'Center on scroll', 'responsive-lightbox' ),
571
+ 'section' => 'responsive_lightbox_configuration',
572
+ 'type' => 'boolean',
573
+ 'label' => __( 'When true, FancyBox is centered while scrolling page.', 'responsive-lightbox' ),
574
+ 'parent' => 'fancybox'
575
+ ),
576
+ 'opacity' => array(
577
+ 'title' => __( 'Opacity', 'responsive-lightbox' ),
578
+ 'section' => 'responsive_lightbox_configuration',
579
+ 'type' => 'boolean',
580
+ 'label' => __( 'When true, transparency of content is changed for elastic transitions.', 'responsive-lightbox' ),
581
+ 'parent' => 'fancybox'
582
+ ),
583
+ 'overlay_opacity' => array(
584
+ 'title' => __( 'Overlay opacity', 'responsive-lightbox' ),
585
+ 'section' => 'responsive_lightbox_configuration',
586
+ 'type' => 'range',
587
+ 'description' => __( 'Opacity of the overlay.', 'responsive-lightbox' ),
588
+ 'min' => 0,
589
+ 'max' => 100,
590
+ 'parent' => 'fancybox'
591
+ ),
592
+ 'overlay_color' => array(
593
+ 'title' => __( 'Overlay color', 'responsive-lightbox' ),
594
+ 'section' => 'responsive_lightbox_configuration',
595
+ 'type' => 'color_picker',
596
+ 'label' => __( 'Color of the overlay.', 'responsive-lightbox' ),
597
+ 'parent' => 'fancybox'
598
+ ),
599
+ 'title_show' => array(
600
+ 'title' => __( 'Title show', 'responsive-lightbox' ),
601
+ 'section' => 'responsive_lightbox_configuration',
602
+ 'type' => 'boolean',
603
+ 'label' => __( 'Toggle title.', 'responsive-lightbox' ),
604
+ 'parent' => 'fancybox'
605
+ ),
606
+ 'title_position' => array(
607
+ 'title' => __( 'Title position', 'responsive-lightbox' ),
608
+ 'section' => 'responsive_lightbox_configuration',
609
+ 'type' => 'radio',
610
+ 'description' => __( 'The position of title.', 'responsive-lightbox' ),
611
+ 'options' => $this->scripts['fancybox']['positions'],
612
+ 'parent' => 'fancybox'
613
+ ),
614
+ 'transitions' => array(
615
+ 'title' => __( 'Transition (in/out)', 'responsive-lightbox' ),
616
+ 'section' => 'responsive_lightbox_configuration',
617
+ 'type' => 'radio',
618
+ 'description' => __( 'The transition type.', 'responsive-lightbox' ),
619
+ 'options' => $this->scripts['fancybox']['transitions'],
620
+ 'parent' => 'fancybox'
621
+ ),
622
+ 'easings' => array(
623
+ 'title' => __( 'Easings (in/out)', 'responsive-lightbox' ),
624
+ 'section' => 'responsive_lightbox_configuration',
625
+ 'type' => 'radio',
626
+ 'description' => __( 'Easing used for elastic animations.', 'responsive-lightbox' ),
627
+ 'options' => $this->scripts['fancybox']['easings'],
628
+ 'parent' => 'fancybox'
629
+ ),
630
+ 'speeds' => array(
631
+ 'title' => __( 'Speed (in/out)', 'responsive-lightbox' ),
632
+ 'section' => 'responsive_lightbox_configuration',
633
+ 'type' => 'number',
634
+ 'description' => __( 'Speed of the fade and elastic transitions, in milliseconds.', 'responsive-lightbox' ),
635
+ 'append' => 'ms',
636
+ 'parent' => 'fancybox'
637
+ ),
638
+ 'change_speed' => array(
639
+ 'title' => __( 'Change speed', 'responsive-lightbox' ),
640
+ 'section' => 'responsive_lightbox_configuration',
641
+ 'type' => 'number',
642
+ 'description' => __( 'Speed of resizing when changing gallery items, in milliseconds.', 'responsive-lightbox' ),
643
+ 'append' => 'ms',
644
+ 'parent' => 'fancybox'
645
+ ),
646
+ 'change_fade' => array(
647
+ 'title' => __( 'Change fade', 'responsive-lightbox' ),
648
+ 'section' => 'responsive_lightbox_configuration',
649
+ 'type' => 'number',
650
+ 'description' => __( 'Speed of the content fading while changing gallery items.', 'responsive-lightbox' ),
651
+ 'append' => 'ms',
652
+ 'parent' => 'fancybox'
653
+ ),
654
+ 'padding' => array(
655
+ 'title' => __( 'Padding', 'responsive-lightbox' ),
656
+ 'section' => 'responsive_lightbox_configuration',
657
+ 'type' => 'number',
658
+ 'description' => __( 'Space between FancyBox wrapper and content.', 'responsive-lightbox' ),
659
+ 'append' => 'px',
660
+ 'parent' => 'fancybox'
661
+ ),
662
+ 'margin' => array(
663
+ 'title' => __( 'Margin', 'responsive-lightbox' ),
664
+ 'section' => 'responsive_lightbox_configuration',
665
+ 'type' => 'number',
666
+ 'description' => __( 'Space between viewport and FancyBox wrapper.', 'responsive-lightbox' ),
667
+ 'append' => 'px',
668
+ 'parent' => 'fancybox'
669
+ ),
670
+ 'video_width' => array(
671
+ 'title' => __( 'Video width', 'responsive-lightbox' ),
672
+ 'section' => 'responsive_lightbox_configuration',
673
+ 'type' => 'number',
674
+ 'description' => __( 'Width of the video.', 'responsive-lightbox' ),
675
+ 'append' => 'px',
676
+ 'parent' => 'fancybox'
677
+ ),
678
+ 'video_height' => array(
679
+ 'title' => __( 'Video height', 'responsive-lightbox' ),
680
+ 'section' => 'responsive_lightbox_configuration',
681
+ 'type' => 'number',
682
+ 'description' => __( 'Height of the video.', 'responsive-lightbox' ),
683
+ 'append' => 'px',
684
+ 'parent' => 'fancybox'
685
+ ),
686
+ );
687
+
688
+ break;
689
+
690
+ case ( 'nivo' ) :
691
+
692
+ $this->settings['configuration']['prefix'] = 'rl_nv';
693
+ $this->settings['configuration']['fields'] = array(
694
+ 'effect' => array(
695
+ 'title' => __( 'Effect', 'responsive-lightbox' ),
696
+ 'section' => 'responsive_lightbox_configuration',
697
+ 'type' => 'radio',
698
+ 'description' => __( 'The effect to use when showing the lightbox.', 'responsive-lightbox' ),
699
+ 'options' => $this->scripts['nivo']['effects'],
700
+ 'parent' => 'nivo'
701
+ ),
702
+ 'keyboard_nav' => array(
703
+ 'title' => __( 'Keyboard navigation', 'responsive-lightbox' ),
704
+ 'section' => 'responsive_lightbox_configuration',
705
+ 'type' => 'boolean',
706
+ 'label' => __( 'Enable to close lightbox on overlay click.', 'responsive-lightbox' ),
707
+ 'parent' => 'nivo'
708
+ ),
709
+ 'click_overlay_to_close' => array(
710
+ 'title' => __( 'Click overlay to close', 'responsive-lightbox' ),
711
+ 'section' => 'responsive_lightbox_configuration',
712
+ 'type' => 'boolean',
713
+ 'label' => __( 'Enable keyboard navigation (left/right/escape).', 'responsive-lightbox' ),
714
+ 'parent' => 'nivo'
715
+ ),
716
+ 'error_message' => array(
717
+ 'title' => __( 'Error message', 'responsive-lightbox' ),
718
+ 'section' => 'responsive_lightbox_configuration',
719
+ 'type' => 'text',
720
+ 'class' => 'large-text',
721
+ 'label' => __( 'Error message if the content cannot be loaded.', 'responsive-lightbox' ),
722
+ 'parent' => 'nivo'
723
+ ),
724
+ );
725
+
726
+ break;
727
+
728
+ case ( 'imagelightbox' ) :
729
+
730
+ $this->settings['configuration']['prefix'] = 'rl_il';
731
+ $this->settings['configuration']['fields'] = array(
732
+ 'animation_speed' => array(
733
+ 'title' => __( 'Animation speed', 'responsive-lightbox' ),
734
+ 'section' => 'responsive_lightbox_configuration',
735
+ 'type' => 'number',
736
+ 'description' => __( 'Animation speed.', 'responsive-lightbox' ),
737
+ 'append' => 'ms',
738
+ 'parent' => 'imagelightbox'
739
+ ),
740
+ 'preload_next' => array(
741
+ 'title' => __( 'Preload next image', 'responsive-lightbox' ),
742
+ 'section' => 'responsive_lightbox_configuration',
743
+ 'type' => 'boolean',
744
+ 'label' => __( 'Silently preload the next image.', 'responsive-lightbox' ),
745
+ 'parent' => 'imagelightbox'
746
+ ),
747
+ 'enable_keyboard' => array(
748
+ 'title' => __( 'Enable keyboard keys', 'responsive-lightbox' ),
749
+ 'section' => 'responsive_lightbox_configuration',
750
+ 'type' => 'boolean',
751
+ 'label' => __( 'Enable keyboard shortcuts (arrows Left/Right and Esc).', 'responsive-lightbox' ),
752
+ 'parent' => 'imagelightbox'
753
+ ),
754
+ 'quit_on_end' => array(
755
+ 'title' => __( 'Quit after last image', 'responsive-lightbox' ),
756
+ 'section' => 'responsive_lightbox_configuration',
757
+ 'type' => 'boolean',
758
+ 'label' => __( 'Quit after viewing the last image.', 'responsive-lightbox' ),
759
+ 'parent' => 'imagelightbox'
760
+ ),
761
+ 'quit_on_image_click' => array(
762
+ 'title' => __( 'Quit on image click', 'responsive-lightbox' ),
763
+ 'section' => 'responsive_lightbox_configuration',
764
+ 'type' => 'boolean',
765
+ 'label' => __( 'Quit when the viewed image is clicked.', 'responsive-lightbox' ),
766
+ 'parent' => 'imagelightbox'
767
+ ),
768
+ 'quit_on_document_click' => array(
769
+ 'title' => __( 'Quit on anything click', 'responsive-lightbox' ),
770
+ 'section' => 'responsive_lightbox_configuration',
771
+ 'type' => 'boolean',
772
+ 'label' => __( 'Quit when anything but the viewed image is clicked.', 'responsive-lightbox' ),
773
+ 'parent' => 'imagelightbox'
774
+ ),
775
+ );
776
+
777
+ break;
778
+
779
+ default :
780
+ break;
781
+ }
782
+
783
+ $this->tabs = array(
784
+ 'settings' => array(
785
+ 'name' => __( 'General settings', 'responsive-lightbox' ),
786
+ 'key' => 'responsive_lightbox_settings',
787
+ 'submit' => 'save_rl_settings',
788
+ 'reset' => 'reset_rl_settings',
789
+ ),
790
+ 'configuration' => array(
791
+ 'name' => __( 'Lightbox settings', 'responsive-lightbox' ),
792
+ 'key' => 'responsive_lightbox_configuration',
793
+ 'submit' => 'save_' . $this->settings['configuration']['prefix'] . '_configuration',
794
+ 'reset' => 'reset_' . $this->settings['configuration']['prefix'] . '_configuration'
795
+ )
796
+ );
797
+
798
+ }
799
+
800
+ /**
801
+ * Register options page
802
+ *
803
+ * @return void
804
+ */
805
+ public function admin_menu_options() {
806
+ add_options_page(
807
+ __( 'Responsive Lightbox', 'responsive-lightbox' ), __( 'Responsive Lightbox', 'responsive-lightbox' ), 'manage_options', 'responsive-lightbox', array( &$this, 'options_page' )
808
+ );
809
+ }
810
+
811
+ /**
812
+ * Render options page
813
+ *
814
+ * @return void
815
+ */
816
+ public function options_page() {
817
+ $tab_key = (isset( $_GET['tab'] ) ? $_GET['tab'] : 'settings');
818
+
819
+ echo '
820
+ <div class="wrap">' . screen_icon() . '
821
+ <h2>' . __( 'Responsive Lightbox', 'responsive-lightbox' ) . '</h2>
822
+ <h2 class="nav-tab-wrapper">';
823
+
824
+ foreach ( $this->tabs as $key => $name ) {
825
+ echo '
826
+ <a class="nav-tab ' . ($tab_key == $key ? 'nav-tab-active' : '') . '" href="' . esc_url( admin_url( 'options-general.php?page=responsive-lightbox&tab=' . $key ) ) . '">' . $name['name'] . '</a>';
827
+ }
828
+
829
+ echo '
830
+ </h2>
831
+ <div class="responsive-lightbox-settings">
832
+
833
+ <div class="df-credits">
834
+ <h3 class="hndle">' . __( 'Responsive Lightbox', 'responsive-lightbox' ) . ' ' . $this->defaults['version'] . '</h3>
835
+ <div class="inside">
836
+ <h4 class="inner">' . __( 'Need support?', 'responsive-lightbox' ) . '</h4>
837
+ <p class="inner">' . __( '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>
838
+ <hr />
839
+ <h4 class="inner">' . __( 'Do you like this plugin?', 'responsive-lightbox' ) . '</h4>
840
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank" class="inner">
841
+ <input type="hidden" name="cmd" value="_s-xclick">
842
+ <input type="hidden" name="hosted_button_id" value="8AL8ULUN9R76U">
843
+ <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
844
+ <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
845
+ </form>
846
+ <p class="inner"><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 />' .
847
+ __( '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 />' .
848
+ __( 'Check out our other', 'responsive-lightbox' ) . ' <a href="http://www.dfactory.eu/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=other-plugins" target="_blank" title="' . __( 'WordPress plugins', 'responsive-lightbox' ) . '">' . __( 'WordPress plugins', 'responsive-lightbox' ) . '</a>
849
+ </p>
850
+ <hr />
851
+ <p class="df-link inner">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="' . RESPONSIVE_LIGHTBOX_URL . '/images/logo-dfactory.png' . '" title="dFactory - Quality plugins for WordPress" alt="dFactory - Quality plugins for WordPress" /></a></p>
852
+ </div>
853
+ </div>
854
+
855
+ <form action="options.php" method="post">
856
+ <input type="hidden" name="script_r" value="' . esc_attr( $this->options['settings']['script'] ) . '" />';
857
+
858
+ wp_nonce_field( 'update-options' );
859
+ settings_fields( $this->tabs[$tab_key]['key'] );
860
+ do_settings_sections( $this->tabs[$tab_key]['key'] );
861
+
862
+ echo '
863
+ <p class="submit">';
864
+
865
+ submit_button( '', array( 'primary', 'save-' . $tab_key ), $this->tabs[$tab_key]['submit'], false );
866
+
867
+ echo ' ';
868
+ echo submit_button( __( 'Reset to defaults', 'responsive-lightbox' ), array( 'secondary', 'reset-' . $tab_key ), $this->tabs[$tab_key]['reset'], false );
869
+
870
+ echo '
871
+ </p>
872
+ </form>
873
+ </div>
874
+ <div class="clear"></div>
875
+ </div>';
876
+ }
877
+
878
+ /**
879
+ * Render settings function
880
+ *
881
+ * @return void
882
+ */
883
+ public function register_settings() {
884
+
885
+ foreach ( $this->settings as $setting_id => $setting ) {
886
+
887
+ // set key
888
+ $setting_key = $setting_id;
889
+ $setting_id = 'responsive_lightbox_' . $setting_id;
890
+
891
+ // register setting
892
+ register_setting(
893
+ esc_attr( $setting_id ),
894
+ ! empty( $setting['option_name'] ) ? esc_attr( $setting['option_name'] ) : $setting_id,
895
+ ! empty( $setting['callback'] ) ? $setting['callback'] : array( &$this, 'validate_settings' )
896
+ );
897
+
898
+ // register sections
899
+ if ( ! empty( $setting['sections'] ) && is_array( $setting['sections'] ) ) {
900
+
901
+ foreach ( $setting['sections'] as $section_id => $section ) {
902
+
903
+ add_settings_section(
904
+ esc_attr( $section_id ),
905
+ ! empty( $section['title'] ) ? esc_html( $section['title'] ) : '',
906
+ ! empty( $section['callback'] ) ? $section['callback'] : '',
907
+ ! empty( $section['page'] ) ? esc_attr( $section['page'] ) : $section_id
908
+ );
909
+ }
910
+
911
+ }
912
+
913
+ // register fields
914
+ if ( ! empty( $setting['fields'] ) && is_array( $setting['fields'] ) ) {
915
+
916
+ foreach ( $setting['fields'] as $field_id => $field ) {
917
+
918
+ // prefix field id?
919
+ $field_key = $field_id;
920
+ $field_id = ( ! empty( $setting['prefix'] ) ? $setting['prefix'] . '_' : '' ) . $field_id;
921
+
922
+ // field args
923
+ $args = array(
924
+ 'id' => ! empty( $field['id'] ) ? $field['id'] : $field_id,
925
+ 'class' => ! empty( $field['class'] ) ? $field['class'] : '',
926
+ 'name' => $setting['option_name'] . ( ! empty( $field['parent'] ) ? '[' . $field['parent'] . ']' : '' ) . '[' . $field_key . ']',
927
+ 'type' => ! empty( $field['type'] ) ? $field['type'] : 'text',
928
+ 'label' => ! empty( $field['label'] ) ? $field['label'] : '',
929
+ 'description' => ! empty( $field['description'] ) ? $field['description'] : '',
930
+ 'append' => ! empty( $field['append'] ) ? esc_html( $field['append'] ) : '',
931
+ 'prepend' => ! empty( $field['prepend'] ) ? esc_html( $field['prepend'] ) : '',
932
+ 'min' => ! empty( $field['min'] ) ? (int) $field['min'] : '',
933
+ 'max' => ! empty( $field['max'] ) ? (int) $field['max'] : '',
934
+ 'options' => ! empty( $field['options'] ) ? $field['options'] : '',
935
+ 'fields' => ! empty( $field['fields'] ) ? $field['fields'] : '',
936
+ 'default' => $field['type'] === 'multiple' ? '' : ( $this->sanitize_field( ! empty( $field['parent'] ) ? $this->defaults[$setting_key][$field['parent']][$field_key] : $this->defaults[$setting_key][$field_key], $field['type'] ) ),
937
+ 'value' => $field['type'] === 'multiple' ? '' : ( $this->sanitize_field( ! empty( $field['parent'] ) ? $this->options[$setting_key][$field['parent']][$field_key] : $this->options[$setting_key][$field_key], $field['type'] ) ),
938
+ 'label_for' => $field_id,
939
+ 'return' => false
940
+ );
941
+
942
+ if ( $args['type'] === 'multiple' ) {
943
+ foreach ( $args['fields'] as $subfield_id => $subfield ) {
944
+ $args['fields'][$subfield_id] = wp_parse_args( $subfield, array(
945
+ 'id' => $subfield_id,
946
+ 'class' => ! empty( $subfield['class'] ) ? $subfield['class'] : '',
947
+ 'name' => $setting['option_name'] . ( ! empty( $subfield['parent'] ) ? '[' . $subfield['parent'] . ']' : '' ) . '[' . $subfield_id . ']',
948
+ 'default' => $this->sanitize_field( ! empty( $subfield['parent'] ) ? $this->defaults[$setting_key][$subfield['parent']][$subfield_id] : $this->defaults[$setting_key][$subfield_id], $subfield['type'] ),
949
+ 'value' => $this->sanitize_field( ! empty( $subfield['parent'] ) ? $this->options[$setting_key][$subfield['parent']][$subfield_id] : $this->options[$setting_key][$subfield_id], $subfield['type'] ),
950
+ 'return' => true
951
+ ) );
952
+ }
953
+ }
954
+
955
+ add_settings_field(
956
+ esc_attr( $field_id ),
957
+ ! empty( $field['title'] ) ? esc_html( $field['title'] ) : '',
958
+ array( &$this, 'render_field' ),
959
+ ! empty( $field['page'] ) ? esc_attr( $field['page'] ) : $setting_id,
960
+ ! empty( $field['section'] ) ? esc_attr( $field['section'] ) : '',
961
+ $args
962
+ );
963
+
964
+ }
965
+
966
+ }
967
+
968
+ }
969
+
970
+ }
971
+
972
+ /**
973
+ * Render settings field function
974
+ *
975
+ * @param array $args
976
+ * @return mixed
977
+ */
978
+ public function render_field( $args ) {
979
+
980
+ if ( empty( $args ) || ! is_array( $args ) )
981
+ return;
982
+
983
+ $html = '';
984
+
985
+ switch ( $args['type'] ) {
986
+
987
+ case ( 'boolean' ) :
988
+
989
+ $html .= '<label class="cb-checkbox"><input id="' . $args['id'] . '" type="checkbox" name="' . $args['name'] . '" value="1" ' . checked( true, (bool) $args['value'], false ) . ' />' . $args['label'] . '</label>';
990
+ break;
991
+
992
+ case ( 'radio' ) :
993
+
994
+ foreach ( $args['options'] as $key => $name ) {
995
+ $html .= '<label class="cb-radio"><input id="' . $args['id'] . '-' . $key . '" type="radio" name="' . $args['name'] . '" value="' . $key . '" ' . checked( $key, $args['value'], false ) . ' />' . $name . '</label>';
996
+ }
997
+ break;
998
+
999
+ case ( 'checkbox' ) :
1000
+
1001
+ foreach ( $args['options'] as $key => $name ) {
1002
+ $html .= '<label class="cb-checkbox"><input id="' . $args['id'] . '-' . $key . '" type="checkbox" name="' . $args['name'] . '" value="' . $key . '" ' . checked( $key, $args['value'], false ) . ' />' . $name . '</label>';
1003
+ }
1004
+ break;
1005
+
1006
+ case ( 'select' ) :
1007
+
1008
+ $html .= '<select id="' . $args['id'] . '" name="' . $args['name'] . '" value="' . $args['value'] . '" />';
1009
+
1010
+ foreach ( $args['options'] as $key => $name ) {
1011
+ $html .= '<option value="' . $key . '" ' . selected( $args['value'], $key, false ) . '>' . $name . '</option>';
1012
+ }
1013
+
1014
+ $html .= '</select>';
1015
+ break;
1016
+
1017
+ case ( 'multiple' ) :
1018
+
1019
+ $html .= '<fieldset>';
1020
+
1021
+ foreach ( $args['fields'] as $subfield_id => $subfield_args ) {
1022
+ $html .= $this->render_field( $subfield_args ) . '<br />';
1023
+ }
1024
+
1025
+ $html .= '</fieldset>';
1026
+ break;
1027
+
1028
+ case ( 'range' ) :
1029
+ $html .= '<input id="' . $args['id'] . '" type="range" name="' . $args['name'] . '" value="' . $args['value'] . '" min="' . $args['min'] . '" max="' . $args['max'] . '" oninput="this.form.' . $args['id'] . '_range.value=this.value" />';
1030
+ $html .= '<output name="' . $args['id'] . '_range">' . esc_attr( $this->options['configuration']['prettyphoto']['opacity'] ) . '</output>';
1031
+ break;
1032
+
1033
+ case ( 'color_picker' ) :
1034
+ $html .= '<input id="' . $args['id'] . '" class="color-picker" type="text" value="' . $args['value'] . '" name="' . $args['name'] . '" data-default-color="' . $args['default'] . '" />';
1035
+ break;
1036
+
1037
+ case ( 'number' ) :
1038
+ $html .= ( ! empty( $args['prepend'] ) ? '<span>' . $args['prepend'] . '</span> ' : '' );
1039
+ $html .= '<input id="' . $args['id'] . '" type="text" value="' . $args['value'] . '" name="' . $args['name'] . '" />';
1040
+ $html .= ( ! empty( $args['append'] ) ? ' <span>' . $args['append'] . '</span>' : '' );
1041
+ break;
1042
+
1043
+ case ( 'text' ) :
1044
+ default :
1045
+ $html .= ( ! empty( $args['prepend'] ) ? '<span>' . $args['prepend'] . '</span> ' : '' );
1046
+ $html .= '<input id="' . $args['id'] . '" class="' . $args['class'] . '" type="text" value="' . $args['value'] . '" name="' . $args['name'] . '" />';
1047
+ $html .= ( ! empty( $args['append'] ) ? ' <span>' . $args['append'] . '</span>' : '' );
1048
+ break;
1049
+
1050
+ }
1051
+
1052
+ if ( ! empty ( $args['description'] ) ) {
1053
+ $html .= '<p class="description">' . $args['description'] . '</p>';
1054
+ }
1055
+
1056
+ if ( ! empty( $args['return'] ) ) {
1057
+ return $html;
1058
+ } else {
1059
+ echo $html;
1060
+ }
1061
+ }
1062
+
1063
+ /**
1064
+ * Sanitize field function
1065
+ *
1066
+ * @param mixed
1067
+ * @param string
1068
+ * @return mixed
1069
+ */
1070
+ public function sanitize_field( $value = null, $type = '', $args = array() ) {
1071
+ if ( is_null( $value ) )
1072
+ return null;
1073
+
1074
+ switch ( $type ) {
1075
+
1076
+ case 'boolean':
1077
+ $value = empty( $value ) ? false : true;
1078
+ break;
1079
+
1080
+ case 'checkbox':
1081
+ $value = is_array( $value ) ? array_map( 'sanitize_text_field', $value ) : false;
1082
+ break;
1083
+
1084
+ case 'radio':
1085
+ $value = is_array( $value ) ? false : sanitize_text_field( $value );
1086
+ break;
1087
+
1088
+ case 'textarea':
1089
+ case 'wysiwyg':
1090
+ $value = wp_kses_post( $value );
1091
+ break;
1092
+
1093
+ case 'color_picker':
1094
+ $value = ! $value || '#' == $value ? '' : esc_attr( $value );
1095
+ break;
1096
+
1097
+ case 'number':
1098
+ $value = ! $value || is_array( $value ) ? '' : str_replace( ',', '', $value );
1099
+
1100
+ if ( ! empty( $args['type'] ) ) {
1101
+ switch ( $args['type'] ) {
1102
+ case 'int':
1103
+ $value = (int) $value;
1104
+ break;
1105
+
1106
+ case 'absint':
1107
+ $value = absint( $value );
1108
+ break;
1109
+
1110
+ case 'float':
1111
+ default:
1112
+ $value = floatval( $value );
1113
+ break;
1114
+ }
1115
+ } else {
1116
+ $value = floatval( $value );
1117
+ }
1118
+ break;
1119
+
1120
+ case 'text':
1121
+ case 'select':
1122
+ default:
1123
+ $value = is_array( $value ) ? array_map( 'sanitize_text_field', $value ) : sanitize_text_field( $value );
1124
+ break;
1125
+ }
1126
+
1127
+ return stripslashes_deep( $value );
1128
+ }
1129
+
1130
+ /**
1131
+ * Validate settings function
1132
+ *
1133
+ * @param array $input
1134
+ * @return array
1135
+ */
1136
+ public function validate_settings( $input ) {
1137
+ // check cap
1138
+ if ( ! current_user_can( 'manage_options') ) {
1139
+ return $input;
1140
+ }
1141
+
1142
+ // check page
1143
+ if ( ! ( $option_page = esc_attr( $_POST['option_page'] ) ) )
1144
+ return $input;
1145
+
1146
+ foreach ( $this->settings as $id => $setting ) {
1147
+
1148
+ $key = array_search( $option_page, $setting );
1149
+
1150
+ if ( $key ) {
1151
+ // set key
1152
+ $setting_id = $id;
1153
+ continue;
1154
+ }
1155
+ }
1156
+
1157
+ // check setting id
1158
+ if ( ! $setting_id )
1159
+ return $input;
1160
+
1161
+ // save settings
1162
+ if ( isset( $_POST['save' . '_' . $this->settings[$setting_id]['prefix'] . '_' . $setting_id] ) ) {
1163
+
1164
+ if ( $this->settings[$setting_id]['fields'] ) {
1165
+
1166
+ foreach ( $this->settings[$setting_id]['fields'] as $field_id => $field ) {
1167
+
1168
+ if ( $field['type'] === 'multiple' ) {
1169
+
1170
+ if ( $field['fields'] ) {
1171
+
1172
+ foreach ( $field['fields'] as $subfield_id => $subfield ) {
1173
+
1174
+ switch ( $subfield['type'] ) {
1175
+ case 'boolean' :
1176
+ $input[$subfield_id] = isset( $input[$subfield_id] );
1177
+ break;
1178
+
1179
+ default :
1180
+ $input[$subfield_id] = isset( $input[$subfield_id] ) ? $this->sanitize_field( $input[$subfield_id], $subfield['type'] ) : $this->defaults[$setting_id][$field_id][$subfield_id];
1181
+ break;
1182
+ }
1183
+
1184
+ }
1185
+
1186
+ }
1187
+
1188
+ } else {
1189
+
1190
+ switch ( $field['type'] ) {
1191
+ case 'boolean' :
1192
+ $input[$field_id] = isset( $input[$field_id] );
1193
+ break;
1194
+
1195
+ default :
1196
+ $input[$field_id] = isset( $input[$field_id] ) ? $this->sanitize_field( $input[$field_id], $field['type'] ) : $this->defaults[$setting_id][$field_id];
1197
+ break;
1198
+ }
1199
+
1200
+ }
1201
+ }
1202
+
1203
+ }
1204
+
1205
+ if ( $setting_id === 'configuration' ) {
1206
+ // merge scripts settings
1207
+ $input = array_merge( $this->options['configuration'], $input );
1208
+ }
1209
+
1210
+ } elseif ( isset( $_POST['reset' . '_' . $this->settings[$setting_id]['prefix'] . '_' . $setting_id] ) ) {
1211
+
1212
+ if ( $setting_id === 'configuration' ) {
1213
+ // merge scripts settings
1214
+ $input[$this->options['settings']['script']] = $this->defaults['configuration'][$this->options['settings']['script']];
1215
+ $input = array_merge( $this->options['configuration'], $input );
1216
+ } else {
1217
+ $input = $this->defaults[$setting_id];
1218
+ }
1219
+
1220
+ add_settings_error( 'reset' . '_' . $this->settings[$setting_id]['prefix'] . '_' . $setting_id, 'settings_restored', __( 'Settings restored to defaults.', 'responsive-lightbox' ), 'updated' );
1221
+
1222
+ }
1223
+
1224
+ // echo '<pre>'; print_r($this->settings[$setting_id]['prefix']); echo '</pre>';
1225
+ // echo '<pre>'; print_r($input); echo '</pre>';
1226
+ // echo '<pre>'; print_r($_POST); echo '</pre>';
1227
+
1228
+ return $input;
1229
+ }
1230
+
1231
+ }
js/admin.js CHANGED
@@ -2,109 +2,27 @@
2
 
3
  $( document ).ready( function () {
4
 
5
- $( '.wplikebtns' ).buttonset();
6
- $( '#rl_fb_overlay_color_input' ).wpColorPicker();
 
7
 
8
- $( document ).on( 'click', '#rl-fb-modal-yes', function ( event ) {
9
- $( '#rl-fb-show-overlay-yes' ).trigger( 'click' );
10
- $( '#rl-fb-show-overlay-no' ).button( 'disable' );
11
- $( '#rl-fb-show-overlay-yes' ).button( 'disable' );
12
- $( '#rl-fb-show-close-button-no' ).trigger( 'click' );
13
- $( '#rl-fb-show-close-button-no' ).button( 'disable' );
14
- $( '#rl-fb-show-close-button-yes' ).button( 'disable' );
15
- $( '#rl-fb-enable-escape-button-no' ).trigger( 'click' );
16
- $( '#rl-fb-enable-escape-button-no' ).button( 'disable' );
17
- $( '#rl-fb-enable-escape-button-yes' ).button( 'disable' );
18
- $( '#rl-fb-hide-on-overlay-click-no' ).trigger( 'click' );
19
- $( '#rl-fb-hide-on-overlay-click-no' ).button( 'disable' );
20
- $( '#rl-fb-hide-on-overlay-click-yes' ).button( 'disable' );
21
- $( '#rl-fb-hide-on-content-click-no' ).trigger( 'click' );
22
- $( '#rl-fb-hide-on-content-click-no' ).button( 'disable' );
23
- $( '#rl-fb-hide-on-content-click-yes' ).button( 'disable' );
24
- } );
25
-
26
- $( document ).on( 'click', '#rl-fb-modal-no', function ( event ) {
27
- $( '#rl-fb-show-overlay-no' ).button( 'enable' );
28
- $( '#rl-fb-show-overlay-yes' ).button( 'enable' );
29
- $( '#rl-fb-show-overlay-yes' ).trigger( 'click' );
30
- $( '#rl-fb-show-close-button-no' ).button( 'enable' );
31
- $( '#rl-fb-show-close-button-yes' ).button( 'enable' );
32
- $( '#rl-fb-show-close-button-no' ).trigger( 'click' );
33
- $( '#rl-fb-enable-escape-button-no' ).button( 'enable' );
34
- $( '#rl-fb-enable-escape-button-yes' ).button( 'enable' );
35
- $( '#rl-fb-enable-escape-button-no' ).trigger( 'click' );
36
- $( '#rl-fb-hide-on-overlay-click-no' ).button( 'enable' );
37
- $( '#rl-fb-hide-on-overlay-click-yes' ).button( 'enable' );
38
- $( '#rl-fb-hide-on-overlay-click-no' ).trigger( 'click' );
39
- $( '#rl-fb-hide-on-content-click-no' ).button( 'enable' );
40
- $( '#rl-fb-hide-on-content-click-yes' ).button( 'enable' );
41
- $( '#rl-fb-hide-on-content-click-no' ).trigger( 'click' );
42
- } );
43
-
44
- $( '#rl_pp_opacity_span' ).slider( {
45
- value: rlArgs.opacity_pp,
46
- min: 0,
47
- max: 100,
48
- step: 1,
49
- orientation: 'horizontal',
50
- slide: function ( e, ui ) {
51
- $( '#rl_pp_opacity_input' ).attr( 'value', ui.value );
52
- $( '#rl_pp_opacity_span' ).attr( 'title', ui.value );
53
- }
54
- } );
55
-
56
- $( '#rl_fb_overlay_opacity_span' ).slider( {
57
- value: rlArgs.opacity_fb,
58
- min: 0,
59
- max: 100,
60
- step: 1,
61
- orientation: 'horizontal',
62
- slide: function ( e, ui ) {
63
- $( '#rl_fb_overlay_opacity_input' ).attr( 'value', ui.value );
64
- $( '#rl_fb_overlay_opacity_span' ).attr( 'title', ui.value );
65
- }
66
- } );
67
-
68
- $( document ).on( 'change', '#rl-pp-slideshow-yes, #rl-pp-slideshow-no', function ( event ) {
69
- if ( $( this ).val() === 'yes' ) {
70
- $( '#rl_pp_slideshow_delay' ).fadeIn( 300 );
71
- } else {
72
- $( '#rl_pp_slideshow_delay' ).fadeOut( 300 );
73
- }
74
- } );
75
-
76
- $( document ).on( 'change', '#rl-sb-hide-bars-yes, #rl-sb-hide-bars-no', function ( event ) {
77
- if ( $( this ).val() === 'yes' ) {
78
- $( '#rl_sb_hide_bars_delay' ).fadeIn( 300 );
79
- } else {
80
- $( '#rl_sb_hide_bars_delay' ).fadeOut( 300 );
81
- }
82
- } );
83
-
84
- $( document ).on( 'change', '#rl-enable-custom-events-yes, #rl-enable-custom-events-no', function ( event ) {
85
- if ( $( this ).val() === 'yes' ) {
86
- $( '#rl_custom_events' ).fadeIn( 300 );
87
- } else {
88
- $( '#rl_custom_events' ).fadeOut( 300 );
89
- }
90
- } );
91
-
92
- $( document ).on( 'change', '#rl-enable-gallery-image-size-yes, #rl-enable-gallery-image-size-no', function ( event ) {
93
- if ( $( this ).val() === 'yes' ) {
94
- $( '#rl_gallery_image_size' ).fadeIn( 300 );
95
- } else {
96
- $( '#rl_gallery_image_size' ).fadeOut( 300 );
97
- }
98
- } );
99
-
100
- $( document ).on( 'click', 'input#reset_rl_configuration', function ( event ) {
101
  return confirm( rlArgs.resetScriptToDefaults );
102
  } );
103
 
104
- $( document ).on( 'click', 'input#reset_rl_settings', function ( event ) {
105
  return confirm( rlArgs.resetSettingsToDefaults );
106
  } );
107
 
108
  } );
109
 
110
- } )( jQuery );
 
 
 
 
 
 
 
 
 
2
 
3
  $( document ).ready( function () {
4
 
5
+ $( '.responsive-lightbox-settings .color-picker' ).wpColorPicker();
6
+
7
+ $( '.responsive-lightbox-settings' ).checkBo();
8
 
9
+ $( '.responsive-lightbox-settings input.reset-configuration' ).on( 'click', function ( event ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  return confirm( rlArgs.resetScriptToDefaults );
11
  } );
12
 
13
+ $( '.responsive-lightbox-settings input.reset-settings' ).on( 'click', function ( event ) {
14
  return confirm( rlArgs.resetSettingsToDefaults );
15
  } );
16
 
17
  } );
18
 
19
+ } )( jQuery );
20
+
21
+ /*
22
+ * checkBo lightweight jQuery plugin v0.1.4 by @ElmahdiMahmoud
23
+ * Licensed under the MIT license - https://github.com/elmahdim/checkbo/blob/master/LICENSE
24
+ *
25
+ * Custom checkbox and radio
26
+ * Author URL: elmahdim.com
27
+ */
28
+ !function(e){e.fn.checkBo=function(c){return c=e.extend({},{checkAllButton:null,checkAllTarget:null,checkAllTextDefault:null,checkAllTextToggle:null},c),this.each(function(){function t(e){this.input=e}function n(){var c=e(this).is(":checked");e(this).closest("label").toggleClass("checked",c)}function i(e,c,t){e.text(e.parent(a).hasClass("checked")?t:c)}function h(c){var t=c.attr("data-show");c=c.attr("data-hide"),e(t).removeClass("is-hidden"),e(c).addClass("is-hidden")}var l=e(this),a=l.find(".cb-checkbox"),d=l.find(".cb-radio"),o=l.find(".cb-switcher"),s=a.find("input:checkbox"),f=d.find("input:radio");s.wrap('<span class="cb-inner"><i></i></span>'),f.wrap('<span class="cb-inner"><i></i></span>');var k=new t("input:checkbox"),r=new t("input:radio");if(t.prototype.checkbox=function(e){var c=e.find(this.input).is(":checked");e.find(this.input).prop("checked",!c).trigger("change")},t.prototype.radiobtn=function(c,t){var n=e('input:radio[name="'+t+'"]');n.prop("checked",!1),n.closest(n.closest(d)).removeClass("checked"),c.addClass("checked"),c.find(this.input).get(0).checked=c.hasClass("checked"),c.find(this.input).change()},s.on("change",n),f.on("change",n),a.find("a").on("click",function(e){e.stopPropagation()}),a.on("click",function(c){c.preventDefault(),k.checkbox(e(this)),c=e(this).attr("data-toggle"),e(c).toggleClass("is-hidden"),h(e(this))}),d.on("click",function(c){c.preventDefault(),r.radiobtn(e(this),e(this).find("input:radio").attr("name")),h(e(this))}),e.fn.toggleCheckbox=function(){this.prop("checked",!this.is(":checked"))},e.fn.switcherChecker=function(){var c=e(this),t=c.find("input"),n=c.find(".cb-state");t.is(":checked")?(c.addClass("checked"),n.html(t.attr("data-state-on"))):(c.removeClass("checked"),n.html(t.attr("data-state-off")))},o.on("click",function(c){c.preventDefault(),c=e(this),c.find("input").toggleCheckbox(),c.switcherChecker(),e(c.attr("data-toggle")).toggleClass("is-hidden")}),o.each(function(){e(this).switcherChecker()}),c.checkAllButton&&c.checkAllTarget){var u=e(this);u.find(e(c.checkAllButton)).on("click",function(){u.find(c.checkAllTarget).find("input:checkbox").each(function(){u.find(e(c.checkAllButton)).hasClass("checked")?u.find(c.checkAllTarget).find("input:checkbox").prop("checked",!0).change():u.find(c.checkAllTarget).find("input:checkbox").prop("checked",!1).change()}),i(u.find(e(c.checkAllButton)).find(".toggle-text"),c.checkAllTextDefault,c.checkAllTextToggle)}),u.find(c.checkAllTarget).find(a).on("click",function(){u.find(c.checkAllButton).find("input:checkbox").prop("checked",!1).change().removeClass("checked"),i(u.find(e(c.checkAllButton)).find(".toggle-text"),c.checkAllTextDefault,c.checkAllTextToggle)})}l.find('[checked="checked"]').closest("label").addClass("checked"),l.find("input").is("input:disabled")&&l.find("input:disabled").closest("label").off().addClass("disabled")})}}(jQuery,window,document);
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: 2015-05-28 14:10+0100\n"
5
- "PO-Revision-Date: 2015-05-28 14:11+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
7
  "Language-Team: dFactory <info@dfactory.eu>\n"
8
  "Language: pl\n"
@@ -15,902 +15,974 @@ msgstr ""
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
- #: ../responsive-lightbox.php:298
19
  msgid "prettyPhoto"
20
  msgstr "prettyPhoto"
21
 
22
- #: ../responsive-lightbox.php:300
23
  msgid "slow"
24
  msgstr "wolno"
25
 
26
- #: ../responsive-lightbox.php:301
27
  msgid "normal"
28
  msgstr "normalnie"
29
 
30
- #: ../responsive-lightbox.php:302
31
  msgid "fast"
32
  msgstr "szybko"
33
 
34
- #: ../responsive-lightbox.php:305
35
  msgid "default"
36
  msgstr ""
37
 
38
- #: ../responsive-lightbox.php:306
39
  msgid "light rounded"
40
  msgstr ""
41
 
42
- #: ../responsive-lightbox.php:307
43
  msgid "dark rounded"
44
  msgstr ""
45
 
46
- #: ../responsive-lightbox.php:308
47
  msgid "light square"
48
  msgstr ""
49
 
50
- #: ../responsive-lightbox.php:309
51
  msgid "dark square"
52
  msgstr ""
53
 
54
- #: ../responsive-lightbox.php:310
55
  msgid "facebook"
56
  msgstr ""
57
 
58
- #: ../responsive-lightbox.php:313
59
  msgid "window"
60
  msgstr ""
61
 
62
- #: ../responsive-lightbox.php:314
63
  msgid "transparent"
64
  msgstr ""
65
 
66
- #: ../responsive-lightbox.php:315
67
  msgid "opaque"
68
  msgstr ""
69
 
70
- #: ../responsive-lightbox.php:316
71
  msgid "direct"
72
  msgstr ""
73
 
74
- #: ../responsive-lightbox.php:317
75
  msgid "gpu"
76
  msgstr ""
77
 
78
- #: ../responsive-lightbox.php:321
79
  msgid "SwipeBox"
80
  msgstr "SwipeBox"
81
 
82
- #: ../responsive-lightbox.php:323
83
  msgid "CSS"
84
  msgstr "CSS"
85
 
86
- #: ../responsive-lightbox.php:324
87
  msgid "jQuery"
88
  msgstr "jQuery"
89
 
90
- #: ../responsive-lightbox.php:328
91
  msgid "FancyBox"
92
  msgstr "FancyBox"
93
 
94
- #: ../responsive-lightbox.php:330
95
  msgid "elastic"
96
  msgstr ""
97
 
98
- #: ../responsive-lightbox.php:331 ../responsive-lightbox.php:352
99
  msgid "fade"
100
  msgstr ""
101
 
102
- #: ../responsive-lightbox.php:332
103
  msgid "none"
104
  msgstr "brak"
105
 
106
- #: ../responsive-lightbox.php:335
107
  msgid "auto"
108
  msgstr "automatycznie"
109
 
110
- #: ../responsive-lightbox.php:336
111
  msgid "yes"
112
  msgstr "tak"
113
 
114
- #: ../responsive-lightbox.php:337
115
  msgid "no"
116
  msgstr "nie"
117
 
118
- #: ../responsive-lightbox.php:340
119
  msgid "swing"
120
  msgstr ""
121
 
122
- #: ../responsive-lightbox.php:341
123
  msgid "linear"
124
  msgstr ""
125
 
126
- #: ../responsive-lightbox.php:344
127
  msgid "outside"
128
  msgstr ""
129
 
130
- #: ../responsive-lightbox.php:345
131
  msgid "inside"
132
  msgstr ""
133
 
134
- #: ../responsive-lightbox.php:346
135
  msgid "over"
136
  msgstr ""
137
 
138
- #: ../responsive-lightbox.php:350
139
  msgid "Nivo Lightbox"
140
  msgstr "Nivo Lightbox"
141
 
142
- #: ../responsive-lightbox.php:353
143
  msgid "fade scale"
144
  msgstr "fade scale"
145
 
146
- #: ../responsive-lightbox.php:354
147
  msgid "slide left"
148
  msgstr ""
149
 
150
- #: ../responsive-lightbox.php:355
151
  msgid "slide right"
152
  msgstr "slide right"
153
 
154
- #: ../responsive-lightbox.php:356
155
  msgid "slide up"
156
  msgstr ""
157
 
158
- #: ../responsive-lightbox.php:357
159
  msgid "slide down"
160
  msgstr "slide down"
161
 
162
- #: ../responsive-lightbox.php:358
163
  msgid "fall"
164
  msgstr ""
165
 
166
- #: ../responsive-lightbox.php:362
167
  msgid "Image Lightbox"
168
  msgstr "Image Lightbox"
169
 
170
- #: ../responsive-lightbox.php:367
171
  msgid "Enable"
172
  msgstr "Włącz"
173
 
174
- #: ../responsive-lightbox.php:368
175
  msgid "Disable"
176
  msgstr "Wyłącz"
177
 
178
- #: ../responsive-lightbox.php:372
179
- msgid "Default (none)"
180
- msgstr "Domyślny (brak)"
181
 
182
- #: ../responsive-lightbox.php:373
183
  msgid "Image Title"
184
  msgstr "Tytuł obrazka"
185
 
186
- #: ../responsive-lightbox.php:374
187
  msgid "Image Caption"
188
  msgstr "Podpis obrazka"
189
 
190
- #: ../responsive-lightbox.php:375
191
  msgid "Image Alt Text"
192
  msgstr "Tekst alternatywny"
193
 
194
- #: ../responsive-lightbox.php:376
195
  msgid "Image Description"
196
  msgstr "Opis obrazka"
197
 
198
- #: ../responsive-lightbox.php:380
199
  msgid "Header"
200
  msgstr "W nagłówku"
201
 
202
- #: ../responsive-lightbox.php:381
203
  msgid "Footer"
204
  msgstr "W stopce"
205
 
206
- #: ../responsive-lightbox.php:386 ../responsive-lightbox.php:468
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
  msgid "General settings"
208
  msgstr "Ustawienia ogólne"
209
 
210
- #: ../responsive-lightbox.php:392 ../responsive-lightbox.php:483
211
- msgid "Lightbox settings"
212
- msgstr "Ustawienia lightbox"
213
-
214
- #: ../responsive-lightbox.php:469
215
  msgid "Lightbox script"
216
  msgstr "Skrypt lightbox"
217
 
218
- #: ../responsive-lightbox.php:470
 
 
 
 
219
  msgid "Selector"
220
  msgstr "Znacznik"
221
 
222
- #: ../responsive-lightbox.php:471
 
 
 
 
223
  msgid "Galleries"
224
  msgstr "Galerie"
225
 
226
- #: ../responsive-lightbox.php:472
 
 
 
 
227
  msgid "Gallery image size"
228
  msgstr "WIelkość obrazka w galerii"
229
 
230
- #: ../responsive-lightbox.php:473
 
 
 
 
231
  msgid "Gallery image title"
232
  msgstr "Tytuł obrazków w galerii"
233
 
234
- #: ../responsive-lightbox.php:474
 
 
 
 
235
  msgid "Video links"
236
  msgstr "Linki video"
237
 
238
- #: ../responsive-lightbox.php:475
 
 
 
 
239
  msgid "Image links"
240
  msgstr "Linki obrazków"
241
 
242
- #: ../responsive-lightbox.php:476
 
 
 
 
243
  msgid "Single images as gallery"
244
- msgstr "Galeria pojedynczych obrazków"
245
 
246
- #: ../responsive-lightbox.php:477
 
 
 
 
247
  msgid "Custom events"
248
  msgstr "Własne zdarzenia"
249
 
250
- #: ../responsive-lightbox.php:478
 
 
 
 
 
 
 
 
 
251
  msgid "Loading place"
252
  msgstr "Ładowanie"
253
 
254
- #: ../responsive-lightbox.php:479
255
- msgid "Deactivation"
256
- msgstr "Deaktywacja"
 
 
 
 
 
 
 
 
257
 
258
- #: ../responsive-lightbox.php:486
 
 
 
 
259
  msgid "Animation type"
260
  msgstr "Typ animacji"
261
 
262
- #: ../responsive-lightbox.php:487
 
 
 
 
263
  msgid "Force PNG icons"
264
  msgstr "Wymuszanie ikon PNG"
265
 
266
- #: ../responsive-lightbox.php:488
 
 
 
 
 
 
267
  msgid "Hide close on mobile"
268
  msgstr "Ukrywanie przycisku zamknij"
269
 
270
- #: ../responsive-lightbox.php:489
 
 
 
 
 
271
  msgid "Top and bottom bars"
272
  msgstr "Górne i dolne paski"
273
 
274
- #: ../responsive-lightbox.php:490
 
 
 
 
 
 
 
 
 
 
 
 
275
  msgid "Video max width"
276
  msgstr "Maksymalna szerokość video"
277
 
278
- #: ../responsive-lightbox.php:491
 
 
 
 
279
  msgid "Loop at end"
280
  msgstr "Zapętlenie galerii"
281
 
282
- #: ../responsive-lightbox.php:493 ../responsive-lightbox.php:544
 
 
 
 
 
283
  msgid "Animation speed"
284
  msgstr "Szybkość animacji"
285
 
286
- #: ../responsive-lightbox.php:494
 
 
 
 
287
  msgid "Slideshow"
288
  msgstr "Pokaz slidów"
289
 
290
- #: ../responsive-lightbox.php:495
 
 
 
 
 
 
 
 
291
  msgid "Slideshow autoplay"
292
  msgstr "Automatyczne odtwarzanie pokazu slajdów"
293
 
294
- #: ../responsive-lightbox.php:496 ../responsive-lightbox.php:524
 
 
 
 
295
  msgid "Opacity"
296
  msgstr "Przezroczystość"
297
 
298
- #: ../responsive-lightbox.php:497
 
 
 
 
299
  msgid "Show title"
300
  msgstr "Wyświetlanie tytułu"
301
 
302
- #: ../responsive-lightbox.php:498
 
 
 
 
303
  msgid "Allow resize big images"
304
  msgstr "Powiększanie dużych zdjęć"
305
 
306
- #: ../responsive-lightbox.php:499
 
 
 
 
307
  msgid "Allow expand"
308
  msgstr "Zezwól na powiększanie"
309
 
310
- #: ../responsive-lightbox.php:500 ../responsive-lightbox.php:536
 
 
 
 
311
  msgid "Video width"
312
  msgstr "Szerokość video"
313
 
314
- #: ../responsive-lightbox.php:501 ../responsive-lightbox.php:537
315
  msgid "Video height"
316
  msgstr "Wysokość video"
317
 
318
- #: ../responsive-lightbox.php:502
319
  msgid "Theme"
320
  msgstr "Motyw"
321
 
322
- #: ../responsive-lightbox.php:503
 
 
 
 
323
  msgid "Horizontal padding"
324
  msgstr "Odstępy w poziomie"
325
 
326
- #: ../responsive-lightbox.php:504
327
  msgid "Hide Flash"
328
  msgstr "Ukrywanie flash"
329
 
330
- #: ../responsive-lightbox.php:505
331
- msgid "Flash Window Mode (wmode)"
332
- msgstr "Tryb okna flash (wmode)"
333
-
334
- #: ../responsive-lightbox.php:506
335
- msgid "Video autoplay"
336
- msgstr "Automatyczne odtwarzanie wideo"
337
-
338
- #: ../responsive-lightbox.php:507 ../responsive-lightbox.php:513
339
- msgid "Modal"
340
- msgstr "Tryb modal"
341
-
342
- #: ../responsive-lightbox.php:508
343
- msgid "Deeplinking"
344
- msgstr "Głębokie linki"
345
-
346
- #: ../responsive-lightbox.php:509
347
- msgid "Overlay gallery"
348
- msgstr "Efekt overlay galerii"
349
-
350
- #: ../responsive-lightbox.php:510
351
- msgid "Keyboard shortcuts"
352
- msgstr "Skróty klawiaturowe"
353
-
354
- #: ../responsive-lightbox.php:511
355
- msgid "Social (Twitter, Facebook)"
356
- msgstr "Linki społeczności (Twitter, Facebook)"
357
-
358
- #: ../responsive-lightbox.php:514
359
- msgid "Show overlay"
360
- msgstr "Wyświetlanie tła"
361
-
362
- #: ../responsive-lightbox.php:515
363
- msgid "Show close button"
364
- msgstr "Wyświetlanie przycisku Zamknij"
365
-
366
- #: ../responsive-lightbox.php:516
367
- msgid "Enable escape button"
368
- msgstr "Wyświetlanie przycisku Wyjdź"
369
-
370
- #: ../responsive-lightbox.php:517
371
- msgid "Hide on overlay click"
372
- msgstr "Ukryj po kliknięciu w tło"
373
-
374
- #: ../responsive-lightbox.php:518
375
- msgid "Hide on content click"
376
- msgstr "Ukryj po kliknięciu w treść"
377
-
378
- #: ../responsive-lightbox.php:519
379
- msgid "Cyclic"
380
- msgstr "Cykliczność"
381
-
382
- #: ../responsive-lightbox.php:520
383
- msgid "Show nav arrows"
384
- msgstr "Wyświetlanie strzałek"
385
-
386
- #: ../responsive-lightbox.php:521
387
- msgid "Auto scale"
388
- msgstr "Automatyczne skalowanie"
389
-
390
- #: ../responsive-lightbox.php:522
391
- msgid "Scrolling (in/out)"
392
- msgstr "Przewijanie"
393
-
394
- #: ../responsive-lightbox.php:523
395
- msgid "Center on scroll"
396
- msgstr "Centrowanie przy przewijaniu"
397
-
398
- #: ../responsive-lightbox.php:525
399
- msgid "Overlay opacity"
400
- msgstr "Przezroczystość tła"
401
-
402
- #: ../responsive-lightbox.php:526
403
- msgid "Overlay color"
404
- msgstr "Kolor tła"
405
-
406
- #: ../responsive-lightbox.php:527
407
- msgid "Title show"
408
- msgstr "Wyświetlanie tytułu"
409
-
410
- #: ../responsive-lightbox.php:528
411
- msgid "Title position"
412
- msgstr "Pozycja tytułu"
413
-
414
- #: ../responsive-lightbox.php:529
415
- msgid "Transition (in/out)"
416
- msgstr "Efekty przejścia"
417
-
418
- #: ../responsive-lightbox.php:530
419
- msgid "Easings (in/out)"
420
- msgstr "Wygładzanie animacji"
421
-
422
- #: ../responsive-lightbox.php:531
423
- msgid "Speed (in/out)"
424
- msgstr "Szybkość"
425
-
426
- #: ../responsive-lightbox.php:532
427
- msgid "Change speed"
428
- msgstr "Zmień szybkość"
429
-
430
- #: ../responsive-lightbox.php:533
431
- msgid "Change fade"
432
- msgstr "Zmień zanikanie"
433
-
434
- #: ../responsive-lightbox.php:534
435
- msgid "Padding"
436
- msgstr "Odstęp (padding)"
437
-
438
- #: ../responsive-lightbox.php:535
439
- msgid "Margin"
440
- msgstr "Margines (margin)"
441
-
442
- #: ../responsive-lightbox.php:539
443
- msgid "Effect"
444
- msgstr "Efekt"
445
-
446
- #: ../responsive-lightbox.php:540
447
- msgid "Click overlay to close"
448
- msgstr "Kliknięcie poza obrazek"
449
-
450
- #: ../responsive-lightbox.php:541
451
- msgid "Keyboard navigation"
452
- msgstr "Nawigacja klawiaturą"
453
-
454
- #: ../responsive-lightbox.php:542
455
- msgid "Error message"
456
- msgstr "Treść komunikatu o błędzie"
457
-
458
- #: ../responsive-lightbox.php:545
459
- msgid "Preload next image"
460
- msgstr "Wstępne ładowanie kolejnego obrazka"
461
-
462
- #: ../responsive-lightbox.php:546
463
- msgid "Enable keyboard keys"
464
- msgstr "Obługa klawiaturą"
465
-
466
- #: ../responsive-lightbox.php:547
467
- msgid "Quit after last image"
468
- msgstr "Wyjście po ostanim obrazku"
469
-
470
- #: ../responsive-lightbox.php:548
471
- msgid "Quit when image is clicked"
472
- msgstr "Wyjście po kliknięciu w obrazek"
473
-
474
- #: ../responsive-lightbox.php:549
475
- msgid "Quit when anything but image is clicked"
476
- msgstr "Wyjście po kliknięciu w coś innego niż obrazek"
477
-
478
- #: ../responsive-lightbox.php:566
479
- msgid "Select your preffered ligthbox effect script."
480
- msgstr "Wybierz preferowany efekt lightbox."
481
-
482
- #: ../responsive-lightbox.php:574
483
- msgid "Select to which rel selector lightbox effect will be applied to."
484
- msgstr "Wybierz dla któego znacznika będzie dodawany efekt lightbox."
485
-
486
- #: ../responsive-lightbox.php:591
487
- msgid "Enable triggering lightbox on custom jquery events."
488
- msgstr "Włącz uruchamianie efektu lightbox przy własnych zdarzeniach jquery."
489
-
490
- #: ../responsive-lightbox.php:594
491
- msgid "Enter a space separated list of events."
492
- msgstr "Wpisz oddzieloną spacją listę wydarzeń."
493
-
494
- #: ../responsive-lightbox.php:612
495
- msgid "Select where all the lightbox scripts should be placed."
496
- msgstr "Wybierz w którym miejscu chcesz wczytywać skrypty efektu lightbox."
497
-
498
- #: ../responsive-lightbox.php:627
499
- msgid "Add lightbox to WordPress image galleries by default."
500
- msgstr "Dodaj efekt lightbox do galerii obrazków WordPressa."
501
-
502
- #: ../responsive-lightbox.php:644
503
- msgid ""
504
- "By default WP gallery links point to full size images only. Enable that to "
505
- "modify the image size of native WP gallery image links."
506
- msgstr ""
507
- "Domyślnie galerie w WordPressie linkują do obrazków o pełnym rozmiarze. "
508
- "Włącze tę opcję, jeśli chcesz to zmodyfikwać. "
509
-
510
- #: ../responsive-lightbox.php:652
511
- msgid "full"
512
- msgstr ""
513
-
514
- #: ../responsive-lightbox.php:660
515
- msgid "Select image size for gallery image links."
516
- msgstr "Wybierz rozmiar obrazka, jaki ma być zastosowany w linkach galerii."
517
-
518
- #: ../responsive-lightbox.php:676
519
- msgid "Select the title for lightboxed WP gallery images."
520
- msgstr "Wybierz tytuł dla obrazków w galerii."
521
-
522
- #: ../responsive-lightbox.php:691
523
- msgid "Add lightbox to YouTube and Vimeo video links by default."
524
- msgstr "Dodaj efekt lightbox do linków video (YouTube i Vimeo) WordPressa."
525
-
526
- #: ../responsive-lightbox.php:706
527
- msgid "Add lightbox to WordPress image links by default."
528
- msgstr "Dodaj efekt lightbox do pojedynczych obrazków WordPressa."
529
-
530
- #: ../responsive-lightbox.php:721
531
- msgid "Display single post images as a gallery."
532
- msgstr "Wyświetl pojedyncze obrazki jako pokaz sladów."
533
-
534
- #: ../responsive-lightbox.php:736
535
- msgid "Delete settings on plugin deactivation."
536
- msgstr "Usuń ustawienia przy deaktywacji wtyczki."
537
-
538
- #: ../responsive-lightbox.php:751
539
- msgid "Select a method of applying a lightbox effect."
540
- msgstr "Wybierz sposób dodawania efekty lightbox."
541
-
542
- #: ../responsive-lightbox.php:766
543
- msgid ""
544
- "Disable if you don't want to top and bottom bars to be hidden after a period "
545
- "of time."
546
- msgstr "Wyłącz to, jeśli nie chcesz ukrywać górnego i dolnego paska."
547
-
548
- #: ../responsive-lightbox.php:769
549
- msgid ""
550
- "Enter the time after which the top and bottom bars will be hidden (when "
551
- "hiding is enabled)."
552
- msgstr ""
553
- "Podaj czas po którym chcesz ukryć górny i dolny pasek (jeśli opcja ukrywania "
554
- "jest włączona)."
555
-
556
- #: ../responsive-lightbox.php:778
557
- msgid "Enter the max video width in a lightbox."
558
- msgstr "Podaj maksymalną szerokość video."
559
-
560
- #: ../responsive-lightbox.php:793
561
- msgid "True will hide the close button on mobile devices."
562
- msgstr ""
563
- "Wybierz, jeśli chcesz ukryć przycisk zamykania na urządzeniach mobilnych."
564
-
565
- #: ../responsive-lightbox.php:808
566
  msgid ""
567
- "Enable this if you're having problems with navigation icons not visible on "
568
- "some devices."
569
- msgstr "Włącz tę opcję jeśli masz problemy z wyświetlaniem ikon nawigacji."
570
-
571
- #: ../responsive-lightbox.php:823
572
- msgid "True will return to the first image after the last image is reached."
573
- msgstr ""
574
- "Wybierz, aby powrócić do pierwszego zdjęcia po ostatnim zdjęciu w galerii."
575
-
576
- #: ../responsive-lightbox.php:838
577
- msgid "Select animation speed for lightbox effect."
578
- msgstr "Wybierz szybkość animacji efektu lightbox."
579
-
580
- #: ../responsive-lightbox.php:853
581
- msgid "Display images as slideshow."
582
- msgstr "Wyświetl obrazki jako pokaz sladów ."
583
-
584
- #: ../responsive-lightbox.php:856
585
- msgid "Enter time (in miliseconds)."
586
- msgstr "Podaj czas (w milisekundach)."
587
-
588
- #: ../responsive-lightbox.php:872
589
- msgid "Automatically start slideshow."
590
- msgstr "Automatyczne rozpoczynanie pokazu slajdów."
591
-
592
- #: ../responsive-lightbox.php:883
593
- msgid "Value between 0 and 100, 100 for no opacity."
594
- msgstr "Wartość pomiędzy 0 i 100 (100 oznacza brak przezroczystości)."
595
-
596
- #: ../responsive-lightbox.php:898
597
- msgid "Display image tiltle."
598
- msgstr "Wyświetlanie tytułu obrazka."
599
-
600
- #: ../responsive-lightbox.php:913
601
- msgid "Resize the photos bigger than viewport."
602
- msgstr "Zmiana wielkość zdjęć większych niż aktualny ekran."
603
-
604
- #: ../responsive-lightbox.php:928
605
- msgid "Expands something."
606
- msgstr "Powiększeniei okna."
607
-
608
- #: ../responsive-lightbox.php:936 ../responsive-lightbox.php:944
609
- msgid "in pixels"
610
- msgstr "w pikselach"
611
-
612
- #: ../responsive-lightbox.php:959
613
- msgid "Select theme for lightbox effect."
614
- msgstr "Wybierz motyw dla efektu lightbox."
615
-
616
- #: ../responsive-lightbox.php:967
617
- msgid "Horizontal padding (in pixels)."
618
- msgstr "Odstępy w poziomie (w pikselach)."
619
-
620
- #: ../responsive-lightbox.php:982
621
- msgid ""
622
- "Hides all the flash object on a page. Enable this if flash appears over "
623
  "prettyPhoto."
624
  msgstr ""
625
  "Ukywa wszystkie obiekty flash na stronie. Włącz to jeśli animacje flash "
626
  "wyświetlane są nad lightboxem."
627
 
628
- #: ../responsive-lightbox.php:997
 
 
 
 
629
  msgid "Select flash window mode."
630
  msgstr "Wybierz tryb okna flash."
631
 
632
- #: ../responsive-lightbox.php:1012
 
 
 
 
633
  msgid "Automatically start videos."
634
  msgstr "Automatycznie rozpoczynaj video."
635
 
636
- #: ../responsive-lightbox.php:1027
 
 
 
 
637
  msgid "If set to true, only the close button will close the window."
638
  msgstr ""
639
  "Jeśli będzie włączone, tylko kliknięcie przycisku spowoduje zamknięcie okna."
640
 
641
- #: ../responsive-lightbox.php:1042
 
 
 
 
642
  msgid "Allow prettyPhoto to update the url to enable deeplinking."
643
  msgstr "Zezwól prettyPhoto na aktualizacje adresów URL i głębokie linkowanie."
644
 
645
- #: ../responsive-lightbox.php:1057
 
 
 
 
646
  msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
647
  msgstr ""
648
  "Jeśli będzie włączone, galeria będzie wyświetlana na cały ekran po "
649
  "najechaniu myszką."
650
 
651
- #: ../responsive-lightbox.php:1072
 
 
 
 
652
  msgid "Set to false if you open forms inside prettyPhoto."
653
  msgstr "Wyłącz to jeśli chcesz otwierać formularze wewnątrz prettyPhoto."
654
 
655
- #: ../responsive-lightbox.php:1087
 
 
 
 
656
  msgid "Display links to Facebook and Twitter."
657
  msgstr "Wyświetl linki do Facebboka i Twittera."
658
 
659
- #: ../responsive-lightbox.php:1102
660
- msgid "The transition type."
661
- msgstr "Typ animacji."
662
-
663
- #: ../responsive-lightbox.php:1110
664
- msgid "Space between FancyBox wrapper and content."
665
- msgstr "Przestrzeń między FancyBox a treścią"
666
-
667
- #: ../responsive-lightbox.php:1118
668
- msgid "Space between viewport and FancyBox wrapper."
669
- msgstr "Przestrzeń między ekranem a Fancybox"
670
-
671
- #: ../responsive-lightbox.php:1133
672
  msgid ""
673
  "When true, \"overlayShow\" is set to true and \"hideOnOverlayClick\", "
674
  "\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set "
675
  "to false."
676
  msgstr ""
 
 
 
 
 
 
 
677
 
678
- #: ../responsive-lightbox.php:1148
679
  msgid "Toggle overlay."
680
  msgstr "Włącz tło."
681
 
682
- #: ../responsive-lightbox.php:1163
 
 
 
 
683
  msgid "Toggle close button."
684
  msgstr "Włącz przycisk Zamknij."
685
 
686
- #: ../responsive-lightbox.php:1178
 
 
 
 
687
  msgid "Toggle if pressing Esc button closes FancyBox."
688
  msgstr "Włącz zamykanie FancyBox przy pomocy Esc."
689
 
690
- #: ../responsive-lightbox.php:1193
 
 
 
 
691
  msgid "Toggle if clicking the overlay should close FancyBox."
692
  msgstr "Włącz zamykanie FancyBox kliknięciem w tło."
693
 
694
- #: ../responsive-lightbox.php:1208
 
 
 
 
695
  msgid "Toggle if clicking the content should close FancyBox."
696
  msgstr "Włącz zamykanie FancyBox kliknięciem w treść."
697
 
698
- #: ../responsive-lightbox.php:1223
 
 
 
 
699
  msgid ""
700
  "When true, galleries will be cyclic, allowing you to keep pressing next/back."
701
  msgstr "Jeśli będzie włączone, galerie będą wyświetlane cyklicznie."
702
 
703
- #: ../responsive-lightbox.php:1238
 
 
 
 
704
  msgid "Toggle navigation arrows."
705
  msgstr "Włącz strzałki nawigacyjne."
706
 
707
- #: ../responsive-lightbox.php:1253
 
 
 
 
708
  msgid "If true, FancyBox is scaled to fit in viewport."
709
  msgstr "Jeśli będzie włączone, FancyBox będzie skalowany do rozmiaru okna."
710
 
711
- #: ../responsive-lightbox.php:1268
 
 
 
 
712
  msgid "Set the overflow CSS property to create or hide scrollbars."
713
  msgstr ""
714
  "Ustaw parametr overflow dw CSS aby tworzyć lub ukrywać elementy nawigacji."
715
 
716
- #: ../responsive-lightbox.php:1283
 
 
 
 
717
  msgid "When true, FancyBox is centered while scrolling page."
718
  msgstr ""
719
  "Jeśli będzie zaznaczone, FancyBox będzie wycentrowany w trakcie przewijania "
720
  "strony."
721
 
722
- #: ../responsive-lightbox.php:1298
723
  msgid "When true, transparency of content is changed for elastic transitions."
724
  msgstr ""
725
  "Jeśli będzie zaznaczone, przezroczystość treści zmieni się w trakcie "
726
  "animacji."
727
 
728
- #: ../responsive-lightbox.php:1309
 
 
 
 
729
  msgid "Opacity of the overlay."
730
  msgstr "Przezroczystość tła."
731
 
732
- #: ../responsive-lightbox.php:1317
 
 
 
 
733
  msgid "Color of the overlay."
734
  msgstr "Kolor tła."
735
 
736
- #: ../responsive-lightbox.php:1332
 
 
 
 
737
  msgid "Toggle title."
738
  msgstr "Wyświetlanie tytułu."
739
 
740
- #: ../responsive-lightbox.php:1347
 
 
 
 
741
  msgid "The position of title."
742
  msgstr "Pozycja tytułu."
743
 
744
- #: ../responsive-lightbox.php:1362
 
 
 
 
 
 
 
 
 
 
 
 
745
  msgid "Easing used for elastic animations."
746
  msgstr "Wygładzanie animacji dla trybu elastic."
747
 
748
- #: ../responsive-lightbox.php:1370
 
 
 
 
749
  msgid "Speed of the fade and elastic transitions, in milliseconds."
750
  msgstr "Podaj czas trwania animacji fade i elastic (w milisekundach)"
751
 
752
- #: ../responsive-lightbox.php:1378
 
 
 
 
753
  msgid "Speed of resizing when changing gallery items, in milliseconds."
754
  msgstr ""
755
  "Szybkość zmiany wielkości okna w trakcie przechodzenia między obrazkami (w "
756
  "milisekundach)."
757
 
758
- #: ../responsive-lightbox.php:1386
 
 
 
 
759
  msgid "Speed of the content fading while changing gallery items."
760
  msgstr "Szybkość zanikania elementów w trakcie przechodzenia między obrazkami."
761
 
762
- #: ../responsive-lightbox.php:1394
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
763
  msgid "Width of the video."
764
  msgstr "Szerokość video."
765
 
766
- #: ../responsive-lightbox.php:1402
767
  msgid "Height of the video."
768
  msgstr "Wysokość video."
769
 
770
- #: ../responsive-lightbox.php:1417
 
 
 
 
771
  msgid "The effect to use when showing the lightbox."
772
  msgstr "Wybierz efekt, który chcesz zastosować do wyświetlania lightboxa."
773
 
774
- #: ../responsive-lightbox.php:1432
775
- msgid "Enable/Disable keyboard navigation (left/right/escape)."
776
- msgstr ""
777
- "Włącz / Wyłącz nawigację klawiaturą (strzałka w lewo, w prawo i przycisk ESC)"
 
 
 
778
 
779
- #: ../responsive-lightbox.php:1447
780
- msgid "Eneble to close lightbox on overlay click."
781
- msgstr "Włącz aby zamykać lightbox po kliknięciu w obzar poza obrazkiem."
782
 
783
- #: ../responsive-lightbox.php:1455
 
 
 
 
 
 
 
 
784
  msgid "Error message if the content cannot be loaded."
785
  msgstr "Komunikat w przypadku gdy nie można załądować treści."
786
 
787
- #: ../responsive-lightbox.php:1463
788
  msgid "Animation speed."
789
  msgstr "Szybkość animacji."
790
 
791
- #: ../responsive-lightbox.php:1478
 
 
 
 
792
  msgid "Silently preload the next image."
793
  msgstr "W niezauważalny sposób ładuje kolejny obrazek."
794
 
795
- #: ../responsive-lightbox.php:1493
 
 
 
 
796
  msgid "Enable keyboard shortcuts (arrows Left/Right and Esc)."
797
  msgstr "Włącza skróty klawiaturowe (strzałki lewo/prawo oraz Esc)"
798
 
799
- #: ../responsive-lightbox.php:1508
 
 
 
 
800
  msgid "Quit after viewing the last image."
801
  msgstr "Powoduje wyjście z lightboxa po obejrzeniu ostatniego obrazka."
802
 
803
- #: ../responsive-lightbox.php:1523
 
 
 
 
804
  msgid "Quit when the viewed image is clicked."
805
  msgstr "Powoduje wyjście z lightboxa po kliknięciu w przeglądany obrazek."
806
 
807
- #: ../responsive-lightbox.php:1538
 
 
 
 
808
  msgid "Quit when anything but the viewed image is clicked."
809
  msgstr "Powoduje wyjście z lightboxa po kliknięciu w coś innego niż obrazek."
810
 
811
- #: ../responsive-lightbox.php:1771
812
- msgid ""
813
- "Changes were not saved because there was attempt to save settings of "
814
- "inactive script. The site has been reloaded to the proper script settings."
815
- msgstr ""
816
- "Zmiany nie zostały zapisane ponieważ wykryto próbę zapisu ustawień "
817
- "nieaktywnego skryptu. Strona została odświeżona z prawidłowymi ustawieniami."
818
-
819
- #: ../responsive-lightbox.php:1779
820
- msgid "Settings restored to defaults."
821
- msgstr "Ustawienia zostały przywrócone do domyślnych."
822
-
823
- #: ../responsive-lightbox.php:1784
824
- msgid "Settings of SwipeBox script were restored to defaults."
825
- msgstr "Ustawienia skryptu SwipeBox zostały przywrócone."
826
-
827
- #: ../responsive-lightbox.php:1788
828
- msgid "Settings of prettyPhoto script were restored to defaults."
829
- msgstr "Ustawienia skryptu prettyPhoto zostały przywrócone."
830
-
831
- #: ../responsive-lightbox.php:1792
832
- msgid "Settings of FancyBox script were restored to defaults."
833
- msgstr "Ustawienia skryptu FancyBox zostały przywrócone."
834
-
835
- #: ../responsive-lightbox.php:1796
836
- msgid "Settings of Nivo script were restored to defaults."
837
- msgstr "Ustawienia skryptu Nivo Lightbox zostały przywrócone."
838
-
839
- #: ../responsive-lightbox.php:1798
840
- msgid ""
841
- "Changes were not set to defaults because there was attempt to reset settings "
842
- "of inactive script. The site has been reloaded to the proper script settings."
843
- msgstr ""
844
- "Zmiany nie zostały przywrócone do domyślnych ponieważ wykryto próbę "
845
- "resetowania ustawień nieaktywnego skryptu. Strona została odświeżona z "
846
- "prawidłowymi ustawieniami."
847
-
848
- #: ../responsive-lightbox.php:1810 ../responsive-lightbox.php:1819
849
- #: ../responsive-lightbox.php:1832
850
  msgid "Responsive Lightbox"
851
  msgstr "Efekt Lightbox"
852
 
853
- #: ../responsive-lightbox.php:1834
854
  msgid "Need support?"
855
  msgstr "Potrzebujesz pomocy?"
856
 
857
- #: ../responsive-lightbox.php:1835
858
  msgid ""
859
  "If you are having problems with this plugin, please talk about them in the"
860
  msgstr "Jeśli masz jakiekolwiek problemy z tą wtyczką, powiedz o nich na"
861
 
862
- #: ../responsive-lightbox.php:1835
863
  msgid "Support forum"
864
  msgstr "Forum pomocy"
865
 
866
- #: ../responsive-lightbox.php:1837
867
  msgid "Do you like this plugin?"
868
  msgstr "Lubisz tę wtyczkę?"
869
 
870
- #: ../responsive-lightbox.php:1844
871
  msgid "Rate it 5"
872
  msgstr "Oceń ją na 5"
873
 
874
- #: ../responsive-lightbox.php:1844
875
  msgid "on WordPress.org"
876
  msgstr "na WordPress.org"
877
 
878
- #: ../responsive-lightbox.php:1845
879
  msgid "Blog about it & link to the"
880
  msgstr "Napisz o niej i dodaj link"
881
 
882
- #: ../responsive-lightbox.php:1845
883
  msgid "plugin page"
884
  msgstr "do strony wtyczki"
885
 
886
- #: ../responsive-lightbox.php:1846
887
  msgid "Check out our other"
888
  msgstr "Sprawdź nasze pozostałe"
889
 
890
- #: ../responsive-lightbox.php:1846
891
  msgid "WordPress plugins"
892
  msgstr "wtyczki do WordPress'a"
893
 
894
- #: ../responsive-lightbox.php:1866
895
  msgid "Reset to defaults"
896
  msgstr "Resetuj do domyślnych"
897
 
898
- #: ../responsive-lightbox.php:1886
899
- msgid "Are you sure you want to reset these settings to defaults?"
900
- msgstr "Jesteś pewny, że chcesz zresetować ustawienia do domyślnych?"
901
-
902
- #: ../responsive-lightbox.php:1887
903
- msgid "Are you sure you want to reset scripts settings to defaults?"
904
- msgstr "Jesteś pewny, że chcesz zresetować ustawienia?"
905
 
906
- #: ../responsive-lightbox.php:2113
907
  msgid "Support"
908
  msgstr "Pomoc"
909
 
910
- #: ../responsive-lightbox.php:2132
911
  msgid "Settings"
912
  msgstr "Ustawienia"
913
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
914
  #~ msgid ""
915
  #~ "When true, \"overlayShow\" is set to TRUE and \"hideOnOverlayClick\", "
916
  #~ "\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are "
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Responsive Lightbox\n"
4
+ "POT-Creation-Date: 2015-06-02 15:45+0100\n"
5
+ "PO-Revision-Date: 2015-06-02 15:55+0100\n"
6
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
7
  "Language-Team: dFactory <info@dfactory.eu>\n"
8
  "Language: pl\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-SearchPath-0: ..\n"
17
 
18
+ #: ../includes/class-settings.php:46
19
  msgid "prettyPhoto"
20
  msgstr "prettyPhoto"
21
 
22
+ #: ../includes/class-settings.php:48
23
  msgid "slow"
24
  msgstr "wolno"
25
 
26
+ #: ../includes/class-settings.php:49
27
  msgid "normal"
28
  msgstr "normalnie"
29
 
30
+ #: ../includes/class-settings.php:50
31
  msgid "fast"
32
  msgstr "szybko"
33
 
34
+ #: ../includes/class-settings.php:53
35
  msgid "default"
36
  msgstr ""
37
 
38
+ #: ../includes/class-settings.php:54
39
  msgid "light rounded"
40
  msgstr ""
41
 
42
+ #: ../includes/class-settings.php:55
43
  msgid "dark rounded"
44
  msgstr ""
45
 
46
+ #: ../includes/class-settings.php:56
47
  msgid "light square"
48
  msgstr ""
49
 
50
+ #: ../includes/class-settings.php:57
51
  msgid "dark square"
52
  msgstr ""
53
 
54
+ #: ../includes/class-settings.php:58
55
  msgid "facebook"
56
  msgstr ""
57
 
58
+ #: ../includes/class-settings.php:61
59
  msgid "window"
60
  msgstr ""
61
 
62
+ #: ../includes/class-settings.php:62
63
  msgid "transparent"
64
  msgstr ""
65
 
66
+ #: ../includes/class-settings.php:63
67
  msgid "opaque"
68
  msgstr ""
69
 
70
+ #: ../includes/class-settings.php:64
71
  msgid "direct"
72
  msgstr ""
73
 
74
+ #: ../includes/class-settings.php:65
75
  msgid "gpu"
76
  msgstr ""
77
 
78
+ #: ../includes/class-settings.php:69
79
  msgid "SwipeBox"
80
  msgstr "SwipeBox"
81
 
82
+ #: ../includes/class-settings.php:71
83
  msgid "CSS"
84
  msgstr "CSS"
85
 
86
+ #: ../includes/class-settings.php:72
87
  msgid "jQuery"
88
  msgstr "jQuery"
89
 
90
+ #: ../includes/class-settings.php:76
91
  msgid "FancyBox"
92
  msgstr "FancyBox"
93
 
94
+ #: ../includes/class-settings.php:78
95
  msgid "elastic"
96
  msgstr ""
97
 
98
+ #: ../includes/class-settings.php:79 ../includes/class-settings.php:100
99
  msgid "fade"
100
  msgstr ""
101
 
102
+ #: ../includes/class-settings.php:80
103
  msgid "none"
104
  msgstr "brak"
105
 
106
+ #: ../includes/class-settings.php:83
107
  msgid "auto"
108
  msgstr "automatycznie"
109
 
110
+ #: ../includes/class-settings.php:84
111
  msgid "yes"
112
  msgstr "tak"
113
 
114
+ #: ../includes/class-settings.php:85
115
  msgid "no"
116
  msgstr "nie"
117
 
118
+ #: ../includes/class-settings.php:88
119
  msgid "swing"
120
  msgstr ""
121
 
122
+ #: ../includes/class-settings.php:89
123
  msgid "linear"
124
  msgstr ""
125
 
126
+ #: ../includes/class-settings.php:92
127
  msgid "outside"
128
  msgstr ""
129
 
130
+ #: ../includes/class-settings.php:93
131
  msgid "inside"
132
  msgstr ""
133
 
134
+ #: ../includes/class-settings.php:94
135
  msgid "over"
136
  msgstr ""
137
 
138
+ #: ../includes/class-settings.php:98
139
  msgid "Nivo Lightbox"
140
  msgstr "Nivo Lightbox"
141
 
142
+ #: ../includes/class-settings.php:101
143
  msgid "fade scale"
144
  msgstr "fade scale"
145
 
146
+ #: ../includes/class-settings.php:102
147
  msgid "slide left"
148
  msgstr ""
149
 
150
+ #: ../includes/class-settings.php:103
151
  msgid "slide right"
152
  msgstr "slide right"
153
 
154
+ #: ../includes/class-settings.php:104
155
  msgid "slide up"
156
  msgstr ""
157
 
158
+ #: ../includes/class-settings.php:105
159
  msgid "slide down"
160
  msgstr "slide down"
161
 
162
+ #: ../includes/class-settings.php:106
163
  msgid "fall"
164
  msgstr ""
165
 
166
+ #: ../includes/class-settings.php:110
167
  msgid "Image Lightbox"
168
  msgstr "Image Lightbox"
169
 
170
+ #: ../includes/class-settings.php:115
171
  msgid "Enable"
172
  msgstr "Włącz"
173
 
174
+ #: ../includes/class-settings.php:116
175
  msgid "Disable"
176
  msgstr "Wyłącz"
177
 
178
+ #: ../includes/class-settings.php:120
179
+ msgid "None (default)"
180
+ msgstr "Brak (domyślny)"
181
 
182
+ #: ../includes/class-settings.php:121
183
  msgid "Image Title"
184
  msgstr "Tytuł obrazka"
185
 
186
+ #: ../includes/class-settings.php:122
187
  msgid "Image Caption"
188
  msgstr "Podpis obrazka"
189
 
190
+ #: ../includes/class-settings.php:123
191
  msgid "Image Alt Text"
192
  msgstr "Tekst alternatywny"
193
 
194
+ #: ../includes/class-settings.php:124
195
  msgid "Image Description"
196
  msgstr "Opis obrazka"
197
 
198
+ #: ../includes/class-settings.php:128
199
  msgid "Header"
200
  msgstr "W nagłówku"
201
 
202
+ #: ../includes/class-settings.php:129
203
  msgid "Footer"
204
  msgstr "W stopce"
205
 
206
+ #: ../includes/class-settings.php:139
207
+ msgid "Thumbnail"
208
+ msgstr "Miniatura"
209
+
210
+ #: ../includes/class-settings.php:140
211
+ msgid "Medium"
212
+ msgstr "Średni"
213
+
214
+ #: ../includes/class-settings.php:141
215
+ msgid "Large"
216
+ msgstr "Duży"
217
+
218
+ #: ../includes/class-settings.php:142
219
+ msgid "Full Size (default)"
220
+ msgstr "Pełny rozmiar (domyslny)"
221
+
222
+ #: ../includes/class-settings.php:152 ../includes/class-settings.php:779
223
  msgid "General settings"
224
  msgstr "Ustawienia ogólne"
225
 
226
+ #: ../includes/class-settings.php:161
 
 
 
 
227
  msgid "Lightbox script"
228
  msgstr "Skrypt lightbox"
229
 
230
+ #: ../includes/class-settings.php:167
231
+ msgid "Select your preffered ligthbox effect script."
232
+ msgstr "Wybierz preferowany efekt lightbox."
233
+
234
+ #: ../includes/class-settings.php:174
235
  msgid "Selector"
236
  msgstr "Znacznik"
237
 
238
+ #: ../includes/class-settings.php:177
239
+ msgid "Enter the rel selector lightbox effect will be applied to."
240
+ msgstr "Wybierz dla którego znacznika będzie dodawany efekt lightbox."
241
+
242
+ #: ../includes/class-settings.php:180
243
  msgid "Galleries"
244
  msgstr "Galerie"
245
 
246
+ #: ../includes/class-settings.php:183
247
+ msgid "Add lightbox to WordPress image galleries by default."
248
+ msgstr "Dodaj efekt lightbox do galerii obrazków WordPressa."
249
+
250
+ #: ../includes/class-settings.php:186
251
  msgid "Gallery image size"
252
  msgstr "WIelkość obrazka w galerii"
253
 
254
+ #: ../includes/class-settings.php:189
255
+ msgid "Select image size for gallery image links."
256
+ msgstr "Wybierz rozmiar obrazka, jaki ma być zastosowany w linkach galerii."
257
+
258
+ #: ../includes/class-settings.php:193
259
  msgid "Gallery image title"
260
  msgstr "Tytuł obrazków w galerii"
261
 
262
+ #: ../includes/class-settings.php:196
263
+ msgid "Select title for images in native WordPress galleries."
264
+ msgstr "Wybierz pochodzenie tytułu dla obrazków w galerii."
265
+
266
+ #: ../includes/class-settings.php:200
267
  msgid "Video links"
268
  msgstr "Linki video"
269
 
270
+ #: ../includes/class-settings.php:203
271
+ msgid "Add lightbox to YouTube and Vimeo video links by default."
272
+ msgstr "Dodaj efekt lightbox do linków video (YouTube i Vimeo) WordPressa."
273
+
274
+ #: ../includes/class-settings.php:206
275
  msgid "Image links"
276
  msgstr "Linki obrazków"
277
 
278
+ #: ../includes/class-settings.php:209
279
+ msgid "Add lightbox to WordPress image links by default."
280
+ msgstr "Dodaj efekt lightbox do pojedynczych obrazków WordPressa."
281
+
282
+ #: ../includes/class-settings.php:212
283
  msgid "Single images as gallery"
284
+ msgstr "Pojedyncze obrazki"
285
 
286
+ #: ../includes/class-settings.php:215
287
+ msgid "Display single post images as a gallery."
288
+ msgstr "Wyświetl pojedyncze obrazki jako pokaz sladów."
289
+
290
+ #: ../includes/class-settings.php:218
291
  msgid "Custom events"
292
  msgstr "Własne zdarzenia"
293
 
294
+ #: ../includes/class-settings.php:224
295
+ msgid "Enable triggering lightbox on custom jQuery events."
296
+ msgstr ""
297
+ "Włącz uruchamianie efektu lightbox przy pomocy własnych zdarzeń jQuery."
298
+
299
+ #: ../includes/class-settings.php:228
300
+ msgid "Enter a space separated list of events."
301
+ msgstr "Wpisz oddzieloną spacją listę wydarzeń."
302
+
303
+ #: ../includes/class-settings.php:233
304
  msgid "Loading place"
305
  msgstr "Ładowanie"
306
 
307
+ #: ../includes/class-settings.php:236
308
+ msgid "Select where all the lightbox scripts should be placed."
309
+ msgstr "Wybierz w którym miejscu chcesz wczytywać skrypty efektu lightbox."
310
+
311
+ #: ../includes/class-settings.php:240
312
+ msgid "Delete data"
313
+ msgstr "Usuwanie danych"
314
+
315
+ #: ../includes/class-settings.php:243
316
+ msgid "Delete all plugin settings on deactivation."
317
+ msgstr "Usuń wszystkie dane wtyczki po jej deaktywacji."
318
 
319
+ #: ../includes/class-settings.php:253 ../includes/class-settings.php:785
320
+ msgid "Lightbox settings"
321
+ msgstr "Ustawienia lightbox"
322
+
323
+ #: ../includes/class-settings.php:271
324
  msgid "Animation type"
325
  msgstr "Typ animacji"
326
 
327
+ #: ../includes/class-settings.php:275
328
+ msgid "Select a method of applying a lightbox effect."
329
+ msgstr "Wybierz sposób dodawania efektu lightbox."
330
+
331
+ #: ../includes/class-settings.php:280
332
  msgid "Force PNG icons"
333
  msgstr "Wymuszanie ikon PNG"
334
 
335
+ #: ../includes/class-settings.php:283
336
+ msgid ""
337
+ "Enable this if you're having problems with navigation icons not visible on "
338
+ "some devices."
339
+ msgstr "Włącz tę opcję jeśli masz problemy z wyświetlaniem ikon nawigacji."
340
+
341
+ #: ../includes/class-settings.php:287
342
  msgid "Hide close on mobile"
343
  msgstr "Ukrywanie przycisku zamknij"
344
 
345
+ #: ../includes/class-settings.php:290
346
+ msgid "Hide the close button on mobile devices."
347
+ msgstr ""
348
+ "Włącz, jeśli chcesz ukryć przycisk zamykania na urządzeniach mobilnych."
349
+
350
+ #: ../includes/class-settings.php:294
351
  msgid "Top and bottom bars"
352
  msgstr "Górne i dolne paski"
353
 
354
+ #: ../includes/class-settings.php:300
355
+ msgid "Hide top and bottom bars after a period of time."
356
+ msgstr "Ukryj górny i dolny pasek po określonym czasie."
357
+
358
+ #: ../includes/class-settings.php:305
359
+ msgid ""
360
+ "Enter the time after which the top and bottom bars will be hidden (when "
361
+ "hiding is enabled)."
362
+ msgstr ""
363
+ "Podaj czas po którym chcesz ukryć górny i dolny pasek (jeśli opcja ukrywania "
364
+ "jest włączona)."
365
+
366
+ #: ../includes/class-settings.php:312
367
  msgid "Video max width"
368
  msgstr "Maksymalna szerokość video"
369
 
370
+ #: ../includes/class-settings.php:315
371
+ msgid "Enter the max video width in a lightbox."
372
+ msgstr "Podaj maksymalną szerokość video."
373
+
374
+ #: ../includes/class-settings.php:320
375
  msgid "Loop at end"
376
  msgstr "Zapętlenie galerii"
377
 
378
+ #: ../includes/class-settings.php:323
379
+ msgid "True will return to the first image after the last image is reached."
380
+ msgstr ""
381
+ "Włącz, aby powrócić do pierwszego zdjęcia po ostatnim zdjęciu w galerii."
382
+
383
+ #: ../includes/class-settings.php:335 ../includes/class-settings.php:727
384
  msgid "Animation speed"
385
  msgstr "Szybkość animacji"
386
 
387
+ #: ../includes/class-settings.php:339
388
+ msgid "Select animation speed for lightbox effect."
389
+ msgstr "Wybierz szybkość animacji efektu lightbox."
390
+
391
+ #: ../includes/class-settings.php:344
392
  msgid "Slideshow"
393
  msgstr "Pokaz slidów"
394
 
395
+ #: ../includes/class-settings.php:350
396
+ msgid "Display images as slideshow"
397
+ msgstr "Wyświetlanie obrazków jako pokaz slajdów"
398
+
399
+ #: ../includes/class-settings.php:355
400
+ msgid "Enter time (in miliseconds)."
401
+ msgstr "Podaj czas (w milisekundach)."
402
+
403
+ #: ../includes/class-settings.php:362
404
  msgid "Slideshow autoplay"
405
  msgstr "Automatyczne odtwarzanie pokazu slajdów"
406
 
407
+ #: ../includes/class-settings.php:365
408
+ msgid "Automatically start slideshow."
409
+ msgstr "Automatyczne rozpoczynanie pokazu slajdów."
410
+
411
+ #: ../includes/class-settings.php:369 ../includes/class-settings.php:571
412
  msgid "Opacity"
413
  msgstr "Przezroczystość"
414
 
415
+ #: ../includes/class-settings.php:372
416
+ msgid "Value between 0 and 100, 100 for no opacity."
417
+ msgstr "Wartość pomiędzy 0 i 100 (100 oznacza brak przezroczystości)."
418
+
419
+ #: ../includes/class-settings.php:378
420
  msgid "Show title"
421
  msgstr "Wyświetlanie tytułu"
422
 
423
+ #: ../includes/class-settings.php:381
424
+ msgid "Display image title."
425
+ msgstr "Wyświetlanie tytułu obrazka."
426
+
427
+ #: ../includes/class-settings.php:385
428
  msgid "Allow resize big images"
429
  msgstr "Powiększanie dużych zdjęć"
430
 
431
+ #: ../includes/class-settings.php:388
432
+ msgid "Resize the photos bigger than viewport."
433
+ msgstr "Zmiana wielkość zdjęć większych niż aktualny ekran."
434
+
435
+ #: ../includes/class-settings.php:392
436
  msgid "Allow expand"
437
  msgstr "Zezwól na powiększanie"
438
 
439
+ #: ../includes/class-settings.php:395
440
+ msgid "Allow expanding images."
441
+ msgstr "Zezwól na powiększanie zdjęć."
442
+
443
+ #: ../includes/class-settings.php:399 ../includes/class-settings.php:665
444
  msgid "Video width"
445
  msgstr "Szerokość video"
446
 
447
+ #: ../includes/class-settings.php:406 ../includes/class-settings.php:673
448
  msgid "Video height"
449
  msgstr "Wysokość video"
450
 
451
+ #: ../includes/class-settings.php:413
452
  msgid "Theme"
453
  msgstr "Motyw"
454
 
455
+ #: ../includes/class-settings.php:416
456
+ msgid "Select the theme for lightbox effect."
457
+ msgstr "Wybierz motyw dla efektu lightbox."
458
+
459
+ #: ../includes/class-settings.php:421
460
  msgid "Horizontal padding"
461
  msgstr "Odstępy w poziomie"
462
 
463
+ #: ../includes/class-settings.php:428
464
  msgid "Hide Flash"
465
  msgstr "Ukrywanie flash"
466
 
467
+ #: ../includes/class-settings.php:431
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
468
  msgid ""
469
+ "Hide all the flash objects on a page. Enable this if flash appears over "
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
470
  "prettyPhoto."
471
  msgstr ""
472
  "Ukywa wszystkie obiekty flash na stronie. Włącz to jeśli animacje flash "
473
  "wyświetlane są nad lightboxem."
474
 
475
+ #: ../includes/class-settings.php:435
476
+ msgid "Flash Window Mode (wmode)"
477
+ msgstr "Tryb okna flash (wmode)"
478
+
479
+ #: ../includes/class-settings.php:438
480
  msgid "Select flash window mode."
481
  msgstr "Wybierz tryb okna flash."
482
 
483
+ #: ../includes/class-settings.php:443
484
+ msgid "Video autoplay"
485
+ msgstr "Automatyczne odtwarzanie wideo"
486
+
487
+ #: ../includes/class-settings.php:446
488
  msgid "Automatically start videos."
489
  msgstr "Automatycznie rozpoczynaj video."
490
 
491
+ #: ../includes/class-settings.php:450 ../includes/class-settings.php:493
492
+ msgid "Modal"
493
+ msgstr "Tryb modal"
494
+
495
+ #: ../includes/class-settings.php:453
496
  msgid "If set to true, only the close button will close the window."
497
  msgstr ""
498
  "Jeśli będzie włączone, tylko kliknięcie przycisku spowoduje zamknięcie okna."
499
 
500
+ #: ../includes/class-settings.php:457
501
+ msgid "Deeplinking"
502
+ msgstr "Głębokie linki"
503
+
504
+ #: ../includes/class-settings.php:460
505
  msgid "Allow prettyPhoto to update the url to enable deeplinking."
506
  msgstr "Zezwól prettyPhoto na aktualizacje adresów URL i głębokie linkowanie."
507
 
508
+ #: ../includes/class-settings.php:464
509
+ msgid "Overlay gallery"
510
+ msgstr "Efekt overlay galerii"
511
+
512
+ #: ../includes/class-settings.php:467
513
  msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
514
  msgstr ""
515
  "Jeśli będzie włączone, galeria będzie wyświetlana na cały ekran po "
516
  "najechaniu myszką."
517
 
518
+ #: ../includes/class-settings.php:471
519
+ msgid "Keyboard shortcuts"
520
+ msgstr "Skróty klawiaturowe"
521
+
522
+ #: ../includes/class-settings.php:474
523
  msgid "Set to false if you open forms inside prettyPhoto."
524
  msgstr "Wyłącz to jeśli chcesz otwierać formularze wewnątrz prettyPhoto."
525
 
526
+ #: ../includes/class-settings.php:478
527
+ msgid "Social (Twitter, Facebook)"
528
+ msgstr "Linki społeczności (Twitter, Facebook)"
529
+
530
+ #: ../includes/class-settings.php:481
531
  msgid "Display links to Facebook and Twitter."
532
  msgstr "Wyświetl linki do Facebboka i Twittera."
533
 
534
+ #: ../includes/class-settings.php:496
 
 
 
 
 
 
 
 
 
 
 
 
535
  msgid ""
536
  "When true, \"overlayShow\" is set to true and \"hideOnOverlayClick\", "
537
  "\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set "
538
  "to false."
539
  msgstr ""
540
+ "Jeśli będzie włączone, opcja \"overlayShow\" także zostanie włączona, "
541
+ "natomiast \"hideOnOverlayClick\", \"hideOnContentClick\", "
542
+ "\"enableEscapeButton\", \"showCloseButton\" zostaną wyłączone."
543
+
544
+ #: ../includes/class-settings.php:500
545
+ msgid "Show overlay"
546
+ msgstr "Wyświetlanie tła"
547
 
548
+ #: ../includes/class-settings.php:503
549
  msgid "Toggle overlay."
550
  msgstr "Włącz tło."
551
 
552
+ #: ../includes/class-settings.php:507
553
+ msgid "Show close button"
554
+ msgstr "Wyświetlanie przycisku Zamknij"
555
+
556
+ #: ../includes/class-settings.php:510
557
  msgid "Toggle close button."
558
  msgstr "Włącz przycisk Zamknij."
559
 
560
+ #: ../includes/class-settings.php:514
561
+ msgid "Enable escape button"
562
+ msgstr "Wyświetlanie przycisku Wyjdź"
563
+
564
+ #: ../includes/class-settings.php:517
565
  msgid "Toggle if pressing Esc button closes FancyBox."
566
  msgstr "Włącz zamykanie FancyBox przy pomocy Esc."
567
 
568
+ #: ../includes/class-settings.php:521
569
+ msgid "Hide on overlay click"
570
+ msgstr "Ukryj po kliknięciu w tło"
571
+
572
+ #: ../includes/class-settings.php:524
573
  msgid "Toggle if clicking the overlay should close FancyBox."
574
  msgstr "Włącz zamykanie FancyBox kliknięciem w tło."
575
 
576
+ #: ../includes/class-settings.php:528
577
+ msgid "Hide on content click"
578
+ msgstr "Ukryj po kliknięciu w treść"
579
+
580
+ #: ../includes/class-settings.php:531
581
  msgid "Toggle if clicking the content should close FancyBox."
582
  msgstr "Włącz zamykanie FancyBox kliknięciem w treść."
583
 
584
+ #: ../includes/class-settings.php:535
585
+ msgid "Cyclic"
586
+ msgstr "Cykliczność"
587
+
588
+ #: ../includes/class-settings.php:538
589
  msgid ""
590
  "When true, galleries will be cyclic, allowing you to keep pressing next/back."
591
  msgstr "Jeśli będzie włączone, galerie będą wyświetlane cyklicznie."
592
 
593
+ #: ../includes/class-settings.php:542
594
+ msgid "Show nav arrows"
595
+ msgstr "Wyświetlanie strzałek"
596
+
597
+ #: ../includes/class-settings.php:545
598
  msgid "Toggle navigation arrows."
599
  msgstr "Włącz strzałki nawigacyjne."
600
 
601
+ #: ../includes/class-settings.php:549
602
+ msgid "Auto scale"
603
+ msgstr "Automatyczne skalowanie"
604
+
605
+ #: ../includes/class-settings.php:552
606
  msgid "If true, FancyBox is scaled to fit in viewport."
607
  msgstr "Jeśli będzie włączone, FancyBox będzie skalowany do rozmiaru okna."
608
 
609
+ #: ../includes/class-settings.php:556
610
+ msgid "Scrolling (in/out)"
611
+ msgstr "Przewijanie"
612
+
613
+ #: ../includes/class-settings.php:559
614
  msgid "Set the overflow CSS property to create or hide scrollbars."
615
  msgstr ""
616
  "Ustaw parametr overflow dw CSS aby tworzyć lub ukrywać elementy nawigacji."
617
 
618
+ #: ../includes/class-settings.php:564
619
+ msgid "Center on scroll"
620
+ msgstr "Centrowanie przy przewijaniu"
621
+
622
+ #: ../includes/class-settings.php:567
623
  msgid "When true, FancyBox is centered while scrolling page."
624
  msgstr ""
625
  "Jeśli będzie zaznaczone, FancyBox będzie wycentrowany w trakcie przewijania "
626
  "strony."
627
 
628
+ #: ../includes/class-settings.php:574
629
  msgid "When true, transparency of content is changed for elastic transitions."
630
  msgstr ""
631
  "Jeśli będzie zaznaczone, przezroczystość treści zmieni się w trakcie "
632
  "animacji."
633
 
634
+ #: ../includes/class-settings.php:578
635
+ msgid "Overlay opacity"
636
+ msgstr "Przezroczystość tła"
637
+
638
+ #: ../includes/class-settings.php:581
639
  msgid "Opacity of the overlay."
640
  msgstr "Przezroczystość tła."
641
 
642
+ #: ../includes/class-settings.php:587
643
+ msgid "Overlay color"
644
+ msgstr "Kolor tła"
645
+
646
+ #: ../includes/class-settings.php:590
647
  msgid "Color of the overlay."
648
  msgstr "Kolor tła."
649
 
650
+ #: ../includes/class-settings.php:594
651
+ msgid "Title show"
652
+ msgstr "Wyświetlanie tytułu"
653
+
654
+ #: ../includes/class-settings.php:597
655
  msgid "Toggle title."
656
  msgstr "Wyświetlanie tytułu."
657
 
658
+ #: ../includes/class-settings.php:601
659
+ msgid "Title position"
660
+ msgstr "Pozycja tytułu"
661
+
662
+ #: ../includes/class-settings.php:604
663
  msgid "The position of title."
664
  msgstr "Pozycja tytułu."
665
 
666
+ #: ../includes/class-settings.php:609
667
+ msgid "Transition (in/out)"
668
+ msgstr "Efekty przejścia"
669
+
670
+ #: ../includes/class-settings.php:612
671
+ msgid "The transition type."
672
+ msgstr "Typ animacji."
673
+
674
+ #: ../includes/class-settings.php:617
675
+ msgid "Easings (in/out)"
676
+ msgstr "Wygładzanie animacji"
677
+
678
+ #: ../includes/class-settings.php:620
679
  msgid "Easing used for elastic animations."
680
  msgstr "Wygładzanie animacji dla trybu elastic."
681
 
682
+ #: ../includes/class-settings.php:625
683
+ msgid "Speed (in/out)"
684
+ msgstr "Szybkość"
685
+
686
+ #: ../includes/class-settings.php:628
687
  msgid "Speed of the fade and elastic transitions, in milliseconds."
688
  msgstr "Podaj czas trwania animacji fade i elastic (w milisekundach)"
689
 
690
+ #: ../includes/class-settings.php:633
691
+ msgid "Change speed"
692
+ msgstr "Zmień szybkość"
693
+
694
+ #: ../includes/class-settings.php:636
695
  msgid "Speed of resizing when changing gallery items, in milliseconds."
696
  msgstr ""
697
  "Szybkość zmiany wielkości okna w trakcie przechodzenia między obrazkami (w "
698
  "milisekundach)."
699
 
700
+ #: ../includes/class-settings.php:641
701
+ msgid "Change fade"
702
+ msgstr "Zmień zanikanie"
703
+
704
+ #: ../includes/class-settings.php:644
705
  msgid "Speed of the content fading while changing gallery items."
706
  msgstr "Szybkość zanikania elementów w trakcie przechodzenia między obrazkami."
707
 
708
+ #: ../includes/class-settings.php:649
709
+ msgid "Padding"
710
+ msgstr "Odstęp (padding)"
711
+
712
+ #: ../includes/class-settings.php:652
713
+ msgid "Space between FancyBox wrapper and content."
714
+ msgstr "Przestrzeń między FancyBox a treścią"
715
+
716
+ #: ../includes/class-settings.php:657
717
+ msgid "Margin"
718
+ msgstr "Margines (margin)"
719
+
720
+ #: ../includes/class-settings.php:660
721
+ msgid "Space between viewport and FancyBox wrapper."
722
+ msgstr "Przestrzeń między ekranem a Fancybox"
723
+
724
+ #: ../includes/class-settings.php:668
725
  msgid "Width of the video."
726
  msgstr "Szerokość video."
727
 
728
+ #: ../includes/class-settings.php:676
729
  msgid "Height of the video."
730
  msgstr "Wysokość video."
731
 
732
+ #: ../includes/class-settings.php:689
733
+ msgid "Effect"
734
+ msgstr "Efekt"
735
+
736
+ #: ../includes/class-settings.php:692
737
  msgid "The effect to use when showing the lightbox."
738
  msgstr "Wybierz efekt, który chcesz zastosować do wyświetlania lightboxa."
739
 
740
+ #: ../includes/class-settings.php:697
741
+ msgid "Keyboard navigation"
742
+ msgstr "Nawigacja klawiaturą"
743
+
744
+ #: ../includes/class-settings.php:700
745
+ msgid "Enable to close lightbox on overlay click."
746
+ msgstr "Włącz aby zamykać lightbox po kliknięciu w obszar poza obrazkiem."
747
 
748
+ #: ../includes/class-settings.php:704
749
+ msgid "Click overlay to close"
750
+ msgstr "Kliknięcie poza obrazek"
751
 
752
+ #: ../includes/class-settings.php:707
753
+ msgid "Enable keyboard navigation (left/right/escape)."
754
+ msgstr "Włącz nawigację za pomocą klawiatury (lewo, prawo, esc)."
755
+
756
+ #: ../includes/class-settings.php:711
757
+ msgid "Error message"
758
+ msgstr "Treść komunikatu o błędzie"
759
+
760
+ #: ../includes/class-settings.php:715
761
  msgid "Error message if the content cannot be loaded."
762
  msgstr "Komunikat w przypadku gdy nie można załądować treści."
763
 
764
+ #: ../includes/class-settings.php:730
765
  msgid "Animation speed."
766
  msgstr "Szybkość animacji."
767
 
768
+ #: ../includes/class-settings.php:735
769
+ msgid "Preload next image"
770
+ msgstr "Wstępne ładowanie kolejnego obrazka"
771
+
772
+ #: ../includes/class-settings.php:738
773
  msgid "Silently preload the next image."
774
  msgstr "W niezauważalny sposób ładuje kolejny obrazek."
775
 
776
+ #: ../includes/class-settings.php:742
777
+ msgid "Enable keyboard keys"
778
+ msgstr "Obługa klawiaturą"
779
+
780
+ #: ../includes/class-settings.php:745
781
  msgid "Enable keyboard shortcuts (arrows Left/Right and Esc)."
782
  msgstr "Włącza skróty klawiaturowe (strzałki lewo/prawo oraz Esc)"
783
 
784
+ #: ../includes/class-settings.php:749
785
+ msgid "Quit after last image"
786
+ msgstr "Wyjście po ostanim obrazku"
787
+
788
+ #: ../includes/class-settings.php:752
789
  msgid "Quit after viewing the last image."
790
  msgstr "Powoduje wyjście z lightboxa po obejrzeniu ostatniego obrazka."
791
 
792
+ #: ../includes/class-settings.php:756
793
+ msgid "Quit on image click"
794
+ msgstr "Wyjście po kliknięciu w obrazek"
795
+
796
+ #: ../includes/class-settings.php:759
797
  msgid "Quit when the viewed image is clicked."
798
  msgstr "Powoduje wyjście z lightboxa po kliknięciu w przeglądany obrazek."
799
 
800
+ #: ../includes/class-settings.php:763
801
+ msgid "Quit on anything click"
802
+ msgstr "Wyjście po kliknięciu w coś innego niż obrazek"
803
+
804
+ #: ../includes/class-settings.php:766
805
  msgid "Quit when anything but the viewed image is clicked."
806
  msgstr "Powoduje wyjście z lightboxa po kliknięciu w coś innego niż obrazek."
807
 
808
+ #: ../includes/class-settings.php:801 ../includes/class-settings.php:815
809
+ #: ../includes/class-settings.php:828
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
810
  msgid "Responsive Lightbox"
811
  msgstr "Efekt Lightbox"
812
 
813
+ #: ../includes/class-settings.php:830
814
  msgid "Need support?"
815
  msgstr "Potrzebujesz pomocy?"
816
 
817
+ #: ../includes/class-settings.php:831
818
  msgid ""
819
  "If you are having problems with this plugin, please talk about them in the"
820
  msgstr "Jeśli masz jakiekolwiek problemy z tą wtyczką, powiedz o nich na"
821
 
822
+ #: ../includes/class-settings.php:831
823
  msgid "Support forum"
824
  msgstr "Forum pomocy"
825
 
826
+ #: ../includes/class-settings.php:833
827
  msgid "Do you like this plugin?"
828
  msgstr "Lubisz tę wtyczkę?"
829
 
830
+ #: ../includes/class-settings.php:840
831
  msgid "Rate it 5"
832
  msgstr "Oceń ją na 5"
833
 
834
+ #: ../includes/class-settings.php:840
835
  msgid "on WordPress.org"
836
  msgstr "na WordPress.org"
837
 
838
+ #: ../includes/class-settings.php:841
839
  msgid "Blog about it & link to the"
840
  msgstr "Napisz o niej i dodaj link"
841
 
842
+ #: ../includes/class-settings.php:841
843
  msgid "plugin page"
844
  msgstr "do strony wtyczki"
845
 
846
+ #: ../includes/class-settings.php:842
847
  msgid "Check out our other"
848
  msgstr "Sprawdź nasze pozostałe"
849
 
850
+ #: ../includes/class-settings.php:842
851
  msgid "WordPress plugins"
852
  msgstr "wtyczki do WordPress'a"
853
 
854
+ #: ../includes/class-settings.php:862
855
  msgid "Reset to defaults"
856
  msgstr "Resetuj do domyślnych"
857
 
858
+ #: ../includes/class-settings.php:1214
859
+ msgid "Settings restored to defaults."
860
+ msgstr "Ustawienia zostały przywrócone do domyślnych."
 
 
 
 
861
 
862
+ #: ../responsive-lightbox.php:274
863
  msgid "Support"
864
  msgstr "Pomoc"
865
 
866
+ #: ../responsive-lightbox.php:293
867
  msgid "Settings"
868
  msgstr "Ustawienia"
869
 
870
+ #: ../responsive-lightbox.php:313
871
+ msgid "Are you sure you want to reset these settings to defaults?"
872
+ msgstr "Jesteś pewny, że chcesz zresetować ustawienia do domyślnych?"
873
+
874
+ #: ../responsive-lightbox.php:314
875
+ msgid "Are you sure you want to reset this script settings to defaults?"
876
+ msgstr ""
877
+ "Jesteś pewny, że chcesz zresetować ustawienia tego skryptu do ustawień "
878
+ "domyślnych?"
879
+
880
+ #~ msgid "Default (none)"
881
+ #~ msgstr "Domyślny (brak)"
882
+
883
+ #~ msgid "Deactivation"
884
+ #~ msgstr "Deaktywacja"
885
+
886
+ #~ msgid "Quit when image is clicked"
887
+ #~ msgstr "Wyjście po kliknięciu w obrazek"
888
+
889
+ #~ msgid "Quit when anything but image is clicked"
890
+ #~ msgstr "Wyjście po kliknięciu w coś innego niż obrazek"
891
+
892
+ #~ msgid "Select to which rel selector lightbox effect will be applied to."
893
+ #~ msgstr "Wybierz dla któego znacznika będzie dodawany efekt lightbox."
894
+
895
+ #~ msgid "Enable triggering lightbox on custom jquery events."
896
+ #~ msgstr ""
897
+ #~ "Włącz uruchamianie efektu lightbox przy własnych zdarzeniach jquery."
898
+
899
+ #~ msgid ""
900
+ #~ "By default WP gallery links point to full size images only. Enable that "
901
+ #~ "to modify the image size of native WP gallery image links."
902
+ #~ msgstr ""
903
+ #~ "Domyślnie galerie w WordPressie linkują do obrazków o pełnym rozmiarze. "
904
+ #~ "Włącze tę opcję, jeśli chcesz to zmodyfikwać. "
905
+
906
+ #~ msgid "Select the title for lightboxed WP gallery images."
907
+ #~ msgstr "Wybierz tytuł dla obrazków w galerii."
908
+
909
+ #~ msgid "Delete settings on plugin deactivation."
910
+ #~ msgstr "Usuń ustawienia przy deaktywacji wtyczki."
911
+
912
+ #~ msgid ""
913
+ #~ "Disable if you don't want to top and bottom bars to be hidden after a "
914
+ #~ "period of time."
915
+ #~ msgstr "Wyłącz to, jeśli nie chcesz ukrywać górnego i dolnego paska."
916
+
917
+ #~ msgid "True will hide the close button on mobile devices."
918
+ #~ msgstr ""
919
+ #~ "Wybierz, jeśli chcesz ukryć przycisk zamykania na urządzeniach mobilnych."
920
+
921
+ #~ msgid "Display images as slideshow."
922
+ #~ msgstr "Wyświetl obrazki jako pokaz sladów ."
923
+
924
+ #~ msgid "Display image tiltle."
925
+ #~ msgstr "Wyświetlanie tytułu obrazka."
926
+
927
+ #~ msgid "Expands something."
928
+ #~ msgstr "Powiększeniei okna."
929
+
930
+ #~ msgid "in pixels"
931
+ #~ msgstr "w pikselach"
932
+
933
+ #~ msgid "Select theme for lightbox effect."
934
+ #~ msgstr "Wybierz motyw dla efektu lightbox."
935
+
936
+ #~ msgid "Horizontal padding (in pixels)."
937
+ #~ msgstr "Odstępy w poziomie (w pikselach)."
938
+
939
+ #~ msgid ""
940
+ #~ "Hides all the flash object on a page. Enable this if flash appears over "
941
+ #~ "prettyPhoto."
942
+ #~ msgstr ""
943
+ #~ "Ukywa wszystkie obiekty flash na stronie. Włącz to jeśli animacje flash "
944
+ #~ "wyświetlane są nad lightboxem."
945
+
946
+ #~ msgid "Enable/Disable keyboard navigation (left/right/escape)."
947
+ #~ msgstr ""
948
+ #~ "Włącz / Wyłącz nawigację klawiaturą (strzałka w lewo, w prawo i przycisk "
949
+ #~ "ESC)"
950
+
951
+ #~ msgid "Eneble to close lightbox on overlay click."
952
+ #~ msgstr "Włącz aby zamykać lightbox po kliknięciu w obzar poza obrazkiem."
953
+
954
+ #~ msgid ""
955
+ #~ "Changes were not saved because there was attempt to save settings of "
956
+ #~ "inactive script. The site has been reloaded to the proper script settings."
957
+ #~ msgstr ""
958
+ #~ "Zmiany nie zostały zapisane ponieważ wykryto próbę zapisu ustawień "
959
+ #~ "nieaktywnego skryptu. Strona została odświeżona z prawidłowymi "
960
+ #~ "ustawieniami."
961
+
962
+ #~ msgid "Settings of SwipeBox script were restored to defaults."
963
+ #~ msgstr "Ustawienia skryptu SwipeBox zostały przywrócone."
964
+
965
+ #~ msgid "Settings of prettyPhoto script were restored to defaults."
966
+ #~ msgstr "Ustawienia skryptu prettyPhoto zostały przywrócone."
967
+
968
+ #~ msgid "Settings of FancyBox script were restored to defaults."
969
+ #~ msgstr "Ustawienia skryptu FancyBox zostały przywrócone."
970
+
971
+ #~ msgid "Settings of Nivo script were restored to defaults."
972
+ #~ msgstr "Ustawienia skryptu Nivo Lightbox zostały przywrócone."
973
+
974
+ #~ msgid ""
975
+ #~ "Changes were not set to defaults because there was attempt to reset "
976
+ #~ "settings of inactive script. The site has been reloaded to the proper "
977
+ #~ "script settings."
978
+ #~ msgstr ""
979
+ #~ "Zmiany nie zostały przywrócone do domyślnych ponieważ wykryto próbę "
980
+ #~ "resetowania ustawień nieaktywnego skryptu. Strona została odświeżona z "
981
+ #~ "prawidłowymi ustawieniami."
982
+
983
+ #~ msgid "Are you sure you want to reset scripts settings to defaults?"
984
+ #~ msgstr "Jesteś pewny, że chcesz zresetować ustawienia?"
985
+
986
  #~ msgid ""
987
  #~ "When true, \"overlayShow\" is set to TRUE and \"hideOnOverlayClick\", "
988
  #~ "\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are "
languages/responsive-lightbox.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Responsive Lightbox\n"
5
- "POT-Creation-Date: 2015-05-28 14:09+0100\n"
6
  "PO-Revision-Date: 2015-05-12 12:06+0100\n"
7
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
8
  "Language-Team: dFactory <info@dfactory.eu>\n"
@@ -16,874 +16,842 @@ msgstr ""
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
- #: ../responsive-lightbox.php:298
20
  msgid "prettyPhoto"
21
  msgstr ""
22
 
23
- #: ../responsive-lightbox.php:300
24
  msgid "slow"
25
  msgstr ""
26
 
27
- #: ../responsive-lightbox.php:301
28
  msgid "normal"
29
  msgstr ""
30
 
31
- #: ../responsive-lightbox.php:302
32
  msgid "fast"
33
  msgstr ""
34
 
35
- #: ../responsive-lightbox.php:305
36
  msgid "default"
37
  msgstr ""
38
 
39
- #: ../responsive-lightbox.php:306
40
  msgid "light rounded"
41
  msgstr ""
42
 
43
- #: ../responsive-lightbox.php:307
44
  msgid "dark rounded"
45
  msgstr ""
46
 
47
- #: ../responsive-lightbox.php:308
48
  msgid "light square"
49
  msgstr ""
50
 
51
- #: ../responsive-lightbox.php:309
52
  msgid "dark square"
53
  msgstr ""
54
 
55
- #: ../responsive-lightbox.php:310
56
  msgid "facebook"
57
  msgstr ""
58
 
59
- #: ../responsive-lightbox.php:313
60
  msgid "window"
61
  msgstr ""
62
 
63
- #: ../responsive-lightbox.php:314
64
  msgid "transparent"
65
  msgstr ""
66
 
67
- #: ../responsive-lightbox.php:315
68
  msgid "opaque"
69
  msgstr ""
70
 
71
- #: ../responsive-lightbox.php:316
72
  msgid "direct"
73
  msgstr ""
74
 
75
- #: ../responsive-lightbox.php:317
76
  msgid "gpu"
77
  msgstr ""
78
 
79
- #: ../responsive-lightbox.php:321
80
  msgid "SwipeBox"
81
  msgstr ""
82
 
83
- #: ../responsive-lightbox.php:323
84
  msgid "CSS"
85
  msgstr ""
86
 
87
- #: ../responsive-lightbox.php:324
88
  msgid "jQuery"
89
  msgstr ""
90
 
91
- #: ../responsive-lightbox.php:328
92
  msgid "FancyBox"
93
  msgstr ""
94
 
95
- #: ../responsive-lightbox.php:330
96
  msgid "elastic"
97
  msgstr ""
98
 
99
- #: ../responsive-lightbox.php:331 ../responsive-lightbox.php:352
100
  msgid "fade"
101
  msgstr ""
102
 
103
- #: ../responsive-lightbox.php:332
104
  msgid "none"
105
  msgstr ""
106
 
107
- #: ../responsive-lightbox.php:335
108
  msgid "auto"
109
  msgstr ""
110
 
111
- #: ../responsive-lightbox.php:336
112
  msgid "yes"
113
  msgstr ""
114
 
115
- #: ../responsive-lightbox.php:337
116
  msgid "no"
117
  msgstr ""
118
 
119
- #: ../responsive-lightbox.php:340
120
  msgid "swing"
121
  msgstr ""
122
 
123
- #: ../responsive-lightbox.php:341
124
  msgid "linear"
125
  msgstr ""
126
 
127
- #: ../responsive-lightbox.php:344
128
  msgid "outside"
129
  msgstr ""
130
 
131
- #: ../responsive-lightbox.php:345
132
  msgid "inside"
133
  msgstr ""
134
 
135
- #: ../responsive-lightbox.php:346
136
  msgid "over"
137
  msgstr ""
138
 
139
- #: ../responsive-lightbox.php:350
140
  msgid "Nivo Lightbox"
141
  msgstr ""
142
 
143
- #: ../responsive-lightbox.php:353
144
  msgid "fade scale"
145
  msgstr ""
146
 
147
- #: ../responsive-lightbox.php:354
148
  msgid "slide left"
149
  msgstr ""
150
 
151
- #: ../responsive-lightbox.php:355
152
  msgid "slide right"
153
  msgstr ""
154
 
155
- #: ../responsive-lightbox.php:356
156
  msgid "slide up"
157
  msgstr ""
158
 
159
- #: ../responsive-lightbox.php:357
160
  msgid "slide down"
161
  msgstr ""
162
 
163
- #: ../responsive-lightbox.php:358
164
  msgid "fall"
165
  msgstr ""
166
 
167
- #: ../responsive-lightbox.php:362
168
  msgid "Image Lightbox"
169
  msgstr ""
170
 
171
- #: ../responsive-lightbox.php:367
172
  msgid "Enable"
173
  msgstr ""
174
 
175
- #: ../responsive-lightbox.php:368
176
  msgid "Disable"
177
  msgstr ""
178
 
179
- #: ../responsive-lightbox.php:372
180
- msgid "Default (none)"
181
  msgstr ""
182
 
183
- #: ../responsive-lightbox.php:373
184
  msgid "Image Title"
185
  msgstr ""
186
 
187
- #: ../responsive-lightbox.php:374
188
  msgid "Image Caption"
189
  msgstr ""
190
 
191
- #: ../responsive-lightbox.php:375
192
  msgid "Image Alt Text"
193
  msgstr ""
194
 
195
- #: ../responsive-lightbox.php:376
196
  msgid "Image Description"
197
  msgstr ""
198
 
199
- #: ../responsive-lightbox.php:380
200
  msgid "Header"
201
  msgstr ""
202
 
203
- #: ../responsive-lightbox.php:381
204
  msgid "Footer"
205
  msgstr ""
206
 
207
- #: ../responsive-lightbox.php:386 ../responsive-lightbox.php:468
208
- msgid "General settings"
209
- msgstr ""
210
-
211
- #: ../responsive-lightbox.php:392 ../responsive-lightbox.php:483
212
- msgid "Lightbox settings"
213
  msgstr ""
214
 
215
- #: ../responsive-lightbox.php:469
216
- msgid "Lightbox script"
217
  msgstr ""
218
 
219
- #: ../responsive-lightbox.php:470
220
- msgid "Selector"
221
  msgstr ""
222
 
223
- #: ../responsive-lightbox.php:471
224
- msgid "Galleries"
225
  msgstr ""
226
 
227
- #: ../responsive-lightbox.php:472
228
- msgid "Gallery image size"
229
- msgstr ""
230
-
231
- #: ../responsive-lightbox.php:473
232
- msgid "Gallery image title"
233
- msgstr ""
234
-
235
- #: ../responsive-lightbox.php:474
236
- msgid "Video links"
237
- msgstr ""
238
-
239
- #: ../responsive-lightbox.php:475
240
- msgid "Image links"
241
- msgstr ""
242
-
243
- #: ../responsive-lightbox.php:476
244
- msgid "Single images as gallery"
245
  msgstr ""
246
 
247
- #: ../responsive-lightbox.php:477
248
- msgid "Custom events"
249
  msgstr ""
250
 
251
- #: ../responsive-lightbox.php:478
252
- msgid "Loading place"
253
  msgstr ""
254
 
255
- #: ../responsive-lightbox.php:479
256
- msgid "Deactivation"
257
  msgstr ""
258
 
259
- #: ../responsive-lightbox.php:486
260
- msgid "Animation type"
261
  msgstr ""
262
 
263
- #: ../responsive-lightbox.php:487
264
- msgid "Force PNG icons"
265
  msgstr ""
266
 
267
- #: ../responsive-lightbox.php:488
268
- msgid "Hide close on mobile"
269
  msgstr ""
270
 
271
- #: ../responsive-lightbox.php:489
272
- msgid "Top and bottom bars"
273
  msgstr ""
274
 
275
- #: ../responsive-lightbox.php:490
276
- msgid "Video max width"
277
  msgstr ""
278
 
279
- #: ../responsive-lightbox.php:491
280
- msgid "Loop at end"
281
  msgstr ""
282
 
283
- #: ../responsive-lightbox.php:493 ../responsive-lightbox.php:544
284
- msgid "Animation speed"
285
  msgstr ""
286
 
287
- #: ../responsive-lightbox.php:494
288
- msgid "Slideshow"
289
  msgstr ""
290
 
291
- #: ../responsive-lightbox.php:495
292
- msgid "Slideshow autoplay"
293
  msgstr ""
294
 
295
- #: ../responsive-lightbox.php:496 ../responsive-lightbox.php:524
296
- msgid "Opacity"
297
  msgstr ""
298
 
299
- #: ../responsive-lightbox.php:497
300
- msgid "Show title"
301
  msgstr ""
302
 
303
- #: ../responsive-lightbox.php:498
304
- msgid "Allow resize big images"
305
  msgstr ""
306
 
307
- #: ../responsive-lightbox.php:499
308
- msgid "Allow expand"
309
  msgstr ""
310
 
311
- #: ../responsive-lightbox.php:500 ../responsive-lightbox.php:536
312
- msgid "Video width"
313
  msgstr ""
314
 
315
- #: ../responsive-lightbox.php:501 ../responsive-lightbox.php:537
316
- msgid "Video height"
317
  msgstr ""
318
 
319
- #: ../responsive-lightbox.php:502
320
- msgid "Theme"
321
  msgstr ""
322
 
323
- #: ../responsive-lightbox.php:503
324
- msgid "Horizontal padding"
325
  msgstr ""
326
 
327
- #: ../responsive-lightbox.php:504
328
- msgid "Hide Flash"
329
  msgstr ""
330
 
331
- #: ../responsive-lightbox.php:505
332
- msgid "Flash Window Mode (wmode)"
333
  msgstr ""
334
 
335
- #: ../responsive-lightbox.php:506
336
- msgid "Video autoplay"
337
  msgstr ""
338
 
339
- #: ../responsive-lightbox.php:507 ../responsive-lightbox.php:513
340
- msgid "Modal"
341
  msgstr ""
342
 
343
- #: ../responsive-lightbox.php:508
344
- msgid "Deeplinking"
345
  msgstr ""
346
 
347
- #: ../responsive-lightbox.php:509
348
- msgid "Overlay gallery"
349
  msgstr ""
350
 
351
- #: ../responsive-lightbox.php:510
352
- msgid "Keyboard shortcuts"
353
  msgstr ""
354
 
355
- #: ../responsive-lightbox.php:511
356
- msgid "Social (Twitter, Facebook)"
 
 
357
  msgstr ""
358
 
359
- #: ../responsive-lightbox.php:514
360
- msgid "Show overlay"
361
  msgstr ""
362
 
363
- #: ../responsive-lightbox.php:515
364
- msgid "Show close button"
365
  msgstr ""
366
 
367
- #: ../responsive-lightbox.php:516
368
- msgid "Enable escape button"
369
  msgstr ""
370
 
371
- #: ../responsive-lightbox.php:517
372
- msgid "Hide on overlay click"
373
  msgstr ""
374
 
375
- #: ../responsive-lightbox.php:518
376
- msgid "Hide on content click"
 
 
377
  msgstr ""
378
 
379
- #: ../responsive-lightbox.php:519
380
- msgid "Cyclic"
381
  msgstr ""
382
 
383
- #: ../responsive-lightbox.php:520
384
- msgid "Show nav arrows"
385
  msgstr ""
386
 
387
- #: ../responsive-lightbox.php:521
388
- msgid "Auto scale"
389
  msgstr ""
390
 
391
- #: ../responsive-lightbox.php:522
392
- msgid "Scrolling (in/out)"
393
  msgstr ""
394
 
395
- #: ../responsive-lightbox.php:523
396
- msgid "Center on scroll"
397
  msgstr ""
398
 
399
- #: ../responsive-lightbox.php:525
400
- msgid "Overlay opacity"
401
  msgstr ""
402
 
403
- #: ../responsive-lightbox.php:526
404
- msgid "Overlay color"
405
  msgstr ""
406
 
407
- #: ../responsive-lightbox.php:527
408
- msgid "Title show"
409
  msgstr ""
410
 
411
- #: ../responsive-lightbox.php:528
412
- msgid "Title position"
413
  msgstr ""
414
 
415
- #: ../responsive-lightbox.php:529
416
- msgid "Transition (in/out)"
417
  msgstr ""
418
 
419
- #: ../responsive-lightbox.php:530
420
- msgid "Easings (in/out)"
421
  msgstr ""
422
 
423
- #: ../responsive-lightbox.php:531
424
- msgid "Speed (in/out)"
425
  msgstr ""
426
 
427
- #: ../responsive-lightbox.php:532
428
- msgid "Change speed"
429
  msgstr ""
430
 
431
- #: ../responsive-lightbox.php:533
432
- msgid "Change fade"
433
  msgstr ""
434
 
435
- #: ../responsive-lightbox.php:534
436
- msgid "Padding"
437
  msgstr ""
438
 
439
- #: ../responsive-lightbox.php:535
440
- msgid "Margin"
441
  msgstr ""
442
 
443
- #: ../responsive-lightbox.php:539
444
- msgid "Effect"
445
  msgstr ""
446
 
447
- #: ../responsive-lightbox.php:540
448
- msgid "Click overlay to close"
449
  msgstr ""
450
 
451
- #: ../responsive-lightbox.php:541
452
- msgid "Keyboard navigation"
453
  msgstr ""
454
 
455
- #: ../responsive-lightbox.php:542
456
- msgid "Error message"
457
  msgstr ""
458
 
459
- #: ../responsive-lightbox.php:545
460
- msgid "Preload next image"
461
  msgstr ""
462
 
463
- #: ../responsive-lightbox.php:546
464
- msgid "Enable keyboard keys"
465
  msgstr ""
466
 
467
- #: ../responsive-lightbox.php:547
468
- msgid "Quit after last image"
469
  msgstr ""
470
 
471
- #: ../responsive-lightbox.php:548
472
- msgid "Quit when image is clicked"
473
  msgstr ""
474
 
475
- #: ../responsive-lightbox.php:549
476
- msgid "Quit when anything but image is clicked"
477
  msgstr ""
478
 
479
- #: ../responsive-lightbox.php:566
480
- msgid "Select your preffered ligthbox effect script."
 
 
481
  msgstr ""
482
 
483
- #: ../responsive-lightbox.php:574
484
- msgid "Select to which rel selector lightbox effect will be applied to."
485
  msgstr ""
486
 
487
- #: ../responsive-lightbox.php:591
488
- msgid "Enable triggering lightbox on custom jquery events."
489
  msgstr ""
490
 
491
- #: ../responsive-lightbox.php:594
492
- msgid "Enter a space separated list of events."
493
  msgstr ""
494
 
495
- #: ../responsive-lightbox.php:612
496
- msgid "Select where all the lightbox scripts should be placed."
497
  msgstr ""
498
 
499
- #: ../responsive-lightbox.php:627
500
- msgid "Add lightbox to WordPress image galleries by default."
501
  msgstr ""
502
 
503
- #: ../responsive-lightbox.php:644
504
- msgid ""
505
- "By default WP gallery links point to full size images only. Enable that to "
506
- "modify the image size of native WP gallery image links."
507
  msgstr ""
508
 
509
- #: ../responsive-lightbox.php:652
510
- msgid "full"
511
  msgstr ""
512
 
513
- #: ../responsive-lightbox.php:660
514
- msgid "Select image size for gallery image links."
515
  msgstr ""
516
 
517
- #: ../responsive-lightbox.php:676
518
- msgid "Select the title for lightboxed WP gallery images."
519
  msgstr ""
520
 
521
- #: ../responsive-lightbox.php:691
522
- msgid "Add lightbox to YouTube and Vimeo video links by default."
523
  msgstr ""
524
 
525
- #: ../responsive-lightbox.php:706
526
- msgid "Add lightbox to WordPress image links by default."
527
  msgstr ""
528
 
529
- #: ../responsive-lightbox.php:721
530
- msgid "Display single post images as a gallery."
531
  msgstr ""
532
 
533
- #: ../responsive-lightbox.php:736
534
- msgid "Delete settings on plugin deactivation."
535
  msgstr ""
536
 
537
- #: ../responsive-lightbox.php:751
538
- msgid "Select a method of applying a lightbox effect."
539
  msgstr ""
540
 
541
- #: ../responsive-lightbox.php:766
542
  msgid ""
543
- "Disable if you don't want to top and bottom bars to be hidden after a period "
544
- "of time."
 
545
  msgstr ""
546
 
547
- #: ../responsive-lightbox.php:769
548
- msgid ""
549
- "Enter the time after which the top and bottom bars will be hidden (when "
550
- "hiding is enabled)."
551
  msgstr ""
552
 
553
- #: ../responsive-lightbox.php:778
554
- msgid "Enter the max video width in a lightbox."
555
  msgstr ""
556
 
557
- #: ../responsive-lightbox.php:793
558
- msgid "True will hide the close button on mobile devices."
559
  msgstr ""
560
 
561
- #: ../responsive-lightbox.php:808
562
- msgid ""
563
- "Enable this if you're having problems with navigation icons not visible on "
564
- "some devices."
565
  msgstr ""
566
 
567
- #: ../responsive-lightbox.php:823
568
- msgid "True will return to the first image after the last image is reached."
569
  msgstr ""
570
 
571
- #: ../responsive-lightbox.php:838
572
- msgid "Select animation speed for lightbox effect."
573
  msgstr ""
574
 
575
- #: ../responsive-lightbox.php:853
576
- msgid "Display images as slideshow."
577
  msgstr ""
578
 
579
- #: ../responsive-lightbox.php:856
580
- msgid "Enter time (in miliseconds)."
581
  msgstr ""
582
 
583
- #: ../responsive-lightbox.php:872
584
- msgid "Automatically start slideshow."
585
  msgstr ""
586
 
587
- #: ../responsive-lightbox.php:883
588
- msgid "Value between 0 and 100, 100 for no opacity."
589
  msgstr ""
590
 
591
- #: ../responsive-lightbox.php:898
592
- msgid "Display image tiltle."
593
  msgstr ""
594
 
595
- #: ../responsive-lightbox.php:913
596
- msgid "Resize the photos bigger than viewport."
 
597
  msgstr ""
598
 
599
- #: ../responsive-lightbox.php:928
600
- msgid "Expands something."
601
  msgstr ""
602
 
603
- #: ../responsive-lightbox.php:936 ../responsive-lightbox.php:944
604
- msgid "in pixels"
605
  msgstr ""
606
 
607
- #: ../responsive-lightbox.php:959
608
- msgid "Select theme for lightbox effect."
609
  msgstr ""
610
 
611
- #: ../responsive-lightbox.php:967
612
- msgid "Horizontal padding (in pixels)."
613
  msgstr ""
614
 
615
- #: ../responsive-lightbox.php:982
616
- msgid ""
617
- "Hides all the flash object on a page. Enable this if flash appears over "
618
- "prettyPhoto."
619
  msgstr ""
620
 
621
- #: ../responsive-lightbox.php:997
622
- msgid "Select flash window mode."
623
  msgstr ""
624
 
625
- #: ../responsive-lightbox.php:1012
626
- msgid "Automatically start videos."
627
  msgstr ""
628
 
629
- #: ../responsive-lightbox.php:1027
630
- msgid "If set to true, only the close button will close the window."
631
  msgstr ""
632
 
633
- #: ../responsive-lightbox.php:1042
634
- msgid "Allow prettyPhoto to update the url to enable deeplinking."
635
  msgstr ""
636
 
637
- #: ../responsive-lightbox.php:1057
638
- msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
639
  msgstr ""
640
 
641
- #: ../responsive-lightbox.php:1072
642
- msgid "Set to false if you open forms inside prettyPhoto."
643
  msgstr ""
644
 
645
- #: ../responsive-lightbox.php:1087
646
- msgid "Display links to Facebook and Twitter."
647
  msgstr ""
648
 
649
- #: ../responsive-lightbox.php:1102
650
- msgid "The transition type."
651
  msgstr ""
652
 
653
- #: ../responsive-lightbox.php:1110
654
- msgid "Space between FancyBox wrapper and content."
655
  msgstr ""
656
 
657
- #: ../responsive-lightbox.php:1118
658
- msgid "Space between viewport and FancyBox wrapper."
659
  msgstr ""
660
 
661
- #: ../responsive-lightbox.php:1133
662
- msgid ""
663
- "When true, \"overlayShow\" is set to true and \"hideOnOverlayClick\", "
664
- "\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set "
665
- "to false."
666
  msgstr ""
667
 
668
- #: ../responsive-lightbox.php:1148
669
- msgid "Toggle overlay."
670
  msgstr ""
671
 
672
- #: ../responsive-lightbox.php:1163
673
- msgid "Toggle close button."
674
  msgstr ""
675
 
676
- #: ../responsive-lightbox.php:1178
677
- msgid "Toggle if pressing Esc button closes FancyBox."
678
  msgstr ""
679
 
680
- #: ../responsive-lightbox.php:1193
681
- msgid "Toggle if clicking the overlay should close FancyBox."
682
  msgstr ""
683
 
684
- #: ../responsive-lightbox.php:1208
685
- msgid "Toggle if clicking the content should close FancyBox."
686
  msgstr ""
687
 
688
- #: ../responsive-lightbox.php:1223
689
- msgid ""
690
- "When true, galleries will be cyclic, allowing you to keep pressing next/back."
691
  msgstr ""
692
 
693
- #: ../responsive-lightbox.php:1238
694
- msgid "Toggle navigation arrows."
695
  msgstr ""
696
 
697
- #: ../responsive-lightbox.php:1253
698
- msgid "If true, FancyBox is scaled to fit in viewport."
699
  msgstr ""
700
 
701
- #: ../responsive-lightbox.php:1268
702
- msgid "Set the overflow CSS property to create or hide scrollbars."
703
  msgstr ""
704
 
705
- #: ../responsive-lightbox.php:1283
706
- msgid "When true, FancyBox is centered while scrolling page."
707
  msgstr ""
708
 
709
- #: ../responsive-lightbox.php:1298
710
- msgid "When true, transparency of content is changed for elastic transitions."
711
  msgstr ""
712
 
713
- #: ../responsive-lightbox.php:1309
714
- msgid "Opacity of the overlay."
715
  msgstr ""
716
 
717
- #: ../responsive-lightbox.php:1317
718
- msgid "Color of the overlay."
719
  msgstr ""
720
 
721
- #: ../responsive-lightbox.php:1332
722
- msgid "Toggle title."
723
  msgstr ""
724
 
725
- #: ../responsive-lightbox.php:1347
726
- msgid "The position of title."
727
  msgstr ""
728
 
729
- #: ../responsive-lightbox.php:1362
730
- msgid "Easing used for elastic animations."
731
  msgstr ""
732
 
733
- #: ../responsive-lightbox.php:1370
734
- msgid "Speed of the fade and elastic transitions, in milliseconds."
735
  msgstr ""
736
 
737
- #: ../responsive-lightbox.php:1378
738
- msgid "Speed of resizing when changing gallery items, in milliseconds."
739
  msgstr ""
740
 
741
- #: ../responsive-lightbox.php:1386
742
- msgid "Speed of the content fading while changing gallery items."
743
  msgstr ""
744
 
745
- #: ../responsive-lightbox.php:1394
746
- msgid "Width of the video."
747
  msgstr ""
748
 
749
- #: ../responsive-lightbox.php:1402
750
- msgid "Height of the video."
751
  msgstr ""
752
 
753
- #: ../responsive-lightbox.php:1417
754
- msgid "The effect to use when showing the lightbox."
755
  msgstr ""
756
 
757
- #: ../responsive-lightbox.php:1432
758
- msgid "Enable/Disable keyboard navigation (left/right/escape)."
759
  msgstr ""
760
 
761
- #: ../responsive-lightbox.php:1447
762
- msgid "Eneble to close lightbox on overlay click."
763
  msgstr ""
764
 
765
- #: ../responsive-lightbox.php:1455
766
  msgid "Error message if the content cannot be loaded."
767
  msgstr ""
768
 
769
- #: ../responsive-lightbox.php:1463
770
  msgid "Animation speed."
771
  msgstr ""
772
 
773
- #: ../responsive-lightbox.php:1478
774
- msgid "Silently preload the next image."
775
- msgstr ""
776
-
777
- #: ../responsive-lightbox.php:1493
778
- msgid "Enable keyboard shortcuts (arrows Left/Right and Esc)."
779
- msgstr ""
780
-
781
- #: ../responsive-lightbox.php:1508
782
- msgid "Quit after viewing the last image."
783
  msgstr ""
784
 
785
- #: ../responsive-lightbox.php:1523
786
- msgid "Quit when the viewed image is clicked."
787
  msgstr ""
788
 
789
- #: ../responsive-lightbox.php:1538
790
- msgid "Quit when anything but the viewed image is clicked."
791
  msgstr ""
792
 
793
- #: ../responsive-lightbox.php:1771
794
- msgid ""
795
- "Changes were not saved because there was attempt to save settings of "
796
- "inactive script. The site has been reloaded to the proper script settings."
797
  msgstr ""
798
 
799
- #: ../responsive-lightbox.php:1779
800
- msgid "Settings restored to defaults."
801
  msgstr ""
802
 
803
- #: ../responsive-lightbox.php:1784
804
- msgid "Settings of SwipeBox script were restored to defaults."
805
  msgstr ""
806
 
807
- #: ../responsive-lightbox.php:1788
808
- msgid "Settings of prettyPhoto script were restored to defaults."
809
  msgstr ""
810
 
811
- #: ../responsive-lightbox.php:1792
812
- msgid "Settings of FancyBox script were restored to defaults."
813
  msgstr ""
814
 
815
- #: ../responsive-lightbox.php:1796
816
- msgid "Settings of Nivo script were restored to defaults."
817
  msgstr ""
818
 
819
- #: ../responsive-lightbox.php:1798
820
- msgid ""
821
- "Changes were not set to defaults because there was attempt to reset settings "
822
- "of inactive script. The site has been reloaded to the proper script settings."
823
  msgstr ""
824
 
825
- #: ../responsive-lightbox.php:1810 ../responsive-lightbox.php:1819
826
- #: ../responsive-lightbox.php:1832
827
  msgid "Responsive Lightbox"
828
  msgstr ""
829
 
830
- #: ../responsive-lightbox.php:1834
831
  msgid "Need support?"
832
  msgstr ""
833
 
834
- #: ../responsive-lightbox.php:1835
835
  msgid ""
836
  "If you are having problems with this plugin, please talk about them in the"
837
  msgstr ""
838
 
839
- #: ../responsive-lightbox.php:1835
840
  msgid "Support forum"
841
  msgstr ""
842
 
843
- #: ../responsive-lightbox.php:1837
844
  msgid "Do you like this plugin?"
845
  msgstr ""
846
 
847
- #: ../responsive-lightbox.php:1844
848
  msgid "Rate it 5"
849
  msgstr ""
850
 
851
- #: ../responsive-lightbox.php:1844
852
  msgid "on WordPress.org"
853
  msgstr ""
854
 
855
- #: ../responsive-lightbox.php:1845
856
  msgid "Blog about it & link to the"
857
  msgstr ""
858
 
859
- #: ../responsive-lightbox.php:1845
860
  msgid "plugin page"
861
  msgstr ""
862
 
863
- #: ../responsive-lightbox.php:1846
864
  msgid "Check out our other"
865
  msgstr ""
866
 
867
- #: ../responsive-lightbox.php:1846
868
  msgid "WordPress plugins"
869
  msgstr ""
870
 
871
- #: ../responsive-lightbox.php:1866
872
  msgid "Reset to defaults"
873
  msgstr ""
874
 
875
- #: ../responsive-lightbox.php:1886
876
- msgid "Are you sure you want to reset these settings to defaults?"
877
- msgstr ""
878
-
879
- #: ../responsive-lightbox.php:1887
880
- msgid "Are you sure you want to reset scripts settings to defaults?"
881
  msgstr ""
882
 
883
- #: ../responsive-lightbox.php:2113
884
  msgid "Support"
885
  msgstr ""
886
 
887
- #: ../responsive-lightbox.php:2132
888
  msgid "Settings"
889
  msgstr ""
 
 
 
 
 
 
 
 
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Responsive Lightbox\n"
5
+ "POT-Creation-Date: 2015-06-02 15:45+0100\n"
6
  "PO-Revision-Date: 2015-05-12 12:06+0100\n"
7
  "Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
8
  "Language-Team: dFactory <info@dfactory.eu>\n"
16
  "X-Poedit-SourceCharset: UTF-8\n"
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
+ #: ../includes/class-settings.php:46
20
  msgid "prettyPhoto"
21
  msgstr ""
22
 
23
+ #: ../includes/class-settings.php:48
24
  msgid "slow"
25
  msgstr ""
26
 
27
+ #: ../includes/class-settings.php:49
28
  msgid "normal"
29
  msgstr ""
30
 
31
+ #: ../includes/class-settings.php:50
32
  msgid "fast"
33
  msgstr ""
34
 
35
+ #: ../includes/class-settings.php:53
36
  msgid "default"
37
  msgstr ""
38
 
39
+ #: ../includes/class-settings.php:54
40
  msgid "light rounded"
41
  msgstr ""
42
 
43
+ #: ../includes/class-settings.php:55
44
  msgid "dark rounded"
45
  msgstr ""
46
 
47
+ #: ../includes/class-settings.php:56
48
  msgid "light square"
49
  msgstr ""
50
 
51
+ #: ../includes/class-settings.php:57
52
  msgid "dark square"
53
  msgstr ""
54
 
55
+ #: ../includes/class-settings.php:58
56
  msgid "facebook"
57
  msgstr ""
58
 
59
+ #: ../includes/class-settings.php:61
60
  msgid "window"
61
  msgstr ""
62
 
63
+ #: ../includes/class-settings.php:62
64
  msgid "transparent"
65
  msgstr ""
66
 
67
+ #: ../includes/class-settings.php:63
68
  msgid "opaque"
69
  msgstr ""
70
 
71
+ #: ../includes/class-settings.php:64
72
  msgid "direct"
73
  msgstr ""
74
 
75
+ #: ../includes/class-settings.php:65
76
  msgid "gpu"
77
  msgstr ""
78
 
79
+ #: ../includes/class-settings.php:69
80
  msgid "SwipeBox"
81
  msgstr ""
82
 
83
+ #: ../includes/class-settings.php:71
84
  msgid "CSS"
85
  msgstr ""
86
 
87
+ #: ../includes/class-settings.php:72
88
  msgid "jQuery"
89
  msgstr ""
90
 
91
+ #: ../includes/class-settings.php:76
92
  msgid "FancyBox"
93
  msgstr ""
94
 
95
+ #: ../includes/class-settings.php:78
96
  msgid "elastic"
97
  msgstr ""
98
 
99
+ #: ../includes/class-settings.php:79 ../includes/class-settings.php:100
100
  msgid "fade"
101
  msgstr ""
102
 
103
+ #: ../includes/class-settings.php:80
104
  msgid "none"
105
  msgstr ""
106
 
107
+ #: ../includes/class-settings.php:83
108
  msgid "auto"
109
  msgstr ""
110
 
111
+ #: ../includes/class-settings.php:84
112
  msgid "yes"
113
  msgstr ""
114
 
115
+ #: ../includes/class-settings.php:85
116
  msgid "no"
117
  msgstr ""
118
 
119
+ #: ../includes/class-settings.php:88
120
  msgid "swing"
121
  msgstr ""
122
 
123
+ #: ../includes/class-settings.php:89
124
  msgid "linear"
125
  msgstr ""
126
 
127
+ #: ../includes/class-settings.php:92
128
  msgid "outside"
129
  msgstr ""
130
 
131
+ #: ../includes/class-settings.php:93
132
  msgid "inside"
133
  msgstr ""
134
 
135
+ #: ../includes/class-settings.php:94
136
  msgid "over"
137
  msgstr ""
138
 
139
+ #: ../includes/class-settings.php:98
140
  msgid "Nivo Lightbox"
141
  msgstr ""
142
 
143
+ #: ../includes/class-settings.php:101
144
  msgid "fade scale"
145
  msgstr ""
146
 
147
+ #: ../includes/class-settings.php:102
148
  msgid "slide left"
149
  msgstr ""
150
 
151
+ #: ../includes/class-settings.php:103
152
  msgid "slide right"
153
  msgstr ""
154
 
155
+ #: ../includes/class-settings.php:104
156
  msgid "slide up"
157
  msgstr ""
158
 
159
+ #: ../includes/class-settings.php:105
160
  msgid "slide down"
161
  msgstr ""
162
 
163
+ #: ../includes/class-settings.php:106
164
  msgid "fall"
165
  msgstr ""
166
 
167
+ #: ../includes/class-settings.php:110
168
  msgid "Image Lightbox"
169
  msgstr ""
170
 
171
+ #: ../includes/class-settings.php:115
172
  msgid "Enable"
173
  msgstr ""
174
 
175
+ #: ../includes/class-settings.php:116
176
  msgid "Disable"
177
  msgstr ""
178
 
179
+ #: ../includes/class-settings.php:120
180
+ msgid "None (default)"
181
  msgstr ""
182
 
183
+ #: ../includes/class-settings.php:121
184
  msgid "Image Title"
185
  msgstr ""
186
 
187
+ #: ../includes/class-settings.php:122
188
  msgid "Image Caption"
189
  msgstr ""
190
 
191
+ #: ../includes/class-settings.php:123
192
  msgid "Image Alt Text"
193
  msgstr ""
194
 
195
+ #: ../includes/class-settings.php:124
196
  msgid "Image Description"
197
  msgstr ""
198
 
199
+ #: ../includes/class-settings.php:128
200
  msgid "Header"
201
  msgstr ""
202
 
203
+ #: ../includes/class-settings.php:129
204
  msgid "Footer"
205
  msgstr ""
206
 
207
+ #: ../includes/class-settings.php:139
208
+ msgid "Thumbnail"
 
 
 
 
209
  msgstr ""
210
 
211
+ #: ../includes/class-settings.php:140
212
+ msgid "Medium"
213
  msgstr ""
214
 
215
+ #: ../includes/class-settings.php:141
216
+ msgid "Large"
217
  msgstr ""
218
 
219
+ #: ../includes/class-settings.php:142
220
+ msgid "Full Size (default)"
221
  msgstr ""
222
 
223
+ #: ../includes/class-settings.php:152 ../includes/class-settings.php:779
224
+ msgid "General settings"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
225
  msgstr ""
226
 
227
+ #: ../includes/class-settings.php:161
228
+ msgid "Lightbox script"
229
  msgstr ""
230
 
231
+ #: ../includes/class-settings.php:167
232
+ msgid "Select your preffered ligthbox effect script."
233
  msgstr ""
234
 
235
+ #: ../includes/class-settings.php:174
236
+ msgid "Selector"
237
  msgstr ""
238
 
239
+ #: ../includes/class-settings.php:177
240
+ msgid "Enter the rel selector lightbox effect will be applied to."
241
  msgstr ""
242
 
243
+ #: ../includes/class-settings.php:180
244
+ msgid "Galleries"
245
  msgstr ""
246
 
247
+ #: ../includes/class-settings.php:183
248
+ msgid "Add lightbox to WordPress image galleries by default."
249
  msgstr ""
250
 
251
+ #: ../includes/class-settings.php:186
252
+ msgid "Gallery image size"
253
  msgstr ""
254
 
255
+ #: ../includes/class-settings.php:189
256
+ msgid "Select image size for gallery image links."
257
  msgstr ""
258
 
259
+ #: ../includes/class-settings.php:193
260
+ msgid "Gallery image title"
261
  msgstr ""
262
 
263
+ #: ../includes/class-settings.php:196
264
+ msgid "Select title for images in native WordPress galleries."
265
  msgstr ""
266
 
267
+ #: ../includes/class-settings.php:200
268
+ msgid "Video links"
269
  msgstr ""
270
 
271
+ #: ../includes/class-settings.php:203
272
+ msgid "Add lightbox to YouTube and Vimeo video links by default."
273
  msgstr ""
274
 
275
+ #: ../includes/class-settings.php:206
276
+ msgid "Image links"
277
  msgstr ""
278
 
279
+ #: ../includes/class-settings.php:209
280
+ msgid "Add lightbox to WordPress image links by default."
281
  msgstr ""
282
 
283
+ #: ../includes/class-settings.php:212
284
+ msgid "Single images as gallery"
285
  msgstr ""
286
 
287
+ #: ../includes/class-settings.php:215
288
+ msgid "Display single post images as a gallery."
289
  msgstr ""
290
 
291
+ #: ../includes/class-settings.php:218
292
+ msgid "Custom events"
293
  msgstr ""
294
 
295
+ #: ../includes/class-settings.php:224
296
+ msgid "Enable triggering lightbox on custom jQuery events."
297
  msgstr ""
298
 
299
+ #: ../includes/class-settings.php:228
300
+ msgid "Enter a space separated list of events."
301
  msgstr ""
302
 
303
+ #: ../includes/class-settings.php:233
304
+ msgid "Loading place"
305
  msgstr ""
306
 
307
+ #: ../includes/class-settings.php:236
308
+ msgid "Select where all the lightbox scripts should be placed."
309
  msgstr ""
310
 
311
+ #: ../includes/class-settings.php:240
312
+ msgid "Delete data"
313
  msgstr ""
314
 
315
+ #: ../includes/class-settings.php:243
316
+ msgid "Delete all plugin settings on deactivation."
317
  msgstr ""
318
 
319
+ #: ../includes/class-settings.php:253 ../includes/class-settings.php:785
320
+ msgid "Lightbox settings"
321
  msgstr ""
322
 
323
+ #: ../includes/class-settings.php:271
324
+ msgid "Animation type"
325
  msgstr ""
326
 
327
+ #: ../includes/class-settings.php:275
328
+ msgid "Select a method of applying a lightbox effect."
329
  msgstr ""
330
 
331
+ #: ../includes/class-settings.php:280
332
+ msgid "Force PNG icons"
333
  msgstr ""
334
 
335
+ #: ../includes/class-settings.php:283
336
+ msgid ""
337
+ "Enable this if you're having problems with navigation icons not visible on "
338
+ "some devices."
339
  msgstr ""
340
 
341
+ #: ../includes/class-settings.php:287
342
+ msgid "Hide close on mobile"
343
  msgstr ""
344
 
345
+ #: ../includes/class-settings.php:290
346
+ msgid "Hide the close button on mobile devices."
347
  msgstr ""
348
 
349
+ #: ../includes/class-settings.php:294
350
+ msgid "Top and bottom bars"
351
  msgstr ""
352
 
353
+ #: ../includes/class-settings.php:300
354
+ msgid "Hide top and bottom bars after a period of time."
355
  msgstr ""
356
 
357
+ #: ../includes/class-settings.php:305
358
+ msgid ""
359
+ "Enter the time after which the top and bottom bars will be hidden (when "
360
+ "hiding is enabled)."
361
  msgstr ""
362
 
363
+ #: ../includes/class-settings.php:312
364
+ msgid "Video max width"
365
  msgstr ""
366
 
367
+ #: ../includes/class-settings.php:315
368
+ msgid "Enter the max video width in a lightbox."
369
  msgstr ""
370
 
371
+ #: ../includes/class-settings.php:320
372
+ msgid "Loop at end"
373
  msgstr ""
374
 
375
+ #: ../includes/class-settings.php:323
376
+ msgid "True will return to the first image after the last image is reached."
377
  msgstr ""
378
 
379
+ #: ../includes/class-settings.php:335 ../includes/class-settings.php:727
380
+ msgid "Animation speed"
381
  msgstr ""
382
 
383
+ #: ../includes/class-settings.php:339
384
+ msgid "Select animation speed for lightbox effect."
385
  msgstr ""
386
 
387
+ #: ../includes/class-settings.php:344
388
+ msgid "Slideshow"
389
  msgstr ""
390
 
391
+ #: ../includes/class-settings.php:350
392
+ msgid "Display images as slideshow"
393
  msgstr ""
394
 
395
+ #: ../includes/class-settings.php:355
396
+ msgid "Enter time (in miliseconds)."
397
  msgstr ""
398
 
399
+ #: ../includes/class-settings.php:362
400
+ msgid "Slideshow autoplay"
401
  msgstr ""
402
 
403
+ #: ../includes/class-settings.php:365
404
+ msgid "Automatically start slideshow."
405
  msgstr ""
406
 
407
+ #: ../includes/class-settings.php:369 ../includes/class-settings.php:571
408
+ msgid "Opacity"
409
  msgstr ""
410
 
411
+ #: ../includes/class-settings.php:372
412
+ msgid "Value between 0 and 100, 100 for no opacity."
413
  msgstr ""
414
 
415
+ #: ../includes/class-settings.php:378
416
+ msgid "Show title"
417
  msgstr ""
418
 
419
+ #: ../includes/class-settings.php:381
420
+ msgid "Display image title."
421
  msgstr ""
422
 
423
+ #: ../includes/class-settings.php:385
424
+ msgid "Allow resize big images"
425
  msgstr ""
426
 
427
+ #: ../includes/class-settings.php:388
428
+ msgid "Resize the photos bigger than viewport."
429
  msgstr ""
430
 
431
+ #: ../includes/class-settings.php:392
432
+ msgid "Allow expand"
433
  msgstr ""
434
 
435
+ #: ../includes/class-settings.php:395
436
+ msgid "Allow expanding images."
437
  msgstr ""
438
 
439
+ #: ../includes/class-settings.php:399 ../includes/class-settings.php:665
440
+ msgid "Video width"
441
  msgstr ""
442
 
443
+ #: ../includes/class-settings.php:406 ../includes/class-settings.php:673
444
+ msgid "Video height"
445
  msgstr ""
446
 
447
+ #: ../includes/class-settings.php:413
448
+ msgid "Theme"
449
  msgstr ""
450
 
451
+ #: ../includes/class-settings.php:416
452
+ msgid "Select the theme for lightbox effect."
453
  msgstr ""
454
 
455
+ #: ../includes/class-settings.php:421
456
+ msgid "Horizontal padding"
457
  msgstr ""
458
 
459
+ #: ../includes/class-settings.php:428
460
+ msgid "Hide Flash"
461
  msgstr ""
462
 
463
+ #: ../includes/class-settings.php:431
464
+ msgid ""
465
+ "Hide all the flash objects on a page. Enable this if flash appears over "
466
+ "prettyPhoto."
467
  msgstr ""
468
 
469
+ #: ../includes/class-settings.php:435
470
+ msgid "Flash Window Mode (wmode)"
471
  msgstr ""
472
 
473
+ #: ../includes/class-settings.php:438
474
+ msgid "Select flash window mode."
475
  msgstr ""
476
 
477
+ #: ../includes/class-settings.php:443
478
+ msgid "Video autoplay"
479
  msgstr ""
480
 
481
+ #: ../includes/class-settings.php:446
482
+ msgid "Automatically start videos."
483
  msgstr ""
484
 
485
+ #: ../includes/class-settings.php:450 ../includes/class-settings.php:493
486
+ msgid "Modal"
487
  msgstr ""
488
 
489
+ #: ../includes/class-settings.php:453
490
+ msgid "If set to true, only the close button will close the window."
 
 
491
  msgstr ""
492
 
493
+ #: ../includes/class-settings.php:457
494
+ msgid "Deeplinking"
495
  msgstr ""
496
 
497
+ #: ../includes/class-settings.php:460
498
+ msgid "Allow prettyPhoto to update the url to enable deeplinking."
499
  msgstr ""
500
 
501
+ #: ../includes/class-settings.php:464
502
+ msgid "Overlay gallery"
503
  msgstr ""
504
 
505
+ #: ../includes/class-settings.php:467
506
+ msgid "If enabled, a gallery will overlay the fullscreen image on mouse over."
507
  msgstr ""
508
 
509
+ #: ../includes/class-settings.php:471
510
+ msgid "Keyboard shortcuts"
511
  msgstr ""
512
 
513
+ #: ../includes/class-settings.php:474
514
+ msgid "Set to false if you open forms inside prettyPhoto."
515
  msgstr ""
516
 
517
+ #: ../includes/class-settings.php:478
518
+ msgid "Social (Twitter, Facebook)"
519
  msgstr ""
520
 
521
+ #: ../includes/class-settings.php:481
522
+ msgid "Display links to Facebook and Twitter."
523
  msgstr ""
524
 
525
+ #: ../includes/class-settings.php:496
526
  msgid ""
527
+ "When true, \"overlayShow\" is set to true and \"hideOnOverlayClick\", "
528
+ "\"hideOnContentClick\", \"enableEscapeButton\", \"showCloseButton\" are set "
529
+ "to false."
530
  msgstr ""
531
 
532
+ #: ../includes/class-settings.php:500
533
+ msgid "Show overlay"
 
 
534
  msgstr ""
535
 
536
+ #: ../includes/class-settings.php:503
537
+ msgid "Toggle overlay."
538
  msgstr ""
539
 
540
+ #: ../includes/class-settings.php:507
541
+ msgid "Show close button"
542
  msgstr ""
543
 
544
+ #: ../includes/class-settings.php:510
545
+ msgid "Toggle close button."
 
 
546
  msgstr ""
547
 
548
+ #: ../includes/class-settings.php:514
549
+ msgid "Enable escape button"
550
  msgstr ""
551
 
552
+ #: ../includes/class-settings.php:517
553
+ msgid "Toggle if pressing Esc button closes FancyBox."
554
  msgstr ""
555
 
556
+ #: ../includes/class-settings.php:521
557
+ msgid "Hide on overlay click"
558
  msgstr ""
559
 
560
+ #: ../includes/class-settings.php:524
561
+ msgid "Toggle if clicking the overlay should close FancyBox."
562
  msgstr ""
563
 
564
+ #: ../includes/class-settings.php:528
565
+ msgid "Hide on content click"
566
  msgstr ""
567
 
568
+ #: ../includes/class-settings.php:531
569
+ msgid "Toggle if clicking the content should close FancyBox."
570
  msgstr ""
571
 
572
+ #: ../includes/class-settings.php:535
573
+ msgid "Cyclic"
574
  msgstr ""
575
 
576
+ #: ../includes/class-settings.php:538
577
+ msgid ""
578
+ "When true, galleries will be cyclic, allowing you to keep pressing next/back."
579
  msgstr ""
580
 
581
+ #: ../includes/class-settings.php:542
582
+ msgid "Show nav arrows"
583
  msgstr ""
584
 
585
+ #: ../includes/class-settings.php:545
586
+ msgid "Toggle navigation arrows."
587
  msgstr ""
588
 
589
+ #: ../includes/class-settings.php:549
590
+ msgid "Auto scale"
591
  msgstr ""
592
 
593
+ #: ../includes/class-settings.php:552
594
+ msgid "If true, FancyBox is scaled to fit in viewport."
595
  msgstr ""
596
 
597
+ #: ../includes/class-settings.php:556
598
+ msgid "Scrolling (in/out)"
 
 
599
  msgstr ""
600
 
601
+ #: ../includes/class-settings.php:559
602
+ msgid "Set the overflow CSS property to create or hide scrollbars."
603
  msgstr ""
604
 
605
+ #: ../includes/class-settings.php:564
606
+ msgid "Center on scroll"
607
  msgstr ""
608
 
609
+ #: ../includes/class-settings.php:567
610
+ msgid "When true, FancyBox is centered while scrolling page."
611
  msgstr ""
612
 
613
+ #: ../includes/class-settings.php:574
614
+ msgid "When true, transparency of content is changed for elastic transitions."
615
  msgstr ""
616
 
617
+ #: ../includes/class-settings.php:578
618
+ msgid "Overlay opacity"
619
  msgstr ""
620
 
621
+ #: ../includes/class-settings.php:581
622
+ msgid "Opacity of the overlay."
623
  msgstr ""
624
 
625
+ #: ../includes/class-settings.php:587
626
+ msgid "Overlay color"
627
  msgstr ""
628
 
629
+ #: ../includes/class-settings.php:590
630
+ msgid "Color of the overlay."
631
  msgstr ""
632
 
633
+ #: ../includes/class-settings.php:594
634
+ msgid "Title show"
635
  msgstr ""
636
 
637
+ #: ../includes/class-settings.php:597
638
+ msgid "Toggle title."
639
  msgstr ""
640
 
641
+ #: ../includes/class-settings.php:601
642
+ msgid "Title position"
 
 
 
643
  msgstr ""
644
 
645
+ #: ../includes/class-settings.php:604
646
+ msgid "The position of title."
647
  msgstr ""
648
 
649
+ #: ../includes/class-settings.php:609
650
+ msgid "Transition (in/out)"
651
  msgstr ""
652
 
653
+ #: ../includes/class-settings.php:612
654
+ msgid "The transition type."
655
  msgstr ""
656
 
657
+ #: ../includes/class-settings.php:617
658
+ msgid "Easings (in/out)"
659
  msgstr ""
660
 
661
+ #: ../includes/class-settings.php:620
662
+ msgid "Easing used for elastic animations."
663
  msgstr ""
664
 
665
+ #: ../includes/class-settings.php:625
666
+ msgid "Speed (in/out)"
 
667
  msgstr ""
668
 
669
+ #: ../includes/class-settings.php:628
670
+ msgid "Speed of the fade and elastic transitions, in milliseconds."
671
  msgstr ""
672
 
673
+ #: ../includes/class-settings.php:633
674
+ msgid "Change speed"
675
  msgstr ""
676
 
677
+ #: ../includes/class-settings.php:636
678
+ msgid "Speed of resizing when changing gallery items, in milliseconds."
679
  msgstr ""
680
 
681
+ #: ../includes/class-settings.php:641
682
+ msgid "Change fade"
683
  msgstr ""
684
 
685
+ #: ../includes/class-settings.php:644
686
+ msgid "Speed of the content fading while changing gallery items."
687
  msgstr ""
688
 
689
+ #: ../includes/class-settings.php:649
690
+ msgid "Padding"
691
  msgstr ""
692
 
693
+ #: ../includes/class-settings.php:652
694
+ msgid "Space between FancyBox wrapper and content."
695
  msgstr ""
696
 
697
+ #: ../includes/class-settings.php:657
698
+ msgid "Margin"
699
  msgstr ""
700
 
701
+ #: ../includes/class-settings.php:660
702
+ msgid "Space between viewport and FancyBox wrapper."
703
  msgstr ""
704
 
705
+ #: ../includes/class-settings.php:668
706
+ msgid "Width of the video."
707
  msgstr ""
708
 
709
+ #: ../includes/class-settings.php:676
710
+ msgid "Height of the video."
711
  msgstr ""
712
 
713
+ #: ../includes/class-settings.php:689
714
+ msgid "Effect"
715
  msgstr ""
716
 
717
+ #: ../includes/class-settings.php:692
718
+ msgid "The effect to use when showing the lightbox."
719
  msgstr ""
720
 
721
+ #: ../includes/class-settings.php:697
722
+ msgid "Keyboard navigation"
723
  msgstr ""
724
 
725
+ #: ../includes/class-settings.php:700
726
+ msgid "Enable to close lightbox on overlay click."
727
  msgstr ""
728
 
729
+ #: ../includes/class-settings.php:704
730
+ msgid "Click overlay to close"
731
  msgstr ""
732
 
733
+ #: ../includes/class-settings.php:707
734
+ msgid "Enable keyboard navigation (left/right/escape)."
735
  msgstr ""
736
 
737
+ #: ../includes/class-settings.php:711
738
+ msgid "Error message"
739
  msgstr ""
740
 
741
+ #: ../includes/class-settings.php:715
742
  msgid "Error message if the content cannot be loaded."
743
  msgstr ""
744
 
745
+ #: ../includes/class-settings.php:730
746
  msgid "Animation speed."
747
  msgstr ""
748
 
749
+ #: ../includes/class-settings.php:735
750
+ msgid "Preload next image"
 
 
 
 
 
 
 
 
751
  msgstr ""
752
 
753
+ #: ../includes/class-settings.php:738
754
+ msgid "Silently preload the next image."
755
  msgstr ""
756
 
757
+ #: ../includes/class-settings.php:742
758
+ msgid "Enable keyboard keys"
759
  msgstr ""
760
 
761
+ #: ../includes/class-settings.php:745
762
+ msgid "Enable keyboard shortcuts (arrows Left/Right and Esc)."
 
 
763
  msgstr ""
764
 
765
+ #: ../includes/class-settings.php:749
766
+ msgid "Quit after last image"
767
  msgstr ""
768
 
769
+ #: ../includes/class-settings.php:752
770
+ msgid "Quit after viewing the last image."
771
  msgstr ""
772
 
773
+ #: ../includes/class-settings.php:756
774
+ msgid "Quit on image click"
775
  msgstr ""
776
 
777
+ #: ../includes/class-settings.php:759
778
+ msgid "Quit when the viewed image is clicked."
779
  msgstr ""
780
 
781
+ #: ../includes/class-settings.php:763
782
+ msgid "Quit on anything click"
783
  msgstr ""
784
 
785
+ #: ../includes/class-settings.php:766
786
+ msgid "Quit when anything but the viewed image is clicked."
 
 
787
  msgstr ""
788
 
789
+ #: ../includes/class-settings.php:801 ../includes/class-settings.php:815
790
+ #: ../includes/class-settings.php:828
791
  msgid "Responsive Lightbox"
792
  msgstr ""
793
 
794
+ #: ../includes/class-settings.php:830
795
  msgid "Need support?"
796
  msgstr ""
797
 
798
+ #: ../includes/class-settings.php:831
799
  msgid ""
800
  "If you are having problems with this plugin, please talk about them in the"
801
  msgstr ""
802
 
803
+ #: ../includes/class-settings.php:831
804
  msgid "Support forum"
805
  msgstr ""
806
 
807
+ #: ../includes/class-settings.php:833
808
  msgid "Do you like this plugin?"
809
  msgstr ""
810
 
811
+ #: ../includes/class-settings.php:840
812
  msgid "Rate it 5"
813
  msgstr ""
814
 
815
+ #: ../includes/class-settings.php:840
816
  msgid "on WordPress.org"
817
  msgstr ""
818
 
819
+ #: ../includes/class-settings.php:841
820
  msgid "Blog about it & link to the"
821
  msgstr ""
822
 
823
+ #: ../includes/class-settings.php:841
824
  msgid "plugin page"
825
  msgstr ""
826
 
827
+ #: ../includes/class-settings.php:842
828
  msgid "Check out our other"
829
  msgstr ""
830
 
831
+ #: ../includes/class-settings.php:842
832
  msgid "WordPress plugins"
833
  msgstr ""
834
 
835
+ #: ../includes/class-settings.php:862
836
  msgid "Reset to defaults"
837
  msgstr ""
838
 
839
+ #: ../includes/class-settings.php:1214
840
+ msgid "Settings restored to defaults."
 
 
 
 
841
  msgstr ""
842
 
843
+ #: ../responsive-lightbox.php:274
844
  msgid "Support"
845
  msgstr ""
846
 
847
+ #: ../responsive-lightbox.php:293
848
  msgid "Settings"
849
  msgstr ""
850
+
851
+ #: ../responsive-lightbox.php:313
852
+ msgid "Are you sure you want to reset these settings to defaults?"
853
+ msgstr ""
854
+
855
+ #: ../responsive-lightbox.php:314
856
+ msgid "Are you sure you want to reset this script settings to defaults?"
857
+ msgstr ""
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: dfactory
3
  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.6
6
  Tested up to: 4.2.2
7
- Stable tag: 1.4.14
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -25,6 +25,7 @@ For more information, check out plugin page at [dFactory](http://www.dfactory.eu
25
  * Option to display single post images as a gallery
26
  * Option to modify native WP gallery links image size
27
  * Option to set gallery images title from image title, caption, alt or description
 
28
  * Option to trigger lightbox on custom jquery events
29
  * Enter a selector for lightbox
30
  * Highly customizable settings for each of the lightbox scripts
@@ -66,6 +67,10 @@ No questions yet.
66
 
67
  == Changelog ==
68
 
 
 
 
 
69
  = 1.4.14 =
70
  * New: Option to set gallery images title from image title, caption, alt or description
71
  * Tweak: Improved regex for Youtube video links
@@ -198,5 +203,6 @@ Initial release
198
 
199
  == Upgrade Notice ==
200
 
201
- = 1.4.14 =
202
- * New: Option to set gallery images title from image title, caption, alt or description
 
2
  Contributors: dfactory
3
  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: 4.0
6
  Tested up to: 4.2.2
7
+ Stable tag: 1.5.0
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
25
  * Option to display single post images as a gallery
26
  * Option to modify native WP gallery links image size
27
  * Option to set gallery images title from image title, caption, alt or description
28
+ * Option to force lightbox for custom WP gallery replacements like Jetpack tiled galleries
29
  * Option to trigger lightbox on custom jquery events
30
  * Enter a selector for lightbox
31
  * Highly customizable settings for each of the lightbox scripts
67
 
68
  == Changelog ==
69
 
70
+ = 1.5.0 =
71
+ * New: Revamped User Interface
72
+ * New: Option to force lightbox for custom WP gallery replacements like Jetpack tiled galleries
73
+
74
  = 1.4.14 =
75
  * New: Option to set gallery images title from image title, caption, alt or description
76
  * Tweak: Improved regex for Youtube video links
203
 
204
  == Upgrade Notice ==
205
 
206
+ = 1.5.0 =
207
+ * New: Revamped User Interface
208
+ * New: Option to force lightbox for custom WP gallery replacements like Jetpack tiled galleries
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.4.14
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
@@ -21,1872 +21,298 @@ The above copyright notice and this permission notice shall be included in all c
21
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
  */
23
 
 
24
  if ( ! defined( 'ABSPATH' ) )
25
  exit;
26
 
27
- /**
28
- * Responsive Lightbox class.
29
- *
30
- * @class Responsive_Lightbox
31
- * @version 1.4.14
32
- */
33
- class Responsive_Lightbox {
34
-
35
- private $defaults = array(
36
- 'settings' => array(
37
- 'script' => 'swipebox',
38
- 'selector' => 'lightbox',
39
- 'galleries' => true,
40
- 'enable_gallery_image_size' => false,
41
- 'gallery_image_size' => 'full',
42
- 'gallery_image_title' => 'default',
43
- 'videos' => true,
44
- 'image_links' => true,
45
- 'images_as_gallery' => false,
46
- 'deactivation_delete' => false,
47
- 'loading_place' => 'header',
48
- 'enable_custom_events' => false,
49
- 'custom_events' => 'ajaxComplete'
50
- ),
51
- 'configuration' => array(
52
- 'prettyphoto' => array(
53
- 'animation_speed' => 'normal',
54
- 'slideshow' => false,
55
- 'slideshow_delay' => 5000,
56
- 'slideshow_autoplay' => false,
57
- 'opacity' => 75,
58
- 'show_title' => true,
59
- 'allow_resize' => true,
60
- 'allow_expand' => true,
61
- 'width' => 1080,
62
- 'height' => 720,
63
- 'separator' => '/',
64
- 'theme' => 'pp_default',
65
- 'horizontal_padding' => 20,
66
- 'hide_flash' => false,
67
- 'wmode' => 'opaque',
68
- 'video_autoplay' => false,
69
- 'modal' => false,
70
- 'deeplinking' => false,
71
- 'overlay_gallery' => true,
72
- 'keyboard_shortcuts' => true,
73
- 'social' => false
74
- ),
75
- 'swipebox' => array(
76
- 'animation' => 'css',
77
- 'force_png_icons' => false,
78
- 'hide_close_mobile' => false,
79
- 'hide_bars' => true,
80
- 'hide_bars_delay' => 5000,
81
- 'video_max_width' => 1080,
82
- 'loop_at_end' => false
83
- ),
84
- 'fancybox' => array(
85
- 'modal' => false,
86
- 'show_overlay' => true,
87
- 'show_close_button' => true,
88
- 'enable_escape_button' => true,
89
- 'hide_on_overlay_click' => true,
90
- 'hide_on_content_click' => false,
91
- 'cyclic' => false,
92
- 'show_nav_arrows' => true,
93
- 'auto_scale' => true,
94
- 'scrolling' => 'yes',
95
- 'center_on_scroll' => true,
96
- 'opacity' => true,
97
- 'overlay_opacity' => 70,
98
- 'overlay_color' => '#666',
99
- 'title_show' => true,
100
- 'title_position' => 'outside',
101
- 'transitions' => 'fade',
102
- 'easings' => 'swing',
103
- 'speeds' => 300,
104
- 'change_speed' => 300,
105
- 'change_fade' => 100,
106
- 'padding' => 5,
107
- 'margin' => 5,
108
- 'video_width' => 1080,
109
- 'video_height' => 720
110
- ),
111
- 'nivo' => array(
112
- 'effect' => 'fade',
113
- 'click_overlay_to_close' => true,
114
- 'keyboard_nav' => true,
115
- 'error_message' => 'The requested content cannot be loaded. Please try again later.'
116
- ),
117
- 'imagelightbox' => array(
118
- 'animation_speed' => 250,
119
- 'preload_next' => true,
120
- 'enable_keyboard' => true,
121
- 'quit_on_end' => false,
122
- 'quit_on_image_click' => false,
123
- 'quit_on_document_click' => true
124
- )
125
- ),
126
- 'version' => '1.4.14'
127
- );
128
- private $scripts = array();
129
- private $options = array();
130
- private $tabs = array();
131
- private $choices = array();
132
- private $loading_places = array();
133
- private $gallery_no = 0;
134
-
135
- public function __construct() {
136
- register_activation_hook( __FILE__, array( &$this, 'multisite_activation' ) );
137
- register_deactivation_hook( __FILE__, array( &$this, 'multisite_deactivation' ) );
138
-
139
- // change from older versions
140
- $db_version = get_option( 'responsive_lightbox_version' );
141
-
142
- if ( version_compare( ($db_version === false ? '1.0.0' : $db_version ), '1.0.5', '<' ) ) {
143
- if ( ($array = get_option( 'rl_settings' )) !== false ) {
144
- update_option( 'responsive_lightbox_settings', $array );
145
- delete_option( 'rl_settings' );
146
- }
147
-
148
- if ( ($array = get_option( 'rl_configuration' )) !== false ) {
149
- update_option( 'responsive_lightbox_configuration', $array );
150
- delete_option( 'rl_configuration' );
151
- }
152
- }
153
-
154
- // update plugin version
155
- update_option( 'responsive_lightbox_version', $this->defaults['version'], '', 'no' );
156
-
157
- $this->options['settings'] = array_merge( $this->defaults['settings'], (($array = get_option( 'responsive_lightbox_settings' )) === false ? array() : $array ) );
158
-
159
- // for multi arrays we have to merge them separately
160
- $db_conf_opts = ( ( $base = get_option( 'responsive_lightbox_configuration' ) ) === false ? array() : $base );
161
-
162
- foreach ( $this->defaults['configuration'] as $script => $settings ) {
163
- $this->options['configuration'][$script] = array_merge( $settings, (isset( $db_conf_opts[$script] ) ? $db_conf_opts[$script] : array() ) );
164
- }
165
-
166
- // actions
167
- add_action( 'plugins_loaded', array( &$this, 'load_textdomain' ) );
168
- add_action( 'plugins_loaded', array( &$this, 'load_defaults' ) );
169
- add_action( 'admin_init', array( &$this, 'register_settings' ) );
170
- add_action( 'admin_menu', array( &$this, 'admin_menu_options' ) );
171
- add_action( 'wp_enqueue_scripts', array( &$this, 'front_scripts_styles' ) );
172
- add_action( 'admin_enqueue_scripts', array( &$this, 'admin_scripts_styles' ) );
173
-
174
- // filters
175
- add_filter( 'plugin_action_links', array( &$this, 'plugin_settings_link' ), 10, 2 );
176
- add_filter( 'plugin_row_meta', array( &$this, 'plugin_extend_links' ), 10, 2 );
177
- add_filter( 'post_gallery', array( &$this, 'gallery_attributes' ), 1000 );
178
-
179
- if ( $this->options['settings']['galleries'] === true )
180
- add_filter( 'wp_get_attachment_link', array( &$this, 'add_gallery_lightbox_selector' ), 1000, 6 );
181
-
182
- if ( $this->options['settings']['enable_gallery_image_size'] === true )
183
- add_filter( 'wp_get_attachment_link', array( &$this, 'gallery_attachment_link_filter' ), 1001, 6 );
184
-
185
- if ( $this->options['settings']['videos'] === true )
186
- add_filter( 'the_content', array( &$this, 'add_videos_lightbox_selector' ) );
187
-
188
- if ( $this->options['settings']['image_links'] === true || $this->options['settings']['images_as_gallery'] === true )
189
- add_filter( 'the_content', array( &$this, 'add_links_lightbox_selector' ) );
190
- }
191
-
192
- public function add_videos_lightbox_selector( $content ) {
193
- preg_match_all( '/<a(.*?)href=(?:\'|")((?:(?:http|https):\/\/)?(?:www\.)?(((?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch\?v=|\/watch\?.+&v=))([\w-]{11})(?:.+))|(vimeo\.com\/[0-9]{8,})))(?:\'|")(.*?)>/i', $content, $links );
194
-
195
- if ( isset( $links[0] ) ) {
196
- foreach ( $links[0] as $id => $link ) {
197
- if ( preg_match( '/<a.*?rel=(?:\'|")(.*?)(?:\'|").*?>/', $link, $result ) === 1 ) {
198
- if ( isset( $result[1] ) ) {
199
- $new_rels = array();
200
- $rels = explode( ' ', $result[1] );
201
-
202
- if ( in_array( $this->options['settings']['selector'], $rels, true ) ) {
203
- foreach ( $rels as $no => $rel ) {
204
- if ( $rel !== $this->options['settings']['selector'] )
205
- $new_rels[] = $rel;
206
- }
207
-
208
- $content = str_replace( $link, preg_replace( '/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . ( ! empty( $new_rel ) ? simplode( ' ', $new_rels ) . ' ' : '') . $this->options['settings']['selector'] . '-video-' . $id . '"', $link ), $content );
209
- } else
210
- $content = str_replace( $link, preg_replace( '/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . ( $result[1] !== '' ? $result[1] . ' ' : '' ) . $this->options['settings']['selector'] . '-video-' . $id . '"', $link ), $content );
211
- }
212
- } else
213
- $content = str_replace( $link, '<a' . $links[1][$id] . 'href="' . $links[2][$id] . '"' . $links[6][$id] . ' rel="' . $this->options['settings']['selector'] . '-video-' . $id . '">', $content );
214
- }
215
- }
216
-
217
- return $content;
218
- }
219
-
220
- public function add_links_lightbox_selector( $content ) {
221
- preg_match_all( '/<a(.*?)href=(?:\'|")([^<]*?).(bmp|gif|jpeg|jpg|png)(?:\'|")(.*?)>/i', $content, $links );
222
-
223
- if ( isset( $links[0] ) ) {
224
- if ( $this->options['settings']['images_as_gallery'] === true )
225
- $rel_hash = '[gallery-' . $this->generate_password( 4 ) . ']';
226
-
227
- foreach ( $links[0] as $id => $link ) {
228
- if ( preg_match( '/<a.*?rel=(?:\'|")(.*?)(?:\'|").*?>/', $link, $result ) === 1 ) {
229
- if ( $this->options['settings']['images_as_gallery'] === true ) {
230
- $content = str_replace( $link, preg_replace( '/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . $this->options['settings']['selector'] . $rel_hash . '"' . ( $this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ), $link ), $content );
231
- } else {
232
- if ( isset( $result[1] ) ) {
233
- $new_rels = array();
234
- $rels = explode( ' ', $result[1] );
235
-
236
- if ( in_array( $this->options['settings']['selector'], $rels, true ) ) {
237
- foreach ( $rels as $no => $rel ) {
238
- if ( $rel !== $this->options['settings']['selector'] )
239
- $new_rels[] = $rel;
240
- }
241
-
242
- $content = str_replace( $link, preg_replace( '/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . ( ! empty( $new_rels ) ? implode( ' ', $new_rels ) . ' ' : '' ) . $this->options['settings']['selector'] . '-' . $id . '"' . ( $this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ), $link ), $content );
243
- } else
244
- $content = str_replace( $link, preg_replace( '/rel=(?:\'|")(.*?)(?:\'|")/', 'rel="' . ( $result[1] !== '' ? $result[1] . ' ' : '' ) . $this->options['settings']['selector'] . '-' . $id . '"' . ( $this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ), $link ), $content );
245
- }
246
- }
247
- } else
248
- $content = str_replace( $link, '<a' . $links[1][$id] . 'href="' . $links[2][$id] . '.' . $links[3][$id] . '"' . $links[4][$id] . ' rel="' . $this->options['settings']['selector'] . ( $this->options['settings']['images_as_gallery'] === true ? $rel_hash : '-' . $id ) . '"' . ( $this->options['settings']['script'] === 'imagelightbox' ? ' data-imagelightbox="' . $id . '"' : '' ) . '>', $content );
249
- }
250
- }
251
-
252
- return $content;
253
- }
254
-
255
- public function gallery_attributes( $style ) {
256
- ++ $this->gallery_no;
257
-
258
- return $style;
259
- }
260
-
261
- public function add_gallery_lightbox_selector( $link, $id, $size, $permalink, $icon, $text ) {
262
-
263
- // gallery image title option
264
- $title_arg = apply_filters( 'rl_lightbox_attachment_image_title_arg', ( isset( $this->options['settings']['gallery_image_title'] ) ? $this->options['settings']['gallery_image_title'] : $this->defaults['settings']['gallery_image_title'] ), $link, $id );
265
-
266
- if ( $title_arg && $title_arg != 'default' ) {
267
- switch( $title_arg ) {
268
- case 'title':
269
- $title = get_the_title( $id );
270
- break;
271
- case 'caption':
272
- $title = get_post_field( 'post_excerpt', $id ) ;
273
- break;
274
- case 'alt':
275
- $title = get_post_meta( $id, '_wp_attachment_image_alt', true );
276
- break;
277
- case 'description':
278
- $title = get_post_field( 'post_content', $id ) ;
279
- break;
280
- default:
281
- $title = '';
282
- }
283
-
284
- // option to adjust the title
285
- $title = apply_filters( 'rl_lightbox_attachment_image_title', $title, $link, $id );
286
-
287
- $link = str_replace( '<a href', '<a title="'. wp_strip_all_tags( trim( $title ) ) .'" href', $link );
288
- }
289
-
290
- $link = (preg_match( '/<a.*? rel=("|\').*?("|\')>/', $link ) === 1 ? preg_replace( '/(<a.*? rel=(?:"|\').*?)((?:"|\').*?>)/', '$1 ' . $this->options['settings']['selector'] . '[gallery-' . $this->gallery_no . ']' . '$2', $link ) : preg_replace( '/(<a.*?)>/', '$1 rel="' . $this->options['settings']['selector'] . '[gallery-' . $this->gallery_no . ']' . '">', $link ));
291
-
292
- return apply_filters( 'rl_lightbox_attachment_link', ( preg_match( '/<a.*? href=("|\').*?("|\')>/', $link ) === 1 ? preg_replace( '/(<a.*? href=(?:"|\')).*?((?:"|\').*?>)/', '$1' . wp_get_attachment_url( $id ) . '$2', $link ) : preg_replace( '/(<a.*?)>/', '$1 href="' . wp_get_attachment_url( $id ) . '">', $link ) ), $id, $size, $permalink, $icon, $text );
293
- }
294
-
295
- public function load_defaults() {
296
- $this->scripts = array(
297
- 'prettyphoto' => array(
298
- 'name' => __( 'prettyPhoto', 'responsive-lightbox' ),
299
- 'animation_speeds' => array(
300
- 'slow' => __( 'slow', 'responsive-lightbox' ),
301
- 'normal' => __( 'normal', 'responsive-lightbox' ),
302
- 'fast' => __( 'fast', 'responsive-lightbox' )
303
- ),
304
- 'themes' => array(
305
- 'pp_default' => __( 'default', 'responsive-lightbox' ),
306
- 'light_rounded' => __( 'light rounded', 'responsive-lightbox' ),
307
- 'dark_rounded' => __( 'dark rounded', 'responsive-lightbox' ),
308
- 'light_square' => __( 'light square', 'responsive-lightbox' ),
309
- 'dark_square' => __( 'dark square', 'responsive-lightbox' ),
310
- 'facebook' => __( 'facebook', 'responsive-lightbox' )
311
- ),
312
- 'wmodes' => array(
313
- 'window' => __( 'window', 'responsive-lightbox' ),
314
- 'transparent' => __( 'transparent', 'responsive-lightbox' ),
315
- 'opaque' => __( 'opaque', 'responsive-lightbox' ),
316
- 'direct' => __( 'direct', 'responsive-lightbox' ),
317
- 'gpu' => __( 'gpu', 'responsive-lightbox' )
318
- )
319
- ),
320
- 'swipebox' => array(
321
- 'name' => __( 'SwipeBox', 'responsive-lightbox' ),
322
- 'animations' => array(
323
- 'css' => __( 'CSS', 'responsive-lightbox' ),
324
- 'jquery' => __( 'jQuery', 'responsive-lightbox' )
325
- )
326
- ),
327
- 'fancybox' => array(
328
- 'name' => __( 'FancyBox', 'responsive-lightbox' ),
329
- 'transitions' => array(
330
- 'elastic' => __( 'elastic', 'responsive-lightbox' ),
331
- 'fade' => __( 'fade', 'responsive-lightbox' ),
332
- 'none' => __( 'none', 'responsive-lightbox' )
333
- ),
334
- 'scrollings' => array(
335
- 'auto' => __( 'auto', 'responsive-lightbox' ),
336
- 'yes' => __( 'yes', 'responsive-lightbox' ),
337
- 'no' => __( 'no', 'responsive-lightbox' )
338
- ),
339
- 'easings' => array(
340
- 'swing' => __( 'swing', 'responsive-lightbox' ),
341
- 'linear' => __( 'linear', 'responsive-lightbox' )
342
- ),
343
- 'positions' => array(
344
- 'outside' => __( 'outside', 'responsive-lightbox' ),
345
- 'inside' => __( 'inside', 'responsive-lightbox' ),
346
- 'over' => __( 'over', 'responsive-lightbox' )
347
- )
348
- ),
349
- 'nivo' => array(
350
- 'name' => __( 'Nivo Lightbox', 'responsive-lightbox' ),
351
- 'effects' => array(
352
- 'fade' => __( 'fade', 'responsive-lightbox' ),
353
- 'fadeScale' => __( 'fade scale', 'responsive-lightbox' ),
354
- 'slideLeft' => __( 'slide left', 'responsive-lightbox' ),
355
- 'slideRight' => __( 'slide right', 'responsive-lightbox' ),
356
- 'slideUp' => __( 'slide up', 'responsive-lightbox' ),
357
- 'slideDown' => __( 'slide down', 'responsive-lightbox' ),
358
- 'fall' => __( 'fall', 'responsive-lightbox' )
359
- )
360
- ),
361
- 'imagelightbox' => array(
362
- 'name' => __( 'Image Lightbox', 'responsive-lightbox' )
363
- )
364
- );
365
-
366
- $this->choices = array(
367
- 'yes' => __( 'Enable', 'responsive-lightbox' ),
368
- 'no' => __( 'Disable', 'responsive-lightbox' )
369
- );
370
-
371
- $this->gallery_image_titles = array(
372
- 'default' => __( 'Default (none)', 'responsive-lightbox' ),
373
- 'title' => __( 'Image Title', 'responsive-lightbox' ),
374
- 'caption' => __( 'Image Caption', 'responsive-lightbox' ),
375
- 'alt' => __( 'Image Alt Text', 'responsive-lightbox' ),
376
- 'description' => __( 'Image Description', 'responsive-lightbox' )
377
- );
378
-
379
- $this->loading_places = array(
380
- 'header' => __( 'Header', 'responsive-lightbox' ),
381
- 'footer' => __( 'Footer', 'responsive-lightbox' )
382
- );
383
-
384
- $this->tabs = array(
385
- 'general-settings' => array(
386
- 'name' => __( 'General settings', 'responsive-lightbox' ),
387
- 'key' => 'responsive_lightbox_settings',
388
- 'submit' => 'save_rl_settings',
389
- 'reset' => 'reset_rl_settings',
390
- ),
391
- 'configuration' => array(
392
- 'name' => __( 'Lightbox settings', 'responsive-lightbox' ),
393
- 'key' => 'responsive_lightbox_configuration',
394
- 'submit' => 'save_rl_configuration',
395
- 'reset' => 'reset_rl_configuration'
396
- )
397
- );
398
- }
399
-
400
- public function multisite_activation( $networkwide ) {
401
- if ( is_multisite() && $networkwide ) {
402
- global $wpdb;
403
-
404
- $activated_blogs = array();
405
- $current_blog_id = $wpdb->blogid;
406
- $blogs_ids = $wpdb->get_col( $wpdb->prepare( 'SELECT blog_id FROM ' . $wpdb->blogs, '' ) );
407
-
408
- foreach ( $blogs_ids as $blog_id ) {
409
- switch_to_blog( $blog_id );
410
- $this->activate_single();
411
- $activated_blogs[] = (int) $blog_id;
412
- }
413
-
414
- switch_to_blog( $current_blog_id );
415
- update_site_option( 'responsive_lightbox_activated_blogs', $activated_blogs, array() );
416
- } else
417
- $this->activate_single();
418
- }
419
-
420
- public function activate_single() {
421
- add_option( 'responsive_lightbox_settings', $this->defaults['settings'], '', 'no' );
422
- add_option( 'responsive_lightbox_configuration', $this->defaults['configuration'], '', 'no' );
423
- add_option( 'responsive_lightbox_version', $this->defaults['version'], '', 'no' );
424
- }
425
-
426
- public function multisite_deactivation( $networkwide ) {
427
- if ( is_multisite() && $networkwide ) {
428
- global $wpdb;
429
-
430
- $current_blog_id = $wpdb->blogid;
431
- $blogs_ids = $wpdb->get_col( $wpdb->prepare( 'SELECT blog_id FROM ' . $wpdb->blogs, '' ) );
432
-
433
- if ( ($activated_blogs = get_site_option( 'responsive_lightbox_activated_blogs', false, false )) === false )
434
- $activated_blogs = array();
435
-
436
- foreach ( $blogs_ids as $blog_id ) {
437
- switch_to_blog( $blog_id );
438
- $this->deactivate_single( true );
439
-
440
- if ( in_array( (int) $blog_id, $activated_blogs, true ) )
441
- unset( $activated_blogs[array_search( $blog_id, $activated_blogs )] );
442
- }
443
-
444
- switch_to_blog( $current_blog_id );
445
- update_site_option( 'responsive_lightbox_activated_blogs', $activated_blogs );
446
- } else
447
- $this->deactivate_single();
448
- }
449
-
450
- public function deactivate_single( $multi = false ) {
451
- if ( $multi === true ) {
452
- $options = get_option( 'responsive_lightbox_settings' );
453
- $check = $options['deactivation_delete'];
454
- } else
455
- $check = $this->options['settings']['deactivation_delete'];
456
-
457
- if ( $check === true ) {
458
- delete_option( 'responsive_lightbox_settings' );
459
- delete_option( 'responsive_lightbox_configuration' );
460
- delete_option( 'responsive_lightbox_version' );
461
- }
462
- }
463
-
464
- public function register_settings() {
465
- register_setting( 'responsive_lightbox_settings', 'responsive_lightbox_settings', array( &$this, 'validate_options' ) );
466
-
467
- // general settings
468
- add_settings_section( 'responsive_lightbox_settings', __( 'General settings', 'responsive-lightbox' ), '', 'responsive_lightbox_settings' );
469
- add_settings_field( 'rl_script', __( 'Lightbox script', 'responsive-lightbox' ), array( &$this, 'rl_script' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
470
- add_settings_field( 'rl_selector', __( 'Selector', 'responsive-lightbox' ), array( &$this, 'rl_selector' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
471
- add_settings_field( 'rl_galleries', __( 'Galleries', 'responsive-lightbox' ), array( &$this, 'rl_galleries' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
472
- add_settings_field( 'rl_enable_gallery_image_size', __( 'Gallery image size', 'responsive-lightbox' ), array( &$this, 'rl_enable_gallery_image_size' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
473
- add_settings_field( 'rl_gallery_image_title', __( 'Gallery image title', 'responsive-lightbox' ), array( &$this, 'rl_gallery_image_title' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
474
- add_settings_field( 'rl_videos', __( 'Video links', 'responsive-lightbox' ), array( &$this, 'rl_videos' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
475
- add_settings_field( 'rl_image_links', __( 'Image links', 'responsive-lightbox' ), array( &$this, 'rl_image_links' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
476
- add_settings_field( 'rl_images_as_gallery', __( 'Single images as gallery', 'responsive-lightbox' ), array( &$this, 'rl_images_as_gallery' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
477
- add_settings_field( 'rl_enable_custom_events', __( 'Custom events', 'responsive-lightbox' ), array( &$this, 'rl_enable_custom_events' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
478
- add_settings_field( 'rl_loading_place', __( 'Loading place', 'responsive-lightbox' ), array( &$this, 'rl_loading_place' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
479
- add_settings_field( 'rl_deactivation_delete', __( 'Deactivation', 'responsive-lightbox' ), array( &$this, 'rl_deactivation_delete' ), 'responsive_lightbox_settings', 'responsive_lightbox_settings' );
480
-
481
- // configuration
482
- register_setting( 'responsive_lightbox_configuration', 'responsive_lightbox_configuration', array( &$this, 'validate_options' ) );
483
- add_settings_section( 'responsive_lightbox_configuration', __( 'Lightbox settings', 'responsive-lightbox' ) . ': ' . $this->scripts[$this->options['settings']['script']]['name'], '', 'responsive_lightbox_configuration' );
484
-
485
- if ( $this->options['settings']['script'] === 'swipebox' ) {
486
- add_settings_field( 'rl_sb_animation', __( 'Animation type', 'responsive-lightbox' ), array( &$this, 'rl_sb_animation' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
487
- add_settings_field( 'rl_sb_force_png_icons', __( 'Force PNG icons', 'responsive-lightbox' ), array( &$this, 'rl_sb_force_png_icons' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
488
- add_settings_field( 'rl_sb_hide_close_mobile', __( 'Hide close on mobile', 'responsive-lightbox' ), array( &$this, 'rl_sb_hide_close_mobile' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
489
- add_settings_field( 'rl_sb_hide_bars', __( 'Top and bottom bars', 'responsive-lightbox' ), array( &$this, 'rl_sb_hide_bars' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
490
- add_settings_field( 'rl_sb_video_max_width', __( 'Video max width', 'responsive-lightbox' ), array( &$this, 'rl_sb_video_max_width' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
491
- add_settings_field( 'rl_sb_loop_at_end', __( 'Loop at end', 'responsive-lightbox' ), array( &$this, 'rl_sb_loop_at_end' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
492
- } elseif ( $this->options['settings']['script'] === 'prettyphoto' ) {
493
- add_settings_field( 'rl_pp_animation_speed', __( 'Animation speed', 'responsive-lightbox' ), array( &$this, 'rl_pp_animation_speed' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
494
- add_settings_field( 'rl_pp_slideshow', __( 'Slideshow', 'responsive-lightbox' ), array( &$this, 'rl_pp_slideshow' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
495
- add_settings_field( 'rl_pp_slideshow_autoplay', __( 'Slideshow autoplay', 'responsive-lightbox' ), array( &$this, 'rl_pp_slideshow_autoplay' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
496
- add_settings_field( 'rl_pp_opacity', __( 'Opacity', 'responsive-lightbox' ), array( &$this, 'rl_pp_opacity' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
497
- add_settings_field( 'rl_pp_title', __( 'Show title', 'responsive-lightbox' ), array( &$this, 'rl_pp_title' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
498
- add_settings_field( 'rl_pp_allow_resize', __( 'Allow resize big images', 'responsive-lightbox' ), array( &$this, 'rl_pp_allow_resize' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
499
- add_settings_field( 'rl_pp_allow_expand', __( 'Allow expand', 'responsive-lightbox' ), array( &$this, 'rl_pp_allow_expand' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
500
- add_settings_field( 'rl_pp_width', __( 'Video width', 'responsive-lightbox' ), array( &$this, 'rl_pp_width' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
501
- add_settings_field( 'rl_pp_height', __( 'Video height', 'responsive-lightbox' ), array( &$this, 'rl_pp_height' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
502
- add_settings_field( 'rl_pp_theme', __( 'Theme', 'responsive-lightbox' ), array( &$this, 'rl_pp_theme' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
503
- add_settings_field( 'rl_pp_horizontal_padding', __( 'Horizontal padding', 'responsive-lightbox' ), array( &$this, 'rl_pp_horizontal_padding' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
504
- add_settings_field( 'rl_pp_hide_flash', __( 'Hide Flash', 'responsive-lightbox' ), array( &$this, 'rl_pp_hide_flash' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
505
- add_settings_field( 'rl_pp_wmode', __( 'Flash Window Mode (wmode)', 'responsive-lightbox' ), array( &$this, 'rl_pp_wmode' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
506
- add_settings_field( 'rl_pp_video_autoplay', __( 'Video autoplay', 'responsive-lightbox' ), array( &$this, 'rl_pp_video_autoplay' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
507
- add_settings_field( 'rl_pp_modal', __( 'Modal', 'responsive-lightbox' ), array( &$this, 'rl_pp_modal' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
508
- add_settings_field( 'rl_pp_deeplinking', __( 'Deeplinking', 'responsive-lightbox' ), array( &$this, 'rl_pp_deeplinking' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
509
- add_settings_field( 'rl_pp_overlay_gallery', __( 'Overlay gallery', 'responsive-lightbox' ), array( &$this, 'rl_pp_overlay_gallery' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
510
- add_settings_field( 'rl_pp_keyboard_shortcuts', __( 'Keyboard shortcuts', 'responsive-lightbox' ), array( &$this, 'rl_pp_keyboard_shortcuts' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
511
- add_settings_field( 'rl_pp_social', __( 'Social (Twitter, Facebook)', 'responsive-lightbox' ), array( &$this, 'rl_pp_social' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
512
- } elseif ( $this->options['settings']['script'] === 'fancybox' ) {
513
- add_settings_field( 'rl_fb_modal', __( 'Modal', 'responsive-lightbox' ), array( &$this, 'rl_fb_modal' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
514
- add_settings_field( 'rl_fb_show_overlay', __( 'Show overlay', 'responsive-lightbox' ), array( &$this, 'rl_fb_show_overlay' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
515
- 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' );
516
- 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' );
517
- 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' );
518
- 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' );
519
- add_settings_field( 'rl_fb_cyclic', __( 'Cyclic', 'responsive-lightbox' ), array( &$this, 'rl_fb_cyclic' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
520
- 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' );
521
- add_settings_field( 'rl_fb_auto_scale', __( 'Auto scale', 'responsive-lightbox' ), array( &$this, 'rl_fb_auto_scale' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
522
- add_settings_field( 'rl_fb_scrolling', __( 'Scrolling (in/out)', 'responsive-lightbox' ), array( &$this, 'rl_fb_scrolling' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
523
- 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' );
524
- add_settings_field( 'rl_fb_opacity', __( 'Opacity', 'responsive-lightbox' ), array( &$this, 'rl_fb_opacity' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
525
- add_settings_field( 'rl_fb_overlay_opacity', __( 'Overlay opacity', 'responsive-lightbox' ), array( &$this, 'rl_fb_overlay_opacity' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
526
- add_settings_field( 'rl_fb_overlay_color', __( 'Overlay color', 'responsive-lightbox' ), array( &$this, 'rl_fb_overlay_color' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
527
- add_settings_field( 'rl_fb_title_show', __( 'Title show', 'responsive-lightbox' ), array( &$this, 'rl_fb_title_show' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
528
- add_settings_field( 'rl_fb_title_position', __( 'Title position', 'responsive-lightbox' ), array( &$this, 'rl_fb_title_position' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
529
- add_settings_field( 'rl_fb_transitions', __( 'Transition (in/out)', 'responsive-lightbox' ), array( &$this, 'rl_fb_transitions' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
530
- add_settings_field( 'rl_fb_easings', __( 'Easings (in/out)', 'responsive-lightbox' ), array( &$this, 'rl_fb_easings' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
531
- add_settings_field( 'rl_fb_speeds', __( 'Speed (in/out)', 'responsive-lightbox' ), array( &$this, 'rl_fb_speeds' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
532
- add_settings_field( 'rl_fb_change_speed', __( 'Change speed', 'responsive-lightbox' ), array( &$this, 'rl_fb_change_speed' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
533
- add_settings_field( 'rl_fb_change_fade', __( 'Change fade', 'responsive-lightbox' ), array( &$this, 'rl_fb_change_fade' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
534
- add_settings_field( 'rl_fb_padding', __( 'Padding', 'responsive-lightbox' ), array( &$this, 'rl_fb_padding' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
535
- add_settings_field( 'rl_fb_margin', __( 'Margin', 'responsive-lightbox' ), array( &$this, 'rl_fb_margin' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
536
- add_settings_field( 'rl_fb_video_width', __( 'Video width', 'responsive-lightbox' ), array( &$this, 'rl_fb_video_width' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
537
- add_settings_field( 'rl_fb_video_height', __( 'Video height', 'responsive-lightbox' ), array( &$this, 'rl_fb_video_height' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
538
- } elseif ( $this->options['settings']['script'] === 'nivo' ) {
539
- add_settings_field( 'rl_nv_effect', __( 'Effect', 'responsive-lightbox' ), array( &$this, 'rl_nv_effect' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
540
- add_settings_field( 'rl_nv_click_overlay_to_close', __( 'Click overlay to close', 'responsive-lightbox' ), array( &$this, 'rl_nv_click_overlay_to_close' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
541
- add_settings_field( 'rl_nv_keyboard_nav', __( 'Keyboard navigation', 'responsive-lightbox' ), array( &$this, 'rl_nv_keyboard_nav' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
542
- add_settings_field( 'rl_nv_error_message', __( 'Error message', 'responsive-lightbox' ), array( &$this, 'rl_nv_error_message' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
543
- } elseif ( $this->options['settings']['script'] === 'imagelightbox' ) {
544
- add_settings_field( 'rl_il_animation_speed', __( 'Animation speed', 'responsive-lightbox' ), array( &$this, 'rl_il_animation_speed' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
545
- add_settings_field( 'rl_il_preload_next', __( 'Preload next image', 'responsive-lightbox' ), array( &$this, 'rl_il_preload_next' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
546
- add_settings_field( 'rl_il_enable_keyboard', __( 'Enable keyboard keys', 'responsive-lightbox' ), array( &$this, 'rl_il_enable_keyboard' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
547
- add_settings_field( 'rl_il_quit_on_end', __( 'Quit after last image', 'responsive-lightbox' ), array( &$this, 'rl_il_quit_on_end' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
548
- add_settings_field( 'rl_il_quit_on_image_click', __( 'Quit when image is clicked', 'responsive-lightbox' ), array( &$this, 'rl_il_quit_on_image_click' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
549
- add_settings_field( 'rl_il_quit_on_document_click', __( 'Quit when anything but image is clicked', 'responsive-lightbox' ), array( &$this, 'rl_il_quit_on_document_click' ), 'responsive_lightbox_configuration', 'responsive_lightbox_configuration' );
550
- }
551
- }
552
-
553
- public function rl_script() {
554
- echo '
555
- <div id="rl_script" class="wplikebtns">';
556
-
557
- foreach ( $this->scripts as $val => $trans ) {
558
- $val = esc_attr( $val );
559
-
560
- echo '
561
- <input id="rl-script-' . $val . '" type="radio" name="responsive_lightbox_settings[script]" value="' . $val . '" ' . checked( $val, $this->options['settings']['script'], false ) . ' />
562
- <label for="rl-script-' . $val . '">' . esc_html( $trans['name'] ) . '</label>';
563
- }
564
-
565
- echo '
566
- <p class="description">' . __( 'Select your preffered ligthbox effect script.', 'responsive-lightbox' ) . '</p>
567
- </div>';
568
- }
569
-
570
- public function rl_selector() {
571
- echo '
572
- <div id="rl_selector">
573
- <input type="text" value="' . esc_attr( $this->options['settings']['selector'] ) . '" name="responsive_lightbox_settings[selector]" />
574
- <p class="description">' . __( 'Select to which rel selector lightbox effect will be applied to.', 'responsive-lightbox' ) . '</p>
575
- </div>';
576
- }
577
-
578
- public function rl_enable_custom_events() {
579
- echo '
580
- <div id="rl_enable_custom_events" class="wplikebtns">';
581
-
582
- foreach ( $this->choices as $val => $trans ) {
583
- $val = esc_attr( $val );
584
-
585
- echo '
586
- <input id="rl-enable-custom-events-' . $val . '" type="radio" name="responsive_lightbox_settings[enable_custom_events]" value="' . $val . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['settings']['enable_custom_events'], false ) . ' />
587
- <label for="rl-enable-custom-events-' . $val . '">' . esc_html( $trans ) . '</label>';
588
- }
589
-
590
- echo '
591
- <p class="description">' . __( 'Enable triggering lightbox on custom jquery events.', 'responsive-lightbox' ) . '</p>
592
- <div id="rl_custom_events"' . ($this->options['settings']['enable_custom_events'] === false ? ' style="display: none;"' : '') . '>
593
- <input type="text" name="responsive_lightbox_settings[custom_events]" value="' . esc_attr( $this->options['settings']['custom_events'] ) . '" />
594
- <p class="description">' . __( 'Enter a space separated list of events.', 'responsive-lightbox' ) . '</p>
595
- </div>
596
- </div>';
597
- }
598
-
599
- public function rl_loading_place() {
600
- echo '
601
- <div id="rl_loading_place" class="wplikebtns">';
602
-
603
- foreach ( $this->loading_places as $val => $trans ) {
604
- $val = esc_attr( $val );
605
-
606
- echo '
607
- <input id="rl-loading-place-' . $val . '" type="radio" name="responsive_lightbox_settings[loading_place]" value="' . $val . '" ' . checked( $val, $this->options['settings']['loading_place'], false ) . ' />
608
- <label for="rl-loading-place-' . $val . '">' . esc_html( $trans ) . '</label>';
609
- }
610
-
611
- echo '
612
- <p class="description">' . __( 'Select where all the lightbox scripts should be placed.', 'responsive-lightbox' ) . '</p>
613
- </div>';
614
- }
615
-
616
- public function rl_galleries() {
617
- echo '
618
- <div id="rl_galleries" class="wplikebtns">';
619
-
620
- foreach ( $this->choices as $val => $trans ) {
621
- echo '
622
- <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 ) . ' />
623
- <label for="rl-galleries-' . $val . '">' . $trans . '</label>';
624
- }
625
-
626
- echo '
627
- <p class="description">' . __( 'Add lightbox to WordPress image galleries by default.', 'responsive-lightbox' ) . '</p>
628
- </div>';
629
- }
630
-
631
- public function rl_enable_gallery_image_size() {
632
- echo '
633
- <div id="rl_enable_gallery_image_size" class="wplikebtns">';
634
-
635
- foreach ( $this->choices as $val => $trans ) {
636
- $val = esc_attr( $val );
637
-
638
- echo '
639
- <input id="rl-enable-gallery-image-size-' . $val . '" type="radio" name="responsive_lightbox_settings[enable_gallery_image_size]" value="' . $val . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['settings']['enable_gallery_image_size'], false ) . ' />
640
- <label for="rl-enable-gallery-image-size-' . $val . '">' . esc_html( $trans ) . '</label>';
641
- }
642
-
643
- echo '
644
- <p class="description">' . __( 'By default WP gallery links point to full size images only. Enable that to modify the image size of native WP gallery image links.', 'responsive-lightbox' ) . '</p>';
645
-
646
- // get available image sizes
647
- $image_sizes = get_intermediate_image_sizes();
648
-
649
- echo '
650
- <div id="rl_gallery_image_size"' . ($this->options['settings']['enable_gallery_image_size'] === false ? ' style="display: none;"' : '') . '>
651
- <select name="responsive_lightbox_settings[gallery_image_size]" value="' . esc_attr( $this->options['settings']['gallery_image_size'] ) . '" />
652
- <option value="full" ' . selected( $this->options['settings']['gallery_image_size'], 'full', false ) . '>' . esc_attr( __( 'full', 'responsive-lightbox' ) ) . '</option>';
653
-
654
- foreach ( $image_sizes as $image_size ) {
655
- echo '<option value="' . esc_attr( $image_size ) . '" ' . selected( $this->options['settings']['gallery_image_size'], esc_attr( $image_size ), false ) . '>' . esc_attr( $image_size ) . '</option>';
656
- }
657
-
658
- echo '
659
- </select>
660
- <p class="description">' . __( 'Select image size for gallery image links.', 'responsive-lightbox' ) . '</p>
661
- </div>
662
- </div>';
663
- }
664
-
665
- public function rl_gallery_image_title() {
666
- echo '
667
- <div id="rl_gallery_image_title" class="wplikebtns">
668
- <select name="responsive_lightbox_settings[gallery_image_title]" value="' . esc_attr( $this->options['settings']['gallery_image_title'] ) . '" />';
669
-
670
- foreach ( $this->gallery_image_titles as $val => $trans ) {
671
- echo '<option value="' . esc_attr( $val ) . '" ' . selected( $this->options['settings']['gallery_image_title'], esc_attr( $val ), false ) . '>' . esc_attr( $trans ) . '</option>';
672
- }
673
-
674
- echo '
675
- </select>
676
- <p class="description">' . __( 'Select the title for lightboxed WP gallery images.', 'responsive-lightbox' ) . '</p>
677
- </div>';
678
- }
679
-
680
- public function rl_videos() {
681
- echo '
682
- <div id="rl_videos" class="wplikebtns">';
683
-
684
- foreach ( $this->choices as $val => $trans ) {
685
- echo '
686
- <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 ) . ' />
687
- <label for="rl-videos-' . $val . '">' . $trans . '</label>';
688
- }
689
-
690
- echo '
691
- <p class="description">' . __( 'Add lightbox to YouTube and Vimeo video links by default.', 'responsive-lightbox' ) . '</p>
692
- </div>';
693
- }
694
-
695
- public function rl_image_links() {
696
- echo '
697
- <div id="rl_image_links" class="wplikebtns">';
698
-
699
- foreach ( $this->choices as $val => $trans ) {
700
- echo '
701
- <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 ) . ' />
702
- <label for="rl-image-links-' . $val . '">' . $trans . '</label>';
703
- }
704
-
705
- echo '
706
- <p class="description">' . __( 'Add lightbox to WordPress image links by default.', 'responsive-lightbox' ) . '</p>
707
- </div>';
708
- }
709
-
710
- public function rl_images_as_gallery() {
711
- echo '
712
- <div id="rl_images_as_gallery" class="wplikebtns">';
713
-
714
- foreach ( $this->choices as $val => $trans ) {
715
- echo '
716
- <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 ) . ' />
717
- <label for="rl-images-as-gallery-' . $val . '">' . $trans . '</label>';
718
- }
719
-
720
- echo '
721
- <p class="description">' . __( 'Display single post images as a gallery.', 'responsive-lightbox' ) . '</p>
722
- </div>';
723
- }
724
-
725
- public function rl_deactivation_delete() {
726
- echo '
727
- <div id="rl_deactivation_delete" class="wplikebtns">';
728
-
729
- foreach ( $this->choices as $val => $trans ) {
730
- echo '
731
- <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 ) . ' />
732
- <label for="rl-deactivation-delete-' . $val . '">' . $trans . '</label>';
733
- }
734
-
735
- echo '
736
- <p class="description">' . __( 'Delete settings on plugin deactivation.', 'responsive-lightbox' ) . '</p>
737
- </div>';
738
- }
739
-
740
- public function rl_sb_animation() {
741
- echo '
742
- <div id="rl_sb_animation" class="wplikebtns">';
743
-
744
- foreach ( $this->scripts['swipebox']['animations'] as $val => $trans ) {
745
- echo '
746
- <input id="rl-sb-animation-' . $val . '" type="radio" name="responsive_lightbox_configuration[swipebox][animation]" value="' . esc_attr( $val ) . '" ' . checked( $val, $this->options['configuration']['swipebox']['animation'], false ) . ' />
747
- <label for="rl-sb-animation-' . $val . '">' . $trans . '</label>';
748
- }
749
-
750
- echo '
751
- <p class="description">' . __( 'Select a method of applying a lightbox effect.', 'responsive-lightbox' ) . '</p>
752
- </div>';
753
- }
754
-
755
- public function rl_sb_hide_bars() {
756
- echo '
757
- <div id="rl_sb_hide_bars" class="wplikebtns">';
758
-
759
- foreach ( $this->choices as $val => $trans ) {
760
- echo '
761
- <input id="rl-sb-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 ) . ' />
762
- <label for="rl-sb-hide-bars-' . $val . '">' . $trans . '</label>';
763
- }
764
-
765
- echo '
766
- <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>
767
- <div id="rl_sb_hide_bars_delay"' . ($this->options['configuration']['swipebox']['hide_bars'] === false ? ' style="display: none;"' : '') . '>
768
- <input type="text" name="responsive_lightbox_configuration[swipebox][hide_bars_delay]" value="' . esc_attr( $this->options['configuration']['swipebox']['hide_bars_delay'] ) . '" /> <span>ms</span>
769
- <p class="description">' . __( 'Enter the time after which the top and bottom bars will be hidden (when hiding is enabled).', 'responsive-lightbox' ) . '</p>
770
- </div>
771
- </div>';
772
- }
773
-
774
- public function rl_sb_video_max_width() {
775
- echo '
776
- <div id="rl_sb_video_max_width">
777
- <input type="text" name="responsive_lightbox_configuration[swipebox][video_max_width]" value="' . esc_attr( $this->options['configuration']['swipebox']['video_max_width'] ) . '" /> <span>px</span>
778
- <p class="description">' . __( 'Enter the max video width in a lightbox.', 'responsive-lightbox' ) . '</p>
779
- </div>';
780
- }
781
-
782
- public function rl_sb_hide_close_mobile() {
783
- echo '
784
- <div id="rl_sb_hide_close_mobile" class="wplikebtns">';
785
-
786
- foreach ( $this->choices as $val => $trans ) {
787
- echo '
788
- <input id="rl-sb-hide-close-mobile-' . $val . '" type="radio" name="responsive_lightbox_configuration[swipebox][hide_close_mobile]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['swipebox']['hide_close_mobile'], false ) . ' />
789
- <label for="rl-sb-hide-close-mobile-' . $val . '">' . $trans . '</label>';
790
- }
791
-
792
- echo '
793
- <p class="description">' . __( 'True will hide the close button on mobile devices.', 'responsive-lightbox' ) . '</p>
794
- </div>';
795
- }
796
-
797
- public function rl_sb_force_png_icons() {
798
- echo '
799
- <div id="rl_sb_force_png_icons" class="wplikebtns">';
800
-
801
- foreach ( $this->choices as $val => $trans ) {
802
- echo '
803
- <input id="rl-sb-force-png-icons-' . $val . '" type="radio" name="responsive_lightbox_configuration[swipebox][force_png_icons]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['swipebox']['force_png_icons'], false ) . ' />
804
- <label for="rl-sb-force-png-icons-' . $val . '">' . $trans . '</label>';
805
- }
806
-
807
- echo '
808
- <p class="description">' . __( 'Enable this if you\'re having problems with navigation icons not visible on some devices.', 'responsive-lightbox' ) . '</p>
809
- </div>';
810
- }
811
-
812
- public function rl_sb_loop_at_end() {
813
- echo '
814
- <div id="rl_sb_loop_at_end" class="wplikebtns">';
815
-
816
- foreach ( $this->choices as $val => $trans ) {
817
- echo '
818
- <input id="rl-sb-loop-at-end-' . $val . '" type="radio" name="responsive_lightbox_configuration[swipebox][loop_at_end]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['swipebox']['loop_at_end'], false ) . ' />
819
- <label for="rl-sb-loop-at-end-' . $val . '">' . $trans . '</label>';
820
- }
821
-
822
- echo '
823
- <p class="description">' . __( 'True will return to the first image after the last image is reached.', 'responsive-lightbox' ) . '</p>
824
- </div>';
825
- }
826
-
827
- public function rl_pp_animation_speed() {
828
- echo '
829
- <div id="rl_pp_animation_speed" class="wplikebtns">';
830
-
831
- foreach ( $this->scripts['prettyphoto']['animation_speeds'] as $val => $trans ) {
832
- echo '
833
- <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 ) . ' />
834
- <label for="rl-pp-animation-speed-' . $val . '">' . $trans . '</label>';
835
- }
836
-
837
- echo '
838
- <p class="description">' . __( 'Select animation speed for lightbox effect.', 'responsive-lightbox' ) . '</p>
839
- </div>';
840
- }
841
-
842
- public function rl_pp_slideshow() {
843
- echo '
844
- <div id="rl_pp_slideshow" class="wplikebtns">';
845
-
846
- foreach ( $this->choices as $val => $trans ) {
847
- echo '
848
- <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 ) . ' />
849
- <label for="rl-pp-slideshow-' . $val . '">' . $trans . '</label>';
850
- }
851
-
852
- echo '
853
- <p class="description">' . __( 'Display images as slideshow.', 'responsive-lightbox' ) . '</p>
854
- <div id="rl_pp_slideshow_delay"' . ($this->options['configuration']['prettyphoto']['slideshow'] === false ? ' style="display: none;"' : '') . '>
855
- <input type="text" name="responsive_lightbox_configuration[prettyphoto][slideshow_delay]" value="' . esc_attr( $this->options['configuration']['prettyphoto']['slideshow_delay'] ) . '" /> <span>ms</span>
856
- <p class="description">' . __( 'Enter time (in miliseconds).', 'responsive-lightbox' ) . '</p>
857
- </div>
858
- </div>';
859
- }
860
-
861
- public function rl_pp_slideshow_autoplay() {
862
- echo '
863
- <div id="rl_pp_slideshow_autoplay" class="wplikebtns">';
864
-
865
- foreach ( $this->choices as $val => $trans ) {
866
- echo '
867
- <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 ) . ' />
868
- <label for="rl-pp-slideshow-autoplay-' . $val . '">' . $trans . '</label>';
869
- }
870
-
871
- echo '
872
- <p class="description">' . __( 'Automatically start slideshow.', 'responsive-lightbox' ) . '</p>
873
- </div>';
874
- }
875
-
876
- public function rl_pp_opacity() {
877
- echo '
878
- <div id="rl_pp_opacity">
879
- <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'] ) . '" />
880
- <div class="wplike-slider">
881
- <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>
882
- </div>
883
- <p class="description">' . __( 'Value between 0 and 100, 100 for no opacity.', 'responsive-lightbox' ) . '</p>
884
- </div>';
885
- }
886
-
887
- public function rl_pp_title() {
888
- echo '
889
- <div id="rl_pp_title" class="wplikebtns">';
890
-
891
- foreach ( $this->choices as $val => $trans ) {
892
- echo '
893
- <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 ) . ' />
894
- <label for="rl-pp-show-title-' . $val . '">' . $trans . '</label>';
895
- }
896
-
897
- echo '
898
- <p class="description">' . __( 'Display image tiltle.', 'responsive-lightbox' ) . '</p>
899
- </div>';
900
- }
901
-
902
- public function rl_pp_allow_resize() {
903
- echo '
904
- <div id="rl_pp_allow_resize" class="wplikebtns">';
905
-
906
- foreach ( $this->choices as $val => $trans ) {
907
- echo '
908
- <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 ) . ' />
909
- <label for="rl-pp-allow-resize-' . $val . '">' . $trans . '</label>';
910
- }
911
-
912
- echo '
913
- <p class="description">' . __( 'Resize the photos bigger than viewport.', 'responsive-lightbox' ) . '</p>
914
- </div>';
915
- }
916
-
917
- public function rl_pp_allow_expand() {
918
- echo '
919
- <div id="rl_pp_allow_expand" class="wplikebtns">';
920
-
921
- foreach ( $this->choices as $val => $trans ) {
922
- echo '
923
- <input id="rl-pp-allow-expand-' . $val . '" type="radio" name="responsive_lightbox_configuration[prettyphoto][allow_expand]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['prettyphoto']['allow_expand'], false ) . ' />
924
- <label for="rl-pp-allow-expand-' . $val . '">' . $trans . '</label>';
925
- }
926
-
927
- echo '
928
- <p class="description">' . __( 'Expands something.', 'responsive-lightbox' ) . '</p>
929
- </div>';
930
- }
931
-
932
- public function rl_pp_width() {
933
- echo '
934
- <div id="rl_pp_width">
935
- <input type="text" name="responsive_lightbox_configuration[prettyphoto][width]" value="' . esc_attr( $this->options['configuration']['prettyphoto']['width'] ) . '" /> <span>px</span>
936
- <p class="description">' . __( 'in pixels', 'responsive-lightbox' ) . '</p>
937
- </div>';
938
- }
939
-
940
- public function rl_pp_height() {
941
- echo '
942
- <div id="rl_pp_height">
943
- <input type="text" name="responsive_lightbox_configuration[prettyphoto][height]" value="' . esc_attr( $this->options['configuration']['prettyphoto']['height'] ) . '" /> <span>px</span>
944
- <p class="description">' . __( 'in pixels', 'responsive-lightbox' ) . '</p>
945
- </div>';
946
- }
947
-
948
- public function rl_pp_theme() {
949
- echo '
950
- <div id="rl_pp_theme" class="wplikebtns">';
951
-
952
- foreach ( $this->scripts['prettyphoto']['themes'] as $val => $trans ) {
953
- echo '
954
- <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 ) . ' />
955
- <label for="rl-pp-theme-' . $val . '">' . $trans . '</label>';
956
- }
957
-
958
- echo '
959
- <p class="description">' . __( 'Select theme for lightbox effect.', 'responsive-lightbox' ) . '</p>
960
- </div>';
961
- }
962
-
963
- public function rl_pp_horizontal_padding() {
964
- echo '
965
- <div id="rl_pp_horizontal_padding">
966
- <input type="text" name="responsive_lightbox_configuration[prettyphoto][horizontal_padding]" value="' . esc_attr( $this->options['configuration']['prettyphoto']['horizontal_padding'] ) . '" /> <span>px</span>
967
- <p class="description">' . __( 'Horizontal padding (in pixels).', 'responsive-lightbox' ) . '</p>
968
- </div>';
969
- }
970
-
971
- public function rl_pp_hide_flash() {
972
- echo '
973
- <div id="rl_pp_hide_flash" class="wplikebtns">';
974
-
975
- foreach ( $this->choices as $val => $trans ) {
976
- echo '
977
- <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 ) . ' />
978
- <label for="rl-pp-hide-flash-' . $val . '">' . $trans . '</label>';
979
- }
980
-
981
- echo '
982
- <p class="description">' . __( 'Hides all the flash object on a page. Enable this if flash appears over prettyPhoto.', 'responsive-lightbox' ) . '</p>
983
- </div>';
984
- }
985
-
986
- public function rl_pp_wmode() {
987
- echo '
988
- <div id="rl_pp_wmode" class="wplikebtns">';
989
-
990
- foreach ( $this->scripts['prettyphoto']['wmodes'] as $val => $trans ) {
991
- echo '
992
- <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 ) . ' />
993
- <label for="rl-pp-wmode-' . $val . '">' . $trans . '</label>';
994
- }
995
-
996
- echo '
997
- <p class="description">' . __( 'Select flash window mode.', 'responsive-lightbox' ) . '</p>
998
- </div>';
999
- }
1000
-
1001
- public function rl_pp_video_autoplay() {
1002
- echo '
1003
- <div id="rl_pp_video_autoplay" class="wplikebtns">';
1004
-
1005
- foreach ( $this->choices as $val => $trans ) {
1006
- echo '
1007
- <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 ) . ' />
1008
- <label for="rl-pp-video-autoplay-' . $val . '">' . $trans . '</label>';
1009
- }
1010
-
1011
- echo '
1012
- <p class="description">' . __( 'Automatically start videos.', 'responsive-lightbox' ) . '</p>
1013
- </div>';
1014
- }
1015
-
1016
- public function rl_pp_modal() {
1017
- echo '
1018
- <div id="rl_pp_modal" class="wplikebtns">';
1019
-
1020
- foreach ( $this->choices as $val => $trans ) {
1021
- echo '
1022
- <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 ) . ' />
1023
- <label for="rl-pp-modal-close-' . $val . '">' . $trans . '</label>';
1024
- }
1025
-
1026
- echo '
1027
- <p class="description">' . __( 'If set to true, only the close button will close the window.', 'responsive-lightbox' ) . '</p>
1028
- </div>';
1029
- }
1030
-
1031
- public function rl_pp_deeplinking() {
1032
- echo '
1033
- <div id="rl_pp_deeplinking" class="wplikebtns">';
1034
-
1035
- foreach ( $this->choices as $val => $trans ) {
1036
- echo '
1037
- <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 ) . ' />
1038
- <label for="rl-pp-deeplinking-' . $val . '">' . $trans . '</label>';
1039
- }
1040
-
1041
- echo '
1042
- <p class="description">' . __( 'Allow prettyPhoto to update the url to enable deeplinking.', 'responsive-lightbox' ) . '</p>
1043
- </div>';
1044
- }
1045
-
1046
- public function rl_pp_overlay_gallery() {
1047
- echo '
1048
- <div id="rl_pp_overlay_gallery" class="wplikebtns">';
1049
-
1050
- foreach ( $this->choices as $val => $trans ) {
1051
- echo '
1052
- <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 ) . ' />
1053
- <label for="rl-pp-overlay-gallery-' . $val . '">' . $trans . '</label>';
1054
- }
1055
-
1056
- echo '
1057
- <p class="description">' . __( 'If enabled, a gallery will overlay the fullscreen image on mouse over.', 'responsive-lightbox' ) . '</p>
1058
- </div>';
1059
- }
1060
-
1061
- public function rl_pp_keyboard_shortcuts() {
1062
- echo '
1063
- <div id="rl_pp_keyboard_shortcuts" class="wplikebtns">';
1064
-
1065
- foreach ( $this->choices as $val => $trans ) {
1066
- echo '
1067
- <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 ) . ' />
1068
- <label for="rl-pp-keyboard-shortcuts-' . $val . '">' . $trans . '</label>';
1069
- }
1070
-
1071
- echo '
1072
- <p class="description">' . __( 'Set to false if you open forms inside prettyPhoto.', 'responsive-lightbox' ) . '</p>
1073
- </div>';
1074
- }
1075
-
1076
- public function rl_pp_social() {
1077
- echo '
1078
- <div id="rl_pp_social" class="wplikebtns">';
1079
-
1080
- foreach ( $this->choices as $val => $trans ) {
1081
- echo '
1082
- <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 ) . ' />
1083
- <label for="rl-pp-social-' . $val . '">' . $trans . '</label>';
1084
- }
1085
-
1086
- echo '
1087
- <p class="description">' . __( 'Display links to Facebook and Twitter.', 'responsive-lightbox' ) . '</p>
1088
- </div>';
1089
- }
1090
-
1091
- public function rl_fb_transitions() {
1092
- echo '
1093
- <div id="rl_fb_transition" class="wplikebtns">';
1094
-
1095
- foreach ( $this->scripts['fancybox']['transitions'] as $val => $trans ) {
1096
- echo '
1097
- <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 ) . ' />
1098
- <label for="rl-fb-transitions-' . $val . '">' . $trans . '</label>';
1099
- }
1100
-
1101
- echo '
1102
- <p class="description">' . __( 'The transition type.', 'responsive-lightbox' ) . '</p>
1103
- </div>';
1104
- }
1105
-
1106
- public function rl_fb_padding() {
1107
- echo '
1108
- <div id="rl_fb_padding">
1109
- <input type="text" name="responsive_lightbox_configuration[fancybox][padding]" value="' . esc_attr( $this->options['configuration']['fancybox']['padding'] ) . '" /> <span>px</span>
1110
- <p class="description">' . __( 'Space between FancyBox wrapper and content.', 'responsive-lightbox' ) . '</p>
1111
- </div>';
1112
- }
1113
-
1114
- public function rl_fb_margin() {
1115
- echo '
1116
- <div id="rl_fb_margin">
1117
- <input type="text" name="responsive_lightbox_configuration[fancybox][margin]" value="' . esc_attr( $this->options['configuration']['fancybox']['margin'] ) . '" /> <span>px</span>
1118
- <p class="description">' . __( 'Space between viewport and FancyBox wrapper.', 'responsive-lightbox' ) . '</p>
1119
- </div>';
1120
- }
1121
-
1122
- public function rl_fb_modal() {
1123
- echo '
1124
- <div id="rl_fb_modal" class="wplikebtns">';
1125
-
1126
- foreach ( $this->choices as $val => $trans ) {
1127
- echo '
1128
- <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 ) . ' />
1129
- <label for="rl-fb-modal-' . $val . '">' . $trans . '</label>';
1130
- }
1131
-
1132
- echo '
1133
- <p class="description">' . __( 'When true, "overlayShow" is set to true and "hideOnOverlayClick", "hideOnContentClick", "enableEscapeButton", "showCloseButton" are set to false.', 'responsive-lightbox' ) . '</p>
1134
- </div>';
1135
- }
1136
-
1137
- public function rl_fb_show_overlay() {
1138
- echo '
1139
- <div id="rl_fb_show_overlay" class="wplikebtns">';
1140
-
1141
- foreach ( $this->choices as $val => $trans ) {
1142
- echo '
1143
- <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 ) . ' />
1144
- <label for="rl-fb-show-overlay-' . $val . '">' . $trans . '</label>';
1145
- }
1146
-
1147
- echo '
1148
- <p class="description">' . __( 'Toggle overlay.', 'responsive-lightbox' ) . '</p>
1149
- </div>';
1150
- }
1151
-
1152
- public function rl_fb_show_close_button() {
1153
- echo '
1154
- <div id="rl_fb_show_close_button" class="wplikebtns">';
1155
-
1156
- foreach ( $this->choices as $val => $trans ) {
1157
- echo '
1158
- <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 ) . ' />
1159
- <label for="rl-fb-show-close-button-' . $val . '">' . $trans . '</label>';
1160
- }
1161
-
1162
- echo '
1163
- <p class="description">' . __( 'Toggle close button.', 'responsive-lightbox' ) . '</p>
1164
- </div>';
1165
- }
1166
-
1167
- public function rl_fb_enable_escape_button() {
1168
- echo '
1169
- <div id="rl_fb_enable_escape_button" class="wplikebtns">';
1170
-
1171
- foreach ( $this->choices as $val => $trans ) {
1172
- echo '
1173
- <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 ) . ' />
1174
- <label for="rl-fb-enable-escape-button-' . $val . '">' . $trans . '</label>';
1175
- }
1176
-
1177
- echo '
1178
- <p class="description">' . __( 'Toggle if pressing Esc button closes FancyBox.', 'responsive-lightbox' ) . '</p>
1179
- </div>';
1180
- }
1181
-
1182
- public function rl_fb_hide_on_overlay_click() {
1183
- echo '
1184
- <div id="rl_fb_hide_on_overlay_click" class="wplikebtns">';
1185
-
1186
- foreach ( $this->choices as $val => $trans ) {
1187
- echo '
1188
- <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 ) . ' />
1189
- <label for="rl-fb-hide-on-overlay-click-' . $val . '">' . $trans . '</label>';
1190
- }
1191
-
1192
- echo '
1193
- <p class="description">' . __( 'Toggle if clicking the overlay should close FancyBox.', 'responsive-lightbox' ) . '</p>
1194
- </div>';
1195
- }
1196
-
1197
- public function rl_fb_hide_on_content_click() {
1198
- echo '
1199
- <div id="rl_fb_hide_on_content_click" class="wplikebtns">';
1200
-
1201
- foreach ( $this->choices as $val => $trans ) {
1202
- echo '
1203
- <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 ) . ' />
1204
- <label for="rl-fb-hide-on-content-click-' . $val . '">' . $trans . '</label>';
1205
- }
1206
-
1207
- echo '
1208
- <p class="description">' . __( 'Toggle if clicking the content should close FancyBox.', 'responsive-lightbox' ) . '</p>
1209
- </div>';
1210
- }
1211
-
1212
- public function rl_fb_cyclic() {
1213
- echo '
1214
- <div id="rl_fb_cyclic" class="wplikebtns">';
1215
-
1216
- foreach ( $this->choices as $val => $trans ) {
1217
- echo '
1218
- <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 ) . ' />
1219
- <label for="rl-fb-cyclic-' . $val . '">' . $trans . '</label>';
1220
- }
1221
-
1222
- echo '
1223
- <p class="description">' . __( 'When true, galleries will be cyclic, allowing you to keep pressing next/back.', 'responsive-lightbox' ) . '</p>
1224
- </div>';
1225
- }
1226
-
1227
- public function rl_fb_show_nav_arrows() {
1228
- echo '
1229
- <div id="rl_fb_show_nav_arrows" class="wplikebtns">';
1230
-
1231
- foreach ( $this->choices as $val => $trans ) {
1232
- echo '
1233
- <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 ) . ' />
1234
- <label for="rl-fb-show-nav-arrows-' . $val . '">' . $trans . '</label>';
1235
- }
1236
-
1237
- echo '
1238
- <p class="description">' . __( 'Toggle navigation arrows.', 'responsive-lightbox' ) . '</p>
1239
- </div>';
1240
- }
1241
-
1242
- public function rl_fb_auto_scale() {
1243
- echo '
1244
- <div id="rl_fb_auto_scale" class="wplikebtns">';
1245
-
1246
- foreach ( $this->choices as $val => $trans ) {
1247
- echo '
1248
- <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 ) . ' />
1249
- <label for="rl-fb-auto-scale-' . $val . '">' . $trans . '</label>';
1250
- }
1251
-
1252
- echo '
1253
- <p class="description">' . __( 'If true, FancyBox is scaled to fit in viewport.', 'responsive-lightbox' ) . '</p>
1254
- </div>';
1255
- }
1256
-
1257
- public function rl_fb_scrolling() {
1258
- echo '
1259
- <div id="rl_fb_scrolling" class="wplikebtns">';
1260
-
1261
- foreach ( $this->scripts['fancybox']['scrollings'] as $val => $trans ) {
1262
- echo '
1263
- <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 ) . ' />
1264
- <label for="rl-fb-scrolling-' . $val . '">' . $trans . '</label>';
1265
- }
1266
-
1267
- echo '
1268
- <p class="description">' . __( 'Set the overflow CSS property to create or hide scrollbars.', 'responsive-lightbox' ) . '</p>
1269
- </div>';
1270
- }
1271
-
1272
- public function rl_fb_center_on_scroll() {
1273
- echo '
1274
- <div id="rl_fb_center_on_scroll" class="wplikebtns">';
1275
-
1276
- foreach ( $this->choices as $val => $trans ) {
1277
- echo '
1278
- <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 ) . ' />
1279
- <label for="rl-fb-center-on-scroll-' . $val . '">' . $trans . '</label>';
1280
- }
1281
-
1282
- echo '
1283
- <p class="description">' . __( 'When true, FancyBox is centered while scrolling page.', 'responsive-lightbox' ) . '</p>
1284
- </div>';
1285
- }
1286
-
1287
- public function rl_fb_opacity() {
1288
- echo '
1289
- <div id="rl_fb_opacity" class="wplikebtns">';
1290
-
1291
- foreach ( $this->choices as $val => $trans ) {
1292
- echo '
1293
- <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 ) . ' />
1294
- <label for="rl-fb-opacity-' . $val . '">' . $trans . '</label>';
1295
- }
1296
-
1297
- echo '
1298
- <p class="description">' . __( 'When true, transparency of content is changed for elastic transitions.', 'responsive-lightbox' ) . '</p>
1299
- </div>';
1300
- }
1301
-
1302
- public function rl_fb_overlay_opacity() {
1303
- echo '
1304
- <div id="rl_fb_overlay_opacity">
1305
- <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'] ) . '" />
1306
- <div class="wplike-slider">
1307
- <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>
1308
- </div>
1309
- <p class="description">' . __( 'Opacity of the overlay.', 'responsive-lightbox' ) . '</p>
1310
- </div>';
1311
- }
1312
-
1313
- public function rl_fb_overlay_color() {
1314
- echo '
1315
- <div id="rl_fb_overlay_color">
1316
- <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'] . '" />
1317
- <p class="description">' . __( 'Color of the overlay.', 'responsive-lightbox' ) . '</p>
1318
- </div>';
1319
- }
1320
-
1321
- public function rl_fb_title_show() {
1322
- echo '
1323
- <div id="rl_fb_title_show" class="wplikebtns">';
1324
-
1325
- foreach ( $this->choices as $val => $trans ) {
1326
- echo '
1327
- <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 ) . ' />
1328
- <label for="rl-fb-title-show-' . $val . '">' . $trans . '</label>';
1329
- }
1330
-
1331
- echo '
1332
- <p class="description">' . __( 'Toggle title.', 'responsive-lightbox' ) . '</p>
1333
- </div>';
1334
- }
1335
-
1336
- public function rl_fb_title_position() {
1337
- echo '
1338
- <div id="rl_fb_title_position" class="wplikebtns">';
1339
-
1340
- foreach ( $this->scripts['fancybox']['positions'] as $val => $trans ) {
1341
- echo '
1342
- <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 ) . ' />
1343
- <label for="rl-fb-title-position-' . $val . '">' . $trans . '</label>';
1344
- }
1345
-
1346
- echo '
1347
- <p class="description">' . __( 'The position of title.', 'responsive-lightbox' ) . '</p>
1348
- </div>';
1349
- }
1350
-
1351
- public function rl_fb_easings() {
1352
- echo '
1353
- <div id="rl_fb_easings" class="wplikebtns">';
1354
-
1355
- foreach ( $this->scripts['fancybox']['easings'] as $val => $trans ) {
1356
- echo '
1357
- <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 ) . ' />
1358
- <label for="rl-fb-easings-' . $val . '">' . $trans . '</label>';
1359
- }
1360
-
1361
- echo '
1362
- <p class="description">' . __( 'Easing used for elastic animations.', 'responsive-lightbox' ) . '</p>
1363
- </div>';
1364
- }
1365
-
1366
- public function rl_fb_speeds() {
1367
- echo '
1368
- <div id="rl_fb_speeds">
1369
- <input type="text" value="' . esc_attr( $this->options['configuration']['fancybox']['speeds'] ) . '" name="responsive_lightbox_configuration[fancybox][speeds]" /> <span>ms</span>
1370
- <p class="description">' . __( 'Speed of the fade and elastic transitions, in milliseconds.', 'responsive-lightbox' ) . '</p>
1371
- </div>';
1372
- }
1373
-
1374
- public function rl_fb_change_speed() {
1375
- echo '
1376
- <div id="rl_fb_change_speed">
1377
- <input type="text" value="' . esc_attr( $this->options['configuration']['fancybox']['change_speed'] ) . '" name="responsive_lightbox_configuration[fancybox][change_speed]" /> <span>ms</span>
1378
- <p class="description">' . __( 'Speed of resizing when changing gallery items, in milliseconds.', 'responsive-lightbox' ) . '</p>
1379
- </div>';
1380
- }
1381
-
1382
- public function rl_fb_change_fade() {
1383
- echo '
1384
- <div id="rl_fb_change_fade">
1385
- <input type="text" value="' . esc_attr( $this->options['configuration']['fancybox']['change_fade'] ) . '" name="responsive_lightbox_configuration[fancybox][change_fade]" /> <span>ms</span>
1386
- <p class="description">' . __( 'Speed of the content fading while changing gallery items.', 'responsive-lightbox' ) . '</p>
1387
- </div>';
1388
- }
1389
-
1390
- public function rl_fb_video_width() {
1391
- echo '
1392
- <div id="rl_fb_video_width">
1393
- <input type="text" value="' . esc_attr( $this->options['configuration']['fancybox']['video_width'] ) . '" name="responsive_lightbox_configuration[fancybox][video_width]" /> <span>px</span>
1394
- <p class="description">' . __( 'Width of the video.', 'responsive-lightbox' ) . '</p>
1395
- </div>';
1396
- }
1397
-
1398
- public function rl_fb_video_height() {
1399
- echo '
1400
- <div id="rl_fb_video_height">
1401
- <input type="text" value="' . esc_attr( $this->options['configuration']['fancybox']['video_height'] ) . '" name="responsive_lightbox_configuration[fancybox][video_height]" /> <span>px</span>
1402
- <p class="description">' . __( 'Height of the video.', 'responsive-lightbox' ) . '</p>
1403
- </div>';
1404
- }
1405
-
1406
- public function rl_nv_effect() {
1407
- echo '
1408
- <div id="rl_nv_effect" class="wplikebtns">';
1409
-
1410
- foreach ( $this->scripts['nivo']['effects'] as $val => $trans ) {
1411
- echo '
1412
- <input id="rl-nv-effect-' . $val . '" type="radio" name="responsive_lightbox_configuration[nivo][effect]" value="' . esc_attr( $val ) . '" ' . checked( $val, $this->options['configuration']['nivo']['effect'], false ) . ' />
1413
- <label for="rl-nv-effect-' . $val . '">' . $trans . '</label>';
1414
- }
1415
-
1416
- echo '
1417
- <p class="description">' . __( 'The effect to use when showing the lightbox.', 'responsive-lightbox' ) . '</p>
1418
- </div>';
1419
- }
1420
-
1421
- public function rl_nv_keyboard_nav() {
1422
- echo '
1423
- <div id="rl_nv_keyboard_nav" class="wplikebtns">';
1424
-
1425
- foreach ( $this->choices as $val => $trans ) {
1426
- echo '
1427
- <input id="rl-nv-keyboard-nav-' . $val . '" type="radio" name="responsive_lightbox_configuration[nivo][keyboard_nav]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['nivo']['keyboard_nav'], false ) . ' />
1428
- <label for="rl-nv-keyboard-nav-' . $val . '">' . $trans . '</label>';
1429
- }
1430
-
1431
- echo '
1432
- <p class="description">' . __( 'Enable/Disable keyboard navigation (left/right/escape).', 'responsive-lightbox' ) . '</p>
1433
- </div>';
1434
- }
1435
-
1436
- public function rl_nv_click_overlay_to_close() {
1437
- echo '
1438
- <div id="rl_nv_click_overlay_to_close" class="wplikebtns">';
1439
-
1440
- foreach ( $this->choices as $val => $trans ) {
1441
- echo '
1442
- <input id="rl-nv-click-overlay-to-close-' . $val . '" type="radio" name="responsive_lightbox_configuration[nivo][click_overlay_to_close]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['nivo']['click_overlay_to_close'], false ) . ' />
1443
- <label for="rl-nv-click-overlay-to-close-' . $val . '">' . $trans . '</label>';
1444
- }
1445
-
1446
- echo '
1447
- <p class="description">' . __( 'Eneble to close lightbox on overlay click.', 'responsive-lightbox' ) . '</p>
1448
- </div>';
1449
- }
1450
-
1451
- public function rl_nv_error_message() {
1452
- echo '
1453
- <div id="rl_nv_error_message">
1454
- <input type="text" class="large-text" value="' . esc_attr( $this->options['configuration']['nivo']['error_message'] ) . '" name="responsive_lightbox_configuration[nivo][error_message]" />
1455
- <p class="description">' . __( 'Error message if the content cannot be loaded.', 'responsive-lightbox' ) . '</p>
1456
- </div>';
1457
- }
1458
-
1459
- public function rl_il_animation_speed() {
1460
- echo '
1461
- <div id="rl_il_animation_speed">
1462
- <input type="text" value="' . esc_attr( $this->options['configuration']['imagelightbox']['animation_speed'] ) . '" name="responsive_lightbox_configuration[imagelightbox][animation_speed]" /> <span>ms</span>
1463
- <p class="description">' . __( 'Animation speed.', 'responsive-lightbox' ) . '</p>
1464
- </div>';
1465
- }
1466
-
1467
- public function rl_il_preload_next() {
1468
- echo '
1469
- <div id="rl_il_preload_next" class="wplikebtns">';
1470
-
1471
- foreach ( $this->choices as $val => $trans ) {
1472
- echo '
1473
- <input id="rl-il-preload-next-' . $val . '" type="radio" name="responsive_lightbox_configuration[imagelightbox][preload_next]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['imagelightbox']['preload_next'], false ) . ' />
1474
- <label for="rl-il-preload-next-' . $val . '">' . $trans . '</label>';
1475
- }
1476
-
1477
- echo '
1478
- <p class="description">' . __( 'Silently preload the next image.', 'responsive-lightbox' ) . '</p>
1479
- </div>';
1480
- }
1481
-
1482
- public function rl_il_enable_keyboard() {
1483
- echo '
1484
- <div id="rl_il_enable_keyboard" class="wplikebtns">';
1485
-
1486
- foreach ( $this->choices as $val => $trans ) {
1487
- echo '
1488
- <input id="rl-il-enable-keyboard-' . $val . '" type="radio" name="responsive_lightbox_configuration[imagelightbox][enable_keyboard]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['imagelightbox']['enable_keyboard'], false ) . ' />
1489
- <label for="rl-il-enable-keyboard-' . $val . '">' . $trans . '</label>';
1490
- }
1491
-
1492
- echo '
1493
- <p class="description">' . __( 'Enable keyboard shortcuts (arrows Left/Right and Esc).', 'responsive-lightbox' ) . '</p>
1494
- </div>';
1495
- }
1496
-
1497
- public function rl_il_quit_on_end() {
1498
- echo '
1499
- <div id="rl_il_quit_on_end" class="wplikebtns">';
1500
 
1501
- foreach ( $this->choices as $val => $trans ) {
1502
- echo '
1503
- <input id="rl-il-quit-on-end-' . $val . '" type="radio" name="responsive_lightbox_configuration[imagelightbox][quit_on_end]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['imagelightbox']['quit_on_end'], false ) . ' />
1504
- <label for="rl-il-quit-on-end-' . $val . '">' . $trans . '</label>';
1505
- }
1506
-
1507
- echo '
1508
- <p class="description">' . __( 'Quit after viewing the last image.', 'responsive-lightbox' ) . '</p>
1509
- </div>';
1510
- }
1511
-
1512
- public function rl_il_quit_on_image_click() {
1513
- echo '
1514
- <div id="rl_il_quit_on_image_click" class="wplikebtns">';
1515
-
1516
- foreach ( $this->choices as $val => $trans ) {
1517
- echo '
1518
- <input id="rl-il-quit-on-image-click-' . $val . '" type="radio" name="responsive_lightbox_configuration[imagelightbox][quit_on_image_click]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['imagelightbox']['quit_on_image_click'], false ) . ' />
1519
- <label for="rl-il-quit-on-image-click-' . $val . '">' . $trans . '</label>';
1520
- }
1521
-
1522
- echo '
1523
- <p class="description">' . __( 'Quit when the viewed image is clicked.', 'responsive-lightbox' ) . '</p>
1524
- </div>';
1525
- }
1526
 
1527
- public function rl_il_quit_on_document_click() {
1528
- echo '
1529
- <div id="rl_il_quit_on_document_click" class="wplikebtns">';
 
 
 
 
1530
 
1531
- foreach ( $this->choices as $val => $trans ) {
1532
- echo '
1533
- <input id="rl-il-quit-on-document-click-' . $val . '" type="radio" name="responsive_lightbox_configuration[imagelightbox][quit_on_document_click]" value="' . esc_attr( $val ) . '" ' . checked( ($val === 'yes' ? true : false ), $this->options['configuration']['imagelightbox']['quit_on_document_click'], false ) . ' />
1534
- <label for="rl-il-quit-on-document-click-' . $val . '">' . $trans . '</label>';
1535
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1536
 
1537
- echo '
1538
- <p class="description">' . __( 'Quit when anything but the viewed image is clicked.', 'responsive-lightbox' ) . '</p>
1539
- </div>';
1540
- }
1541
 
1542
  /**
1543
- * Validate settings
1544
  */
1545
- public function validate_options( $input ) {
1546
- if ( isset( $_POST['save_rl_settings'] ) ) {
1547
- // script
1548
- $input['script'] = (isset( $input['script'], $this->scripts[$input['script']] ) ? $input['script'] : $this->defaults['settings']['script']);
1549
-
1550
- // selector
1551
- $input['selector'] = sanitize_text_field( isset( $input['selector'] ) && $input['selector'] !== '' ? $input['selector'] : $this->defaults['settings']['selector'] );
1552
 
1553
- // loading place
1554
- $input['loading_place'] = (isset( $input['loading_place'], $this->loading_places[$input['loading_place']] ) ? $input['loading_place'] : $this->defaults['settings']['loading_place']);
 
1555
 
1556
- // enable custom events
1557
- $input['enable_custom_events'] = (isset( $input['enable_custom_events'], $this->choices[$input['enable_custom_events']] ) ? ($input['enable_custom_events'] === 'yes' ? true : false) : $this->defaults['settings']['enable_custom_events']);
1558
 
1559
- // custom events
1560
- if ( $input['enable_custom_events'] === true ) {
1561
- $input['custom_events'] = sanitize_text_field( isset( $input['custom_events'] ) && $input['custom_events'] !== '' ? $input['custom_events'] : $this->defaults['settings']['custom_events'] );
 
1562
  }
1563
 
1564
- // enable gallery image size
1565
- $input['enable_gallery_image_size'] = (isset( $input['enable_gallery_image_size'], $this->choices[$input['enable_gallery_image_size']] ) ? ($input['enable_gallery_image_size'] === 'yes' ? true : false) : $this->defaults['settings']['enable_gallery_image_size']);
1566
-
1567
- // gallery image size
1568
- if ( $input['enable_gallery_image_size'] === true ) {
1569
- $input['gallery_image_size'] = esc_attr( isset( $input['gallery_image_size'] ) && $input['gallery_image_size'] !== '' ? $input['gallery_image_size'] : $this->defaults['settings']['gallery_image_size'] );
1570
  }
1571
-
1572
- // gallery image title
1573
- $input['gallery_image_title'] = esc_attr( isset( $input['gallery_image_title'] ) && in_array( $input['gallery_image_title'], array_keys( $this->gallery_image_titles ) ) ? $input['gallery_image_title'] : $this->defaults['settings']['gallery_image_title'] );
1574
-
1575
- // checkboxes
1576
- $input['galleries'] = (isset( $input['galleries'], $this->choices[$input['galleries']] ) ? ($input['galleries'] === 'yes' ? true : false) : $this->defaults['settings']['galleries']);
1577
- $input['videos'] = (isset( $input['videos'], $this->choices[$input['videos']] ) ? ($input['videos'] === 'yes' ? true : false) : $this->defaults['settings']['videos']);
1578
- $input['image_links'] = (isset( $input['image_links'], $this->choices[$input['image_links']] ) ? ($input['image_links'] === 'yes' ? true : false) : $this->defaults['settings']['image_links']);
1579
- $input['images_as_gallery'] = (isset( $input['images_as_gallery'], $this->choices[$input['images_as_gallery']] ) ? ($input['images_as_gallery'] === 'yes' ? true : false) : $this->defaults['settings']['images_as_gallery']);
1580
- $input['deactivation_delete'] = (isset( $input['deactivation_delete'], $this->choices[$input['deactivation_delete']] ) ? ($input['deactivation_delete'] === 'yes' ? true : false) : $this->defaults['settings']['deactivation_delete']);
1581
- } elseif ( isset( $_POST['save_rl_configuration'] ) ) {
1582
- if ( $this->options['settings']['script'] === 'swipebox' && $_POST['script_r'] === 'swipebox' ) {
1583
- // animation
1584
- $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']);
1585
-
1586
- // force png icons
1587
- $input['swipebox']['force_png_icons'] = (isset( $input['swipebox']['force_png_icons'] ) && in_array( $input['swipebox']['force_png_icons'], array_keys( $this->choices ) ) ? ($input['swipebox']['force_png_icons'] === 'yes' ? true : false) : $this->defaults['configuration']['swipebox']['force_png_icons']);
1588
-
1589
- // hide on mobile
1590
- $input['swipebox']['hide_close_mobile'] = (isset( $input['swipebox']['hide_close_mobile'] ) && in_array( $input['swipebox']['hide_close_mobile'], array_keys( $this->choices ) ) ? ($input['swipebox']['hide_close_mobile'] === 'yes' ? true : false) : $this->defaults['configuration']['swipebox']['hide_close_mobile']);
1591
-
1592
- // loop at end
1593
- $input['swipebox']['loop_at_end'] = (isset( $input['swipebox']['loop_at_end'] ) && in_array( $input['swipebox']['loop_at_end'], array_keys( $this->choices ) ) ? ($input['swipebox']['loop_at_end'] === 'yes' ? true : false) : $this->defaults['configuration']['swipebox']['loop_at_end']);
1594
-
1595
- // bars
1596
- $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']);
1597
- $input['swipebox']['hide_bars_delay'] = (int) ($input['swipebox']['hide_bars_delay'] > 0 ? $input['swipebox']['hide_bars_delay'] : $this->defaults['configuration']['swipebox']['hide_bars_delay']);
1598
-
1599
- // video width
1600
- $input['swipebox']['video_max_width'] = (int) ($input['swipebox']['video_max_width'] > 0 ? $input['swipebox']['video_max_width'] : $this->defaults['configuration']['swipebox']['video_max_width']);
1601
- } elseif ( $this->options['settings']['script'] === 'prettyphoto' && $_POST['script_r'] === 'prettyphoto' ) {
1602
- // animation speed
1603
- $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']);
1604
-
1605
- // slideshows
1606
- $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']);
1607
- $input['prettyphoto']['slideshow_delay'] = (int) ($input['prettyphoto']['slideshow_delay'] > 0 ? $input['prettyphoto']['slideshow_delay'] : $this->defaults['configuration']['prettyphoto']['slideshow_delay']);
1608
- $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']);
1609
-
1610
- // opacity
1611
- $input['prettyphoto']['opacity'] = (int) $input['prettyphoto']['opacity'];
1612
-
1613
- if ( $input['prettyphoto']['opacity'] < 0 || $input['prettyphoto']['opacity'] > 100 )
1614
- $input['prettyphoto']['opacity'] = $this->defaults['configuration']['prettyphoto']['opacity'];
1615
-
1616
- // title
1617
- $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']);
1618
-
1619
- // resize
1620
- $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']);
1621
-
1622
- // expand
1623
- $input['prettyphoto']['allow_expand'] = (isset( $input['prettyphoto']['allow_expand'] ) && in_array( $input['prettyphoto']['allow_expand'], array_keys( $this->choices ) ) ? ($input['prettyphoto']['allow_expand'] === 'yes' ? true : false) : $this->defaults['configuration']['prettyphoto']['allow_expand']);
1624
-
1625
- // dimensions
1626
- $input['prettyphoto']['width'] = (int) ($input['prettyphoto']['width'] > 0 ? $input['prettyphoto']['width'] : $this->defaults['configuration']['prettyphoto']['width']);
1627
- $input['prettyphoto']['height'] = (int) ($input['prettyphoto']['height'] > 0 ? $input['prettyphoto']['height'] : $this->defaults['configuration']['prettyphoto']['height']);
1628
-
1629
- // separator
1630
- $input['prettyphoto']['separator'] = sanitize_text_field( isset( $input['prettyphoto']['separator'] ) && $input['prettyphoto']['separator'] !== '' ? $input['prettyphoto']['separator'] : $this->defaults['configuration']['prettyphoto']['separator'] );
1631
-
1632
- // theme
1633
- $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']);
1634
-
1635
- // padding
1636
- $input['prettyphoto']['horizontal_padding'] = (int) ($input['prettyphoto']['horizontal_padding'] > 0 ? $input['prettyphoto']['horizontal_padding'] : $this->defaults['configuration']['prettyphoto']['horizontal_padding']);
1637
-
1638
- // flash
1639
- $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']);
1640
- $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']);
1641
-
1642
- // video autoplay
1643
- $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']);
1644
-
1645
- // modal
1646
- $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']);
1647
-
1648
- // deeplinking
1649
- $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']);
1650
-
1651
- // overlay gallery
1652
- $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']);
1653
-
1654
- // keyboard shortcuts
1655
- $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']);
1656
-
1657
- // social
1658
- $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']);
1659
- } elseif ( $this->options['settings']['script'] === 'fancybox' && $_POST['script_r'] === 'fancybox' ) {
1660
- // modal
1661
- $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']);
1662
-
1663
- // show overlay
1664
- $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']);
1665
-
1666
- // show close button
1667
- $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']);
1668
-
1669
- // enable escape button
1670
- $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']);
1671
-
1672
- // hide on overlay click
1673
- $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']);
1674
-
1675
- // hide on content click
1676
- $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']);
1677
-
1678
- // cyclic
1679
- $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']);
1680
-
1681
- // show nav arrows
1682
- $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']);
1683
-
1684
- // auto scale
1685
- $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']);
1686
-
1687
- // scrolling
1688
- $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']);
1689
-
1690
- // center on scroll
1691
- $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']);
1692
-
1693
- // opacity
1694
- $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']);
1695
-
1696
- // title_show
1697
- $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']);
1698
-
1699
- // overlay opacity
1700
- $input['fancybox']['overlay_opacity'] = (int) $input['fancybox']['overlay_opacity'];
1701
-
1702
- if ( $input['fancybox']['overlay_opacity'] < 0 || $input['fancybox']['overlay_opacity'] > 100 )
1703
- $input['fancybox']['overlay_opacity'] = $this->defaults['configuration']['fancybox']['overlay_opacity'];
1704
-
1705
- // overlay color
1706
- $input['fancybox']['overlay_color'] = sanitize_text_field( $input['fancybox']['overlay_color'] );
1707
-
1708
- // title position
1709
- $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']);
1710
-
1711
- // transitions
1712
- $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']);
1713
-
1714
- // easings
1715
- $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']);
1716
-
1717
- // speeds
1718
- $input['fancybox']['speeds'] = (int) ($input['fancybox']['speeds'] > 0 ? $input['fancybox']['speeds'] : $this->defaults['configuration']['fancybox']['speeds']);
1719
-
1720
- // change speed
1721
- $input['fancybox']['change_speed'] = (int) ($input['fancybox']['change_speed'] > 0 ? $input['fancybox']['change_speed'] : $this->defaults['configuration']['fancybox']['change_speed']);
1722
-
1723
- // change fade
1724
- $input['fancybox']['change_fade'] = (int) ($input['fancybox']['change_fade'] > 0 ? $input['fancybox']['change_fade'] : $this->defaults['configuration']['fancybox']['change_fade']);
1725
-
1726
- // padding
1727
- $input['fancybox']['padding'] = (int) ($input['fancybox']['padding'] > 0 ? $input['fancybox']['padding'] : $this->defaults['configuration']['fancybox']['padding']);
1728
-
1729
- // margin
1730
- $input['fancybox']['margin'] = (int) ($input['fancybox']['margin'] > 0 ? $input['fancybox']['margin'] : $this->defaults['configuration']['fancybox']['margin']);
1731
 
1732
- // video width
1733
- $input['fancybox']['video_width'] = (int) ($input['fancybox']['video_width'] > 0 ? $input['fancybox']['video_width'] : $this->defaults['configuration']['fancybox']['video_width']);
1734
 
1735
- // video height
1736
- $input['fancybox']['video_height'] = (int) ($input['fancybox']['video_height'] > 0 ? $input['fancybox']['video_height'] : $this->defaults['configuration']['fancybox']['video_height']);
1737
- } elseif ( $this->options['settings']['script'] === 'nivo' && $_POST['script_r'] === 'nivo' ) {
1738
- // effect
1739
- $input['nivo']['effect'] = (isset( $input['nivo']['effect'] ) && in_array( $input['nivo']['effect'], array_keys( $this->scripts['nivo']['effects'] ) ) ? $input['nivo']['effect'] : $this->defaults['configuration']['nivo']['effect']);
1740
 
1741
- // keyboard navigation
1742
- $input['nivo']['keyboard_nav'] = (isset( $input['nivo']['keyboard_nav'] ) && in_array( $input['nivo']['keyboard_nav'], array_keys( $this->choices ) ) ? ($input['nivo']['keyboard_nav'] === 'yes' ? true : false) : $this->defaults['configuration']['nivo']['keyboard_nav']);
1743
 
1744
- // keyboard navigation
1745
- $input['nivo']['click_overlay_to_close'] = (isset( $input['nivo']['click_overlay_to_close'] ) && in_array( $input['nivo']['click_overlay_to_close'], array_keys( $this->choices ) ) ? ($input['nivo']['click_overlay_to_close'] === 'yes' ? true : false) : $this->defaults['configuration']['nivo']['click_overlay_to_close']);
 
1746
 
1747
- // error message
1748
- $input['nivo']['error_message'] = sanitize_text_field( $input['nivo']['error_message'] );
1749
- } elseif ( $this->options['settings']['script'] === 'imagelightbox' && $_POST['script_r'] === 'imagelightbox' ) {
1750
- // animation speed
1751
- $input['imagelightbox']['animation_speed'] = (int) $input['imagelightbox']['animation_speed'];
1752
 
1753
- // preload next image
1754
- $input['imagelightbox']['preload_next'] = (isset( $input['imagelightbox']['preload_next'], $this->choices[$input['imagelightbox']['preload_next']] ) ? ($input['imagelightbox']['preload_next'] === 'yes' ? true : false) : $this->defaults['configuration']['imagelightbox']['preload_next']);
 
1755
 
1756
- // enable keyboard keys
1757
- $input['imagelightbox']['enable_keyboard'] = (isset( $input['imagelightbox']['enable_keyboard'], $this->choices[$input['imagelightbox']['enable_keyboard']] ) ? ($input['imagelightbox']['enable_keyboard'] === 'yes' ? true : false) : $this->defaults['configuration']['imagelightbox']['enable_keyboard']);
 
 
 
 
 
 
 
 
 
 
1758
 
1759
- // quit on last image
1760
- $input['imagelightbox']['quit_on_end'] = (isset( $input['imagelightbox']['quit_on_end'], $this->choices[$input['imagelightbox']['quit_on_end']] ) ? ($input['imagelightbox']['quit_on_end'] === 'yes' ? true : false) : $this->defaults['configuration']['imagelightbox']['quit_on_end']);
 
 
 
 
1761
 
1762
- // quit on image click
1763
- $input['imagelightbox']['quit_on_image_click'] = (isset( $input['imagelightbox']['quit_on_image_click'], $this->choices[$input['imagelightbox']['quit_on_image_click']] ) ? ($input['imagelightbox']['quit_on_image_click'] === 'yes' ? true : false) : $this->defaults['configuration']['imagelightbox']['quit_on_image_click']);
 
1764
 
1765
- // quit on document click
1766
- $input['imagelightbox']['quit_on_document_click'] = (isset( $input['imagelightbox']['quit_on_document_click'], $this->choices[$input['imagelightbox']['quit_on_document_click']] ) ? ($input['imagelightbox']['quit_on_document_click'] === 'yes' ? true : false) : $this->defaults['configuration']['imagelightbox']['quit_on_document_click']);
1767
- } else {
1768
- // clear input to not change settings
1769
- $input = array();
1770
 
1771
- add_settings_error( 'save_script_settings', 'invalid_script_page', __( 'Changes were not saved because there was attempt to save settings of inactive script. The site has been reloaded to the proper script settings.', 'responsive-lightbox' ), 'error' );
 
 
 
1772
  }
1773
 
1774
- // we have to merge rest of the scripts settings
1775
- $input = array_merge( $this->options['configuration'], $input );
1776
- } elseif ( isset( $_POST['reset_rl_settings'] ) ) {
1777
- $input = $this->defaults['settings'];
 
1778
 
1779
- add_settings_error( 'reset_general_settings', 'general_reset', __( 'Settings restored to defaults.', 'responsive-lightbox' ), 'updated' );
1780
- } elseif ( isset( $_POST['reset_rl_configuration'] ) ) {
1781
- if ( $this->options['settings']['script'] === 'swipebox' && $_POST['script_r'] === 'swipebox' ) {
1782
- $input['swipebox'] = $this->defaults['configuration']['swipebox'];
1783
 
1784
- add_settings_error( 'reset_swipebox_settings', 'swipebox_reset', __( 'Settings of SwipeBox script were restored to defaults.', 'responsive-lightbox' ), 'updated' );
1785
- } elseif ( $this->options['settings']['script'] === 'prettyphoto' && $_POST['script_r'] === 'prettyphoto' ) {
1786
- $input['prettyphoto'] = $this->defaults['configuration']['prettyphoto'];
1787
 
1788
- add_settings_error( 'reset_prettyphoto_settings', 'prettyphoto_reset', __( 'Settings of prettyPhoto script were restored to defaults.', 'responsive-lightbox' ), 'updated' );
1789
- } elseif ( $this->options['settings']['script'] === 'fancybox' && $_POST['script_r'] === 'fancybox' ) {
1790
- $input['fancybox'] = $this->defaults['configuration']['fancybox'];
1791
 
1792
- add_settings_error( 'reset_fancybox_settings', 'fancybox_reset', __( 'Settings of FancyBox script were restored to defaults.', 'responsive-lightbox' ), 'updated' );
1793
- } elseif ( $this->options['settings']['script'] === 'nivo' && $_POST['script_r'] === 'nivo' ) {
1794
- $input['nivo'] = $this->defaults['configuration']['nivo'];
1795
 
1796
- add_settings_error( 'reset_nivo_settings', 'nivo_reset', __( 'Settings of Nivo script were restored to defaults.', 'responsive-lightbox' ), 'updated' );
1797
- } else {
1798
- 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' );
1799
  }
1800
 
1801
- // we have to merge rest of the scripts settings
1802
- $input = array_merge( $this->options['configuration'], $input );
1803
- }
1804
-
1805
- return $input;
1806
  }
1807
 
1808
- public function admin_menu_options() {
1809
- add_options_page(
1810
- __( 'Responsive Lightbox', 'responsive-lightbox' ), __( 'Responsive Lightbox', 'responsive-lightbox' ), 'manage_options', 'responsive-lightbox', array( &$this, 'options_page' )
1811
- );
 
1812
  }
1813
 
1814
- public function options_page() {
1815
- $tab_key = (isset( $_GET['tab'] ) ? $_GET['tab'] : 'general-settings');
 
 
 
 
1816
 
1817
- echo '
1818
- <div class="wrap">' . screen_icon() . '
1819
- <h2>' . __( 'Responsive Lightbox', 'responsive-lightbox' ) . '</h2>
1820
- <h2 class="nav-tab-wrapper">';
1821
 
1822
- foreach ( $this->tabs as $key => $name ) {
1823
- echo '
1824
- <a class="nav-tab ' . ($tab_key == $key ? 'nav-tab-active' : '') . '" href="' . esc_url( admin_url( 'options-general.php?page=responsive-lightbox&tab=' . $key ) ) . '">' . $name['name'] . '</a>';
 
1825
  }
1826
 
1827
- echo '
1828
- </h2>
1829
- <div class="responsive-lightbox-settings">
1830
-
1831
- <div class="df-credits">
1832
- <h3 class="hndle">' . __( 'Responsive Lightbox', 'responsive-lightbox' ) . ' ' . $this->defaults['version'] . '</h3>
1833
- <div class="inside">
1834
- <h4 class="inner">' . __( 'Need support?', 'responsive-lightbox' ) . '</h4>
1835
- <p class="inner">' . __( '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>
1836
- <hr />
1837
- <h4 class="inner">' . __( 'Do you like this plugin?', 'responsive-lightbox' ) . '</h4>
1838
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank" class="inner">
1839
- <input type="hidden" name="cmd" value="_s-xclick">
1840
- <input type="hidden" name="hosted_button_id" value="8AL8ULUN9R76U">
1841
- <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
1842
- <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
1843
- </form>
1844
- <p class="inner"><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 />' .
1845
- __( '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 />' .
1846
- __( 'Check out our other', 'responsive-lightbox' ) . ' <a href="http://www.dfactory.eu/?utm_source=responsive-lightbox-settings&utm_medium=link&utm_campaign=other-plugins" target="_blank" title="' . __( 'WordPress plugins', 'responsive-lightbox' ) . '">' . __( 'WordPress plugins', 'responsive-lightbox' ) . '</a>
1847
- </p>
1848
- <hr />
1849
- <p class="df-link inner">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>
1850
- </div>
1851
- </div>
1852
-
1853
- <form action="options.php" method="post">
1854
- <input type="hidden" name="script_r" value="' . esc_attr( $this->options['settings']['script'] ) . '" />';
1855
 
1856
- wp_nonce_field( 'update-options' );
1857
- settings_fields( $this->tabs[$tab_key]['key'] );
1858
- do_settings_sections( $this->tabs[$tab_key]['key'] );
 
 
 
1859
 
1860
- echo '
1861
- <p class="submit">';
1862
 
1863
- submit_button( '', 'primary', $this->tabs[$tab_key]['submit'], false );
1864
 
1865
- echo ' ';
1866
- echo submit_button( __( 'Reset to defaults', 'responsive-lightbox' ), 'secondary', $this->tabs[$tab_key]['reset'], false );
 
 
1867
 
1868
- echo '
1869
- </p>
1870
- </form>
1871
- </div>
1872
- <div class="clear"></div>
1873
- </div>';
1874
  }
1875
-
 
 
 
1876
  public function admin_scripts_styles( $page ) {
1877
  if ( $page === 'settings_page_responsive-lightbox' ) {
 
1878
  wp_register_script(
1879
- 'responsive-lightbox-admin', plugins_url( 'js/admin.js', __FILE__ ), array( 'jquery', 'jquery-ui-core', 'jquery-ui-button', 'jquery-ui-slider', 'wp-color-picker' )
1880
  );
1881
-
1882
  wp_enqueue_script( 'responsive-lightbox-admin' );
1883
 
1884
  wp_localize_script(
1885
  'responsive-lightbox-admin', 'rlArgs', array(
1886
  'resetSettingsToDefaults' => __( 'Are you sure you want to reset these settings to defaults?', 'responsive-lightbox' ),
1887
- 'resetScriptToDefaults' => __( 'Are you sure you want to reset scripts settings to defaults?', 'responsive-lightbox' ),
1888
- 'opacity_pp' => $this->options['configuration']['prettyphoto']['opacity'],
1889
- 'opacity_fb' => $this->options['configuration']['fancybox']['overlay_opacity']
1890
  )
1891
  );
1892
 
@@ -1895,17 +321,13 @@ class Responsive_Lightbox {
1895
  wp_register_style(
1896
  'responsive-lightbox-admin', plugins_url( 'css/admin.css', __FILE__ )
1897
  );
1898
-
1899
  wp_enqueue_style( 'responsive-lightbox-admin' );
1900
-
1901
- wp_register_style(
1902
- 'responsive-lightbox-wplike', plugins_url( 'css/wp-like-ui-theme.css', __FILE__ )
1903
- );
1904
-
1905
- wp_enqueue_style( 'responsive-lightbox-wplike' );
1906
  }
1907
  }
1908
 
 
 
 
1909
  public function front_scripts_styles() {
1910
  $args = apply_filters( 'rl_lightbox_args', array(
1911
  'script' => $this->options['settings']['script'],
@@ -1972,7 +394,7 @@ class Responsive_Lightbox {
1972
  'hideBars' => $this->get_boolean_value( $this->options['configuration']['swipebox']['hide_bars'] ),
1973
  'hideBarsDelay' => $this->options['configuration']['swipebox']['hide_bars_delay'],
1974
  'videoMaxWidth' => $this->options['configuration']['swipebox']['video_max_width'],
1975
- 'useSVG' => $this->options['configuration']['swipebox']['force_png_icons'],
1976
  'loopAtEnd' => $this->get_boolean_value( $this->options['configuration']['swipebox']['loop_at_end'] )
1977
  )
1978
  );
@@ -2092,77 +514,20 @@ class Responsive_Lightbox {
2092
  return ( $option === true ? 1 : 0 );
2093
  }
2094
 
2095
- /**
2096
- * Load textdomain
2097
- */
2098
- public function load_textdomain() {
2099
- load_plugin_textdomain( 'responsive-lightbox', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
2100
- }
2101
-
2102
- /**
2103
- * Add links to Support Forum
2104
- */
2105
- public function plugin_extend_links( $links, $file ) {
2106
- if ( ! current_user_can( 'install_plugins' ) )
2107
- return $links;
2108
-
2109
- $plugin = plugin_basename( __FILE__ );
2110
-
2111
- if ( $file == $plugin ) {
2112
- return array_merge(
2113
- $links, array( sprintf( '<a href="http://www.dfactory.eu/support/forum/responsive-lightbox/" target="_blank">%s</a>', __( 'Support', 'responsive-lightbox' ) ) )
2114
- );
2115
- }
2116
-
2117
- return $links;
2118
- }
2119
-
2120
- /**
2121
- * Add links to Settings page
2122
- */
2123
- public function plugin_settings_link( $links, $file ) {
2124
- if ( ! is_admin() || ! current_user_can( 'manage_options' ) )
2125
- return $links;
2126
-
2127
- static $plugin;
2128
-
2129
- $plugin = plugin_basename( __FILE__ );
2130
-
2131
- if ( $file == $plugin ) {
2132
- $settings_link = sprintf( '<a href="%s">%s</a>', admin_url( 'options-general.php' ) . '?page=responsive-lightbox', __( 'Settings', 'responsive-lightbox' ) );
2133
- array_unshift( $links, $settings_link );
2134
- }
2135
-
2136
- return $links;
2137
- }
2138
 
2139
- /**
2140
- * Modify gallery image link size
2141
- */
2142
- public function gallery_attachment_link_filter( $content, $post_id, $size, $permalink, $icon, $text ) {
2143
- if ( $permalink ) {
2144
- $image = wp_get_attachment_image_src( $post_id, $this->options['settings']['gallery_image_size'] ); // or other image size
2145
- $new_content = preg_replace( '/href=\'(.*?)\'/', 'href=\'' . $image[0] . '\'', $content );
2146
- return $new_content;
2147
- } else {
2148
- return $content;
2149
- }
2150
- }
2151
-
2152
- /**
2153
- * Generate password helper, without wp_rand() and DB call it uses
2154
- */
2155
- private function generate_password( $length = 64 ) {
2156
- $chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
2157
- $password = '';
2158
-
2159
- for( $i = 0; $i < $length; $i++ ) {
2160
- $password .= substr( $chars, mt_rand( 0, strlen( $chars ) - 1 ), 1 );
2161
- }
2162
 
2163
- return $password;
 
 
2164
  }
2165
 
 
2166
  }
2167
 
2168
- $responsive_lightbox = new Responsive_Lightbox();
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.5.0
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/responsive-lightbox/
21
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
  */
23
 
24
+ // exit if accessed directly
25
  if ( ! defined( 'ABSPATH' ) )
26
  exit;
27
 
28
+ define( 'RESPONSIVE_LIGHTBOX_URL', plugins_url( '', __FILE__ ) );
29
+ define( 'RESPONSIVE_LIGHTBOX_PATH', plugin_dir_path( __FILE__ ) );
30
+ define( 'RESPONSIVE_LIGHTBOX_REL_PATH', dirname( plugin_basename( __FILE__ ) ) . '/' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
 
32
+ include_once( RESPONSIVE_LIGHTBOX_PATH . 'includes/class-frontend.php' );
33
+ include_once( RESPONSIVE_LIGHTBOX_PATH . 'includes/class-settings.php' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
+ /**
36
+ * Responsive Lightbox class.
37
+ *
38
+ * @class Responsive_Lightbox
39
+ * @version 1.5.0
40
+ */
41
+ class Responsive_Lightbox {
42
 
43
+ public $defaults = array(
44
+ 'settings' => array(
45
+ 'script' => 'swipebox',
46
+ 'selector' => 'lightbox',
47
+ 'galleries' => true,
48
+ 'gallery_image_size' => 'full',
49
+ 'gallery_image_title' => 'default',
50
+ 'force_custom_gallery' => false,
51
+ 'videos' => true,
52
+ 'image_links' => true,
53
+ 'images_as_gallery' => false,
54
+ 'deactivation_delete' => false,
55
+ 'loading_place' => 'header',
56
+ 'enable_custom_events' => false,
57
+ 'custom_events' => 'ajaxComplete'
58
+ ),
59
+ 'configuration' => array(
60
+ 'prettyphoto' => array(
61
+ 'animation_speed' => 'normal',
62
+ 'slideshow' => false,
63
+ 'slideshow_delay' => 5000,
64
+ 'slideshow_autoplay' => false,
65
+ 'opacity' => 75,
66
+ 'show_title' => true,
67
+ 'allow_resize' => true,
68
+ 'allow_expand' => true,
69
+ 'width' => 1080,
70
+ 'height' => 720,
71
+ 'separator' => '/',
72
+ 'theme' => 'pp_default',
73
+ 'horizontal_padding' => 20,
74
+ 'hide_flash' => false,
75
+ 'wmode' => 'opaque',
76
+ 'video_autoplay' => false,
77
+ 'modal' => false,
78
+ 'deeplinking' => false,
79
+ 'overlay_gallery' => true,
80
+ 'keyboard_shortcuts' => true,
81
+ 'social' => false
82
+ ),
83
+ 'swipebox' => array(
84
+ 'animation' => 'css',
85
+ 'force_png_icons' => false,
86
+ 'hide_close_mobile' => false,
87
+ 'hide_bars' => true,
88
+ 'hide_bars_delay' => 5000,
89
+ 'video_max_width' => 1080,
90
+ 'loop_at_end' => false
91
+ ),
92
+ 'fancybox' => array(
93
+ 'modal' => false,
94
+ 'show_overlay' => true,
95
+ 'show_close_button' => true,
96
+ 'enable_escape_button' => true,
97
+ 'hide_on_overlay_click' => true,
98
+ 'hide_on_content_click' => false,
99
+ 'cyclic' => false,
100
+ 'show_nav_arrows' => true,
101
+ 'auto_scale' => true,
102
+ 'scrolling' => 'yes',
103
+ 'center_on_scroll' => true,
104
+ 'opacity' => true,
105
+ 'overlay_opacity' => 70,
106
+ 'overlay_color' => '#666',
107
+ 'title_show' => true,
108
+ 'title_position' => 'outside',
109
+ 'transitions' => 'fade',
110
+ 'easings' => 'swing',
111
+ 'speeds' => 300,
112
+ 'change_speed' => 300,
113
+ 'change_fade' => 100,
114
+ 'padding' => 5,
115
+ 'margin' => 5,
116
+ 'video_width' => 1080,
117
+ 'video_height' => 720
118
+ ),
119
+ 'nivo' => array(
120
+ 'effect' => 'fade',
121
+ 'click_overlay_to_close' => true,
122
+ 'keyboard_nav' => true,
123
+ 'error_message' => 'The requested content cannot be loaded. Please try again later.'
124
+ ),
125
+ 'imagelightbox' => array(
126
+ 'animation_speed' => 250,
127
+ 'preload_next' => true,
128
+ 'enable_keyboard' => true,
129
+ 'quit_on_end' => false,
130
+ 'quit_on_image_click' => false,
131
+ 'quit_on_document_click' => true
132
+ )
133
+ ),
134
+ 'version' => '1.5.0'
135
+ );
136
+ public $options = array();
137
+ private static $_instance;
138
+
139
+ private function __clone() {}
140
 
141
+ private function __wakeup() {}
 
 
 
142
 
143
  /**
144
+ * Main Events Maker instance.
145
  */
146
+ public static function instance() {
147
+ if ( self::$_instance === null ) {
148
+ self::$_instance = new self();
149
+ }
150
+ return self::$_instance;
151
+ }
 
152
 
153
+ public function __construct() {
154
+ register_activation_hook( __FILE__, array( &$this, 'activate_multisite' ) );
155
+ register_deactivation_hook( __FILE__, array( &$this, 'deactivate_multisite' ) );
156
 
157
+ // change from older versions
158
+ $db_version = get_option( 'responsive_lightbox_version' );
159
 
160
+ if ( version_compare( ($db_version === false ? '1.0.0' : $db_version ), '1.0.5', '<' ) ) {
161
+ if ( ($array = get_option( 'rl_settings' )) !== false ) {
162
+ update_option( 'responsive_lightbox_settings', $array );
163
+ delete_option( 'rl_settings' );
164
  }
165
 
166
+ if ( ($array = get_option( 'rl_configuration' )) !== false ) {
167
+ update_option( 'responsive_lightbox_configuration', $array );
168
+ delete_option( 'rl_configuration' );
 
 
 
169
  }
170
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
171
 
172
+ // update plugin version
173
+ update_option( 'responsive_lightbox_version', $this->defaults['version'], '', 'no' );
174
 
175
+ $this->options['settings'] = array_merge( $this->defaults['settings'], (($array = get_option( 'responsive_lightbox_settings' )) === false ? array() : $array ) );
 
 
 
 
176
 
177
+ // for multi arrays we have to merge them separately
178
+ $db_conf_opts = ( ( $base = get_option( 'responsive_lightbox_configuration' ) ) === false ? array() : $base );
179
 
180
+ foreach ( $this->defaults['configuration'] as $script => $settings ) {
181
+ $this->options['configuration'][$script] = array_merge( $settings, (isset( $db_conf_opts[$script] ) ? $db_conf_opts[$script] : array() ) );
182
+ }
183
 
184
+ // actions
185
+ add_action( 'plugins_loaded', array( &$this, 'load_textdomain' ) );
186
+ add_action( 'wp_enqueue_scripts', array( &$this, 'front_scripts_styles' ) );
187
+ add_action( 'admin_enqueue_scripts', array( &$this, 'admin_scripts_styles' ) );
 
188
 
189
+ // filters
190
+ add_filter( 'plugin_action_links', array( &$this, 'plugin_settings_link' ), 10, 2 );
191
+ }
192
 
193
+ public function activate_single() {
194
+ add_option( 'responsive_lightbox_settings', $this->defaults['settings'], '', 'no' );
195
+ add_option( 'responsive_lightbox_configuration', $this->defaults['configuration'], '', 'no' );
196
+ add_option( 'responsive_lightbox_version', $this->defaults['version'], '', 'no' );
197
+ }
198
+
199
+ public function deactivate_single( $multi = false ) {
200
+ if ( $multi === true ) {
201
+ $options = get_option( 'responsive_lightbox_settings' );
202
+ $check = $options['deactivation_delete'];
203
+ } else
204
+ $check = $this->options['settings']['deactivation_delete'];
205
 
206
+ if ( $check === true ) {
207
+ delete_option( 'responsive_lightbox_settings' );
208
+ delete_option( 'responsive_lightbox_configuration' );
209
+ delete_option( 'responsive_lightbox_version' );
210
+ }
211
+ }
212
 
213
+ public function activate_multisite( $networkwide ) {
214
+ if ( is_multisite() && $networkwide ) {
215
+ global $wpdb;
216
 
217
+ $activated_blogs = array();
218
+ $current_blog_id = $wpdb->blogid;
219
+ $blogs_ids = $wpdb->get_col( $wpdb->prepare( 'SELECT blog_id FROM ' . $wpdb->blogs, '' ) );
 
 
220
 
221
+ foreach ( $blogs_ids as $blog_id ) {
222
+ switch_to_blog( $blog_id );
223
+ $this->activate_single();
224
+ $activated_blogs[] = (int) $blog_id;
225
  }
226
 
227
+ switch_to_blog( $current_blog_id );
228
+ update_site_option( 'responsive_lightbox_activated_blogs', $activated_blogs, array() );
229
+ } else
230
+ $this->activate_single();
231
+ }
232
 
233
+ public function deactivate_multisite( $networkwide ) {
234
+ if ( is_multisite() && $networkwide ) {
235
+ global $wpdb;
 
236
 
237
+ $current_blog_id = $wpdb->blogid;
238
+ $blogs_ids = $wpdb->get_col( $wpdb->prepare( 'SELECT blog_id FROM ' . $wpdb->blogs, '' ) );
 
239
 
240
+ if ( ($activated_blogs = get_site_option( 'responsive_lightbox_activated_blogs', false, false )) === false )
241
+ $activated_blogs = array();
 
242
 
243
+ foreach ( $blogs_ids as $blog_id ) {
244
+ switch_to_blog( $blog_id );
245
+ $this->deactivate_single( true );
246
 
247
+ if ( in_array( (int) $blog_id, $activated_blogs, true ) )
248
+ unset( $activated_blogs[array_search( $blog_id, $activated_blogs )] );
 
249
  }
250
 
251
+ switch_to_blog( $current_blog_id );
252
+ update_site_option( 'responsive_lightbox_activated_blogs', $activated_blogs );
253
+ } else
254
+ $this->deactivate_single();
 
255
  }
256
 
257
+ /**
258
+ * Load textdomain
259
+ */
260
+ public function load_textdomain() {
261
+ load_plugin_textdomain( 'responsive-lightbox', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
262
  }
263
 
264
+ /**
265
+ * Add links to Support Forum
266
+ */
267
+ public function plugin_extend_links( $links, $file ) {
268
+ if ( ! current_user_can( 'install_plugins' ) )
269
+ return $links;
270
 
271
+ $plugin = plugin_basename( __FILE__ );
 
 
 
272
 
273
+ if ( $file == $plugin ) {
274
+ return array_merge(
275
+ $links, array( sprintf( '<a href="http://www.dfactory.eu/support/forum/responsive-lightbox/" target="_blank">%s</a>', __( 'Support', 'responsive-lightbox' ) ) )
276
+ );
277
  }
278
 
279
+ return $links;
280
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
281
 
282
+ /**
283
+ * Add links to Settings page
284
+ */
285
+ public function plugin_settings_link( $links, $file ) {
286
+ if ( ! is_admin() || ! current_user_can( 'manage_options' ) )
287
+ return $links;
288
 
289
+ static $plugin;
 
290
 
291
+ $plugin = plugin_basename( __FILE__ );
292
 
293
+ if ( $file == $plugin ) {
294
+ $settings_link = sprintf( '<a href="%s">%s</a>', admin_url( 'options-general.php' ) . '?page=responsive-lightbox', __( 'Settings', 'responsive-lightbox' ) );
295
+ array_unshift( $links, $settings_link );
296
+ }
297
 
298
+ return $links;
 
 
 
 
 
299
  }
300
+
301
+ /**
302
+ * Enqueue admin scripts and styles
303
+ */
304
  public function admin_scripts_styles( $page ) {
305
  if ( $page === 'settings_page_responsive-lightbox' ) {
306
+
307
  wp_register_script(
308
+ 'responsive-lightbox-admin', plugins_url( 'js/admin.js', __FILE__ ), array( 'jquery', 'wp-color-picker' )
309
  );
 
310
  wp_enqueue_script( 'responsive-lightbox-admin' );
311
 
312
  wp_localize_script(
313
  'responsive-lightbox-admin', 'rlArgs', array(
314
  'resetSettingsToDefaults' => __( 'Are you sure you want to reset these settings to defaults?', 'responsive-lightbox' ),
315
+ 'resetScriptToDefaults' => __( 'Are you sure you want to reset this script settings to defaults?', 'responsive-lightbox' ),
 
 
316
  )
317
  );
318
 
321
  wp_register_style(
322
  'responsive-lightbox-admin', plugins_url( 'css/admin.css', __FILE__ )
323
  );
 
324
  wp_enqueue_style( 'responsive-lightbox-admin' );
 
 
 
 
 
 
325
  }
326
  }
327
 
328
+ /**
329
+ * Enqueue frontend scripts and styles
330
+ */
331
  public function front_scripts_styles() {
332
  $args = apply_filters( 'rl_lightbox_args', array(
333
  'script' => $this->options['settings']['script'],
394
  'hideBars' => $this->get_boolean_value( $this->options['configuration']['swipebox']['hide_bars'] ),
395
  'hideBarsDelay' => $this->options['configuration']['swipebox']['hide_bars_delay'],
396
  'videoMaxWidth' => $this->options['configuration']['swipebox']['video_max_width'],
397
+ 'useSVG' => ! $this->options['configuration']['swipebox']['force_png_icons'],
398
  'loopAtEnd' => $this->get_boolean_value( $this->options['configuration']['swipebox']['loop_at_end'] )
399
  )
400
  );
514
  return ( $option === true ? 1 : 0 );
515
  }
516
 
517
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
518
 
519
+ /**
520
+ * Initialise Responsive Lightbox.
521
+ */
522
+ function Responsive_Lightbox() {
523
+ static $instance;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
524
 
525
+ // first call to instance() initializes the plugin
526
+ if ( $instance === null || ! ($instance instanceof Responsive_Lightbox) ) {
527
+ $instance = Responsive_Lightbox::instance();
528
  }
529
 
530
+ return $instance;
531
  }
532
 
533
+ $responsive_lightbox = Responsive_Lightbox();