PluginProbe
Photonic Gallery & Lightbox for Flickr, SmugMug & Others / 2.29
Photonic Gallery & Lightbox for Flickr, SmugMug & Others v2.29
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 / flickr-options.php

flickr-options.php in Photonic Gallery & Lightbox for Flickr, SmugMug & Others 2.29, at options/flickr-options.php

432 lines 20.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 global $photonic_flickr_options;
3
4 $photonic_flickr_options = array(
5 array('name' => "How To",
6 'desc' => "Control generic settings for the plugin",
7 'category' => 'flickr-how-to',
8 'buttons' => 'no-buttons',
9 'type' => 'section',),
10
11 array('name' => "Creating a gallery",
12 'desc' => "<strong>Please complete the setup steps in the \"Flickr Settings\" tab before attempting to create a gallery!</strong> <br/><br/>
13 To create a gallery with Flickr content you can use either a <strong><em>Gutenberg Block</em></strong>
14 or the <em>Add / Edit Photonic Gallery</em> button in the <strong><em>Classic Editor</em></strong>:<br/><br/>
15 <img src='".PHOTONIC_URL."/options/screenshots/Flickr-1.png' style='max-width: 600px;'/>",
16 'grouping' => 'flickr-how-to',
17 'type' => 'blurb',),
18
19 array('name' => "Flickr settings",
20 'desc' => "Control settings for Flickr",
21 'category' => "flickr-settings",
22 'type' => 'section',),
23
24 array('name' => "Flickr API Key",
25 'desc' => "To make use of the Flickr functionality you have to use your Flickr API Key.
26 You can <a href='http://www.flickr.com/services/api/misc.api_keys.html'>obtain a key online</a> if you don't have one.
27 Note that you are responsible for following all of the Flickr API's <a href='http://www.flickr.com/services/api/tos/'>Terms of Service</a>",
28 'id' => "flickr_api_key",
29 'grouping' => "flickr-settings",
30 'type' => 'text'),
31
32 array('name' => "Flickr API Secret",
33 'desc' => "To make use of authenticated Flickr functionality you have to use your Flickr API secret.
34 You can <a href='http://www.flickr.com/services/api/misc.api_keys.html'>obtain a key online</a> if you don't have one.
35 Note that you are responsible for following all of the Flickr API's <a href='http://www.flickr.com/services/api/tos/'>Terms of Service</a>",
36 'id' => "flickr_api_secret",
37 'grouping' => "flickr-settings",
38 'type' => 'text'),
39
40 array('name' => "Allow User Login (for Front-end / Client-side Authentication)",
41 'desc' => "Let visitors of your site login to Flickr to see private photos for which they have permissions (will show a login button if they are not logged in). This requires your visitors to have Flickr accounts themselves. See <a href='https://aquoid.com/plugins/photonic/authentication/'>here</a> for more.",
42 'id' => "flickr_allow_oauth",
43 'grouping' => "flickr-settings",
44 'type' => 'checkbox'),
45
46 array('name' => "Access Token (for Back-end / Server-side Authentication)",
47 'desc' => "To get your token go to <em>Photonic &rarr; Authentication &rarr; Flickr</em>, and authenticate. Save the token you get here. <br/>If you have set
48 up a token, your users can see protected Flickr photos without a Flickr account. See <a href='https://aquoid.com/plugins/photonic/authentication/'>here</a> for more.",
49 'id' => "flickr_access_token",
50 'grouping' => "flickr-settings",
51 'type' => 'text'),
52
53 array('name' => "Access Token Secret (for Back-end / Server-side Authentication)",
54 'desc' => "To get your token secret go to <em>Photonic &rarr; Authentication &rarr; Flickr</em>, and authenticate. Save the token secret you get here. Your token secret works with the token set in the prvious option. See <a href='https://aquoid.com/plugins/photonic/authentication/'>here</a> for more.",
55 'id' => "flickr_token_secret",
56 'grouping' => "flickr-settings",
57 'type' => 'text'),
58
59 array('name' => "Login Box Text",
60 'desc' => "If &ldquo;Allow User Login&rdquo; is enabled above, this is the text users will see before the login button (you can use HTML tags here)",
61 'id' => "flickr_login_box",
62 'grouping' => "flickr-settings",
63 'type' => 'textarea'),
64
65 array('name' => "Login Button Text",
66 'desc' => "If &ldquo;Allow User Login&rdquo; is enabled above, this is the text users will see before the login button (you can use HTML tags other than &lt;a&gt; here)",
67 'id' => "flickr_login_button",
68 'grouping' => "flickr-settings",
69 'type' => 'text'),
70
71 array('name' => 'Default user',
72 'desc' => 'If no user is specified in the shortcode this one will be used. <strong>Note that this is not the username from https://www.flickr.com/photos/<span style="text-decoration: underline">username</span>/</strong>, but you can get the user id from <em>Photonic &rarr; Helpers</em>.',
73 'id' => 'flickr_default_user',
74 'grouping' => 'flickr-settings',
75 'type' => 'text'),
76
77 array('name' => 'Media to show',
78 '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:',
79 'id' => "flickr_media",
80 'grouping' => "flickr-settings",
81 'type' => 'select',
82 'options' => Photonic::media_options()),
83
84 array('name' => "Thumbnail size",
85 'desc' => "Flickr lets you display a thumbnail in the following sizes:",
86 'id' => "flickr_thumb_size",
87 'grouping' => "flickr-settings",
88 'type' => 'select',
89 'options' => array(
90 "s" => "Small square, 75x75px",
91 "q" => "Large square, 150x150px",
92 "t" => "Thumbnail, 100px on longest side",
93 "m" => "Small, 240px on longest side",
94 "n" => "Small, 320px on longest side",
95 )),
96
97 array('name' => "Main image size",
98 'desc' => "When you click on a thumbnail this size will be displayed if you are using a slideshow. If you are not using a slideshow you will be taken to the Flickr page:",
99 'id' => "flickr_main_size",
100 'grouping' => "flickr-settings",
101 'type' => 'select',
102 'options' => array(
103 "none" => "Medium, 500px on the longest side",
104 "z" => "Medium, 640px on longest side",
105 "c" => "Medium, 800px on longest side",
106 "b" => "Large, 1024px on longest side",
107 "h" => "Large, 1600px on longest side",
108 "k" => "Large, 2048px on longest side",
109 "o" => "Original",
110 )),
111
112 array('name' => "Tile image size",
113 '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:",
114 'id' => "flickr_tile_size",
115 'grouping' => "flickr-settings",
116 'type' => 'select',
117 'options' => array(
118 "same" => "Same as Main image size",
119 "n" => "Small, 320px on longest side",
120 "none" => "Medium, 500px on the longest side",
121 "z" => "Medium, 640px on longest side",
122 "c" => "Medium, 800px on longest side",
123 "b" => "Large, 1024px on longest side",
124 "h" => "Large, 1600px on longest side",
125 "k" => "Large, 2048px on longest side",
126 "o" => "Original",
127 )),
128
129 array('name' => "Video size",
130 'desc' => "This is the video size that will be used for the lightbox:",
131 'id' => "flickr_video_size",
132 'grouping' => "flickr-settings",
133 'type' => 'select',
134 'options' => array(
135 'Site MP4' => 'Site MP4',
136 'Mobile MP4' => 'Mobile MP4',
137 'HD MP4' => 'HD MP4',
138 'Video Original' => 'Video Original',
139 )),
140
141 array('name' => "Disable lightbox linking",
142 'desc' => "Check this to disable linking the photo title in the lightbox to the original photo page.",
143 'id' => "flickr_disable_title_link",
144 'grouping' => "flickr-settings",
145 'type' => 'checkbox'),
146
147 array('name' => "Photo titles and captions",
148 'desc' => "What do you want to show as the photo title in the tooltip and lightbox?",
149 'id' => "flickr_title_caption",
150 'grouping' => "flickr-settings",
151 'type' => 'select',
152 'options' => Photonic::title_caption_options()),
153
154 array('name' => "Collections",
155 'desc' => "Control settings for Flickr collection thumbnails",
156 'category' => "flickr-collections",
157 'type' => 'section',),
158
159 array('name' => "What is this section?",
160 'desc' => "Options in this section are in effect when you pick the following gallery creation options:<br/><br/>
161 <img src='".PHOTONIC_URL."/options/screenshots/Flickr-5.png' style='max-width: 600px;'/><br/><br/>
162 If you are using the shortcode, the settings kick in for <code>[gallery type='flickr' user_id='abc' view='collections']</code>
163 or <code>[gallery type='flickr' user_id='abc' collection_id='xyz']</code>. They are used to control the collection's thumbnail display.",
164 'grouping' => "flickr-collections",
165 'type' => 'blurb',),
166
167 array('name' => "Hide Empty Collection Details",
168 'desc' => "This will hide the collection header if your collection has no sets. Nested collections will be displayed, however.",
169 'id' => "flickr_hide_empty_collection_details",
170 'grouping' => "flickr-collections",
171 'type' => 'checkbox'),
172
173 array('name' => "Hide Collection Thumbnail",
174 'desc' => "This will hide the thumbnail that is auto-generated by Flickr for your collection.",
175 'id' => "flickr_hide_collection_thumbnail",
176 'grouping' => "flickr-collections",
177 'type' => 'checkbox'),
178
179 array('name' => "Hide Collection Title",
180 'desc' => "This will hide the title for your Flickr collection.",
181 'id' => "flickr_hide_collection_title",
182 'grouping' => "flickr-collections",
183 'type' => 'checkbox'),
184
185 array('name' => "Hide Number of Sets",
186 'desc' => "This will hide the number of Photosets / Albums in your Flickr collection.",
187 'id' => "flickr_hide_collection_set_count",
188 'grouping' => "flickr-collections",
189 'type' => 'checkbox'),
190
191 array('name' => "Photoset / Album Thumbnails (with other Photosets / Albums)",
192 'desc' => "Control settings for Flickr Photoset thumbnails",
193 'category' => "flickr-sets",
194 'type' => 'section',),
195
196 array('name' => "What is this section?",
197 'desc' => "Options in this section are in effect when you pick the following gallery creation options:<br/><br/>
198 <img src='".PHOTONIC_URL."/options/screenshots/Flickr-3.png' style='max-width: 600px;'/><br/><br/>
199 If you are using the shortcode, the settings kick in for <code>[gallery type='flickr' user_id='abc' view='photosets']</code> or <code>[gallery type='flickr' user_id='abc' collection_id='xyz']</code>
200 or <code>[gallery type='flickr' user_id='abc' view='collections']</code>. They are used to control the Photoset's thumbnail display",
201 'grouping' => "flickr-sets",
202 'type' => 'blurb',),
203
204 array('name' => "Photoset Title Display",
205 'desc' => "How do you want the title of the Photoset?",
206 'id' => "flickr_collection_set_title_display",
207 'grouping' => "flickr-sets",
208 'type' => 'radio',
209 'options' => photonic_title_styles()),
210
211 array('name' => "Hide Photo Count in Title Display",
212 'desc' => "This will hide the number of photos in your Photoset's title.",
213 'id' => "flickr_hide_collection_set_photos_count_display",
214 'grouping' => "flickr-sets",
215 'type' => 'checkbox'),
216
217 array('name' => "Constrain Photosets Per Row",
218 '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.",
219 'id' => "flickr_collection_set_per_row_constraint",
220 'grouping' => "flickr-sets",
221 'type' => 'select',
222 'options' => array("padding" => "Fix the padding around the thumbnails",
223 "count" => "Fix the number of thumbnails per row",
224 )),
225
226 array('name' => "Constrain by padding",
227 'desc' => " If you have constrained by padding above, enter the number of pixels here to pad the thumbs by",
228 'id' => "flickr_collection_set_constrain_by_padding",
229 'grouping' => "flickr-sets",
230 'type' => 'text',
231 'hint' => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored."),
232
233 array('name' => "Constrain by number of thumbnails",
234 'desc' => " If you have constrained by number of thumbnails per row above, enter the number of thumbnails",
235 'id' => "flickr_collection_set_constrain_by_count",
236 'grouping' => "flickr-sets",
237 'type' => 'select',
238 'options' => photonic_selection_range(1, 25)),
239
240 array('name' => "Photoset / Album Headers (Standalone Photosets / Albums)",
241 'desc' => "Control settings for Flickr Photosets when displayed in your page",
242 'category' => "flickr-set",
243 'type' => 'section',),
244
245 array('name' => "What is this section?",
246 'desc' => "Options in this section are in effect when you pick the following gallery creation options:<br/><br/>
247 <img src='".PHOTONIC_URL."/options/screenshots/Flickr-4.png' style='max-width: 600px;'/><br/><br/>
248 If you are using the shortcode, the settings kick in for <code>[gallery type='flickr' user_id='abc' photoset_id='xyz']</code> to show its contents on the page,
249 or if you use <code>[gallery type='flickr' user_id='abc' view='photosets']</code> and click on a thumbnail to open the included images in a popup.",
250 'grouping' => "flickr-set",
251 'type' => 'blurb',),
252
253 array('name' => "Hide Header Thumbnail",
254 'desc' => "This will hide the thumbnail in the header for your Flickr Photoset.",
255 'id' => "flickr_hide_set_thumbnail",
256 'grouping' => "flickr-set",
257 'type' => 'checkbox'),
258
259 array('name' => "Hide Header Title",
260 'desc' => "This will hide the title in the header for your Flickr Photoset.",
261 'id' => "flickr_hide_set_title",
262 'grouping' => "flickr-set",
263 'type' => 'checkbox'),
264
265 array('name' => "Hide Number of Photos",
266 'desc' => "This will hide the number of photos in the header in your Flickr Photoset.",
267 'id' => "flickr_hide_set_photo_count",
268 'grouping' => "flickr-set",
269 'type' => 'checkbox'),
270
271 array('name' => "Gallery Thumbnails (with other Galleries)",
272 'desc' => "Control settings for Flickr Gallery thumbnails",
273 'category' => "flickr-galleries",
274 'type' => 'section',),
275
276 array('name' => "What is this section?",
277 'desc' => "Options in this section are in effect when you pick the following gallery creation options:<br/><br/>
278 <img src='".PHOTONIC_URL."/options/screenshots/Flickr-6.png' style='max-width: 600px;'/><br/><br/>
279 If you are using the shortcode, the settings kick in for <code>[gallery type='flickr' user_id='abc' view='galleries']</code>. They are used to control the Gallery's thumbnail display",
280 'grouping' => "flickr-galleries",
281 'type' => 'blurb',),
282
283 array('name' => "Gallery Title Display",
284 'desc' => "How do you want the title of the Gallery?",
285 'id' => "flickr_gallery_title_display",
286 'grouping' => "flickr-galleries",
287 'type' => 'radio',
288 'options' => photonic_title_styles()),
289
290 array('name' => "Hide Photo Count in Title Display",
291 'desc' => "This will hide the number of photos in your Gallery's title.",
292 'id' => "flickr_hide_gallery_photos_count_display",
293 'grouping' => "flickr-galleries",
294 'type' => 'checkbox'),
295
296 array('name' => "Constrain Galleries Per Row",
297 'desc' => "How do you want the control the number of gallery thumbnails per row? This can be overridden by adding the '<code>columns</code>' parameter to the '<code>gallery</code>' shortcode.",
298 'id' => "flickr_galleries_per_row_constraint",
299 'grouping' => "flickr-galleries",
300 'type' => 'select',
301 'options' => array("padding" => "Fix the padding around the thumbnails",
302 "count" => "Fix the number of thumbnails per row",
303 )),
304
305 array('name' => "Constrain by padding",
306 'desc' => " If you have constrained by padding above, enter the number of pixels here to pad the thumbs by",
307 'id' => "flickr_galleries_constrain_by_padding",
308 'grouping' => "flickr-galleries",
309 'type' => 'text',
310 'hint' => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored."),
311
312 array('name' => "Constrain by number of thumbnails",
313 'desc' => " If you have constrained by number of thumbnails per row above, enter the number of thumbnails",
314 'id' => "flickr_galleries_constrain_by_count",
315 'grouping' => "flickr-galleries",
316 'type' => 'select',
317 'options' => photonic_selection_range(1, 25)),
318
319 array('name' => "Gallery Headers (Standalone Galleries)",
320 'desc' => "Control settings for Flickr Galleries when displayed in your page",
321 'category' => "flickr-gallery",
322 'type' => 'section',),
323
324 array('name' => "What is this section?",
325 'desc' => "Options in this section are in effect when you pick the following gallery creation options:<br/><br/>
326 <img src='".PHOTONIC_URL."/options/screenshots/Flickr-7.png' style='max-width: 600px;'/><br/><br/>
327 If you are using the shortcode, the settings kick in for <code>[gallery type='flickr' user_id='abc' gallery_id='xyz']</code> to show its contents on the page, or if you use <code>[gallery type='flickr' user_id='abc' view='galleries']</code> and click on a thumbnail to open the included images in a popup.",
328 'grouping' => "flickr-gallery",
329 'type' => 'blurb',),
330
331 array('name' => "Hide Header Thumbnail",
332 'desc' => "This will hide the thumbnail in the header for your Flickr Gallery.",
333 'id' => "flickr_hide_gallery_thumbnail",
334 'grouping' => "flickr-gallery",
335 'type' => 'checkbox'),
336
337 array('name' => "Hide Header Title",
338 'desc' => "This will hide the title in the header for your Flickr Gallery.",
339 'id' => "flickr_hide_gallery_title",
340 'grouping' => "flickr-gallery",
341 'type' => 'checkbox'),
342
343 array('name' => "Hide Number of Photos",
344 'desc' => "This will hide the number of photos in the header in your Flickr Gallery.",
345 'id' => "flickr_hide_gallery_photo_count",
346 'grouping' => "flickr-gallery",
347 'type' => 'checkbox'),
348
349 array('name' => "Photos (Main Page)",
350 'desc' => "Control settings for Flickr Photos when displayed in your page",
351 'category' => "flickr-photos",
352 'type' => 'section',),
353
354 array('name' => "What is this section?",
355 'desc' => "Options in this section are in effect when you pick the following gallery creation options:<br/><br/>
356 <img src='".PHOTONIC_URL."/options/screenshots/Flickr-2.png' style='max-width: 600px;'/><br/><br/>
357 If you are using the shortcode, the settings kick in for <code>[gallery type='flickr' user_id='abc' photoset_id='xyz']</code>
358 or <code>[gallery type='flickr' user_id='abc' view='photos']</code>. In other words, the photos are printed directly on the page.",
359 'grouping' => "flickr-photos",
360 'type' => 'blurb',),
361
362 array('name' => "Photo Title Display",
363 'desc' => "How do you want the title of the photos?",
364 'id' => "flickr_photo_title_display",
365 'grouping' => "flickr-photos",
366 'type' => 'radio',
367 'options' => photonic_title_styles()),
368
369 array('name' => "Constrain Photos Per Row",
370 '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.",
371 'id' => "flickr_photos_per_row_constraint",
372 'grouping' => "flickr-photos",
373 'type' => 'select',
374 'options' => array("padding" => "Fix the padding around the thumbnails",
375 "count" => "Fix the number of thumbnails per row",
376 )),
377
378 array('name' => "Constrain by padding",
379 'desc' => " If you have constrained by padding above, enter the number of pixels here to pad the thumbs by",
380 'id' => "flickr_photos_constrain_by_padding",
381 'grouping' => "flickr-photos",
382 'type' => 'text',
383 'hint' => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored."),
384
385 array('name' => "Constrain by number of thumbnails",
386 'desc' => " If you have constrained by number of thumbnails per row above, enter the number of thumbnails",
387 'id' => "flickr_photos_constrain_by_count",
388 'grouping' => "flickr-photos",
389 'type' => 'select',
390 'options' => photonic_selection_range(1, 25)),
391
392 array('name' => "Photos (Overlaid Popup Panel)",
393 'desc' => "Control settings for Flickr Photos when displayed in a popup",
394 'category' => "flickr-photos-pop",
395 'type' => 'section',),
396
397 array('name' => "What is this section?",
398 'desc' => "Options in this section are in effect when you click on a Photoset thumbnail to launch an overlaid gallery. In other words, the photos are printed directly on a popup.",
399 'grouping' => "flickr-photos-pop",
400 'type' => 'blurb',),
401
402 array('name' => "Photo Title Display",
403 'desc' => "How do you want the title of the photos?",
404 'id' => "flickr_photo_pop_title_display",
405 'grouping' => "flickr-photos-pop",
406 'type' => 'radio',
407 'options' => photonic_title_styles()),
408
409 array('name' => "Constrain Photos Per Row",
410 '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.",
411 'id' => "flickr_photos_pop_per_row_constraint",
412 'grouping' => "flickr-photos-pop",
413 'type' => 'select',
414 'options' => array("padding" => "Fix the padding around the thumbnails",
415 "count" => "Fix the number of thumbnails per row",
416 )),
417
418 array('name' => "Constrain by padding",
419 'desc' => " If you have constrained by padding above, enter the number of pixels here to pad the thumbs by",
420 'id' => "flickr_photos_pop_constrain_by_padding",
421 'grouping' => "flickr-photos-pop",
422 'type' => 'text',
423 'hint' => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored."),
424
425 array('name' => "Constrain by number of thumbnails",
426 'desc' => " If you have constrained by number of thumbnails per row above, enter the number of thumbnails",
427 'id' => "flickr_photos_pop_constrain_by_count",
428 'grouping' => "flickr-photos-pop",
429 'type' => 'select',
430 'options' => photonic_selection_range(1, 25)),
431 );
432