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 / Defaults.php

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

364 lines 15.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\Photonic;
6
7 class Defaults {
8 public static function get_options(): array {
9 return [
10 // Generic - Generic
11 'alternative_shortcode' => '',
12 'slideshow_library' => 'baguettebox',
13 'custom_lightbox' => 'fancybox2',
14 'custom_lightbox_js' => '',
15 'custom_lightbox_css' => '',
16 'disable_photonic_lightbox_scripts' => '',
17 'disable_photonic_slider_scripts' => '',
18 'lightbox_for_all' => '',
19 'lightbox_for_videos' => '',
20 'always_load_scripts' => '',
21 'js_in_header' => '',
22 'disable_editor' => '',
23 'disable_editor_post_type' => '',
24 'disable_flow_editor' => '',
25 'disable_flow_editor_global' => '',
26 'disable_on_home_page' => '',
27 'disable_on_archives' => '',
28 'nested_shortcodes' => '',
29 'external_links_in_new_tab' => '',
30 'css_in_file' => '',
31
32 // Generic - Layouts
33 'thumbnail_style' => 'square',
34 'standard_thumbnail_effect' => 'none',
35 'tile_spacing' => '2',
36 'tile_min_height' => '200',
37 'justified_thumbnail_effect' => 'none',
38 'masonry_tile_spacing' => '2',
39 'masonry_min_width' => '200',
40 'masonry_thumbnail_effect' => 'none',
41 'mosaic_tile_spacing' => '2',
42 'mosaic_trigger_width' => '200',
43 'mosaic_thumbnail_effect' => 'zoom',
44
45 // Generic - Native WP Galleries
46 'wp_title_caption' => 'title',
47 'wp_thumbnail_title_display' => 'tooltip',
48 'wp_disable_title_link' => '',
49 'wp_layout_engine' => 'css',
50
51 // Generic - Slideshow
52 'slideshow_prevent_autostart' => '',
53 'wp_slide_adjustment' => 'adapt-height-width',
54
55 // Generic - Overlaid Popup Panel
56 'enable_popup' => '',
57 'popup_panel_width' => '80',
58 'flickr_gallery_panel_background' => ['color' => '#111111', 'image' => '', 'trans' => '0', 'position' => 'top left', 'repeat' => 'repeat', 'colortype' => 'custom'],
59
60 // Generic - Photo Template
61 'gallery_template_page' => '',
62 'page_title' => 'replace-if-available',
63 'page_meta_title' => 'append-if-available',
64 'page_content' => 'replace-if-available',
65
66 // Generic - Advanced
67 'load_mode' => 'php',
68 'ssl_verify_off' => '',
69 'curl_timeout' => '30',
70 'script_dev_mode' => '',
71 'performance_logging' => '',
72 'debug_on' => '',
73
74 // Flickr
75 'flickr_api_key' => '',
76 'flickr_api_secret' => '',
77 'flickr_access_token' => '',
78 'flickr_token_secret' => '',
79 'flickr_default_user' => '',
80 'flickr_media' => 'photos',
81 'flickr_thumb_size' => 's',
82 'flickr_main_size' => 'z',
83 'flickr_tile_size' => 'same',
84 'flickr_video_size' => 'Video Original',
85 'flickr_disable_title_link' => '',
86 'flickr_title_caption' => 'title',
87 'flickr_layout_engine' => 'css',
88
89 // Flickr - Collections
90 'flickr_hide_empty_collection_details' => '',
91 'flickr_hide_collection_thumbnail' => '',
92 'flickr_hide_collection_title' => '',
93 'flickr_hide_collection_set_count' => '',
94
95 // Flickr - Multiple Photosets
96 'flickr_collection_set_title_display' => 'tooltip',
97 'flickr_hide_collection_set_photos_count_display' => '',
98 'flickr_collection_set_per_row_constraint' => 'padding',
99 'flickr_collection_set_constrain_by_count' => '5',
100
101 // Flickr - Single Photosets
102 'flickr_hide_set_thumbnail' => '',
103 'flickr_hide_set_title' => '',
104 'flickr_hide_set_photo_count' => '',
105
106 // Flickr - Multiple Galleries
107 'flickr_gallery_title_display' => 'tooltip',
108 'flickr_hide_gallery_photos_count_display' => '',
109 'flickr_galleries_per_row_constraint' => 'padding',
110 'flickr_galleries_constrain_by_count' => '5',
111
112 // Flickr - Single Galleries
113 'flickr_hide_gallery_thumbnail' => '',
114 'flickr_hide_gallery_title' => '',
115 'flickr_hide_gallery_photo_count' => '',
116
117 // Flickr - Photos on main page
118 'flickr_photo_title_display' => 'tooltip',
119 'flickr_photos_per_row_constraint' => 'padding',
120 'flickr_photos_constrain_by_count' => '5',
121
122 // Flickr - Photos in overlay
123 'flickr_photo_pop_title_display' => 'tooltip',
124
125 // SmugMug
126 'smug_api_key' => '',
127 'smug_api_secret' => '',
128 'smug_access_token' => '',
129 'smug_token_secret' => '',
130 'smug_default_user' => '',
131 'smug_media' => 'photos',
132 'smug_thumb_size' => 'Tiny',
133 'smug_main_size' => 'Largest',
134 'smug_tile_size' => 'same',
135 'smug_video_size' => 'Largest',
136 'smug_disable_title_link' => '',
137 'smug_show_buy_link' => '',
138 'smug_title_caption' => 'title-desc',
139 'smug_layout_engine' => 'css',
140
141 // SmugMug - Multiple Albums
142 'smug_albums_album_title_display' => 'tooltip',
143 'smug_hide_albums_album_photos_count_display' => '',
144 'smug_hide_password_protected_thumbnail' => '',
145 'smug_album_sort_order' => 'Last Updated (Descending)',
146 'smug_albums_album_per_row_constraint' => 'padding',
147 'smug_albums_album_constrain_by_count' => '5',
148
149 // SmugMug - Multiple Photos
150 'smug_hide_album_thumbnail' => '',
151 'smug_hide_album_title' => '',
152 'smug_hide_album_photo_count' => '',
153 'smug_photo_title_display' => 'tooltip',
154 'smug_photos_per_row_constraint' => 'padding',
155 'smug_photos_constrain_by_count' => '5',
156
157 // SmugMug - Multiple Photos in overlay
158 'smug_photo_pop_title_display' => 'tooltip',
159
160 // SmugMug - Advanced
161 'smug_nesting_levels' => '5',
162
163 // Google
164 'google_client_id' => '',
165 'google_client_secret' => '',
166 'google_refresh_token' => '',
167 'google_media' => 'photos',
168 'google_hide_album_photo_count_display' => '',
169 'google_title_caption' => 'title',
170 'google_chain_queries' => '',
171 'google_layout_engine' => 'css',
172
173 // Google - Photos
174 'google_photo_title_display' => 'tooltip',
175 'google_photos_per_row_constraint' => 'padding',
176 'google_photos_constrain_by_count' => '5',
177
178 // Google - Photos in overlay
179 'google_photo_pop_title_display' => 'tooltip',
180
181 // Zenfolio
182 'zenfolio_default_user' => '',
183 'zenfolio_media' => 'photos',
184 'zenfolio_disable_title_link' => '',
185 'zenfolio_photos_per_row_constraint' => 'padding',
186 'zenfolio_photos_constrain_by_count' => '5',
187 'zenfolio_thumb_size' => '1',
188 'zenfolio_main_size' => '4',
189 'zenfolio_tile_size' => 'same',
190 'zenfolio_video_size' => '210',
191 'zenfolio_photo_title_display' => 'tooltip',
192 'zenfolio_title_caption' => 'title',
193 'zenfolio_layout_engine' => 'css',
194
195 // Zenfolio - Groups
196 'zenfolio_hide_empty_groups' => '',
197 'zenfolio_hide_group_title' => '',
198 'zenfolio_link_group_page' => '',
199 'zenfolio_hide_group_photo_count' => '',
200 'zenfolio_hide_group_group_count' => '',
201 'zenfolio_hide_group_set_count' => '',
202
203 // Zenfolio - Sets
204 'zenfolio_set_title_display' => 'tooltip',
205 'zenfolio_hide_set_photos_count_display' => '',
206 'zenfolio_hide_password_protected_thumbnail' => '',
207 'zenfolio_sets_per_row_constraint' => 'padding',
208 'zenfolio_sets_constrain_by_count' => '5',
209
210 // Zenfolio - Single set
211 'zenfolio_hide_set_thumbnail' => '',
212 'zenfolio_hide_set_title' => '',
213 'zenfolio_link_set_page' => '',
214 'zenfolio_hide_set_photo_count' => '',
215
216 // Instagram
217 'instagram_access_token' => '',
218 'instagram_media' => 'photos',
219 'instagram_disable_title_link' => '',
220 'instagram_carousel_caption_position' => 'none',
221 'instagram_video_size' => 'standard_resolution',
222 'instagram_tile_size' => 'same',
223 'instagram_photo_title_display' => 'tooltip',
224
225 // DeviantArt
226 'deviantart_client_id' => '',
227 'deviantart_client_secret' => '',
228 'deviantart_refresh_token' => '',
229
230 // Lightbox - common
231 'slideshow_mode' => '',
232 'slideshow_interval' => '5000',
233 'lightbox_no_loop' => '',
234 'deep_linking' => 'no-history',
235 'social_media' => '',
236
237 // Lightbox - Colorbox
238 'cbox_theme' => '1',
239 'cb_transition_effect' => 'elastic',
240 'cb_transition_speed' => '350',
241
242 // Lightbox - FancyBox 1 / 2 / 3
243 'fbox_title_position' => 'inside',
244 'fb3_transition_effect' => 'fade',
245 'fb3_transition_speed' => '366',
246 'fb3_disable_zoom' => '',
247 'fb3_disable_slideshow' => '',
248 'fb3_show_fullscreen' => '',
249 'enable_fb3_fullscreen' => '',
250 'fb3_enable_download' => '',
251 'fb3_hide_thumbs' => '',
252 'enable_fb3_thumbnail' => '',
253 'fb3_disable_right_click' => '',
254
255 // Lightbox - Lightcase
256 'lc_transition_effect' => 'scrollHorizontal',
257 'lc_transition_speed_in' => '350',
258 'lc_transition_speed_out' => '250',
259 'lc_enable_shrink' => '',
260
261 // Lightbox - LightGallery
262 'enable_lg_transitions' => '',
263 'lg_transition_effect' => 'lg-slide',
264 'lg_transition_speed' => 10,
265 'enable_lg_autoplay' => '',
266 'enable_lg_fullscreen' => '',
267 'enable_lg_thumbnail' => '',
268 'enable_lg_zoom' => '',
269 'disable_lg_download' => '',
270 'lg_mobile_show_controls' => '',
271 'lg_mobile_show_close' => '',
272 'lg_mobile_show_download' => '',
273 'lg_hide_bars_delay' => '6000',
274
275 // Lightbox - PrettyPhoto
276 'pphoto_theme' => 'pp_default',
277 'pp_animation_speed' => 'Fast',
278
279 // Lightbox - Spotlight
280 'sp_download' => '',
281 'sp_hide_bars' => '',
282
283 // Lightbox - SwipeBox
284 'enable_swipebox_mobile_bars' => '',
285 'sb_hide_mobile_close' => '',
286 'sb_hide_bars_delay' => 0,
287
288 // Lightbox - VenoBox
289 'vb_display_vertical_scroll' => '',
290 'vb_title_position' => 'bottom',
291 'vb_title_style' => 'bar'
292 ];
293 }
294
295 public static function get_options_pages(): array {
296 return [
297 // Generic
298 'generic-how-to',
299 'generic-settings',
300 'layout-settings',
301 'wp-settings',
302 'sshow-settings',
303 'photos-pop',
304 'template-page',
305 'advanced-settings',
306
307 // Flickr
308 'flickr-how-to',
309 'flickr-settings',
310 'flickr-collections',
311 'flickr-sets',
312 'flickr-set',
313 'flickr-galleries',
314 'flickr-gallery',
315 'flickr-photos',
316 'flickr-photos-pop',
317
318 // SmugMug
319 'smug-how-to',
320 'smug-settings',
321 'smug-albums',
322 'smug-photos',
323 'smug-photos-pop',
324 'smug-advanced',
325
326 // Google Photos
327 'google-settings',
328 'google-photos',
329 'google-photos-pop',
330
331 // Zenfolio
332 'zenfolio-settings',
333 'zenfolio-groups',
334 'zenfolio-sets',
335 'zenfolio-set',
336
337 // Instagram
338 'instagram-settings',
339
340 // DeviantArt
341 'deviantart-how-to',
342 'deviantart-settings',
343
344 // Lightboxes
345 'lb-settings',
346 'lb-cb-settings',
347 'lb-fb-settings',
348 'lb-lc-settings',
349 'lb-lg-settings',
350 'lb-pp-settings',
351 'lb-sp-settings',
352 'lb-sb-settings',
353 'lb-vb-settings',
354
355 ];
356 }
357
358 public static function get_migrated_options(): array {
359 return [
360 'slideshow_library' => Photonic::$lightbox_replacements
361 ];
362 }
363 }
364