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