PluginProbe
Photonic Gallery & Lightbox for Flickr, SmugMug & Others / 2.34
Photonic Gallery & Lightbox for Flickr, SmugMug & Others v2.34
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 / admin / flow / Photonic_Flow_Fields.php

Photonic_Flow_Fields.php in Photonic Gallery & Lightbox for Flickr, SmugMug & Others 2.34, at admin/flow/Photonic_Flow_Fields.php

1,736 lines 72.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Contains the fields used by the gallery builder. Cannot be overridden by a theme file
4 * Screen 1: Provider selection: Pick from Flickr, Google Photos etc.
5 * Screen 2: Display Type selection; Input: Provider. Pick from: Single Photo
6 * Screen 3: Gallery object selection; input: Display Type
7 * Screen 4: Layout selection; input: Gallery & Display Type
8 * Screen 5: Layout configuration; Set <code>count</code>, <code>more</code> etc.
9 * Screen 6: Final shortcode display
10 *
11 * @package Photonic
12 * @subpackage Flow
13 * @since 2.00
14 */
15 class Photonic_Flow_Fields {
16 var $flow_options, $layout_options, $column_options, $allowed_image_sizes, $default_under, $default_from_settings;
17 function __construct() {
18 $this->layout_options = [
19 'square' => esc_html__('Square Grid', 'photonic'),
20 'circle' => esc_html__('Circular Icon Grid', 'photonic'),
21 'random' => esc_html__('Justified Grid', 'photonic'),
22 'masonry' => esc_html__('Masonry', 'photonic'),
23 'mosaic' => esc_html__('Mosaic', 'photonic'),
24 'slideshow' => esc_html__('Slideshow', 'photonic'),
25 ];
26
27 $this->column_options = [
28 'desc' => esc_html__('Number of columns in output', 'photonic'),
29 'type' => 'select',
30 'options' => [
31 '' => '',
32 'auto' => esc_html__('Automatic (Photonic calculates the columns)', 'photonic'),
33 '1' => 1,
34 '2' => 2,
35 '3' => 3,
36 '4' => 4,
37 '5' => 5,
38 '6' => 6,
39 '7' => 7,
40 '8' => 8,
41 '9' => 9,
42 '10' => 10,
43 '11' => 11,
44 '12' => 12,
45 '13' => 13,
46 '14' => 14,
47 '15' => 15,
48 '16' => 16,
49 '17' => 17,
50 '18' => 18,
51 '19' => 19,
52 '20' => 20,
53 ]
54 ];
55
56 $this->default_under = esc_html__('Default settings can be configured under: %s', 'photonic');
57 $this->default_from_settings = esc_html__('Default from settings', 'photonic');
58
59 $this->set_allowed_image_sizes();
60 $this->set_options();
61 }
62
63 private function set_options() {
64 global $photonic_thumbnail_style, $photonic_enable_popup,
65 $photonic_flickr_media, $photonic_smug_media, $photonic_google_media, $photonic_zenfolio_media, $photonic_instagram_media,
66 $photonic_smug_title_caption, $photonic_zenfolio_title_caption, $photonic_flickr_title_caption;
67 $this->flow_options = [
68 'screen-1' => ['wp', 'flickr', 'picasa', 'google', 'smugmug', 'zenfolio', 'instagram'],
69 'screen-2' => [
70 'wp' => [
71 'header' => esc_html__('Choose Type of Gallery', 'photonic'),
72 'display' => [
73 'display_type' => [
74 'desc' => esc_html__('What do you want to show?', 'photonic'),
75 'type' => 'select',
76 'options' => [
77 '' => '',
78 'current-post' => esc_html__('Gallery attached to the current post', 'photonic'),
79 'multi-photo' => esc_html__('Photos from Media Library', 'photonic'),
80 ],
81 'req' => 1,
82 ],
83 ],
84 ],
85 'flickr' => [
86 'header' => esc_html__('Choose Type of Gallery', 'photonic'),
87 'display' => [
88 'kind' => [
89 'type' => 'field_list',
90 'list_type' => 'sequence',
91 'list' => [
92 'display_type' => [
93 'desc' => esc_html__('What do you want to show?', 'photonic'),
94 'type' => 'select',
95 'options' => [
96 '' => '',
97 'single-photo' => esc_html__('A Single Photo', 'photonic'),
98 'multi-photo' => esc_html__('Multiple Photos', 'photonic'),
99 'album-photo' => esc_html__('Photos from an Album / Photoset', 'photonic'),
100 'gallery-photo' => esc_html__('Photos from a Gallery', 'photonic'),
101 'multi-album' => esc_html__('Multiple Albums', 'photonic'),
102 'multi-gallery' => esc_html__('Multiple Galleries', 'photonic'),
103 'collection' => esc_html__('Albums from a single collection', 'photonic'),
104 'collections' => esc_html__('Multiple collections', 'photonic'),
105 ],
106 'req' => 1,
107 ],
108 'for' => [
109 'desc' => esc_html__('For whom?', 'photonic'),
110 'type' => 'radio',
111 'options' => [
112 'current' => sprintf(esc_html__('Current user (Defined under %s)', 'photonic'), '<em>Photonic &rarr; Settings &rarr; Flickr &rarr; Flickr Settings &rarr; Default user</em>'),
113 'other' => esc_html__('Another user', 'photonic'),
114 'group' => esc_html__('Group', 'photonic'),
115 'any' => esc_html__('All users', 'photonic'),
116 ],
117 'option-conditions' => [
118 'group' => ['display_type' => ['multi-photo']],
119 'any' => ['display_type' => ['multi-photo']],
120 ],
121 'req' => 1,
122 ],
123 'login' => [
124 'desc' => sprintf(esc_html__('User name, e.g. %s', 'photonic'), 'https://www.flickr.com/photos/<span style="text-decoration: underline">username</span>/'),
125 'type' => 'text',
126 'std' => '',
127 'conditions' => ['for' => ['other']],
128 'req' => 1,
129 ],
130 'group' => [
131 'desc' => sprintf(esc_html__('Group name, e.g. %s', 'photonic'), 'https://www.flickr.com/groups/<span style="text-decoration: underline">groupname</span>/'),
132 'type' => 'text',
133 'std' => '',
134 'conditions' => ['for' => ['group']],
135 'req' => 1,
136 ],
137 ],
138 ],
139 ],
140 ],
141 'smugmug' => [
142 'header' => esc_html__('Choose Type of Gallery', 'photonic'),
143 'display' => [
144 'kind' => [
145 'type' => 'field_list',
146 'list_type' => 'sequence',
147 'list' => [
148 'display_type' => [
149 'desc' => esc_html__('What do you want to show?', 'photonic'),
150 'type' => 'select',
151 'options' => [
152 '' => '',
153 'album-photo' => esc_html__('Photos from an Album', 'photonic'),
154 'folder-photo' => esc_html__('Photos from a Folder', 'photonic'),
155 'user-photo' => esc_html__('Photos from a User', 'photonic'),
156 'multi-album' => esc_html__('Multiple Albums', 'photonic'),
157 'folder' => esc_html__('Albums in a Folder', 'photonic'),
158 'tree' => esc_html__('User Tree', 'photonic'),
159 ],
160 'req' => 1,
161 ],
162 'for' => [
163 'desc' => esc_html__('For whom?', 'photonic'),
164 'type' => 'radio',
165 'options' => [
166 'current' => sprintf(esc_html__('Current user (Defined under %s)', 'photonic'), '<em>Photonic &rarr; Settings &rarr; SmugMug &rarr; SmugMug Settings &rarr; Default user</em>'),
167 'other' => esc_html__('Another user', 'photonic'),
168 ],
169 'req' => 1,
170 ],
171 'user' => [
172 'desc' => sprintf(esc_html__('User name, e.g. %s', 'photonic'), 'https://<span style="text-decoration: underline">username</span>.smugmug.com/'),
173 'type' => 'text',
174 'std' => '',
175 'conditions' => ['for' => ['other']],
176 'req' => 1,
177 ],
178 ],
179 ],
180 ],
181 ],
182 'google' => [
183 'header' => esc_html__('Choose Type of Gallery', 'photonic'),
184 'display' => [
185 'display_type' => [
186 'desc' => esc_html__('What do you want to show?', 'photonic'),
187 'type' => 'select',
188 'options' => [
189 '' => '',
190 'multi-photo' => esc_html__('Multiple Photos', 'photonic'),
191 'album-photo' => esc_html__('Photos from an Album', 'photonic'),
192 'multi-album' => esc_html__('Multiple Albums', 'photonic'),
193 ],
194 'req' => 1,
195 ],
196 ],
197 ],
198 'zenfolio' => [
199 'header' => esc_html__('Choose Type of Gallery', 'photonic'),
200 'display' => [
201 'kind' => [
202 'type' => 'field_list',
203 'list_type' => 'sequence',
204 'list' => [
205 'display_type' => [
206 'desc' => esc_html__('What do you want to show?', 'photonic'),
207 'type' => 'select',
208 'options' => [
209 '' => '',
210 'single-photo' => esc_html__('Single Photo', 'photonic'),
211 'multi-photo' => esc_html__('Multiple Photos', 'photonic'),
212 'gallery-photo' => esc_html__('Photos from a Gallery or Collection', 'photonic'),
213 // 'collection-photo' => esc_html__('Photos from a Collection', 'photonic'),
214 'multi-gallery' => esc_html__('Multiple Galleries', 'photonic'),
215 'multi-collection' => esc_html__('Multiple Collections', 'photonic'),
216 'multi-gallery-collection' => esc_html__('Multiple Galleries and Collections', 'photonic'),
217 'group' => esc_html__('Single Group', 'photonic'),
218 'group-hierarchy' => esc_html__('Group Hierarchy', 'photonic'),
219 ],
220 'req' => 1,
221 ],
222 'for' => [
223 'desc' => esc_html__('For whom?', 'photonic'),
224 'type' => 'radio',
225 'options' => [
226 'current' => sprintf(esc_html__('Current user (Defined under %s)', 'photonic'), '<em>Photonic &rarr; Settings &rarr; Zenfolio &rarr; Zenfolio Photo Settings &rarr; Default user</em>'),
227 'other' => esc_html__('Another user', 'photonic'),
228 'any' => esc_html__('All users', 'photonic'),
229 ],
230 'option-conditions' => [
231 'current' => ['display_type' => ['single-photo', 'gallery-photo', 'collection-photo', 'multi-gallery', 'multi-collection', 'multi-gallery-collection', 'group', 'group-hierarchy']],
232 'other' => ['display_type' => ['single-photo', 'gallery-photo', 'collection-photo', 'multi-gallery', 'multi-collection', 'multi-gallery-collection', 'group', 'group-hierarchy']],
233 'any' => ['display_type' => ['multi-photo', /*'multi-gallery', 'multi-collection', */]],
234 ],
235 'req' => 1,
236 ],
237 'login_name' => [
238 'desc' => sprintf(esc_html__('User name, e.g. %s', 'photonic'), 'https://<span style="text-decoration: underline">username</span>.zenfolio.com/'),
239 'type' => 'text',
240 'std' => '',
241 'conditions' => ['for' => ['other']],
242 'req' => 1,
243 ],
244 ],
245 ],
246 ],
247 ],
248 'instagram' => [
249 'header' => esc_html__('Choose Type of Gallery', 'photonic'),
250 'display' => [
251 'display_type' => [
252 'desc' => esc_html__('What do you want to show?', 'photonic'),
253 'type' => 'select',
254 'options' => [
255 '' => '',
256 'single-photo' => esc_html__('Single Photo', 'photonic'),
257 'album-photo' => esc_html__('Photos in a Post', 'photonic'),
258 'multi-photo' => esc_html__('Multiple Photos', 'photonic'),
259 ],
260 'req' => 1,
261 ],
262 ],
263 ],
264 ],
265 'screen-3' => [
266 'wp' => [],
267 'flickr' => [
268 'header' => esc_html__('Build your gallery', 'photonic'),
269 'single-photo' => [
270 'header' => esc_html__('Pick a photo', 'photonic'),
271 'desc' => esc_html__('From the list below pick the single photo you wish to display.', 'photonic'),
272 'display' => [
273 'container' => [
274 'type' => 'thumbnail-selector',
275 'mode' => 'single',
276 'for' => 'selected_data',
277 ],
278 ],
279 ],
280 'multi-photo' => [
281 'header' => esc_html__('All your photos', 'photonic'),
282 'desc' => esc_html__('You can show all your photos, or apply tags to show some of them.', 'photonic'),
283 'display' => [
284 'tags' => [
285 'desc' => esc_html__('Tags', 'photonic'),
286 'type' => 'text',
287 'hint' => esc_html__('Comma-separated list of tags', 'photonic')
288 ],
289
290 'tag_mode' => [
291 'desc' => esc_html__('Tag mode', 'photonic'),
292 'type' => 'select',
293 'options' => [
294 'any' => esc_html__('Any tag', 'photonic'),
295 'all' => esc_html__('All tags', 'photonic'),
296 ],
297 ],
298
299 'text' => [
300 'desc' => esc_html__('With text', 'photonic'),
301 'type' => 'text',
302 ],
303
304 'privacy_filter' => [
305 'desc' => esc_html__('Privacy filter', 'photonic'),
306 'type' => 'select',
307 'options' => [
308 '' => esc_html__('None', 'photonic'),
309 '1' => esc_html__('Public photos', 'photonic'),
310 '2' => esc_html__('Private photos visible to friends', 'photonic'),
311 '3' => esc_html__('Private photos visible to family', 'photonic'),
312 '4' => esc_html__('Private photos visible to friends & family', 'photonic'),
313 '5' => esc_html__('Completely private photos', 'photonic'),
314 ],
315 'hint' => sprintf(esc_html__('Applicable only if Flickr private photos are turned on (%1$s) and Back-end authentication is off (%2$s)', 'photonic'), '<em>Photonic &rarr; Settings &rarr; Flickr &rarr; Flickr Settings &rarr; Allow User Login</em>', '<em>Photonic &rarr; Settings &rarr; Flickr &rarr; Flickr Settings &rarr; Access Token</em>'),
316 ],
317
318 'container' => [
319 'type' => 'thumbnail-selector',
320 'mode' => 'none',
321 'for' => 'selected_data',
322 ],
323 ],
324 ],
325 'album-photo' => [
326 'header' => esc_html__('Pick your album', 'photonic'),
327 'desc' => esc_html__('From the list below pick the album whose photos you wish to display. Photos from that album will show up as thumbnails.', 'photonic'),
328 'display' => [
329 'privacy_filter' => [
330 'desc' => esc_html__('Privacy filter', 'photonic'),
331 'type' => 'select',
332 'options' => [
333 '' => esc_html__('None', 'photonic'),
334 '1' => esc_html__('Public photos', 'photonic'),
335 '2' => esc_html__('Private photos visible to friends', 'photonic'),
336 '3' => esc_html__('Private photos visible to family', 'photonic'),
337 '4' => esc_html__('Private photos visible to friends & family', 'photonic'),
338 '5' => esc_html__('Completely private photos', 'photonic'),
339 ],
340 'hint' => sprintf(esc_html__('Applicable only if Flickr private photos are turned on (%1$s) and Back-end authentication is off (%2$s)', 'photonic'), '<em>Photonic &rarr; Settings &rarr; Flickr &rarr; Flickr Settings &rarr; Allow User Login</em>', '<em>Photonic &rarr; Settings &rarr; Flickr &rarr; Flickr Settings &rarr; Access Token</em>'),
341 ],
342
343 'container' => [
344 'type' => 'thumbnail-selector',
345 'mode' => 'single',
346 'for' => 'selected_data',
347 ],
348 ],
349 ],
350 'gallery-photo' => [
351 'header' => esc_html__('Pick your gallery', 'photonic'),
352 'desc' => esc_html__('From the list below pick the gallery whose photos you wish to display. Photos from that gallery will show up as thumbnails.', 'photonic'),
353 'display' => [
354 'container' => [
355 'type' => 'thumbnail-selector',
356 'mode' => 'single',
357 'for' => 'selected_data',
358 ],
359 ],
360 ],
361 'multi-album' => [
362 'header' => esc_html__('Pick your albums / photosets', 'photonic'),
363 'desc' => esc_html__('From the list below pick the albums / photosets you wish to display. Each album will show up as a single thumbnail.', 'photonic'),
364 'display' => [
365 'selection' => [
366 'desc' => esc_html__('What do you want to show?', 'photonic'),
367 'type' => 'select',
368 'options' => [
369 'all' => esc_html__('Automatic all (will automatically add new albums)', 'photonic'),
370 'selected' => esc_html__('Selected albums / photosets', 'photonic'),
371 'not-selected' => esc_html__('All except selected albums / photosets', 'photonic'),
372 ],
373 'hint' => esc_html__('If you pick "Automatic all" your selections below will be ignored.', 'photonic'),
374 'req' => 1,
375 ],
376 'container' => [
377 'type' => 'thumbnail-selector',
378 'mode' => 'multi',
379 'for' => 'selected_data',
380 ],
381 ],
382 ],
383 'multi-gallery' => [
384 'header' => esc_html__('Pick your galleries', 'photonic'),
385 'desc' => esc_html__('From the list below pick the galleries you wish to display. Each album will show up as a single thumbnail.', 'photonic'),
386 'display' => [
387 'selection' => [
388 'desc' => esc_html__('What do you want to show?', 'photonic'),
389 'type' => 'select',
390 'options' => [
391 'all' => esc_html__('Automatic all (will automatically add new galleries)', 'photonic'),
392 'selected' => esc_html__('Selected galleries', 'photonic'),
393 'not-selected' => esc_html__('All except selected galleries', 'photonic'),
394 ],
395 'req' => 1,
396 'hint' => esc_html__('If you pick "Automatic all" your selections below will be ignored.', 'photonic'),
397 ],
398 'container' => [
399 'type' => 'thumbnail-selector',
400 'mode' => 'multi',
401 'for' => 'selected_data',
402 ],
403 ],
404 ],
405 'collection' => [
406 'header' => esc_html__('Pick your collection', 'photonic'),
407 'desc' => esc_html__('From the list below pick the collection you wish to display. The albums within the collections will show up as single thumbnails.', 'photonic'),
408 'display' => [
409 'container' => [
410 'type' => 'thumbnail-selector',
411 'mode' => 'single',
412 'for' => 'selected_data',
413 ],
414 ],
415 ],
416 'collections' => [
417 'header' => esc_html__('Pick your collections', 'photonic'),
418 'desc' => esc_html__('From the list below pick the collections you wish to display. The albums within the collections will show up as single thumbnails.', 'photonic'),
419 'display' => [
420 'selection' => [
421 'desc' => esc_html__('What do you want to show?', 'photonic'),
422 'type' => 'select',
423 'options' => [
424 'all' => esc_html__('Automatic all (will automatically add new collections)', 'photonic'),
425 'selected' => esc_html__('Selected collections', 'photonic'),
426 'not-selected' => esc_html__('All except selected collections', 'photonic'),
427 ],
428 'req' => 1,
429 'hint' => esc_html__('If you pick "Automatic all" your selections below will be ignored.', 'photonic'),
430 ],
431 'container' => [
432 'type' => 'thumbnail-selector',
433 'mode' => 'multi',
434 'for' => 'selected_data',
435 ],
436 ],
437 ],
438 ],
439 'google' => [
440 'header' => esc_html__('Build your gallery', 'photonic'),
441 'multi-photo' => [
442 'header' => esc_html__('All your photos', 'photonic'),
443 'desc' => esc_html__('You can show all your photos, or apply filters to show some of them.', 'photonic'),
444 'display' => [
445 'date_filters' => [
446 'desc' => esc_html__('Date Filters', 'photonic'),
447 'type' => 'date-filter',
448 'count' => 5
449 ],
450
451 'date_range_filters' => [
452 'desc' => esc_html__('Date Range Filters', 'photonic'),
453 'type' => 'date-range-filter',
454 'count' => 5
455 ],
456
457 'content_filters' => [
458 'desc' => esc_html__('Content Filters', 'photonic'),
459 'type' => 'text',
460 'hint' => sprintf(esc_html__('Comma-separated. Pick from: %s. Filters will be applied on the front-end, not on the display below. ', 'photonic'),
461 'NONE, LANDSCAPES, RECEIPTS, CITYSCAPES, LANDMARKS, SELFIES, PEOPLE, PETS, WEDDINGS, BIRTHDAYS, DOCUMENTS, TRAVEL, ANIMALS, FOOD, SPORT, NIGHT, PERFORMANCES, WHITEBOARDS, SCREENSHOTS, UTILITY').
462 Photonic::doc_link("https://aquoid.com/plugins/photonic/google-photos/photos/#filtering-photos"),
463 ],
464
465 'container' => [
466 'type' => 'thumbnail-selector',
467 'mode' => 'none',
468 'for' => 'selected_data',
469 ],
470 ],
471 ],
472 'album-photo' => [
473 'header' => esc_html__('Pick your album', 'photonic'),
474 'desc' => esc_html__('From the list below pick the album whose photos you wish to display. Photos from that album will show up as thumbnails.', 'photonic'),
475 'display' => [
476 'container' => [
477 'type' => 'thumbnail-selector',
478 'mode' => 'single',
479 'for' => 'selected_data',
480 ],
481 ],
482 ],
483 'multi-album' => [
484 'header' => esc_html__('Pick your albums', 'photonic'),
485 'desc' => esc_html__('From the list below pick the albums you wish to display. Each album will show up as a single thumbnail.', 'photonic'),
486 'display' => [
487 'selection' => [
488 'desc' => esc_html__('What do you want to show?', 'photonic'),
489 'type' => 'select',
490 'options' => [
491 'all' => esc_html__('Automatic all (will automatically add new albums)', 'photonic'),
492 'selected' => esc_html__('Selected albums', 'photonic'),
493 'not-selected' => esc_html__('All except selected albums', 'photonic'),
494 ],
495 'hint' => esc_html__('If you pick "Automatic all" your selections below will be ignored.', 'photonic'),
496 'req' => 1,
497 ],
498 'access' => [
499 'desc' => esc_html__('What type of album?', 'photonic'),
500 'type' => 'select',
501 'options' => [
502 '' => '',
503 'all' => esc_html__('Show both shared and not shared albums', 'photonic'),
504 'shared' => esc_html__('Only show shared albums', 'photonic'),
505 'not-shared' => esc_html__('Only show albums not shared', 'photonic'),
506 ],
507 'std' => '',
508 ],
509 'container' => [
510 'type' => 'thumbnail-selector',
511 'mode' => 'multi',
512 'for' => 'selected_data',
513 ],
514 ],
515 ],
516 ],
517 'smugmug' => [
518 'header' => esc_html__('Build your gallery', 'photonic'),
519 'album-photo' => [
520 'header' => esc_html__('Pick your album', 'photonic'),
521 'desc' => esc_html__('From the list below pick the album whose photos you wish to display. Photos from that album will show up as thumbnails.', 'photonic'),
522 'display' => [
523 'text' => [
524 'desc' => esc_html__('Only show photos with this text', 'photonic'),
525 'type' => 'text',
526 'std' => '',
527 'hint' => esc_html__('Comma-separated list of values. Filters will be applied on the front-end, not on the display below', 'photonic'),
528 ],
529 'keywords' => [
530 'desc' => esc_html__('Only show photos with these keywords', 'photonic'),
531 'type' => 'text',
532 'std' => '',
533 'hint' => esc_html__('Comma-separated list of values. Filters will be applied on the front-end, not on the display below', 'photonic'),
534 ],
535 'container' => [
536 'type' => 'thumbnail-selector',
537 'mode' => 'single',
538 'for' => 'selected_data',
539 ],
540 ],
541 ],
542 'folder-photo' => [
543 'header' => esc_html__('Pick your folder', 'photonic'),
544 'desc' => esc_html__('From the list below pick the folder whose photos you wish to display. Photos from that folder will show up as thumbnails.', 'photonic'),
545 'display' => [
546 'text' => [
547 'desc' => esc_html__('Only show photos with this text', 'photonic'),
548 'type' => 'text',
549 'std' => '',
550 'hint' => esc_html__('Comma-separated list of values. Filters will be applied on the front-end, not on the display below', 'photonic'),
551 ],
552 'keywords' => [
553 'desc' => esc_html__('Only show photos with these keywords', 'photonic'),
554 'type' => 'text',
555 'std' => '',
556 'hint' => esc_html__('Comma-separated list of values. Filters will be applied on the front-end, not on the display below.', 'photonic'),
557 ],
558 'container' => [
559 'type' => 'thumbnail-selector',
560 'mode' => 'single',
561 'for' => 'selected_data',
562 ],
563 ],
564 ],
565 'user-photo' => [
566 'header' => esc_html__('Photos for a User', 'photonic'),
567 'desc' => esc_html__('The following lists the top-level folders and albums for the selected user. All photos from these folders will show up as thumbnails.', 'photonic'),
568 'display' => [
569 'text' => [
570 'desc' => esc_html__('Only show photos with this text', 'photonic'),
571 'type' => 'text',
572 'std' => '',
573 'hint' => esc_html__('Comma-separated list of values', 'photonic'),
574 ],
575 'keywords' => [
576 'desc' => esc_html__('Only show photos with these keywords', 'photonic'),
577 'type' => 'text',
578 'std' => '',
579 'hint' => esc_html__('Comma-separated list of values', 'photonic'),
580 ],
581 'container' => [
582 'type' => 'thumbnail-selector',
583 'mode' => 'none',
584 'for' => 'selected_data',
585 ],
586 ],
587 ],
588 'multi-album' => [
589 'header' => esc_html__('Pick your albums', 'photonic'),
590 'desc' => esc_html__('From the list below pick the albums you wish to display. Each album will show up as a single thumbnail.', 'photonic'),
591 'display' => [
592 'selection' => [
593 'desc' => esc_html__('What do you want to show?', 'photonic'),
594 'type' => 'select',
595 'options' => [
596 'all' => esc_html__('Automatic all (will automatically add new albums)', 'photonic'),
597 'selected' => esc_html__('Selected albums', 'photonic'),
598 'not-selected' => esc_html__('All except selected albums', 'photonic'),
599 ],
600 'hint' => esc_html__('If you pick "Automatic all" your selections below will be ignored.', 'photonic'),
601 'req' => 1,
602 ],
603 'container' => [
604 'type' => 'thumbnail-selector',
605 'mode' => 'multi',
606 'for' => 'selected_data',
607 ],
608 ],
609 ],
610 'folder' => [
611 'header' => esc_html__('Pick your folder', 'photonic'),
612 'desc' => esc_html__('From the list below pick the folder you wish to display. The albums within the folder will show up as single thumbnails.', 'photonic'),
613 'display' => [
614 'container' => [
615 'type' => 'thumbnail-selector',
616 'mode' => 'single',
617 'for' => 'selected_data',
618 ],
619 ],
620 ],
621 'tree' => [
622 'header' => esc_html__('User Tree', 'photonic'),
623 'desc' => esc_html__('The following user tree will be displayed on your site. Only top level folders and albums are shown here. The albums within the folders will show up as single thumbnails and can be clicked to show the images within.', 'photonic'),
624 'display' => [
625 'container' => [
626 'type' => 'thumbnail-selector',
627 'mode' => 'none',
628 'for' => 'selected_data',
629 ],
630 ],
631 ],
632 ],
633 'zenfolio' => [
634 'header' => esc_html__('Build your gallery', 'photonic'),
635 'single-photo' => [
636 'header' => esc_html__('Pick a photo', 'photonic'),
637 'desc' => esc_html__('From the list below pick the single photo you wish to display.', 'photonic'),
638 'display' => [
639 'container' => [
640 'type' => 'thumbnail-selector',
641 'mode' => 'single',
642 'for' => 'selected_data',
643 ],
644 ],
645 ],
646 'multi-photo' => [
647 'header' => esc_html__('Photos from all users', 'photonic'),
648 'desc' => esc_html__('You can show photos from all users, and apply text or category filters to show some of them.', 'photonic'),
649 'display' => [
650 'text' => [
651 'desc' => esc_html__('With text', 'photonic'),
652 'type' => 'text',
653 ],
654
655 'category_code' => [
656 'desc' => esc_html__('Category', 'photonic'),
657 'type' => 'select',
658 'options' => $this->get_zenfolio_categories(),
659 ],
660
661 'container' => [
662 'type' => 'thumbnail-selector',
663 'mode' => 'none',
664 'for' => 'selected_data',
665 ],
666 ],
667 ],
668 'gallery-photo' => [
669 'header' => esc_html__('Pick your gallery', 'photonic'),
670 'desc' => esc_html__('From the list below pick the gallery whose photos you wish to display. Photos from that gallery will show up as thumbnails.', 'photonic'),
671 'display' => [
672 'container' => [
673 'type' => 'thumbnail-selector',
674 'mode' => 'single',
675 'for' => 'selected_data',
676 ],
677 ],
678 ],
679 'collection-photo' => [
680 'header' => esc_html__('Pick your collection', 'photonic'),
681 'desc' => esc_html__('From the list below pick the collection whose photos you wish to display. Photos from that collection will show up as thumbnails.', 'photonic'),
682 'display' => [
683 'container' => [
684 'type' => 'thumbnail-selector',
685 'mode' => 'single',
686 'for' => 'selected_data',
687 ],
688 ],
689 ],
690 'multi-gallery' => [
691 'header' => esc_html__('Pick your galleries', 'photonic'),
692 'desc' => esc_html__('From the list below pick the galleries you wish to display. Each album will show up as a single thumbnail. Note that text and category filters are not applied here but will be applied on the front-end.', 'photonic'),
693 'display' => [
694 'selection' => [
695 'desc' => esc_html__('What do you want to show?', 'photonic'),
696 'type' => 'select',
697 'options' => [
698 'all' => esc_html__('Automatic all (will automatically add new galleries)', 'photonic'),
699 'selected' => esc_html__('Selected galleries', 'photonic'),
700 'not-selected' => esc_html__('All except selected galleries', 'photonic'),
701 ],
702 'req' => 1,
703 'hint' => esc_html__('If you pick "Automatic all" your selections below will be ignored.', 'photonic'),
704 ],
705
706 'text' => [
707 'desc' => esc_html__('With text', 'photonic'),
708 'type' => 'text',
709 ],
710
711 'category_code' => [
712 'desc' => esc_html__('Category', 'photonic'),
713 'type' => 'select',
714 'options' => $this->get_zenfolio_categories(),
715 ],
716
717 'container' => [
718 'type' => 'thumbnail-selector',
719 'mode' => 'multi',
720 'for' => 'selected_data',
721 ],
722 ],
723 ],
724 'multi-collection' => [
725 'header' => esc_html__('Pick your collections', 'photonic'),
726 'desc' => esc_html__('From the list below pick the collections you wish to display. Each collection will show up as a single thumbnail. Note that text and category filters are not applied here but will be applied on the front-end.', 'photonic'),
727 'display' => [
728 'selection' => [
729 'desc' => esc_html__('What do you want to show?', 'photonic'),
730 'type' => 'select',
731 'options' => [
732 'all' => esc_html__('Automatic all (will automatically add new collections)', 'photonic'),
733 'selected' => esc_html__('Selected collections', 'photonic'),
734 'not-selected' => esc_html__('All except selected collections', 'photonic'),
735 ],
736 'hint' => esc_html__('If you pick "Automatic all" your selections below will be ignored.', 'photonic'),
737 'req' => 1,
738 ],
739
740 'text' => [
741 'desc' => esc_html__('With text', 'photonic'),
742 'type' => 'text',
743 ],
744
745 'category_code' => [
746 'desc' => esc_html__('Category', 'photonic'),
747 'type' => 'select',
748 'options' => $this->get_zenfolio_categories(),
749 ],
750
751 'container' => [
752 'type' => 'thumbnail-selector',
753 'mode' => 'multi',
754 'for' => 'selected_data',
755 ],
756 ],
757 ],
758 'multi-gallery-collection' => [
759 'header' => esc_html__('Pick your galleries and collections', 'photonic'),
760 'desc' => esc_html__('From the list below pick the galleries and collections you wish to display. Each gallery and collection will show up as a single thumbnail. Note that text and category filters are not applied here but will be applied on the front-end.', 'photonic'),
761 'display' => [
762 'selection' => [
763 'desc' => esc_html__('What do you want to show?', 'photonic'),
764 'type' => 'select',
765 'options' => [
766 'all' => esc_html__('Automatic all (will automatically add new galleries and collections)', 'photonic'),
767 'selected' => esc_html__('Selected galleries and collections', 'photonic'),
768 'not-selected' => esc_html__('All except selected galleries and collections', 'photonic'),
769 ],
770 'hint' => esc_html__('If you pick "Automatic all" your selections below will be ignored.', 'photonic'),
771 'req' => 1,
772 ],
773
774 'text' => [
775 'desc' => esc_html__('With text', 'photonic'),
776 'type' => 'text',
777 ],
778
779 'category_code' => [
780 'desc' => esc_html__('Category', 'photonic'),
781 'type' => 'select',
782 'options' => $this->get_zenfolio_categories(),
783 ],
784
785 'container' => [
786 'type' => 'thumbnail-selector',
787 'mode' => 'multi',
788 'for' => 'selected_data',
789 ],
790 ],
791 ],
792 'group' => [
793 'header' => esc_html__('Pick your group', 'photonic'),
794 'desc' => esc_html__('From the list below pick the group you wish to display. The galleries / collections within the group will show up as single thumbnails.', 'photonic'),
795 'display' => [
796 'container' => [
797 'type' => 'thumbnail-selector',
798 'mode' => 'single',
799 'for' => 'selected_data',
800 ],
801 ],
802 ],
803 'group-hierarchy' => [
804 'header' => esc_html__('Your group hierarchy', 'photonic'),
805 'desc' => esc_html__('The following group hierarchy will be displayed on your site. Only top level groups and galleries / collections are shown here. The galleries / collections within the groups will show up as single thumbnails and can be clicked to show the images within.', 'photonic'),
806 'display' => [
807 'container' => [
808 'type' => 'thumbnail-selector',
809 'mode' => 'none',
810 'for' => 'selected_data',
811 ],
812 ],
813 ],
814 ],
815 'instagram' => [
816 'header' => esc_html__('Build your gallery', 'photonic'),
817 'single-photo' => [
818 'header' => esc_html__('Pick a photo', 'photonic'),
819 'desc' => esc_html__('From the list below pick the single photo you wish to display.', 'photonic'),
820 'display' => [
821 'embed_type' => [
822 'desc' => esc_html__('How do you want to display your photo?', 'photonic'),
823 'type' => 'select',
824 'options' => [
825 '' => '',
826 'embed' => esc_html__('Show as an "Instagram embed"', 'photonic'),
827 'integrate' => esc_html__('Show similar to other photos, without embedding Instagram', 'photonic'),
828 ],
829 'std' => '',
830 ],
831 'container' => [
832 'type' => 'thumbnail-selector',
833 'mode' => 'single',
834 'for' => 'selected_data',
835 ],
836 ],
837 ],
838 'album-photo' => [
839 'header' => esc_html__('Pick a post (a.k.a. Carousel)', 'photonic'),
840 'desc' => esc_html__('From the list below pick the post whose photos you wish to display.', 'photonic'),
841 'display' => [
842 'container' => [
843 'type' => 'thumbnail-selector',
844 'mode' => 'single',
845 'for' => 'selected_data',
846 ],
847 ],
848 ],
849 'multi-photo' => [
850 'header' => esc_html__('All your photos', 'photonic'),
851 'desc' => esc_html__('You can only show all your photos without filtering. In the following only the latest 25 photos are displayed. You can change this in subsequent screens.', 'photonic'),
852 'display' => [
853 'container' => [
854 'type' => 'thumbnail-selector',
855 'mode' => 'none',
856 'for' => 'selected_data',
857 ],
858 ],
859 ],
860 ],
861 ],
862 'screen-4' => [
863 'wp' => [],
864 'flickr' => [],
865 'google' => [],
866 'smugmug' => [],
867 'zenfolio' => [],
868 'instagram' => [],
869 ],
870 'screen-5' => [
871 'wp' => [
872 'count' => [
873 'desc' => esc_html__('Number of photos to show', 'photonic'),
874 'type' => 'text',
875 'hint' => esc_html__('Numeric values only. Shows all photos by default.', 'photonic'),
876 ],
877 'main_size' => [
878 'desc' => esc_html__('Main image size', 'photonic'),
879 'type' => 'select',
880 'options' => $this->allowed_image_sizes['wp']['main_size'],
881 'std' => 'full',
882 ],
883 ],
884 'flickr' => [
885 'L1' => [
886 'sort' => [
887 'desc' => esc_html__('Sort by', 'photonic'),
888 'type' => 'select',
889 'options' => [
890 '' => '',
891 'date-posted-desc' => esc_html__('Date posted, descending', 'photonic'),
892 'date-posted-asc' => esc_html__('Date posted, ascending', 'photonic'),
893 'date-taken-asc' => esc_html__('Date taken, ascending', 'photonic'),
894 'date-taken-desc' => esc_html__('Date taken, descending', 'photonic'),
895 'interestingness-desc' => esc_html__('Interestingness, descending', 'photonic'),
896 'interestingness-asc' => esc_html__('Interestingness, ascending', 'photonic'),
897 'relevance' => esc_html__('Relevance', 'photonic'),
898 ],
899 ],
900 'media' => [
901 'desc' => esc_html__('Media to Show', 'photonic'),
902 'type' => 'select',
903 'options' => Photonic::media_options(true, $photonic_flickr_media),
904 'std' => '',
905 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; Flickr &rarr; Flickr Settings &rarr; Media to show</em>'),
906 ],
907 'caption' => [
908 'desc' => esc_html__('Photo titles and captions', 'photonic'),
909 'type' => 'select',
910 'options' => Photonic::title_caption_options(true, $photonic_flickr_title_caption),
911 'std' => '',
912 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; Flickr &rarr; Flickr Settings &rarr; Photo titles and captions</em>'),
913 ],
914 'headers' => [
915 'desc' => esc_html__('Show Header', 'photonic'),
916 'type' => 'select',
917 'options' => [
918 '' => $this->default_from_settings,
919 'none' => esc_html__('No header', 'photonic'),
920 'title' => esc_html__('Title only', 'photonic'),
921 'thumbnail' => esc_html__('Thumbnail only', 'photonic'),
922 'counter' => esc_html__('Counts only', 'photonic'),
923 'title,counter' => esc_html__('Title and counts', 'photonic'),
924 'thumbnail,counter' => esc_html__('Thumbnail and counts', 'photonic'),
925 'thumbnail,title' => esc_html__('Thumbnail and title', 'photonic'),
926 'thumbnail,title,counter' => esc_html__('Thumbnail, title and counts', 'photonic'),
927 ],
928 'conditions' => ['display_type' => ['album-photo', 'gallery-photo']],
929 ],
930 ],
931 'L2' => [],
932 'L3' => [
933 'collections_display' => [
934 'desc' => esc_html__('Expand Collections', 'photonic'),
935 'type' => 'select',
936 'options' => [
937 '' => '',
938 'lazy' => esc_html__('Lazy loading', 'photonic'),
939 'expanded' => esc_html__('Expanded upfront', 'photonic'),
940 ],
941 'hint' => sprintf(esc_html__('The Collections API is slow, so, if you are displaying collections, pick %1$slazy loading%2$s if your collections have many albums / photosets.', 'photonic'),
942 '<a href="https://aquoid.com/plugins/photonic/flickr/flickr-collections/" target="_blank">', '</a>'),
943 ],
944 'headers' => [
945 'desc' => esc_html__('Show Header', 'photonic'),
946 'type' => 'select',
947 'options' => [
948 '' => $this->default_from_settings,
949 'none' => esc_html__('No header', 'photonic'),
950 'title' => esc_html__('Title only', 'photonic'),
951 'thumbnail' => esc_html__('Thumbnail only', 'photonic'),
952 'counter' => esc_html__('Counts only', 'photonic'),
953 'title,counter' => esc_html__('Title and counts', 'photonic'),
954 'thumbnail,counter' => esc_html__('Thumbnail and counts', 'photonic'),
955 'thumbnail,title' => esc_html__('Thumbnail and title', 'photonic'),
956 'thumbnail,title,counter' => esc_html__('Thumbnail, title and counts', 'photonic'),
957 ],
958 ],
959 ],
960 'main_size' => [
961 'desc' => esc_html__('Main image size', 'photonic'),
962 'type' => 'select',
963 'options' => $this->allowed_image_sizes['flickr']['main_size'],
964 'std' => '',
965 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; Flickr &rarr; Flickr Settings &rarr; Main image size</em>'),
966 ],
967 'video_size' => [
968 'desc' => esc_html__('Main video size', 'photonic'),
969 'type' => 'select',
970 'options' => $this->allowed_image_sizes['flickr']['video_size'],
971 'std' => '',
972 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; Flickr &rarr; Flickr Settings &rarr; Video size</em>'),
973 ],
974 ],
975 'google' => [
976 'L1' => [
977 'media' => [
978 'desc' => esc_html__('Media to Show', 'photonic'),
979 'type' => 'select',
980 'options' => Photonic::media_options(true, $photonic_google_media),
981 'std' => '',
982 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; Google Photos &rarr; Google Photos settings &rarr; Media to show</em>'),
983 ],
984
985 'caption' => [
986 'desc' => esc_html__('Photo titles and captions', 'photonic'),
987 'type' => 'select',
988 'options' => [
989 '' => $this->default_from_settings,
990 'none' => esc_html__('No title / caption / description', 'photonic'),
991 'title' => esc_html__('Always use the photo title, even if blank', 'photonic'),
992 ],
993 'std' => '',
994 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; Google Photos &rarr; Google Photos Settings &rarr; Photo titles and captions</em>'),
995 ],
996 ],
997 'main_size' => [
998 'desc' => esc_html__('Main image size', 'photonic'),
999 'type' => 'text',
1000 'std' => 1600,
1001 'hint' => esc_html__('Numeric values between 1 and 16383, both inclusive.', 'photonic'),
1002 ],
1003 ],
1004 'smugmug' => [
1005 'L1' => [
1006 'media' => [
1007 'desc' => esc_html__('Media to Show', 'photonic'),
1008 'type' => 'select',
1009 'options' => Photonic::media_options(true, $photonic_smug_media),
1010 'std' => '',
1011 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; SmugMug &rarr; SmugMug Settings &rarr; Media to show</em>'),
1012 ],
1013 'caption' => [
1014 'desc' => esc_html__('Photo titles and captions', 'photonic'),
1015 'type' => 'select',
1016 'options' => Photonic::title_caption_options(true, $photonic_smug_title_caption),
1017 'std' => '',
1018 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; SmugMug &rarr; SmugMug Settings &rarr; Photo titles and captions</em>'),
1019 ],
1020 'password' => [
1021 'desc' => esc_html__('Password for password-protected album', 'photonic'),
1022 'type' => 'text',
1023 'req' => 1,
1024 'hint' => esc_html__('You are trying to display photos from a password-protected album. The password is mandatory for such an album.', 'photonic'),
1025 'conditions' => ['selection_passworded' => ['1']],
1026 ],
1027 'sort_method' => [
1028 'desc' => esc_html__('Sort photos by', 'photonic'),
1029 'type' => 'select',
1030 'options' => [
1031 '' => '',
1032 'DateTaken' => esc_html__('Date Taken', 'photonic'),
1033 'DateUploaded' => esc_html__('Date Uploaded', 'photonic'),
1034 'Popular' => esc_html__('Popular', 'photonic'),
1035 ],
1036 ],
1037 'sort_order' => [
1038 'desc' => esc_html__('Sort order', 'photonic'),
1039 'type' => 'select',
1040 'options' => [
1041 '' => '',
1042 'Ascending' => esc_html__('Ascending', 'photonic'),
1043 'Descending' => esc_html__('Descending', 'photonic'),
1044 ],
1045 ],
1046 'headers' => [
1047 'desc' => esc_html__('Show Header', 'photonic'),
1048 'type' => 'select',
1049 'options' => [
1050 '' => $this->default_from_settings,
1051 'none' => esc_html__('No header', 'photonic'),
1052 'title' => esc_html__('Title only', 'photonic'),
1053 'thumbnail' => esc_html__('Thumbnail only', 'photonic'),
1054 'counter' => esc_html__('Counts only', 'photonic'),
1055 'title,counter' => esc_html__('Title and counts', 'photonic'),
1056 'thumbnail,counter' => esc_html__('Thumbnail and counts', 'photonic'),
1057 'thumbnail,title' => esc_html__('Thumbnail and title', 'photonic'),
1058 'thumbnail,title,counter' => esc_html__('Thumbnail, title and counts', 'photonic'),
1059 ],
1060 ],
1061 ],
1062 'L2' => [
1063 'site_password' => [
1064 'desc' => esc_html__('Site Password for password-protected sites', 'photonic'),
1065 'type' => 'text',
1066 'hint' => esc_html__('If you SmugMug site is password-protected you will need to provide the password to be able to show your photos.', 'photonic'),
1067 ],
1068 'album_sort_order' => [
1069 'desc' => esc_html__('Album sort order', 'photonic'),
1070 'type' => 'select',
1071 'options' => [
1072 '' => $this->default_from_settings,
1073 'Last Updated (Descending)' => esc_html__('Last Updated (Descending)', 'photonic'),
1074 'Last Updated (Ascending)' => esc_html__('Last Updated (Ascending)', 'photonic'),
1075 'Date Added (Descending)' => esc_html__('Date Added (Descending)', 'photonic'),
1076 'Date Added (Ascending)' => esc_html__('Date Added (Ascending)', 'photonic'),
1077 ],
1078 ],
1079 ],
1080 'L3' => [
1081 'site_password' => [
1082 'desc' => esc_html__('Site Password for password-protected sites', 'photonic'),
1083 'type' => 'text',
1084 'hint' => esc_html__('If you SmugMug site is password-protected you will need to provide the password to be able to show your photos.', 'photonic'),
1085 ],
1086 ],
1087 'main_size' => [
1088 'desc' => esc_html__('Main image size', 'photonic'),
1089 'type' => 'select',
1090 'options' => $this->allowed_image_sizes['smugmug']['main_size'],
1091 'std' => '',
1092 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; SmugMug &rarr; SmugMug Settings &rarr; Main image size</em>'),
1093 ],
1094 'video_size' => [
1095 'desc' => esc_html__('Main video size', 'photonic'),
1096 'type' => 'select',
1097 'options' => $this->allowed_image_sizes['smugmug']['video_size'],
1098 'std' => '',
1099 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; SmugMug &rarr; SmugMug Settings &rarr; Video size</em>'),
1100 ],
1101 ],
1102 'zenfolio' => [
1103 'L1' => [
1104 'media' => [
1105 'desc' => esc_html__('Media to Show', 'photonic'),
1106 'type' => 'select',
1107 'options' => Photonic::media_options(true, $photonic_zenfolio_media),
1108 'std' => '',
1109 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; Zenfolio &rarr; Zenfolio Photo Settings &rarr; Media to show</em>'),
1110 ],
1111 'caption' => [
1112 'desc' => esc_html__('Photo titles and captions', 'photonic'),
1113 'type' => 'select',
1114 'options' => Photonic::title_caption_options(true, $photonic_zenfolio_title_caption),
1115 'std' => '',
1116 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; Zenfolio &rarr; Zenfolio Photo Settings &rarr; Photo titles and captions</em>'),
1117 ],
1118 'sort_order' => [
1119 'desc' => esc_html__('Search results sort order', 'photonic'),
1120 'type' => 'select',
1121 'options' => [
1122 '' => '',
1123 'Date' => esc_html__('Date', 'photonic'),
1124 'Popularity' => esc_html__('Popularity', 'photonic'),
1125 'Rank' => esc_html__('Rank (for searching by text only)', 'photonic'),
1126 ],
1127 ],
1128 'password' => [
1129 'desc' => esc_html__('Password for password-protected album', 'photonic'),
1130 'type' => 'text',
1131 'req' => 1,
1132 'hint' => esc_html__('You are trying to display photos from a password-protected album. The password is mandatory for such an album.', 'photonic'),
1133 'conditions' => ['selection_passworded' => ['1']],
1134 ],
1135 ],
1136 'L2' => [
1137 'sort_order' => [
1138 'desc' => esc_html__('Search results sort order', 'photonic'),
1139 'type' => 'select',
1140 'options' => [
1141 '' => '',
1142 'Date' => esc_html__('Date', 'photonic'),
1143 'Popularity' => esc_html__('Popularity', 'photonic'),
1144 'Rank' => esc_html__('Rank (for searching by text only)', 'photonic'),
1145 ],
1146 ],
1147 ],
1148 'L3' => [
1149 'structure' => [
1150 'desc' => esc_html__('Group / Hierarchy structure', 'photonic'),
1151 'type' => 'select',
1152 'options' => [
1153 '' => '',
1154 'flat' => esc_html__('All photosets shown in single level', 'photonic'),
1155 'nested' => esc_html__('Photosets shown nested within groups', 'photonic'),
1156 ],
1157 'hint' => sprintf(esc_html__('See examples %1$shere%2$s.', 'photonic'), '<a href="https://aquoid.com/plugins/photonic/zenfolio/group-hierarchy/" target="_blank">', '</a>'),
1158 ],
1159 'headers' => [
1160 'desc' => esc_html__('Show Group Header', 'photonic'),
1161 'type' => 'select',
1162 'options' => [
1163 '' => $this->default_from_settings,
1164 'none' => esc_html__('No header', 'photonic'),
1165 'title' => esc_html__('Title only', 'photonic'),
1166 'counter' => esc_html__('Counts only', 'photonic'),
1167 'title,counter' => esc_html__('Title and counts', 'photonic'),
1168 ],
1169 ],
1170 ],
1171 'main_size' => [
1172 'desc' => esc_html__('Main image size', 'photonic'),
1173 'type' => 'select',
1174 'options' => $this->allowed_image_sizes['zenfolio']['main_size'],
1175 'std' => '',
1176 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; Zenfolio &rarr; Zenfolio Photo Settings &rarr; Main image size</em>'),
1177 ],
1178 'video_size' => [
1179 'desc' => esc_html__('Main video size', 'photonic'),
1180 'type' => 'select',
1181 'options' => $this->allowed_image_sizes['zenfolio']['video_size'],
1182 'std' => '',
1183 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; Zenfolio &rarr; Zenfolio Photo Settings &rarr; Video size</em>'),
1184 ],
1185 ],
1186 'instagram' => [
1187 'media' => [
1188 'desc' => esc_html__('Media to Show', 'photonic'),
1189 'type' => 'select',
1190 'options' => Photonic::media_options(true, $photonic_instagram_media),
1191 'std' => '',
1192 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; Instagram &rarr; Instagram Settings &rarr; Media to show</em>'),
1193 ],
1194 ],
1195 'slideshow' => [
1196 'slideshow-style' => [
1197 'desc' => esc_html__('Slideshow display style', 'photonic'),
1198 'type' => 'image-select',
1199 'options' => [
1200 'strip-below' => esc_html__('Thumbnail strip or buttons below slideshow', 'photonic'),
1201 'strip-above' => esc_html__('Thumbnail strip above slideshow', 'photonic'),
1202 'strip-right' => esc_html__('Thumbnail strip to the right of slideshow', 'photonic'),
1203 'no-strip' => esc_html__('No thumbnails or buttons for the slideshow', 'photonic'),
1204 ],
1205 'std' => $photonic_thumbnail_style,
1206 ],
1207 'strip-style' => [
1208 'desc' => esc_html__('Thumbnails or buttons for the strip?', 'photonic'),
1209 'type' => 'image-select',
1210 'options' => [
1211 'thumbs' => esc_html__('Thumbnails', 'photonic'),
1212 'button' => esc_html__('Buttons', 'photonic'),
1213 ],
1214 'hint' => esc_html__('If you choose "Buttons" those are only shown below the slideshow.', 'photonic'),
1215 'std' => 'thumbs',
1216 ],
1217 'controls' => [
1218 'desc' => esc_html__('Slideshow Controls', 'photonic'),
1219 'type' => 'select',
1220 'options' => [
1221 'hide' => esc_html__('Hide', 'photonic'),
1222 'show' => esc_html__('Show', 'photonic'),
1223 ],
1224 'hint' => esc_html__('Shows Previous and Next buttons on the slideshow.', 'photonic'),
1225 ],
1226 'fx' => [
1227 'desc' => esc_html__('Slideshow Effects', 'photonic'),
1228 'type' => 'select',
1229 'options' => [
1230 'fade' => esc_html__('Fade', 'photonic'),
1231 'slide' => esc_html__('Slide', 'photonic'),
1232 ],
1233 'hint' => esc_html__('Determines if a photo in a slideshow should fade in or slide in.', 'photonic')
1234 ],
1235 'timeout' => [
1236 'desc' => esc_html__('Time between slides in ms', 'photonic'),
1237 'type' => 'text',
1238 'std' => '',
1239 'hint' => esc_html__('Please enter numbers only', 'photonic')
1240 ],
1241 'speed' => [
1242 'desc' => esc_html__('Time for each transition in ms', 'photonic'),
1243 'type' => 'text',
1244 'std' => '',
1245 'hint' => esc_html__('How fast do you want the fade or slide effect to happen?', 'photonic')
1246 ],
1247 'pause' => [
1248 'desc' => esc_html__('Pause upon hover?', 'photonic'),
1249 'type' => 'select',
1250 'options' => [
1251 '0' => esc_html__('No', 'photonic'),
1252 '1' => esc_html__('Yes', 'photonic'),
1253 ],
1254 'hint' => esc_html__('Should the slideshow pause when you hover over it?', 'photonic')
1255 ],
1256 'columns' => [
1257 'desc' => esc_html__('Number of columns in slideshow', 'photonic'),
1258 'type' => 'select',
1259 'options' => [
1260 '' => '',
1261 '1' => 1,
1262 '2' => 2,
1263 '3' => 3,
1264 '4' => 4,
1265 '5' => 5,
1266 '6' => 6,
1267 '7' => 7,
1268 '8' => 8,
1269 '9' => 9,
1270 '10' => 10,
1271 ],
1272 'hint' => esc_html__('Pick > 1 for a carousel', 'photonic'),
1273 ],
1274 ],
1275 'square' => [
1276 'columns' => $this->column_options,
1277 'flickr' => [
1278 'thumb_size' => [
1279 'desc' => esc_html__('Thumbnail size', 'photonic'),
1280 'type' => 'select',
1281 'options' => $this->allowed_image_sizes['flickr']['thumb_size'],
1282 'std' => '',
1283 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; Flickr &rarr; Flickr Settings &rarr; Thumbnail size</em>'),
1284 ],
1285 ],
1286 'google' => [
1287 'thumb_size' => [
1288 'desc' => esc_html__('Thumbnail size', 'photonic'),
1289 'type' => 'text',
1290 'hint' => esc_html__('Numeric values between 1 and 256, both inclusive.', 'photonic'),
1291 'std' => 150,
1292 ],
1293 'crop_thumb' => [
1294 'desc' => esc_html__('Crop Thumbnail', 'photonic'),
1295 'type' => 'select',
1296 'options' => [
1297 'crop' => esc_html__('Crop the thumbnail', 'photonic'),
1298 'no-crop' => esc_html__('Do not crop the thumbnail', 'photonic'),
1299 ],
1300 'std' => 'crop',
1301 'hint' => esc_html__('Cropping the thumbnail presents you with a square thumbnail.', 'photonic')
1302 ],
1303 ],
1304 'smugmug' => [
1305 'thumb_size' => [
1306 'desc' => esc_html__('Thumbnail size', 'photonic'),
1307 'type' => 'select',
1308 'options' => $this->allowed_image_sizes['smugmug']['thumb_size'],
1309 'std' => '',
1310 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; SmugMug &rarr; SmugMug Settings &rarr; Thumbnail size</em>'),
1311 ],
1312 'custom_thumb_size' => [
1313 'desc' => esc_html__('Size of custom thumbnail', 'photonic'),
1314 'type' => 'text',
1315 'hint' => esc_html__('E.g. 300x300 for an image that is 300px on the longest side and 300x300! (with the "!") for a square image', 'photonic'),
1316 'conditions' => ['thumb_size' => ['custom']],
1317 ],
1318 ],
1319 'zenfolio' => [
1320 'thumb_size' => [
1321 'desc' => esc_html__('Thumbnail size', 'photonic'),
1322 'type' => 'select',
1323 'options' => $this->allowed_image_sizes['zenfolio']['thumb_size'],
1324 'std' => '',
1325 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; Zenfolio &rarr; Zenfolio Photo Settings &rarr; Thumbnail size</em>'),
1326 ],
1327 ],
1328 'instagram' => [
1329 'thumb_size' => [
1330 'desc' => esc_html__('Thumbnail size', 'photonic'),
1331 'type' => 'text',
1332 'hint' => esc_html__('Numeric values only. Leave blank for default.', 'photonic'),
1333 'std' => 150,
1334 ],
1335 ],
1336 'wp' => [
1337 'thumb_size' => [
1338 'desc' => esc_html__('Thumbnail size', 'photonic'),
1339 'type' => 'select',
1340 'options' => $this->allowed_image_sizes['wp']['thumb_size'],
1341 'std' => 'thumbnail',
1342 ],
1343 ],
1344 'title_position' => $this->get_title_position_options(),
1345 ],
1346 'random' => [
1347 'flickr' => [
1348 'tile_size' => [
1349 'desc' => esc_html__('Tile size', 'photonic'),
1350 'type' => 'select',
1351 'options' => $this->allowed_image_sizes['flickr']['tile_size'],
1352 'std' => '',
1353 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; Flickr &rarr; Flickr Settings &rarr; Tile image size</em>'),
1354 ],
1355 ],
1356 'google' => [
1357 'tile_size' => [
1358 'desc' => esc_html__('Tile size', 'photonic'),
1359 'type' => 'text',
1360 'hint' => esc_html__('Numeric values between 1 and 16383, both inclusive. Leave blank to use the "Main image size".', 'photonic'),
1361 ],
1362 ],
1363 'smugmug' => [
1364 'tile_size' => [
1365 'desc' => esc_html__('Tile size', 'photonic'),
1366 'type' => 'select',
1367 'options' => $this->allowed_image_sizes['smugmug']['tile_size'],
1368 'std' => '',
1369 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; SmugMug &rarr; SmugMug Settings &rarr; Tile image size</em>'),
1370 ],
1371 ],
1372 'zenfolio' => [
1373 'tile_size' => [
1374 'desc' => esc_html__('Tile size', 'photonic'),
1375 'type' => 'select',
1376 'options' => $this->allowed_image_sizes['zenfolio']['tile_size'],
1377 'std' => '',
1378 'hint' => sprintf($this->default_under, '<em>Photonic &rarr; Settings &rarr; Zenfolio &rarr; Zenfolio Photo Settings &rarr; Tile image size</em>'),
1379 ],
1380 ],
1381 'instagram' => [
1382 ],
1383 'wp' => [
1384 'tile_size' => [
1385 'desc' => esc_html__('Tile size', 'photonic'),
1386 'type' => 'select',
1387 'options' => $this->allowed_image_sizes['wp']['tile_size'],
1388 'std' => 'full',
1389 ],
1390 ],
1391 'title_position' => $this->get_title_position_options(),
1392 ],
1393 'L1' => [
1394 'count' => [
1395 'desc' => esc_html__('Number of photos to show', 'photonic'),
1396 'type' => 'text',
1397 'hint' => esc_html__('Numeric values only. Leave blank for default.', 'photonic'),
1398 ],
1399 'more' => [
1400 'desc' => esc_html__('"More" button text', 'photonic'),
1401 'type' => 'text',
1402 'hint' => esc_html__('Will show a "More" button with the specified text if the number of photos is higher than the above entry. Leave blank to show no button', 'photonic'),
1403 ],
1404 'show_gallery' => [
1405 'desc' => esc_html__('"Show Gallery" button text', 'photonic'),
1406 'type' => 'text',
1407 'hint' => esc_html__('Will show a "Show Gallery" button with the specified text. This will show a button instead of the gallery when the page loads, saving time on the load. Users can click on this button to see the gallery. Leave blank to show no button', 'photonic'),
1408 ],
1409 ],
1410 'L2' => [
1411 'count' => [
1412 'desc' => esc_html__('Number of albums to show', 'photonic'),
1413 'type' => 'text',
1414 'hint' => esc_html__('Numeric values only. Leave blank for default.', 'photonic'),
1415 ],
1416 'more' => [
1417 'desc' => esc_html__('"More" button text', 'photonic'),
1418 'type' => 'text',
1419 'hint' => esc_html__('Will show a "More" button with the specified text if the number of albums is higher than the above entry. Leave blank to show no button', 'photonic'),
1420 ],
1421 'popup_type' => [
1422 'type' => 'field_list',
1423 'list_type' => 'sequence',
1424 'list' => [
1425 'popup' => [
1426 'desc' => esc_html__('Show an overlaid popup panel', 'photonic'),
1427 'type' => 'select',
1428 'options' => [
1429 '' => '',
1430 'hide' => esc_html__('No', 'photonic'),
1431 'show' => esc_html__('Yes', 'photonic'),
1432 ],
1433 'std' => empty($photonic_enable_popup) ? 'hide' : 'show',
1434 'hint' => sprintf(esc_html__('Setting this to "No" would directly start up a lightbox with photos. Setting this to "Yes" would show an overlaid panel that has the photos. See %1$sdocumentation%2$s.', 'photonic'), '<a href="https://aquoid.com/plugins/photonic/layouts/#nested" target="_blank">', '</a>'),
1435 ],
1436 'photo_count' => [
1437 'desc' => esc_html__('Number of photos to show in overlaid popup', 'photonic'),
1438 'type' => 'text',
1439 'hint' => esc_html__('Numeric values only. Leave blank for default.', 'photonic'),
1440 'conditions' => ['popup' => ['show']],
1441 ],
1442 'photo_more' => [
1443 'desc' => esc_html__('"More" button text in overlaid popup', 'photonic'),
1444 'type' => 'text',
1445 'hint' => esc_html__('Will show a "More" button with the specified text if the number of photos in the overlaid popup is higher than the above entry. Leave blank to show no button', 'photonic'),
1446 'conditions' => ['popup' => ['show']],
1447 ]
1448 ]
1449 ],
1450 'show_gallery' => [
1451 'desc' => esc_html__('"Show Gallery" button text', 'photonic'),
1452 'type' => 'text',
1453 'hint' => esc_html__('Will show a "Show Gallery" button with the specified text. This will show a button instead of the gallery when the page loads, saving time on the load. Users can click on this button to see the gallery. Leave blank to show no button', 'photonic'),
1454 ],
1455 ],
1456 'L3' => [
1457 'show_gallery' => [
1458 'desc' => esc_html__('"Show Gallery" button text', 'photonic'),
1459 'type' => 'text',
1460 'hint' => esc_html__('Will show a "Show Gallery" button with the specified text. This will show a button instead of the gallery when the page loads, saving time on the load. Users can click on this button to see the gallery. Leave blank to show no button', 'photonic'),
1461 ],
1462 ],
1463 ],
1464 ];
1465
1466 $this->flow_options['screen-5']['circle'] = $this->flow_options['screen-5']['square'];
1467 $this->flow_options['screen-5']['masonry'] = $this->flow_options['screen-5']['random'];
1468 $this->flow_options['screen-5']['masonry']['columns'] = $this->column_options;
1469 $this->flow_options['screen-5']['mosaic'] = $this->flow_options['screen-5']['random'];
1470 unset($this->flow_options['screen-5']['random']['title_position']['options']['below']);
1471 unset($this->flow_options['screen-5']['mosaic']['title_position']['options']['below']);
1472 $this->flow_options['screen-5']['L3']['popup_type'] = $this->flow_options['screen-5']['L2']['popup_type'];
1473 }
1474
1475 private function get_zenfolio_categories() {
1476 $response = wp_remote_request('https://api.zenfolio.com/api/1.8/zfapi.asmx/GetCategories', ['sslverify' => PHOTONIC_SSL_VERIFY]);
1477 $category_list = ['' => ''];
1478
1479 if (!is_wp_error($response)) {
1480 if (isset($response['response']) && isset($response['response']['code'])) {
1481 if ($response['response']['code'] == 200) {
1482 if (isset($response['body'])) {
1483 $response = simplexml_load_string($response['body']);
1484 if (!empty($response->Category)) {
1485 $categories = $response->Category;
1486 foreach ($categories as $category) {
1487 $category_list[esc_attr($category->Code)] = $category->DisplayName;
1488 }
1489 }
1490 }
1491 }
1492 }
1493 }
1494 asort($category_list);
1495 return $category_list;
1496 }
1497
1498 private function set_allowed_image_sizes() {
1499 $this->allowed_image_sizes = [
1500 'flickr' => [
1501 'thumb_size' => [
1502 '' => $this->default_from_settings,
1503 's' => esc_html__('Small square, 75x75px', 'photonic'),
1504 'q' => esc_html__('Large square, 150x150px', 'photonic'),
1505 't' => esc_html__('Thumbnail, 100px on longest side', 'photonic'),
1506 'm' => esc_html__('Small, 240px on longest side', 'photonic'),
1507 'n' => esc_html__('Small, 320px on longest side', 'photonic'),
1508 ],
1509 'tile_size' => [
1510 '' => $this->default_from_settings,
1511 'same' => esc_html__('Same as Main image size', 'photonic'),
1512 'n' => esc_html__('Small, 320px on longest side', 'photonic'),
1513 'none' => esc_html__('Medium, 500px on the longest side', 'photonic'),
1514 'z' => esc_html__('Medium, 640px on longest side', 'photonic'),
1515 'c' => esc_html__('Medium, 800px on longest side', 'photonic'),
1516 'b' => esc_html__('Large, 1024px on longest side', 'photonic'),
1517 'h' => esc_html__('Large, 1600px on longest side', 'photonic'),
1518 'k' => esc_html__('Large, 2048px on longest side', 'photonic'),
1519 'o' => esc_html__('Original', 'photonic'),
1520 ],
1521 'main_size' => [
1522 '' => $this->default_from_settings,
1523 'none' => esc_html__('Medium, 500px on the longest side', 'photonic'),
1524 'z' => esc_html__('Medium, 640px on longest side', 'photonic'),
1525 'c' => esc_html__('Medium, 800px on longest side', 'photonic'),
1526 'b' => esc_html__('Large, 1024px on longest side', 'photonic'),
1527 'h' => esc_html__('Large, 1600px on longest side', 'photonic'),
1528 'k' => esc_html__('Large, 2048px on longest side', 'photonic'),
1529 'o' => esc_html__('Original', 'photonic'),
1530 ],
1531 'video_size' => [
1532 '' => $this->default_from_settings,
1533 'Site MP4' => esc_html__('Site MP4', 'photonic'),
1534 'Mobile MP4' => esc_html__('Mobile MP4', 'photonic'),
1535 'HD MP4' => esc_html__('HD MP4', 'photonic'),
1536 'Video Original' => esc_html__('Video Original', 'photonic'),
1537 ],
1538 ],
1539 'smugmug' => [
1540 'thumb_size' => [
1541 '' => $this->default_from_settings,
1542 'Tiny' => esc_html__('Tiny', 'photonic'),
1543 'Thumb' => esc_html__('Thumb', 'photonic'),
1544 'Small' => esc_html__('Small', 'photonic'),
1545 'custom' => esc_html__('Custom', 'photonic'),
1546 ],
1547 'tile_size' => [
1548 '' => $this->default_from_settings,
1549 'same' => esc_html__('Same as Main image size', 'photonic'),
1550 '4K' => esc_html__('4K (not always available)', 'photonic'),
1551 '5K' => esc_html__('5K (not always available)', 'photonic'),
1552 'Medium' => esc_html__('Medium', 'photonic'),
1553 'Original' => esc_html__('Original (not always available)', 'photonic'),
1554 'Large' => esc_html__('Large', 'photonic'),
1555 'Largest' => esc_html__('Largest available', 'photonic'),
1556 'XLarge' => esc_html__('XLarge (not always available)', 'photonic'),
1557 'X2Large' => esc_html__('X2Large (not always available)', 'photonic'),
1558 'X3Large' => esc_html__('X3Large (not always available)', 'photonic'),
1559 'X4Large' => esc_html__('X4Large (not always available)', 'photonic'),
1560 'X5Large' => esc_html__('X5Large (not always available)', 'photonic'),
1561 ],
1562 'main_size' => [
1563 '' => $this->default_from_settings,
1564 '4K' => esc_html__('4K (not always available)', 'photonic'),
1565 '5K' => esc_html__('5K (not always available)', 'photonic'),
1566 'Medium' => esc_html__('Medium', 'photonic'),
1567 'Original' => esc_html__('Original (not always available)', 'photonic'),
1568 'Large' => esc_html__('Large', 'photonic'),
1569 'Largest' => esc_html__('Largest available', 'photonic'),
1570 'XLarge' => esc_html__('XLarge (not always available)', 'photonic'),
1571 'X2Large' => esc_html__('X2Large (not always available)', 'photonic'),
1572 'X3Large' => esc_html__('X3Large (not always available)', 'photonic'),
1573 'X4Large' => esc_html__('X4Large (not always available)', 'photonic'),
1574 'X5Large' => esc_html__('X5Large (not always available)', 'photonic'),
1575 ],
1576 'video_size' => [
1577 '' => $this->default_from_settings,
1578 '110' => esc_html__('110px along longest side', 'photonic'),
1579 '200' => esc_html__('200px along longest side', 'photonic'),
1580 '320' => esc_html__('320px along longest side', 'photonic'),
1581 '640' => esc_html__('640px along longest side', 'photonic'),
1582 '1280' => esc_html__('1280px along longest side', 'photonic'),
1583 '1920' => esc_html__('1920px along longest side', 'photonic'),
1584 'Largest' => esc_html__('Largest available', 'photonic'),
1585 ],
1586 ],
1587 'google' => [
1588 'thumb_size' => [
1589 '32' => '32',
1590 '48' => 48,
1591 '64' => 64,
1592 '72' => 72,
1593 '104' => 104,
1594 '144' => 144,
1595 '150' => 150,
1596 '160' => 160,
1597 ],
1598 'tile_size' => [
1599 'same' => esc_html__('Same as Main image size', 'photonic'),
1600 '94' => 94,
1601 '110' => 110,
1602 '128' => 128,
1603 '200' => 200,
1604 '220' => 220,
1605 '288' => 288,
1606 '320' => 320,
1607 '400' => 400,
1608 '512' => 512,
1609 '576' => 576,
1610 '640' => 640,
1611 '720' => 720,
1612 '800' => 800,
1613 '912' => 912,
1614 '1024' => 1024,
1615 '1152' => 1152,
1616 '1280' => 1280,
1617 '1440' => 1440,
1618 '1600' => 1600,
1619 ],
1620 'main_size' => [
1621 '94' => 94,
1622 '110' => 110,
1623 '128' => 128,
1624 '200' => 200,
1625 '220' => 220,
1626 '288' => 288,
1627 '320' => 320,
1628 '400' => 400,
1629 '512' => 512,
1630 '576' => 576,
1631 '640' => 640,
1632 '720' => 720,
1633 '800' => 800,
1634 '912' => 912,
1635 '1024' => 1024,
1636 '1152' => 1152,
1637 '1280' => 1280,
1638 '1440' => 1440,
1639 '1600' => 1600,
1640 ],
1641 ],
1642 'zenfolio' => [
1643 'thumb_size' => [
1644 '' => $this->default_from_settings,
1645 "1" => esc_html__("Square thumbnail, 60 &times; 60px, cropped square", 'photonic'),
1646 "0" => esc_html__("Small thumbnail, upto 80 &times; 80px", 'photonic'),
1647 "10" => esc_html__("Medium thumbnail, upto 120 &times; 120px", 'photonic'),
1648 "11" => esc_html__("Large thumbnail, upto 120 &times; 120px", 'photonic'),
1649 "2" => esc_html__("Small image, upto 400 &times; 400px", 'photonic'),
1650 ],
1651 'tile_size' => [
1652 '' => $this->default_from_settings,
1653 'same' => esc_html__('Same as Main image size', 'photonic'),
1654 '2' => esc_html__('Small image, upto 400 &times; 400px', 'photonic'),
1655 '3' => esc_html__('Medium image, upto 580 &times; 450px', 'photonic'),
1656 '4' => esc_html__('Large image, upto 800 &times; 630px', 'photonic'),
1657 '5' => esc_html__('X-Large image, upto 1100 &times; 850px', 'photonic'),
1658 '6' => esc_html__('XX-Large image, upto 1550 &times; 960px', 'photonic'),
1659 ],
1660 'main_size' => [
1661 '' => $this->default_from_settings,
1662 '2' => esc_html__('Small image, upto 400 &times; 400px', 'photonic'),
1663 '3' => esc_html__('Medium image, upto 580 &times; 450px', 'photonic'),
1664 '4' => esc_html__('Large image, upto 800 &times; 630px', 'photonic'),
1665 '5' => esc_html__('X-Large image, upto 1100 &times; 850px', 'photonic'),
1666 '6' => esc_html__('XX-Large image, upto 1550 &times; 960px', 'photonic'),
1667 ],
1668 'video_size' => [
1669 '' => $this->default_from_settings,
1670 '220' => esc_html__('360p resolution (MP4)', 'photonic'),
1671 '215' => esc_html__('480p resolution (MP4)', 'photonic'),
1672 '210' => esc_html__('720p resolution (MP4)', 'photonic'),
1673 '200' => esc_html__('1080p resolution (MP4)', 'photonic'),
1674 ],
1675 ],
1676 'wp' => [
1677 'thumb_size' => Photonic::get_wp_image_sizes(false, true),
1678 'tile_size' => Photonic::get_wp_image_sizes(true, true),
1679 'main_size' => Photonic::get_wp_image_sizes(true, true),
1680 ],
1681 ];
1682
1683 global $photonic_flickr_thumb_size, $photonic_flickr_tile_size, $photonic_flickr_main_size, $photonic_flickr_video_size,
1684 $photonic_smug_thumb_size, $photonic_smug_tile_size, $photonic_smug_main_size, $photonic_smug_video_size,
1685 $photonic_zenfolio_thumb_size, $photonic_zenfolio_tile_size, $photonic_zenfolio_main_size, $photonic_zenfolio_video_size;
1686
1687 $this->allowed_image_sizes['flickr']['thumb_size'][''] .= ' - '.$this->allowed_image_sizes['flickr']['thumb_size'][$photonic_flickr_thumb_size];
1688 $this->allowed_image_sizes['flickr']['tile_size'][''] .= ' - '.$this->allowed_image_sizes['flickr']['tile_size'][$photonic_flickr_tile_size];
1689 $this->allowed_image_sizes['flickr']['main_size'][''] .= ' - '.$this->allowed_image_sizes['flickr']['main_size'][$photonic_flickr_main_size];
1690 $this->allowed_image_sizes['flickr']['video_size'][''] .= ' - '.$this->allowed_image_sizes['flickr']['video_size'][$photonic_flickr_video_size];
1691
1692 $this->allowed_image_sizes['smugmug']['thumb_size'][''] .= ' - '.$this->allowed_image_sizes['smugmug']['thumb_size'][$photonic_smug_thumb_size];
1693 $this->allowed_image_sizes['smugmug']['tile_size'][''] .= ' - '.$this->allowed_image_sizes['smugmug']['tile_size'][$photonic_smug_tile_size];
1694 $this->allowed_image_sizes['smugmug']['main_size'][''] .= ' - '.$this->allowed_image_sizes['smugmug']['main_size'][$photonic_smug_main_size];
1695 $this->allowed_image_sizes['smugmug']['video_size'][''] .= ' - '.$this->allowed_image_sizes['smugmug']['video_size'][$photonic_smug_video_size];
1696
1697 $this->allowed_image_sizes['zenfolio']['thumb_size'][''] .= ' - '.$this->allowed_image_sizes['zenfolio']['thumb_size'][$photonic_zenfolio_thumb_size];
1698 $this->allowed_image_sizes['zenfolio']['tile_size'][''] .= ' - '.$this->allowed_image_sizes['zenfolio']['tile_size'][$photonic_zenfolio_tile_size];
1699 $this->allowed_image_sizes['zenfolio']['main_size'][''] .= ' - '.$this->allowed_image_sizes['zenfolio']['main_size'][$photonic_zenfolio_main_size];
1700 $this->allowed_image_sizes['zenfolio']['video_size'][''] .= ' - '.$this->allowed_image_sizes['zenfolio']['video_size'][$photonic_zenfolio_video_size];
1701 }
1702
1703 /**
1704 * @return mixed
1705 */
1706 public function get_flow_options() {
1707 return $this->flow_options;
1708 }
1709
1710 /**
1711 * @return array
1712 */
1713 public function get_layout_options() {
1714 return $this->layout_options;
1715 }
1716
1717 private function get_title_position_options() {
1718 $ret = [
1719 '' => $this->default_from_settings,
1720 'regular' => esc_html__('Normal title display using the HTML "title" attribute', 'photonic'),
1721 'below' => esc_html__('Below the thumbnail', 'photonic'),
1722 'tooltip' => esc_html__('Using a JavaScript tooltip', 'photonic'),
1723 'hover-slideup-show' => esc_html__('Slide up from bottom upon hover', 'photonic'),
1724 'slideup-stick' => esc_html__('Cover the lower portion always', 'photonic'),
1725 'none' => esc_html__('No title', 'photonic'),
1726 ];
1727
1728 return [
1729 'desc' => esc_html__('How do you want the title?', 'photonic'),
1730 'type' => 'select',
1731 'options' => $ret,
1732 'std' => '',
1733 ];
1734 }
1735 }
1736