PluginProbe
Photonic Gallery & Lightbox for Flickr, SmugMug & Others / 3.36
Photonic Gallery & Lightbox for Flickr, SmugMug & Others v3.36
3.36 3.35 3.34 3.33 2.19 2.20 2.21 2.22 2.23 2.24 2.25 2.26 2.27 2.28 2.29 2.30 2.31 2.32 2.33 2.34 2.40 2.41 2.42 2.43 2.44 All 141 releases
photonic / Options / Lightbox.php

Lightbox.php in Photonic Gallery & Lightbox for Flickr, SmugMug & Others 3.36, at Options/Lightbox.php

538 lines 17.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Photonic_Plugin\Options;
4
5 class Lightbox extends Option_Tab {
6 protected function __construct() {
7 $this->options = [
8 [
9 'name' => 'Common',
10 'desc' => 'Control settings for all Lightboxes',
11 'category' => 'lb-settings',
12 'type' => 'section',
13 ],
14
15 [
16 'name' => 'Autoplay mode',
17 'desc' => "Selecting this will make your lightbox launch in an autoplay mode automatically upon clicking (See <a href='https://aquoid.com/plugins/photonic/third-party-lightboxes/' target='_blank'>list of supported lightboxes</a>).",
18 'id' => 'slideshow_mode',
19 'grouping' => 'lb-settings',
20 'type' => 'checkbox',
21 ],
22
23 [
24 'name' => 'Autoplay mode interval',
25 'desc' => 'If autoplay is on, this will control the interval between slides.',
26 'id' => 'slideshow_interval',
27 'grouping' => 'lb-settings',
28 'type' => 'text',
29 'hint' => 'Please enter a time in milliseconds',
30 ],
31
32 [
33 'name' => 'No Looping',
34 'desc' => 'Selecting this will prevent the lightbox from looping back to the start when it reaches the end. Looping can be controlled only in lightboxes that have a setting for it.',
35 'id' => 'lightbox_no_loop',
36 'grouping' => 'lb-settings',
37 'type' => 'checkbox',
38 ],
39
40 [
41 'name' => "Deep Linking",
42 'desc' => "If enabled, Photonic will generate a unique URL when an photo's thumbnail is clicked.",
43 'id' => 'deep_linking',
44 'grouping' => 'lb-settings',
45 'type' => 'select',
46 'options' => [
47 'none' => "No deeplinking",
48 'no-history' => "Enable deeplinking, but don't add links for clicked images to browser history",
49 'yes-history' => "Enable deeplinking, and add links for clicked images to browser history",
50 ],
51 ],
52
53 [
54 'name' => "Social media integration",
55 'desc' => "If deep linking is enabled, Photonic shows social media buttons on the lightbox to facilitate sharing. Select this option to disable social sharing.",
56 'id' => 'social_media',
57 'grouping' => 'lb-settings',
58 'type' => 'checkbox',
59 ],
60
61 [
62 'name' => 'Colorbox',
63 'desc' => 'Colorbox Settings',
64 'category' => 'lb-cb-settings',
65 'type' => 'section',
66 ],
67
68 [
69 'name' => 'Colorbox Theme',
70 'desc' => "Colorbox lets you pick one of the following themes. See examples <a href='https://jacklmoore.com/colorbox/' target='_blank'>here</a>:",
71 'id' => 'cbox_theme',
72 'grouping' => 'lb-cb-settings',
73 'type' => 'select',
74 'options' => [
75 '1' => 'Default',
76 '2' => 'Style 2',
77 '3' => 'Style 3',
78 '4' => 'Style 4',
79 '5' => 'Style 5',
80 ]
81 ],
82
83 [
84 'name' => 'Transition effect',
85 'desc' => 'Specify the transition effect to be used when Colorbox is displaying a picture',
86 'id' => 'cb_transition_effect',
87 'grouping' => 'lb-cb-settings',
88 'type' => 'select',
89 'options' => [
90 'elastic' => 'Elastic',
91 'fade' => 'Fade',
92 'none' => 'None',
93 ]
94 ],
95
96 [
97 'name' => 'Transition speed',
98 'desc' => 'Specify the speed for the above transition effect, in seconds',
99 'id' => 'cb_transition_speed',
100 'grouping' => 'lb-cb-settings',
101 'type' => 'text'
102 ],
103
104 [
105 'name' => 'Fancybox 1 / 2 / 3',
106 'desc' => 'Fancybox Settings',
107 'category' => 'lb-fb-settings',
108 'type' => 'section',
109 ],
110
111 [
112 'name' => "Position of title in FancyBox slideshow",
113 'desc' => "Fancybox lets you show the title of the image in different positions. Where do you want it?",
114 'id' => 'fbox_title_position',
115 'grouping' => 'lb-fb-settings',
116 'type' => 'select',
117 'options' => [
118 'outside' => "Outside the slide box",
119 'inside' => "Inside the slide box",
120 'over' => "Over the image in the slide box",
121 ]
122 ],
123
124 [
125 'name' => 'Fancybox3 Transition effect',
126 'desc' => 'Specify the transition effect to be used when Fancybox3 is displaying a picture.',
127 'id' => 'fb3_transition_effect',
128 'grouping' => 'lb-fb-settings',
129 'type' => 'select',
130 'options' => [
131 'fade' => 'Fade',
132 'slide' => 'Slide',
133 'circular' => 'Circular',
134 'tube' => 'Tube',
135 'zoom-in-out' => 'Zoom in and out',
136 'rotate' => 'Rotate',
137 ]
138 ],
139
140 [
141 'name' => 'Fancybox3 Transition duration',
142 'desc' => 'How fast or slow do you want the transition?',
143 'id' => 'fb3_transition_speed',
144 'grouping' => 'lb-fb-settings',
145 'type' => 'text',
146 'hint' => 'Integer, in milliseconds'
147 ],
148
149 [
150 'name' => "Fancybox3 - Hide Zoom Button",
151 'desc' => "The Zoom button is enabled by default. Select to hide it.",
152 'id' => 'fb3_disable_zoom',
153 'grouping' => 'lb-fb-settings',
154 'type' => 'checkbox'
155 ],
156
157 [
158 'name' => "Fancybox3 - Hide Slideshow Button",
159 'desc' => "The Slideshow button is enabled by default. Select to hide it.",
160 'id' => 'fb3_disable_slideshow',
161 'grouping' => 'lb-fb-settings',
162 'type' => 'checkbox'
163 ],
164
165 [
166 'name' => "Fancybox3 - Show FullScreen Button",
167 'desc' => "The full-screen button is disabled by default. Select to show it.",
168 'id' => 'fb3_show_fullscreen',
169 'grouping' => 'lb-fb-settings',
170 'type' => 'checkbox'
171 ],
172
173 [
174 'name' => "Fancybox3 - auto-start FullScreen",
175 'desc' => "Automatically launch Fancybox3 in FullScreen mode.",
176 'id' => 'enable_fb3_fullscreen',
177 'grouping' => 'lb-fb-settings',
178 'type' => 'checkbox'
179 ],
180
181 [
182 'name' => "Fancybox3 - Show Download Button",
183 'desc' => "The Download button is disabled by default. Select to show it.",
184 'id' => 'fb3_enable_download',
185 'grouping' => 'lb-fb-settings',
186 'type' => 'checkbox'
187 ],
188
189 [
190 'name' => "Fancybox3 - Hide Thumbnails Button",
191 'desc' => "The Thumbnails button is enabled by default. Select to hide it.",
192 'id' => 'fb3_hide_thumbs',
193 'grouping' => 'lb-fb-settings',
194 'type' => 'checkbox'
195 ],
196
197 [
198 'name' => "Fancybox3 - auto-open Thumbnails",
199 'desc' => "Automatically open Fancybox3 Thumbnails.",
200 'id' => 'enable_fb3_thumbnail',
201 'grouping' => 'lb-fb-settings',
202 'type' => 'checkbox'
203 ],
204
205 [
206 'name' => "Fancybox3 - Disable Right Click",
207 'desc' => "While this does not protect from truly determined users, it adds a deterrent for downloading.",
208 'id' => 'fb3_disable_right_click',
209 'grouping' => 'lb-fb-settings',
210 'type' => 'checkbox'
211 ],
212
213 [
214 'name' => 'Lightcase',
215 'desc' => 'Lightcase Settings',
216 'category' => 'lb-lc-settings',
217 'type' => 'section',
218 ],
219
220 [
221 'name' => 'Transition effect',
222 'desc' => 'Specify the transition effect to be used when Lightcase is displaying a picture. See demos <a href="https://cornel.bopp-art.com/lightcase/" target="_blank">here</a>.',
223 'id' => 'lc_transition_effect',
224 'grouping' => 'lb-lc-settings',
225 'type' => 'select',
226 'options' => [
227 'elastic' => 'Elastic',
228 'fade' => 'Fade',
229 'fadeInline' => 'Fade inline',
230 'scrollTop' => 'Scroll Top',
231 'scrollBottom' => 'Scroll Bottom',
232 'scrollLeft' => 'Scroll Left',
233 'scrollRight' => 'Scroll Right',
234 'scrollHorizontal' => 'Scroll Horizontal',
235 'scrollVertical' => 'Scroll Vertical',
236 'none' => 'None',
237 ]
238 ],
239
240 [
241 'name' => 'Transition speed-in',
242 'desc' => 'How fast or slow do you want the transition, going in?',
243 'id' => 'lc_transition_speed_in',
244 'grouping' => 'lb-lc-settings',
245 'type' => 'text',
246 'hint' => 'Integer, in milliseconds'
247 ],
248
249 [
250 'name' => 'Transition speed-out',
251 'desc' => 'How fast or slow do you want the transition, going out?',
252 'id' => 'lc_transition_speed_out',
253 'grouping' => 'lb-lc-settings',
254 'type' => 'text',
255 'hint' => 'Integer, in milliseconds'
256 ],
257
258 [
259 'name' => 'Flexible Sizes',
260 'desc' => 'By default Lightcase does not show your images at more than 800px&times;500px. Selecting this option will let it automatically adjust your image according to your screen size.',
261 'id' => 'lc_enable_shrink',
262 'grouping' => 'lb-lc-settings',
263 'type' => 'checkbox'
264 ],
265
266 [
267 'name' => 'LightGallery',
268 'desc' => 'LightGallery Settings',
269 'category' => 'lb-lg-settings',
270 'type' => 'section',
271 ],
272
273 [
274 'name' => 'Add Additional Transitions',
275 'desc' => 'LightGallery supports the "fade" and "slide" transition effects by default. Additional transitions from the dropdown below can be enabled by addition of a script (+39KB). See demos <a href="https://www.lightgalleryjs.com/demos/transitions/" target="_blank">here</a>.',
276 'id' => 'enable_lg_transitions',
277 'grouping' => 'lb-lg-settings',
278 'type' => 'checkbox'
279 ],
280
281 [
282 'name' => 'Transition effect',
283 'desc' => 'If the above is checked, specify the transition effect to be used when LightGallery is displaying a picture. See demos <a href="https://www.lightgalleryjs.com/demos/transitions/" target="_blank">here</a>.',
284 'id' => 'lg_transition_effect',
285 'grouping' => 'lb-lg-settings',
286 'type' => 'select',
287 'options' => [
288 'lg-slide' => 'lg-slide',
289 'lg-fade' => 'lg-fade',
290 'lg-zoom-in' => 'lg-zoom-in',
291 'lg-zoom-in-big' => 'lg-zoom-in-big',
292 'lg-zoom-out' => 'lg-zoom-out',
293 'lg-zoom-out-big' => 'lg-zoom-out-big',
294 'lg-zoom-in-out' => 'lg-zoom-in-out',
295 'lg-soft-zoom' => 'lg-soft-zoom',
296 'lg-scale-up' => 'lg-scale-up',
297 'lg-slide-circular' => 'lg-slide-circular',
298 'lg-slide-circular-vertical' => 'lg-slide-circular-vertical',
299 'lg-slide-vertical' => 'lg-slide-vertical',
300 'lg-slide-vertical-growth' => 'lg-slide-vertical-growth',
301 'lg-slide-skew-only' => 'lg-slide-skew-only',
302 'lg-slide-skew-only-rev' => 'lg-slide-skew-only-rev',
303 'lg-slide-skew-only-y' => 'lg-slide-skew-only-y',
304 'lg-slide-skew-only-y-rev' => 'lg-slide-skew-only-y-rev',
305 'lg-slide-skew' => 'lg-slide-skew',
306 'lg-slide-skew-rev' => 'lg-slide-skew-rev',
307 'lg-slide-skew-cross' => 'lg-slide-skew-cross',
308 'lg-slide-skew-cross-rev' => 'lg-slide-skew-cross-rev',
309 'lg-slide-skew-ver' => 'lg-slide-skew-ver',
310 'lg-slide-skew-ver-rev' => 'lg-slide-skew-ver-rev',
311 'lg-slide-skew-ver-cross' => 'lg-slide-skew-ver-cross',
312 'lg-slide-skew-ver-cross-rev' => 'lg-slide-skew-ver-cross-rev',
313 'lg-lollipop' => 'lg-lollipop',
314 'lg-lollipop-rev' => 'lg-lollipop-rev',
315 'lg-rotate' => 'lg-rotate',
316 'lg-rotate-rev' => 'lg-rotate-rev',
317 'lg-tube' => 'lg-tube',
318 ]
319 ],
320
321 [
322 'name' => 'Transition speed',
323 'desc' => 'How fast or slow do you want the transition to go?',
324 'id' => 'lg_transition_speed',
325 'grouping' => 'lb-lg-settings',
326 'type' => 'text',
327 'hint' => 'Integer, in milliseconds'
328 ],
329
330 [
331 'name' => "Add Autoplay",
332 'desc' => "Enable Lightgallery Autoplay capability (+3KB).",
333 'id' => 'enable_lg_autoplay',
334 'grouping' => 'lb-lg-settings',
335 'type' => 'checkbox'
336 ],
337
338 [
339 'name' => "Add Fullscreen",
340 'desc' => "Enable Lightgallery Fullscreen capability (+2KB).",
341 'id' => 'enable_lg_fullscreen',
342 'grouping' => 'lb-lg-settings',
343 'type' => 'checkbox'
344 ],
345
346 [
347 'name' => "Add Thumbnail",
348 'desc' => "Enable Lightgallery Thumbnails capability (+8KB).",
349 'id' => 'enable_lg_thumbnail',
350 'grouping' => 'lb-lg-settings',
351 'type' => 'checkbox'
352 ],
353
354 [
355 'name' => "Add Zoom",
356 'desc' => "Enable Lightgallery Zoom capability (+8KB).",
357 'id' => 'enable_lg_zoom',
358 'grouping' => 'lb-lg-settings',
359 'type' => 'checkbox'
360 ],
361
362 [
363 'name' => 'Disable download',
364 'desc' => 'Disable the download button that shows up by default for LightGallery',
365 'id' => 'disable_lg_download',
366 'grouping' => 'lb-lg-settings',
367 'type' => 'checkbox'
368 ],
369
370 [
371 'name' => 'Delay before hiding lightbox bars',
372 'desc' => 'Time to delay before hiding title and navigation bars',
373 'id' => 'lg_hide_bars_delay',
374 'grouping' => 'lb-lg-settings',
375 'type' => 'text',
376 'hint' => 'Integer, in milliseconds'
377 ],
378
379 [
380 'name' => 'Mobile: Show Controls',
381 'desc' => '<strong>On mobile devices:</strong> Show lightbox controls',
382 'id' => 'lg_mobile_show_controls',
383 'grouping' => 'lb-lg-settings',
384 'type' => 'checkbox',
385 ],
386
387 [
388 'name' => 'Mobile: Show Close',
389 'desc' => '<strong>On mobile devices:</strong> Show Close icon',
390 'id' => 'lg_mobile_show_close',
391 'grouping' => 'lb-lg-settings',
392 'type' => 'checkbox',
393 ],
394
395 [
396 'name' => 'Mobile: Show Download',
397 'desc' => '<strong>On mobile devices:</strong> Show Download button',
398 'id' => 'lg_mobile_show_download',
399 'grouping' => 'lb-lg-settings',
400 'type' => 'checkbox',
401 ],
402
403 [
404 'name' => 'PrettyPhoto',
405 'desc' => 'PrettyPhoto Settings',
406 'category' => 'lb-pp-settings',
407 'type' => 'section',
408 ],
409
410 [
411 'name' => "PrettyPhoto Theme",
412 'desc' => "PrettyPhoto lets you pick one of the following themes:",
413 'id' => 'pphoto_theme',
414 'grouping' => 'lb-pp-settings',
415 'type' => 'select',
416 'options' => [
417 'pp_default' => "Default",
418 'light_rounded' => "Light Rounded",
419 'dark_rounded' => "Dark Rounded",
420 'light_square' => "Light Square",
421 'dark_square' => "Dark Square",
422 'facebook' => "Facebook",
423 ]
424 ],
425
426 [
427 'name' => 'Transition speed',
428 'desc' => 'Specify the transition speed to be used when PrettyPhoto is displaying a picture',
429 'id' => 'pp_animation_speed',
430 'grouping' => 'lb-pp-settings',
431 'type' => 'select',
432 'options' => [
433 'fast' => 'Fast',
434 'slow' => 'Slow',
435 'normal' => 'Normal',
436 ]
437 ],
438
439 [
440 'name' => 'Spotlight',
441 'desc' => 'Spotlight Settings',
442 'category' => 'lb-sp-settings',
443 'type' => 'section',
444 ],
445
446 [
447 'name' => 'Show Download Button',
448 'desc' => "Show a button to allow downloads in the toolbar.",
449 'id' => 'sp_download',
450 'grouping' => 'lb-sp-settings',
451 'type' => 'checkbox'
452 ],
453
454 [
455 'name' => 'Autohide Toolbar',
456 'desc' => "Automatically hide the toolbar after a few seconds of inactivity.",
457 'id' => 'sp_hide_bars',
458 'grouping' => 'lb-sp-settings',
459 'type' => 'checkbox',
460 ],
461
462 [
463 'name' => 'Swipebox',
464 'desc' => 'Swipebox Settings',
465 'category' => 'lb-sb-settings',
466 'type' => 'section',
467 ],
468
469 [
470 'name' => 'Bars on Mobile',
471 'desc' => "Show title and navigation bars on mobile devices if Swipebox is the lightbox.",
472 'id' => 'enable_swipebox_mobile_bars',
473 'grouping' => 'lb-sb-settings',
474 'type' => 'checkbox'
475 ],
476
477 [
478 'name' => 'Close button on Mobile',
479 'desc' => 'Hide close button on mobile devices.',
480 'id' => 'sb_hide_mobile_close',
481 'grouping' => 'lb-sb-settings',
482 'type' => 'checkbox'
483 ],
484
485 [
486 'name' => 'Delay before hiding bars on Desktop',
487 'desc' => 'Time to delay before hiding title and navigation bars on desktop. Set to 0 to always show the bars',
488 'id' => 'sb_hide_bars_delay',
489 'grouping' => 'lb-sb-settings',
490 'type' => 'text',
491 'hint' => 'Integer, in milliseconds'
492 ],
493
494 [
495 'name' => 'VenoBox',
496 'desc' => 'VenoBox Settings',
497 'category' => 'lb-vb-settings',
498 'type' => 'section',
499 ],
500
501 [
502 'name' => 'Vertical Scroll',
503 'desc' => "VenoBox can show a vertical scroll for tall images, which is disabled in Photonic. Select this option to enable it.",
504 'id' => 'vb_display_vertical_scroll',
505 'grouping' => 'lb-vb-settings',
506 'type' => 'checkbox'
507 ],
508
509 [
510 'name' => 'Title Position',
511 'desc' => "Where do you want the title positioned?",
512 'id' => 'vb_title_position',
513 'grouping' => 'lb-vb-settings',
514 'type' => 'select',
515 'options' => [
516 'top' => "Top",
517 'bottom' => "Bottom",
518 ]
519 ],
520
521 [
522 'name' => 'Title Style',
523 'desc' => 'What title style would you prefer?',
524 'id' => 'vb_title_style',
525 'grouping' => 'lb-vb-settings',
526 'type' => 'select',
527 'options' => [
528 'block' => "Block",
529 'pill' => "Pill",
530 'transparent' => 'Transparent',
531 'bar' => 'Bar'
532 ]
533 ],
534
535 ];
536 }
537 }
538