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
← All changes | Options/Lightbox.php +413 -277 2.413.36 View file →
@@ -1,401 +1,537 @@
1 1 <?php
2 +
2 3 namespace Photonic_Plugin\Options;
3 4
4 5 class Lightbox extends Option_Tab {
5 - private static $instance;
6 -
7 - private function __construct() {
6 + protected function __construct() {
8 7 $this->options = [
9 - ['name' => 'Common',
10 - 'desc' => 'Control settings for all Lightboxes',
8 + [
9 + 'name' => 'Common',
10 + 'desc' => 'Control settings for all Lightboxes',
11 11 'category' => 'lb-settings',
12 - 'type' => 'section',],
12 + 'type' => 'section',
13 + ],
13 14
14 - ['name' => 'Autoplay mode',
15 - '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>).",
16 - 'id' => 'slideshow_mode',
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',
17 19 'grouping' => 'lb-settings',
18 - 'type' => 'checkbox',
20 + 'type' => 'checkbox',
19 21 ],
20 22
21 - ['name' => 'Autoplay mode interval',
22 - 'desc' => 'If autoplay is on, this will control the interval between slides.',
23 - 'id' => 'slideshow_interval',
23 + [
24 + 'name' => 'Autoplay mode interval',
25 + 'desc' => 'If autoplay is on, this will control the interval between slides.',
26 + 'id' => 'slideshow_interval',
24 27 'grouping' => 'lb-settings',
25 - 'type' => 'text',
26 - 'hint' => 'Please enter a time in milliseconds',
28 + 'type' => 'text',
29 + 'hint' => 'Please enter a time in milliseconds',
27 30 ],
28 31
29 - ['name' => 'No Looping',
30 - '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.',
31 - 'id' => 'lightbox_no_loop',
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',
32 36 'grouping' => 'lb-settings',
33 - 'type' => 'checkbox',
37 + 'type' => 'checkbox',
34 38 ],
35 39
36 - ['name' => "Deep Linking",
37 - 'desc' => "If enabled, Photonic will generate a unique URL when an photo's thumbnail is clicked.",
38 - 'id' => "deep_linking",
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',
39 44 'grouping' => 'lb-settings',
40 - 'type' => 'select',
41 - 'options' => [
42 - "none" => "No deeplinking",
43 - "no-history" => "Enable deeplinking, but don't add links for clicked images to browser history",
44 - "yes-history" => "Enable deeplinking, and add links for clicked images to browser history",
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",
45 50 ],
46 51 ],
47 52
48 - ['name' => "Social media integration",
49 - 'desc' => "If deep linking is enabled, Photonic shows social media buttons on the lightbox to facilitate sharing. Select this option to disable social sharing.",
50 - 'id' => "social_media",
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',
51 57 'grouping' => 'lb-settings',
52 - 'type' => 'checkbox',
58 + 'type' => 'checkbox',
53 59 ],
54 60
55 - ['name' => 'Colorbox',
56 - 'desc' => 'Colorbox Settings',
61 + [
62 + 'name' => 'Colorbox',
63 + 'desc' => 'Colorbox Settings',
57 64 'category' => 'lb-cb-settings',
58 - 'type' => 'section',],
65 + 'type' => 'section',
66 + ],
59 67
60 - ['name' => 'Colorbox Theme',
61 - 'desc' => "Colorbox lets you pick one of the following themes. See examples <a href='http://www.jacklmoore.com/colorbox/' target='_blank'>here</a>:",
62 - 'id' => 'cbox_theme',
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',
63 72 'grouping' => 'lb-cb-settings',
64 - 'type' => 'select',
65 - 'options' => [
66 - '1' => 'Default',
67 - '2' => 'Style 2',
68 - '3' => 'Style 3',
69 - '4' => 'Style 4',
70 - '5' => 'Style 5',
71 - 'theme' => 'Use a skin defined in your theme (requires the files to be present in the scripts/colorbox folder within your theme directory).',
73 + 'type' => 'select',
74 + 'options' => [
75 + '1' => 'Default',
76 + '2' => 'Style 2',
77 + '3' => 'Style 3',
78 + '4' => 'Style 4',
79 + '5' => 'Style 5',
72 80 ]
73 81 ],
74 82
75 - ['name' => 'Transition effect',
76 - 'desc' => 'Specify the transition effect to be used when Colorbox is displaying a picture',
77 - 'id' => 'cb_transition_effect',
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',
78 87 'grouping' => 'lb-cb-settings',
79 - 'type' => 'select',
80 - 'options' => [
88 + 'type' => 'select',
89 + 'options' => [
81 90 'elastic' => 'Elastic',
82 - 'fade' => 'Fade',
83 - 'none' => 'None',
91 + 'fade' => 'Fade',
92 + 'none' => 'None',
84 93 ]
85 94 ],
86 95
87 - ['name' => 'Transition speed',
88 - 'desc' => 'Specify the speed for the above transition effect, in milliseconds',
89 - 'id' => 'cb_transition_speed',
96 + [
97 + 'name' => 'Transition speed',
98 + 'desc' => 'Specify the speed for the above transition effect, in seconds',
99 + 'id' => 'cb_transition_speed',
90 100 'grouping' => 'lb-cb-settings',
91 - 'type' => 'text'
101 + 'type' => 'text'
92 102 ],
93 103
94 - ['name' => 'Fancybox 1 / 2 / 3',
95 - 'desc' => 'Fancybox Settings',
104 + [
105 + 'name' => 'Fancybox 1 / 2 / 3',
106 + 'desc' => 'Fancybox Settings',
96 107 'category' => 'lb-fb-settings',
97 - 'type' => 'section',],
108 + 'type' => 'section',
109 + ],
98 110
99 - ['name' => "Position of title in FancyBox slideshow",
100 - 'desc' => "Fancybox lets you show the title of the image in different positions. Where do you want it?",
101 - 'id' => "fbox_title_position",
102 - 'grouping' => "lb-fb-settings",
103 - 'type' => 'select',
104 - 'options' => [
105 - "outside" => "Outside the slide box",
106 - "inside" => "Inside the slide box",
107 - "over" => "Over the image in the slide box",
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",
108 121 ]
109 122 ],
110 123
111 - ['name' => 'Fancybox3 Transition effect',
112 - 'desc' => 'Specify the transition effect to be used when Fancybox3 is displaying a picture.',
113 - 'id' => 'fb3_transition_effect',
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',
114 128 'grouping' => 'lb-fb-settings',
115 - 'type' => 'select',
116 - 'options' => [
117 - 'fade' => 'Fade',
118 - 'slide' => 'Slide',
119 - 'circular' => 'Circular',
120 - 'tube' => 'Tube',
129 + 'type' => 'select',
130 + 'options' => [
131 + 'fade' => 'Fade',
132 + 'slide' => 'Slide',
133 + 'circular' => 'Circular',
134 + 'tube' => 'Tube',
121 135 'zoom-in-out' => 'Zoom in and out',
122 - 'rotate' => 'Rotate',
136 + 'rotate' => 'Rotate',
123 137 ]
124 138 ],
125 139
126 - ['name' => 'Fancybox3 Transition duration',
127 - 'desc' => 'How fast or slow do you want the transition?',
128 - 'id' => "fb3_transition_speed",
140 + [
141 + 'name' => 'Fancybox3 Transition duration',
142 + 'desc' => 'How fast or slow do you want the transition?',
143 + 'id' => 'fb3_transition_speed',
129 144 'grouping' => 'lb-fb-settings',
130 - 'type' => 'text',
131 - 'hint' => 'Integer, in milliseconds'],
145 + 'type' => 'text',
146 + 'hint' => 'Integer, in milliseconds'
147 + ],
132 148
133 - ['name' => "Fancybox3 - Hide Zoom Button",
134 - 'desc' => "The Zoom button is enabled by default. Select to hide it.",
135 - 'id' => "fb3_disable_zoom",
136 - 'grouping' => "lb-fb-settings",
137 - 'type' => 'checkbox'
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'
138 155 ],
139 156
140 - ['name' => "Fancybox3 - Hide Slideshow Button",
141 - 'desc' => "The Slideshow button is enabled by default. Select to hide it.",
142 - 'id' => "fb3_disable_slideshow",
143 - 'grouping' => "lb-fb-settings",
144 - 'type' => 'checkbox'
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'
145 163 ],
146 164
147 - ['name' => "Fancybox3 - Show FullScreen Button",
148 - 'desc' => "The full-screen button is disabled by default. Select to show it.",
149 - 'id' => "fb3_show_fullscreen",
150 - 'grouping' => "lb-fb-settings",
151 - 'type' => 'checkbox'
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'
152 171 ],
153 172
154 - ['name' => "Fancybox3 - auto-start FullScreen",
155 - 'desc' => "Automatically launch Fancybox3 in FullScreen mode.",
156 - 'id' => "enable_fb3_fullscreen",
157 - 'grouping' => "lb-fb-settings",
158 - 'type' => 'checkbox'
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'
159 179 ],
160 180
161 - ['name' => "Fancybox3 - Show Download Button",
162 - 'desc' => "The Download button is disabled by default. Select to show it.",
163 - 'id' => "fb3_enable_download",
164 - 'grouping' => "lb-fb-settings",
165 - 'type' => 'checkbox'
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'
166 187 ],
167 188
168 - ['name' => "Fancybox3 - Hide Thumbnails Button",
169 - 'desc' => "The Thumbnails button is enabled by default. Select to hide it.",
170 - 'id' => "fb3_hide_thumbs",
171 - 'grouping' => "lb-fb-settings",
172 - 'type' => 'checkbox'
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'
173 195 ],
174 196
175 - ['name' => "Fancybox3 - auto-open Thumbnails",
176 - 'desc' => "Automatically open Fancybox3 Thumbnails.",
177 - 'id' => "enable_fb3_thumbnail",
178 - 'grouping' => "lb-fb-settings",
179 - 'type' => 'checkbox'
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'
180 203 ],
181 204
182 - ['name' => "Fancybox3 - Disable Right Click",
183 - 'desc' => "While this does not protect from truly determined users, it adds a deterrent for downloading.",
184 - 'id' => "fb3_disable_right_click",
185 - 'grouping' => "lb-fb-settings",
186 - 'type' => 'checkbox'
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'
187 211 ],
188 212
189 - ['name' => 'Lightcase',
190 - 'desc' => 'Lightcase Settings',
213 + [
214 + 'name' => 'Lightcase',
215 + 'desc' => 'Lightcase Settings',
191 216 'category' => 'lb-lc-settings',
192 - 'type' => 'section',],
217 + 'type' => 'section',
218 + ],
193 219
194 - ['name' => 'Transition effect',
195 - 'desc' => 'Specify the transition effect to be used when Lightcase is displaying a picture. See demos <a href="http://cornel.bopp-art.com/lightcase/" target="_blank">here</a>.',
196 - 'id' => 'lc_transition_effect',
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',
197 224 'grouping' => 'lb-lc-settings',
198 - 'type' => 'select',
199 - 'options' => [
200 - 'elastic' => 'Elastic',
201 - 'fade' => 'Fade',
202 - 'fadeInline' => 'Fade inline',
203 - 'scrollTop' => 'Scroll Top',
204 - 'scrollBottom' => 'Scroll Bottom',
205 - 'scrollLeft' => 'Scroll Left',
206 - 'scrollRight' => 'Scroll Right',
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',
207 234 'scrollHorizontal' => 'Scroll Horizontal',
208 - 'scrollVertical' => 'Scroll Vertical',
209 - 'none' => 'None',
235 + 'scrollVertical' => 'Scroll Vertical',
236 + 'none' => 'None',
210 237 ]
211 238 ],
212 239
213 - ['name' => 'Transition speed-in',
214 - 'desc' => 'How fast or slow do you want the transition, going in?',
215 - 'id' => "lc_transition_speed_in",
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',
216 244 'grouping' => 'lb-lc-settings',
217 - 'type' => 'text',
218 - 'hint' => 'Integer, in milliseconds'],
245 + 'type' => 'text',
246 + 'hint' => 'Integer, in milliseconds'
247 + ],
219 248
220 - ['name' => 'Transition speed-out',
221 - 'desc' => 'How fast or slow do you want the transition, going out?',
222 - 'id' => "lc_transition_speed_out",
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',
223 253 'grouping' => 'lb-lc-settings',
224 - 'type' => 'text',
225 - 'hint' => 'Integer, in milliseconds'],
254 + 'type' => 'text',
255 + 'hint' => 'Integer, in milliseconds'
256 + ],
226 257
227 - ['name' => 'Flexible Sizes',
228 - '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.',
229 - 'id' => "lc_enable_shrink",
230 - 'grouping' => "lb-lc-settings",
231 - 'type' => 'checkbox'
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'
232 264 ],
233 265
234 - ['name' => 'LightGallery',
235 - 'desc' => 'LightGallery Settings',
266 + [
267 + 'name' => 'LightGallery',
268 + 'desc' => 'LightGallery Settings',
236 269 'category' => 'lb-lg-settings',
237 - 'type' => 'section',],
270 + 'type' => 'section',
271 + ],
238 272
239 - ['name' => 'Add Additional Transitions',
240 - '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="http://sachinchoolur.github.io/lightGallery/demos/transitions.html" target="_blank">here</a>.',
241 - 'id' => "enable_lg_transitions",
242 - 'grouping' => "lb-lg-settings",
243 - 'type' => 'checkbox'
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'
244 279 ],
245 280
246 - ['name' => 'Transition effect',
247 - 'desc' => 'If the above is checked, specify the transition effect to be used when LightGallery is displaying a picture. See demos <a href="http://sachinchoolur.github.io/lightGallery/demos/transitions.html" target="_blank">here</a>.',
248 - 'id' => 'lg_transition_effect',
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',
249 285 'grouping' => 'lb-lg-settings',
250 - 'type' => 'select',
251 - 'options' => [
252 - 'lg-slide' => 'lg-slide',
253 - 'lg-fade' => 'lg-fade',
254 - 'lg-zoom-in' => 'lg-zoom-in',
255 - 'lg-zoom-in-big' => 'lg-zoom-in-big',
256 - 'lg-zoom-out' => 'lg-zoom-out',
257 - 'lg-zoom-out-big' => 'lg-zoom-out-big',
258 - 'lg-zoom-in-out' => 'lg-zoom-in-out',
259 - 'lg-soft-zoom' => 'lg-soft-zoom',
260 - 'lg-scale-up' => 'lg-scale-up',
261 - 'lg-slide-circular' => 'lg-slide-circular',
262 - 'lg-slide-circular-vertical' => 'lg-slide-circular-vertical',
263 - 'lg-slide-vertical' => 'lg-slide-vertical',
264 - 'lg-slide-vertical-growth' => 'lg-slide-vertical-growth',
265 - 'lg-slide-skew-only' => 'lg-slide-skew-only',
266 - 'lg-slide-skew-only-rev' => 'lg-slide-skew-only-rev',
267 - 'lg-slide-skew-only-y' => 'lg-slide-skew-only-y',
268 - 'lg-slide-skew-only-y-rev' => 'lg-slide-skew-only-y-rev',
269 - 'lg-slide-skew' => 'lg-slide-skew',
270 - 'lg-slide-skew-rev' => 'lg-slide-skew-rev',
271 - 'lg-slide-skew-cross' => 'lg-slide-skew-cross',
272 - 'lg-slide-skew-cross-rev' => 'lg-slide-skew-cross-rev',
273 - 'lg-slide-skew-ver' => 'lg-slide-skew-ver',
274 - 'lg-slide-skew-ver-rev' => 'lg-slide-skew-ver-rev',
275 - 'lg-slide-skew-ver-cross' => 'lg-slide-skew-ver-cross',
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',
276 312 'lg-slide-skew-ver-cross-rev' => 'lg-slide-skew-ver-cross-rev',
277 - 'lg-lollipop' => 'lg-lollipop',
278 - 'lg-lollipop-rev' => 'lg-lollipop-rev',
279 - 'lg-rotate' => 'lg-rotate',
280 - 'lg-rotate-rev' => 'lg-rotate-rev',
281 - 'lg-tube' => 'lg-tube',
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',
282 318 ]
283 319 ],
284 320
285 - ['name' => 'Transition speed',
286 - 'desc' => 'How fast or slow do you want the transition to go?',
287 - 'id' => "lg_transition_speed",
321 + [
322 + 'name' => 'Transition speed',
323 + 'desc' => 'How fast or slow do you want the transition to go?',
324 + 'id' => 'lg_transition_speed',
288 325 'grouping' => 'lb-lg-settings',
289 - 'type' => 'text',
290 - 'hint' => 'Integer, in milliseconds'],
326 + 'type' => 'text',
327 + 'hint' => 'Integer, in milliseconds'
328 + ],
291 329
292 - ['name' => "Add Autoplay",
293 - 'desc' => "Enable Lightgallery Autoplay capability (+3KB).",
294 - 'id' => "enable_lg_autoplay",
295 - 'grouping' => "lb-lg-settings",
296 - 'type' => 'checkbox'
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'
297 336 ],
298 337
299 - ['name' => "Add Fullscreen",
300 - 'desc' => "Enable Lightgallery Fullscreen capability (+2KB).",
301 - 'id' => "enable_lg_fullscreen",
302 - 'grouping' => "lb-lg-settings",
303 - 'type' => 'checkbox'
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'
304 344 ],
305 345
306 - ['name' => "Add Thumbnail",
307 - 'desc' => "Enable Lightgallery Thumbnails capability (+8KB).",
308 - 'id' => "enable_lg_thumbnail",
309 - 'grouping' => "lb-lg-settings",
310 - 'type' => 'checkbox'
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'
311 352 ],
312 353
313 - ['name' => "Add Zoom",
314 - 'desc' => "Enable Lightgallery Zoom capability (+8KB).",
315 - 'id' => "enable_lg_zoom",
316 - 'grouping' => "lb-lg-settings",
317 - 'type' => 'checkbox'
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'
318 360 ],
319 361
320 - ['name' => 'Disable download',
321 - 'desc' => 'Disable the download button that shows up by default for LightGallery',
322 - 'id' => "disable_lg_download",
323 - 'grouping' => "lb-lg-settings",
324 - 'type' => 'checkbox'
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'
325 368 ],
326 369
327 - ['name' => 'Delay before hiding lightbox bars',
328 - 'desc' => 'Time to delay before hiding title and navigation bars',
329 - 'id' => "lg_hide_bars_delay",
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',
330 374 'grouping' => 'lb-lg-settings',
331 - 'type' => 'text',
332 - 'hint' => 'Integer, in milliseconds'],
375 + 'type' => 'text',
376 + 'hint' => 'Integer, in milliseconds'
377 + ],
333 378
334 - ['name' => 'PrettyPhoto',
335 - 'desc' => 'PrettyPhoto Settings',
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',
336 406 'category' => 'lb-pp-settings',
337 - 'type' => 'section',],
407 + 'type' => 'section',
408 + ],
338 409
339 - ['name' => "PrettyPhoto Theme",
340 - 'desc' => "PrettyPhoto lets you pick one of the following themes:",
341 - 'id' => "pphoto_theme",
342 - 'grouping' => "lb-pp-settings",
343 - 'type' => 'select',
344 - 'options' => [
345 - "pp_default" => "Default",
346 - "light_rounded" => "Light Rounded",
347 - "dark_rounded" => "Dark Rounded",
348 - "light_square" => "Light Square",
349 - "dark_square" => "Dark Square",
350 - "facebook" => "Facebook",
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",
351 423 ]
352 424 ],
353 425
354 - ['name' => 'Transition speed',
355 - 'desc' => 'Specify the transition speed to be used when PrettyPhoto is displaying a picture',
356 - 'id' => 'pp_animation_speed',
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',
357 430 'grouping' => 'lb-pp-settings',
358 - 'type' => 'select',
359 - 'options' => [
360 - 'fast' => 'Fast',
361 - 'slow' => 'Slow',
431 + 'type' => 'select',
432 + 'options' => [
433 + 'fast' => 'Fast',
434 + 'slow' => 'Slow',
362 435 'normal' => 'Normal',
363 436 ]
364 437 ],
365 438
366 - ['name' => 'Swipebox',
367 - 'desc' => 'Swipebox Settings',
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',
368 465 'category' => 'lb-sb-settings',
369 - 'type' => 'section',],
466 + 'type' => 'section',
467 + ],
370 468
371 - ['name' => 'Bars on Mobile',
372 - 'desc' => "Show title and navigation bars on mobile devices if Swipebox is the lightbox.",
373 - 'id' => "enable_swipebox_mobile_bars",
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',
374 473 'grouping' => 'lb-sb-settings',
375 - 'type' => 'checkbox'
474 + 'type' => 'checkbox'
376 475 ],
377 476
378 - ['name' => 'Close button on Mobile',
379 - 'desc' => 'Hide close button on mobile devices.',
380 - 'id' => 'sb_hide_mobile_close',
477 + [
478 + 'name' => 'Close button on Mobile',
479 + 'desc' => 'Hide close button on mobile devices.',
480 + 'id' => 'sb_hide_mobile_close',
381 481 'grouping' => 'lb-sb-settings',
382 - 'type' => 'checkbox'
482 + 'type' => 'checkbox'
383 483 ],
384 484
385 - ['name' => 'Delay before hiding bars on Desktop',
386 - 'desc' => 'Time to delay before hiding title and navigation bars on desktop. Set to 0 to always show the bars',
387 - 'id' => "sb_hide_bars_delay",
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',
388 489 'grouping' => 'lb-sb-settings',
389 - 'type' => 'text',
390 - 'hint' => 'Integer, in milliseconds'],
490 + 'type' => 'text',
491 + 'hint' => 'Integer, in milliseconds'
492 + ],
391 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 +
392 535 ];
393 - }
394 -
395 - public static function get_instance() {
396 - if (self::$instance == null) {
397 - self::$instance = new Lightbox();
398 - }
399 - return self::$instance;
400 536 }
401 537 }