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

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

313 lines 11.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Photonic_Plugin\Options;
4
5 use Photonic_Plugin\Core\Utilities;
6
7 class Zenfolio extends Option_Tab {
8 protected function __construct() {
9 $this->options = [
10 [
11 'name' => "Zenfolio Photo Settings",
12 'desc' => "Control settings for Zenfolio",
13 'category' => 'zenfolio-settings',
14 'type' => 'section',
15 ],
16
17 [
18 'name' => 'Default user',
19 'desc' => 'If no user is specified in the shortcode this one will be used. This is the username from https://<span style="text-decoration: underline">username</span>.zenfolio.com/',
20 'id' => 'zenfolio_default_user',
21 'grouping' => 'zenfolio-settings',
22 'type' => 'text'
23 ],
24
25 [
26 'name' => 'Media to show',
27 'desc' => 'You can choose to include photos as well as videos in your output. This can be overridden by the <code>media</code> parameter in the shortcode:',
28 'id' => 'zenfolio_media',
29 'grouping' => 'zenfolio-settings',
30 'type' => 'select',
31 'options' => Utilities::media_options()
32 ],
33
34 [
35 'name' => "Disable lightbox linking",
36 'desc' => "Check this to disable linking the photo title in the lightbox to the original photo page.",
37 'id' => 'zenfolio_disable_title_link',
38 'grouping' => 'zenfolio-settings',
39 'type' => 'checkbox'
40 ],
41
42 [
43 'name' => "Constrain Photos Per Row",
44 'desc' => "How do you want the control the number of photo thumbnails per row by default? This can be overridden by adding the '<code>columns</code>' parameter to the '<code>gallery</code>' shortcode.",
45 'id' => 'zenfolio_photos_per_row_constraint',
46 'grouping' => 'zenfolio-settings',
47 'type' => 'select',
48 'options' => [
49 'padding' => 'Automatically calculate thumbnails per row',
50 'count' => 'Fix the number of thumbnails per row',
51 ]
52 ],
53
54 [
55 'name' => "Fixed number of thumbnails",
56 'desc' => " If you have fixed the number of thumbnails per row above, enter the number of thumbnails",
57 'id' => 'zenfolio_photos_constrain_by_count',
58 'grouping' => 'zenfolio-settings',
59 'type' => 'select',
60 'options' => $this->selection_range(1, 10)
61 ],
62
63 [
64 'name' => "Thumbnail size",
65 'desc' => "What size should a thumbnail be shown in if no size is specified? Zenfolio lets you display a thumbnail in the following sizes:",
66 'id' => 'zenfolio_thumb_size',
67 'grouping' => 'zenfolio-settings',
68 'type' => 'select',
69 'options' => [
70 '0' => "Small thumbnail, upto 80 x 80px",
71 '1' => "Square thumbnail, 60 x 60px, cropped square",
72 '10' => "Medium thumbnail, upto 120 x 120px",
73 '11' => "Large thumbnail, upto 120 x 120px",
74 '2' => "Small image, upto 400 x 400px",
75 ]
76 ],
77
78 [
79 'name' => "Main image size",
80 'desc' => "Show this size for the image in the lightbox:",
81 'id' => 'zenfolio_main_size',
82 'grouping' => 'zenfolio-settings',
83 'type' => 'select',
84 'options' => [
85 '2' => "Small image, upto 400 x 400px",
86 '3' => "Medium image, upto 580 x 450px",
87 '4' => "Large image, upto 800 x 630px",
88 '5' => "X-Large image, upto 1100 x 850px",
89 '6' => "XX-Large image, upto 1550 x 960px",
90 ]
91 ],
92
93 [
94 'name' => "Tile image size",
95 'desc' => "<strong>This is applicable only if you are using the random tiled gallery, masonry or mosaic layouts.</strong> This size will be used as the image for the tiles. Picking a size smaller than the Main image size above will save bandwidth if your users <strong>don't click</strong> on individual images. Conversely, leaving this the same as the Main image size will save bandwidth if your users <strong>do click</strong> on individual images:",
96 'id' => 'zenfolio_tile_size',
97 'grouping' => 'zenfolio-settings',
98 'type' => 'select',
99 'options' => [
100 'same' => "Same as Main image size",
101 '2' => "Small image, upto 400 x 400px",
102 '3' => "Medium image, upto 580 x 450px",
103 '4' => "Large image, upto 800 x 630px",
104 '5' => "X-Large image, upto 1100 x 850px",
105 '6' => "XX-Large image, upto 1550 x 960px",
106 ]
107 ],
108
109 [
110 'name' => 'Video size',
111 'desc' => 'Show this size for the video in the lightbox:',
112 'id' => 'zenfolio_video_size',
113 'grouping' => 'zenfolio-settings',
114 'type' => 'select',
115 'options' => [
116 '220' => "360p resolution (MP4)",
117 '215' => "480p resolution (MP4)",
118 '210' => "720p resolution (MP4)",
119 '200' => "1080p resolution (MP4)",
120 ]
121 ],
122
123 [
124 'name' => "Photo Title Display",
125 'desc' => "How do you want the title of the photos?",
126 'id' => 'zenfolio_photo_title_display',
127 'grouping' => 'zenfolio-settings',
128 'type' => "radio",
129 'options' => $this->title_styles(),
130 ],
131
132 [
133 'name' => "Photo titles and captions for the galleries / slideshows",
134 'desc' => "What do you want to show as the photo title in the gallery / slideshow? This is used for the tooltips and title displays.",
135 'id' => 'zenfolio_title_caption',
136 'grouping' => 'zenfolio-settings',
137 'type' => 'select',
138 'options' => Utilities::title_caption_options()
139 ],
140
141 $this->get_layout_engine_options('zenfolio_layout_engine', 'zenfolio-settings'),
142
143 [
144 'name' => "Zenfolio Groups",
145 'desc' => "Control settings for Zenfolio Groups",
146 'category' => 'zenfolio-groups',
147 'type' => 'section',
148 ],
149
150 [
151 'name' => "What is this section?",
152 'desc' => "Options in this section are in effect when you use the shortcode format <code>[gallery type='zenfolio' view='hierarchy' ...]</code> or <code>[gallery type='zenfolio' view='group' ...]</code>. They are used to control the Photoset's thumbnail display",
153 'grouping' => 'zenfolio-groups',
154 'type' => "blurb",
155 ],
156
157 [
158 'name' => "Exclude Empty Groups",
159 'desc' => "Do not show groups whose immediate children photosets have no photos.",
160 'id' => 'zenfolio_hide_empty_groups',
161 'grouping' => 'zenfolio-groups',
162 'type' => 'checkbox'
163 ],
164
165 [
166 'name' => "Hide Group Title",
167 'desc' => "This will hide the title for your Zenfolio Group.",
168 'id' => 'zenfolio_hide_group_title',
169 'grouping' => 'zenfolio-groups',
170 'type' => 'checkbox'
171 ],
172
173 [
174 'name' => "Link to Zenfolio",
175 'desc' => "Link the group title (if shown) to the Zenfolio group page",
176 'id' => 'zenfolio_link_group_page',
177 'grouping' => 'zenfolio-groups',
178 'type' => 'checkbox'
179 ],
180
181 [
182 'name' => "Hide Number of Photos, if available",
183 'desc' => "This will hide the number of photos in your Zenfolio Group.",
184 'id' => 'zenfolio_hide_group_photo_count',
185 'grouping' => 'zenfolio-groups',
186 'type' => 'checkbox'
187 ],
188
189 [
190 'name' => "Hide Number of Sub-Groups, if available",
191 'desc' => "This will hide the number of sub-groups in your Zenfolio Group.",
192 'id' => 'zenfolio_hide_group_group_count',
193 'grouping' => 'zenfolio-groups',
194 'type' => 'checkbox'
195 ],
196
197 [
198 'name' => "Hide Number of Photosets, if available",
199 'desc' => "This will hide the number of photosets in your Zenfolio Group.",
200 'id' => 'zenfolio_hide_group_set_count',
201 'grouping' => 'zenfolio-groups',
202 'type' => 'checkbox'
203 ],
204
205 [
206 'name' => "Zenfolio Photoset Thumbnails (with other Photosets)",
207 'desc' => "Control settings for Zenfolio Photoset thumbnails",
208 'category' => 'zenfolio-sets',
209 'type' => 'section',
210 ],
211
212 [
213 'name' => "What is this section?",
214 'desc' => "Options in this section are in effect when you use the shortcode format <code>[gallery type='zenfolio' view='photosets' ...]</code>. They are used to control the Photoset's thumbnail display",
215 'grouping' => 'zenfolio-sets',
216 'type' => "blurb",
217 ],
218
219 [
220 'name' => "Photoset Title Display",
221 'desc' => "How do you want the title of the Photoset?",
222 'id' => 'zenfolio_set_title_display',
223 'grouping' => 'zenfolio-sets',
224 'type' => "radio",
225 'options' => $this->title_styles(),
226 ],
227
228 [
229 'name' => "Hide Photo Count in Title Display",
230 'desc' => "This will hide the number of photos in your Photoset's title.",
231 'id' => 'zenfolio_hide_set_photos_count_display',
232 'grouping' => 'zenfolio-sets',
233 'type' => 'checkbox'
234 ],
235
236 [
237 'name' => "Hide thumbnails for Password-protected sets",
238 'desc' => "This will hide the thumbnail of password-protected photosets (Password-protected sets are not currently supported, so it is advisable to hide the thumbnails).",
239 'id' => 'zenfolio_hide_password_protected_thumbnail',
240 'grouping' => 'zenfolio-sets',
241 'type' => 'checkbox'
242 ],
243
244 [
245 'name' => "Constrain Photosets Per Row",
246 'desc' => "How do you want the control the number of photoset thumbnails per row? This can be overridden by adding the '<code>columns</code>' parameter to the '<code>gallery</code>' shortcode.",
247 'id' => 'zenfolio_sets_per_row_constraint',
248 'grouping' => 'zenfolio-sets',
249 'type' => 'select',
250 'options' => [
251 'padding' => 'Automatically calculate thumbnails per row',
252 'count' => 'Fix the number of thumbnails per row',
253 ]
254 ],
255
256 [
257 'name' => "Fixed number of thumbnails",
258 'desc' => " If you have fixed the number of thumbnails per row above, enter the number of thumbnails",
259 'id' => 'zenfolio_sets_constrain_by_count',
260 'grouping' => 'zenfolio-sets',
261 'type' => 'select',
262 'options' => $this->selection_range(1, 10)
263 ],
264
265 [
266 'name' => "Zenfolio Photoset Header Thumbnails",
267 'desc' => "Control settings for Zenfolio Photosets when displayed in your page",
268 'category' => 'zenfolio-set',
269 'type' => 'section',
270 ],
271
272 [
273 'name' => "What is this section?",
274 'desc' => "Options in this section are in effect when you use the shortcode format <code>[gallery type='zenfolio' view='photosets' ...]</code>. In other words, the gallery output for the Photoset is directly on the page, or in a popup and you want to control your Photoset's thumbnail.",
275 'grouping' => 'zenfolio-set',
276 'type' => "blurb",
277 ],
278
279 [
280 'name' => "Hide Photoset Thumbnail",
281 'desc' => "This will hide the thumbnail for your Zenfolio Photoset.",
282 'id' => 'zenfolio_hide_set_thumbnail',
283 'grouping' => 'zenfolio-set',
284 'type' => 'checkbox'
285 ],
286
287 [
288 'name' => "Hide Photoset Title",
289 'desc' => "This will hide the title for your Zenfolio Photoset.",
290 'id' => 'zenfolio_hide_set_title',
291 'grouping' => 'zenfolio-set',
292 'type' => 'checkbox'
293 ],
294
295 [
296 'name' => "Link to Zenfolio",
297 'desc' => "Link the set thumbnail and title (if shown) to the Zenfolio set page",
298 'id' => 'zenfolio_link_set_page',
299 'grouping' => 'zenfolio-set',
300 'type' => 'checkbox'
301 ],
302
303 [
304 'name' => "Hide Number of Photos",
305 'desc' => "This will hide the number of photos in your Zenfolio Photoset.",
306 'id' => 'zenfolio_hide_set_photo_count',
307 'grouping' => 'zenfolio-set',
308 'type' => 'checkbox'
309 ],
310 ];
311 }
312 }
313