PluginProbe
Photonic Gallery & Lightbox for Flickr, SmugMug & Others / 2.41
Photonic Gallery & Lightbox for Flickr, SmugMug & Others v2.41
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 2.41, at Options/Defaults.php

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