| 1 |
<?php |
| 2 |
/** |
| 3 |
* Contains the fields used by the gallery builder. Cannot be overridden by a theme file |
| 4 |
* Screen 1: Provider selection: Pick from Flickr, Google Photos etc. |
| 5 |
* Screen 2: Display Type selection; Input: Provider. Pick from: Single Photo |
| 6 |
* Screen 3: Gallery object selection; input: Display Type |
| 7 |
* Screen 4: Layout selection; input: Gallery & Display Type |
| 8 |
* Screen 5: Layout configuration; Set <code>count</code>, <code>more</code> etc. |
| 9 |
* Screen 6: Final shortcode display |
| 10 |
* |
| 11 |
* @package Photonic |
| 12 |
* @subpackage Flow |
| 13 |
* @since 2.00 |
| 14 |
*/ |
| 15 |
class Photonic_Flow_Fields { |
| 16 |
var $flow_options, $layout_options, $column_options, $allowed_image_sizes, $default_under, $default_from_settings; |
| 17 |
function __construct() { |
| 18 |
$this->layout_options = array( |
| 19 |
'square' => esc_html__('Square Grid', 'photonic'), |
| 20 |
'circle' => esc_html__('Circular Icon Grid', 'photonic'), |
| 21 |
'random' => esc_html__('Justified Grid', 'photonic'), |
| 22 |
'masonry' => esc_html__('Masonry', 'photonic'), |
| 23 |
'mosaic' => esc_html__('Mosaic', 'photonic'), |
| 24 |
'slideshow' => esc_html__('Slideshow', 'photonic'), |
| 25 |
); |
| 26 |
|
| 27 |
$this->column_options = array( |
| 28 |
'desc' => esc_html__('Number of columns in output', 'photonic'), |
| 29 |
'type' => 'select', |
| 30 |
'options' => array( |
| 31 |
'' => '', |
| 32 |
'auto' => esc_html__('Automatic (Photonic calculates the columns)', 'photonic'), |
| 33 |
'1' => 1, |
| 34 |
'2' => 2, |
| 35 |
'3' => 3, |
| 36 |
'4' => 4, |
| 37 |
'5' => 5, |
| 38 |
'6' => 6, |
| 39 |
'7' => 7, |
| 40 |
'8' => 8, |
| 41 |
'9' => 9, |
| 42 |
'10' => 10, |
| 43 |
'11' => 11, |
| 44 |
'12' => 12, |
| 45 |
'13' => 13, |
| 46 |
'14' => 14, |
| 47 |
'15' => 15, |
| 48 |
'16' => 16, |
| 49 |
'17' => 17, |
| 50 |
'18' => 18, |
| 51 |
'19' => 19, |
| 52 |
'20' => 20, |
| 53 |
) |
| 54 |
); |
| 55 |
|
| 56 |
$this->default_under = esc_html__('Default settings can be configured under: %s', 'photonic'); |
| 57 |
$this->default_from_settings = esc_html__('Default from settings', 'photonic'); |
| 58 |
|
| 59 |
$this->set_allowed_image_sizes(); |
| 60 |
$this->set_options(); |
| 61 |
} |
| 62 |
|
| 63 |
private function set_options() { |
| 64 |
global $photonic_thumbnail_style, $photonic_enable_popup, |
| 65 |
$photonic_flickr_media, $photonic_smug_media, $photonic_google_media, $photonic_zenfolio_media, $photonic_instagram_media, |
| 66 |
$photonic_smug_title_caption, $photonic_zenfolio_title_caption, $photonic_flickr_title_caption; |
| 67 |
$this->flow_options = array( |
| 68 |
'screen-1' => array('wp', 'flickr', 'picasa', 'google', 'smugmug', 'zenfolio', 'instagram'), |
| 69 |
'screen-2' => array( |
| 70 |
'wp' => array( |
| 71 |
'header' => esc_html__('Choose Type of Gallery', 'photonic'), |
| 72 |
'display' => array( |
| 73 |
'display_type' => array( |
| 74 |
'desc' => esc_html__('What do you want to show?', 'photonic'), |
| 75 |
'type' => 'select', |
| 76 |
'options' => array( |
| 77 |
'' => '', |
| 78 |
'current-post' => esc_html__('Gallery attached to the current post', 'photonic'), |
| 79 |
'multi-photo' => esc_html__('Photos from Media Library', 'photonic'), |
| 80 |
), |
| 81 |
'req' => 1, |
| 82 |
), |
| 83 |
), |
| 84 |
), |
| 85 |
'flickr' => array( |
| 86 |
'header' => esc_html__('Choose Type of Gallery', 'photonic'), |
| 87 |
'display' => array( |
| 88 |
'kind' => array( |
| 89 |
'type' => 'field_list', |
| 90 |
'list_type' => 'sequence', |
| 91 |
'list' => array( |
| 92 |
'display_type' => array( |
| 93 |
'desc' => esc_html__('What do you want to show?', 'photonic'), |
| 94 |
'type' => 'select', |
| 95 |
'options' => array( |
| 96 |
'' => '', |
| 97 |
'single-photo' => esc_html__('A Single Photo', 'photonic'), |
| 98 |
'multi-photo' => esc_html__('Multiple Photos', 'photonic'), |
| 99 |
'album-photo' => esc_html__('Photos from an Album / Photoset', 'photonic'), |
| 100 |
'gallery-photo' => esc_html__('Photos from a Gallery', 'photonic'), |
| 101 |
'multi-album' => esc_html__('Multiple Albums', 'photonic'), |
| 102 |
'multi-gallery' => esc_html__('Multiple Galleries', 'photonic'), |
| 103 |
'collection' => esc_html__('Albums from a single collection', 'photonic'), |
| 104 |
'collections' => esc_html__('Multiple collections', 'photonic'), |
| 105 |
), |
| 106 |
'req' => 1, |
| 107 |
), |
| 108 |
'for' => array( |
| 109 |
'desc' => esc_html__('For whom?', 'photonic'), |
| 110 |
'type' => 'radio', |
| 111 |
'options' => array( |
| 112 |
'current' => sprintf(esc_html__('Current user (Defined under %s)', 'photonic'), '<em>Photonic → Settings → Flickr → Flickr Settings → Default user</em>'), |
| 113 |
'other' => esc_html__('Another user', 'photonic'), |
| 114 |
'group' => esc_html__('Group', 'photonic'), |
| 115 |
'any' => esc_html__('All users', 'photonic'), |
| 116 |
), |
| 117 |
'option-conditions' => array( |
| 118 |
'group' => array('display_type' => array('multi-photo')), |
| 119 |
'any' => array('display_type' => array('multi-photo')), |
| 120 |
), |
| 121 |
'req' => 1, |
| 122 |
), |
| 123 |
'login' => array( |
| 124 |
'desc' => sprintf(esc_html__('User name, e.g. %s', 'photonic'), 'https://www.flickr.com/photos/<span style="text-decoration: underline">username</span>/'), |
| 125 |
'type' => 'text', |
| 126 |
'std' => '', |
| 127 |
'conditions' => array('for' => array('other')), |
| 128 |
'req' => 1, |
| 129 |
), |
| 130 |
'group' => array( |
| 131 |
'desc' => sprintf(esc_html__('Group name, e.g. %s', 'photonic'), 'https://www.flickr.com/groups/<span style="text-decoration: underline">groupname</span>/'), |
| 132 |
'type' => 'text', |
| 133 |
'std' => '', |
| 134 |
'conditions' => array('for' => array('group')), |
| 135 |
'req' => 1, |
| 136 |
), |
| 137 |
), |
| 138 |
), |
| 139 |
), |
| 140 |
), |
| 141 |
'smugmug' => array( |
| 142 |
'header' => esc_html__('Choose Type of Gallery', 'photonic'), |
| 143 |
'display' => array( |
| 144 |
'kind' => array( |
| 145 |
'type' => 'field_list', |
| 146 |
'list_type' => 'sequence', |
| 147 |
'list' => array( |
| 148 |
'display_type' => array( |
| 149 |
'desc' => esc_html__('What do you want to show?', 'photonic'), |
| 150 |
'type' => 'select', |
| 151 |
'options' => array( |
| 152 |
'' => '', |
| 153 |
'album-photo' => esc_html__('Photos from an Album', 'photonic'), |
| 154 |
'folder-photo' => esc_html__('Photos from a Folder', 'photonic'), |
| 155 |
'user-photo' => esc_html__('Photos from a User', 'photonic'), |
| 156 |
'multi-album' => esc_html__('Multiple Albums', 'photonic'), |
| 157 |
'folder' => esc_html__('Albums in a Folder', 'photonic'), |
| 158 |
'tree' => esc_html__('User Tree', 'photonic'), |
| 159 |
), |
| 160 |
'req' => 1, |
| 161 |
), |
| 162 |
'for' => array( |
| 163 |
'desc' => esc_html__('For whom?', 'photonic'), |
| 164 |
'type' => 'radio', |
| 165 |
'options' => array( |
| 166 |
'current' => sprintf(esc_html__('Current user (Defined under %s)', 'photonic'), '<em>Photonic → Settings → SmugMug → SmugMug Settings → Default user</em>'), |
| 167 |
'other' => esc_html__('Another user', 'photonic'), |
| 168 |
), |
| 169 |
'req' => 1, |
| 170 |
), |
| 171 |
'user' => array( |
| 172 |
'desc' => sprintf(esc_html__('User name, e.g. %s', 'photonic'), 'https://<span style="text-decoration: underline">username</span>.smugmug.com/'), |
| 173 |
'type' => 'text', |
| 174 |
'std' => '', |
| 175 |
'conditions' => array('for' => array('other')), |
| 176 |
'req' => 1, |
| 177 |
), |
| 178 |
), |
| 179 |
), |
| 180 |
), |
| 181 |
), |
| 182 |
'google' => array( |
| 183 |
'header' => esc_html__('Choose Type of Gallery', 'photonic'), |
| 184 |
'display' => array( |
| 185 |
'display_type' => array( |
| 186 |
'desc' => esc_html__('What do you want to show?', 'photonic'), |
| 187 |
'type' => 'select', |
| 188 |
'options' => array( |
| 189 |
'' => '', |
| 190 |
'multi-photo' => esc_html__('Multiple Photos', 'photonic'), |
| 191 |
'album-photo' => esc_html__('Photos from an Album', 'photonic'), |
| 192 |
'multi-album' => esc_html__('Multiple Albums', 'photonic'), |
| 193 |
), |
| 194 |
'req' => 1, |
| 195 |
), |
| 196 |
), |
| 197 |
), |
| 198 |
'zenfolio' => array( |
| 199 |
'header' => esc_html__('Choose Type of Gallery', 'photonic'), |
| 200 |
'display' => array( |
| 201 |
'kind' => array( |
| 202 |
'type' => 'field_list', |
| 203 |
'list_type' => 'sequence', |
| 204 |
'list' => array( |
| 205 |
'display_type' => array( |
| 206 |
'desc' => esc_html__('What do you want to show?', 'photonic'), |
| 207 |
'type' => 'select', |
| 208 |
'options' => array( |
| 209 |
'' => '', |
| 210 |
'single-photo' => esc_html__('Single Photo', 'photonic'), |
| 211 |
'multi-photo' => esc_html__('Multiple Photos', 'photonic'), |
| 212 |
'gallery-photo' => esc_html__('Photos from a Gallery or Collection', 'photonic'), |
| 213 |
// 'collection-photo' => esc_html__('Photos from a Collection', 'photonic'), |
| 214 |
'multi-gallery' => esc_html__('Multiple Galleries', 'photonic'), |
| 215 |
'multi-collection' => esc_html__('Multiple Collections', 'photonic'), |
| 216 |
'multi-gallery-collection' => esc_html__('Multiple Galleries and Collections', 'photonic'), |
| 217 |
'group' => esc_html__('Single Group', 'photonic'), |
| 218 |
'group-hierarchy' => esc_html__('Group Hierarchy', 'photonic'), |
| 219 |
), |
| 220 |
'req' => 1, |
| 221 |
), |
| 222 |
'for' => array( |
| 223 |
'desc' => esc_html__('For whom?', 'photonic'), |
| 224 |
'type' => 'radio', |
| 225 |
'options' => array( |
| 226 |
'current' => sprintf(esc_html__('Current user (Defined under %s)', 'photonic'), '<em>Photonic → Settings → Zenfolio → Zenfolio Photo Settings → Default user</em>'), |
| 227 |
'other' => esc_html__('Another user', 'photonic'), |
| 228 |
'any' => esc_html__('All users', 'photonic'), |
| 229 |
), |
| 230 |
'option-conditions' => array( |
| 231 |
'current' => array('display_type' => array('single-photo', 'gallery-photo', 'collection-photo', 'multi-gallery', 'multi-collection', 'multi-gallery-collection', 'group', 'group-hierarchy')), |
| 232 |
'other' => array('display_type' => array('single-photo', 'gallery-photo', 'collection-photo', 'multi-gallery', 'multi-collection', 'multi-gallery-collection', 'group', 'group-hierarchy')), |
| 233 |
'any' => array('display_type' => array('multi-photo', /*'multi-gallery', 'multi-collection', */)), |
| 234 |
), |
| 235 |
'req' => 1, |
| 236 |
), |
| 237 |
'login_name' => array( |
| 238 |
'desc' => sprintf(esc_html__('User name, e.g. %s', 'photonic'), 'https://<span style="text-decoration: underline">username</span>.zenfolio.com/'), |
| 239 |
'type' => 'text', |
| 240 |
'std' => '', |
| 241 |
'conditions' => array('for' => array('other')), |
| 242 |
'req' => 1, |
| 243 |
), |
| 244 |
), |
| 245 |
), |
| 246 |
), |
| 247 |
), |
| 248 |
'instagram' => array( |
| 249 |
'header' => esc_html__('Choose Type of Gallery', 'photonic'), |
| 250 |
'display' => array( |
| 251 |
'display_type' => array( |
| 252 |
'desc' => esc_html__('What do you want to show?', 'photonic'), |
| 253 |
'type' => 'select', |
| 254 |
'options' => array( |
| 255 |
'' => '', |
| 256 |
'single-photo' => esc_html__('A Single Photo', 'photonic'), |
| 257 |
'multi-photo' => esc_html__('Multiple Photos', 'photonic'), |
| 258 |
), |
| 259 |
'req' => 1, |
| 260 |
), |
| 261 |
), |
| 262 |
), |
| 263 |
), |
| 264 |
'screen-3' => array( |
| 265 |
'wp' => array(), |
| 266 |
'flickr' => array( |
| 267 |
'header' => esc_html__('Build your gallery', 'photonic'), |
| 268 |
'single-photo' => array( |
| 269 |
'header' => esc_html__('Pick a photo', 'photonic'), |
| 270 |
'desc' => esc_html__('From the list below pick the single photo you wish to display.', 'photonic'), |
| 271 |
'display' => array( |
| 272 |
'container' => array( |
| 273 |
'type' => 'thumbnail-selector', |
| 274 |
'mode' => 'single', |
| 275 |
'for' => 'selected_data', |
| 276 |
), |
| 277 |
), |
| 278 |
), |
| 279 |
'multi-photo' => array( |
| 280 |
'header' => esc_html__('All your photos', 'photonic'), |
| 281 |
'desc' => esc_html__('You can show all your photos, or apply tags to show some of them.', 'photonic'), |
| 282 |
'display' => array( |
| 283 |
'tags' => array( |
| 284 |
'desc' => esc_html__('Tags', 'photonic'), |
| 285 |
'type' => 'text', |
| 286 |
'hint' => esc_html__('Comma-separated list of tags', 'photonic') |
| 287 |
), |
| 288 |
|
| 289 |
'tag_mode' => array( |
| 290 |
'desc' => esc_html__('Tag mode', 'photonic'), |
| 291 |
'type' => 'select', |
| 292 |
'options' => array( |
| 293 |
'any' => esc_html__('Any tag', 'photonic'), |
| 294 |
'all' => esc_html__('All tags', 'photonic'), |
| 295 |
), |
| 296 |
), |
| 297 |
|
| 298 |
'text' => array( |
| 299 |
'desc' => esc_html__('With text', 'photonic'), |
| 300 |
'type' => 'text', |
| 301 |
), |
| 302 |
|
| 303 |
'privacy_filter' => array( |
| 304 |
'desc' => esc_html__('Privacy filter', 'photonic'), |
| 305 |
'type' => 'select', |
| 306 |
'options' => array( |
| 307 |
'' => esc_html__('None', 'photonic'), |
| 308 |
'1' => esc_html__('Public photos', 'photonic'), |
| 309 |
'2' => esc_html__('Private photos visible to friends', 'photonic'), |
| 310 |
'3' => esc_html__('Private photos visible to family', 'photonic'), |
| 311 |
'4' => esc_html__('Private photos visible to friends & family', 'photonic'), |
| 312 |
'5' => esc_html__('Completely private photos', 'photonic'), |
| 313 |
), |
| 314 |
'hint' => sprintf(esc_html__('Applicable only if Flickr private photos are turned on (%1$s) and Back-end authentication is off (%2$s)', 'photonic'), '<em>Photonic → Settings → Flickr → Flickr Settings → Allow User Login</em>', '<em>Photonic → Settings → Flickr → Flickr Settings → Access Token</em>'), |
| 315 |
), |
| 316 |
|
| 317 |
'container' => array( |
| 318 |
'type' => 'thumbnail-selector', |
| 319 |
'mode' => 'none', |
| 320 |
'for' => 'selected_data', |
| 321 |
), |
| 322 |
), |
| 323 |
), |
| 324 |
'album-photo' => array( |
| 325 |
'header' => esc_html__('Pick your album', 'photonic'), |
| 326 |
'desc' => esc_html__('From the list below pick the album whose photos you wish to display. Photos from that album will show up as thumbnails.', 'photonic'), |
| 327 |
'display' => array( |
| 328 |
'privacy_filter' => array( |
| 329 |
'desc' => esc_html__('Privacy filter', 'photonic'), |
| 330 |
'type' => 'select', |
| 331 |
'options' => array( |
| 332 |
'' => esc_html__('None', 'photonic'), |
| 333 |
'1' => esc_html__('Public photos', 'photonic'), |
| 334 |
'2' => esc_html__('Private photos visible to friends', 'photonic'), |
| 335 |
'3' => esc_html__('Private photos visible to family', 'photonic'), |
| 336 |
'4' => esc_html__('Private photos visible to friends & family', 'photonic'), |
| 337 |
'5' => esc_html__('Completely private photos', 'photonic'), |
| 338 |
), |
| 339 |
'hint' => sprintf(esc_html__('Applicable only if Flickr private photos are turned on (%1$s) and Back-end authentication is off (%2$s)', 'photonic'), '<em>Photonic → Settings → Flickr → Flickr Settings → Allow User Login</em>', '<em>Photonic → Settings → Flickr → Flickr Settings → Access Token</em>'), |
| 340 |
), |
| 341 |
|
| 342 |
'container' => array( |
| 343 |
'type' => 'thumbnail-selector', |
| 344 |
'mode' => 'single', |
| 345 |
'for' => 'selected_data', |
| 346 |
), |
| 347 |
), |
| 348 |
), |
| 349 |
'gallery-photo' => array( |
| 350 |
'header' => esc_html__('Pick your gallery', 'photonic'), |
| 351 |
'desc' => esc_html__('From the list below pick the gallery whose photos you wish to display. Photos from that gallery will show up as thumbnails.', 'photonic'), |
| 352 |
'display' => array( |
| 353 |
'container' => array( |
| 354 |
'type' => 'thumbnail-selector', |
| 355 |
'mode' => 'single', |
| 356 |
'for' => 'selected_data', |
| 357 |
), |
| 358 |
), |
| 359 |
), |
| 360 |
'multi-album' => array( |
| 361 |
'header' => esc_html__('Pick your albums / photosets', 'photonic'), |
| 362 |
'desc' => esc_html__('From the list below pick the albums / photosets you wish to display. Each album will show up as a single thumbnail.', 'photonic'), |
| 363 |
'display' => array( |
| 364 |
'selection' => array( |
| 365 |
'desc' => esc_html__('What do you want to show?', 'photonic'), |
| 366 |
'type' => 'select', |
| 367 |
'options' => array( |
| 368 |
'all' => esc_html__('Automatic all (will automatically add new albums)', 'photonic'), |
| 369 |
'selected' => esc_html__('Selected albums / photosets', 'photonic'), |
| 370 |
'not-selected' => esc_html__('All except selected albums / photosets', 'photonic'), |
| 371 |
), |
| 372 |
'hint' => esc_html__('If you pick "Automatic all" your selections below will be ignored.', 'photonic'), |
| 373 |
'req' => 1, |
| 374 |
), |
| 375 |
'container' => array( |
| 376 |
'type' => 'thumbnail-selector', |
| 377 |
'mode' => 'multi', |
| 378 |
'for' => 'selected_data', |
| 379 |
), |
| 380 |
), |
| 381 |
), |
| 382 |
'multi-gallery' => array( |
| 383 |
'header' => esc_html__('Pick your galleries', 'photonic'), |
| 384 |
'desc' => esc_html__('From the list below pick the galleries you wish to display. Each album will show up as a single thumbnail.', 'photonic'), |
| 385 |
'display' => array( |
| 386 |
'selection' => array( |
| 387 |
'desc' => esc_html__('What do you want to show?', 'photonic'), |
| 388 |
'type' => 'select', |
| 389 |
'options' => array( |
| 390 |
'all' => esc_html__('Automatic all (will automatically add new galleries)', 'photonic'), |
| 391 |
'selected' => esc_html__('Selected galleries', 'photonic'), |
| 392 |
'not-selected' => esc_html__('All except selected galleries', 'photonic'), |
| 393 |
), |
| 394 |
'req' => 1, |
| 395 |
'hint' => esc_html__('If you pick "Automatic all" your selections below will be ignored.', 'photonic'), |
| 396 |
), |
| 397 |
'container' => array( |
| 398 |
'type' => 'thumbnail-selector', |
| 399 |
'mode' => 'multi', |
| 400 |
'for' => 'selected_data', |
| 401 |
), |
| 402 |
), |
| 403 |
), |
| 404 |
'collection' => array( |
| 405 |
'header' => esc_html__('Pick your collection', 'photonic'), |
| 406 |
'desc' => esc_html__('From the list below pick the collection you wish to display. The albums within the collections will show up as single thumbnails.', 'photonic'), |
| 407 |
'display' => array( |
| 408 |
'container' => array( |
| 409 |
'type' => 'thumbnail-selector', |
| 410 |
'mode' => 'single', |
| 411 |
'for' => 'selected_data', |
| 412 |
), |
| 413 |
), |
| 414 |
), |
| 415 |
'collections' => array( |
| 416 |
'header' => esc_html__('Pick your collections', 'photonic'), |
| 417 |
'desc' => esc_html__('From the list below pick the collections you wish to display. The albums within the collections will show up as single thumbnails.', 'photonic'), |
| 418 |
'display' => array( |
| 419 |
'selection' => array( |
| 420 |
'desc' => esc_html__('What do you want to show?', 'photonic'), |
| 421 |
'type' => 'select', |
| 422 |
'options' => array( |
| 423 |
'all' => esc_html__('Automatic all (will automatically add new collections)', 'photonic'), |
| 424 |
'selected' => esc_html__('Selected collections', 'photonic'), |
| 425 |
'not-selected' => esc_html__('All except selected collections', 'photonic'), |
| 426 |
), |
| 427 |
'req' => 1, |
| 428 |
'hint' => esc_html__('If you pick "Automatic all" your selections below will be ignored.', 'photonic'), |
| 429 |
), |
| 430 |
'container' => array( |
| 431 |
'type' => 'thumbnail-selector', |
| 432 |
'mode' => 'multi', |
| 433 |
'for' => 'selected_data', |
| 434 |
), |
| 435 |
), |
| 436 |
), |
| 437 |
), |
| 438 |
'google' => array( |
| 439 |
'header' => esc_html__('Build your gallery', 'photonic'), |
| 440 |
'multi-photo' => array( |
| 441 |
'header' => esc_html__('All your photos', 'photonic'), |
| 442 |
'desc' => esc_html__('You can show all your photos, or apply filters to show some of them.', 'photonic'), |
| 443 |
'display' => array( |
| 444 |
'date_filters' => array( |
| 445 |
'desc' => esc_html__('Date Filters', 'photonic'), |
| 446 |
'type' => 'date-filter', |
| 447 |
'count' => 5 |
| 448 |
), |
| 449 |
|
| 450 |
'date_range_filters' => array( |
| 451 |
'desc' => esc_html__('Date Range Filters', 'photonic'), |
| 452 |
'type' => 'date-range-filter', |
| 453 |
'count' => 5 |
| 454 |
), |
| 455 |
|
| 456 |
'content_filters' => array( |
| 457 |
'desc' => esc_html__('Content Filters', 'photonic'), |
| 458 |
'type' => 'text', |
| 459 |
'hint' => sprintf(esc_html__('Comma-separated. Pick from: %s. Filters will be applied on the front-end, not on the display below. ', 'photonic'), |
| 460 |
'NONE, LANDSCAPES, RECEIPTS, CITYSCAPES, LANDMARKS, SELFIES, PEOPLE, PETS, WEDDINGS, BIRTHDAYS, DOCUMENTS, TRAVEL, ANIMALS, FOOD, SPORT, NIGHT, PERFORMANCES, WHITEBOARDS, SCREENSHOTS, UTILITY'). |
| 461 |
Photonic::doc_link("https://aquoid.com/plugins/photonic/google-photos/photos/#filtering-photos"), |
| 462 |
), |
| 463 |
|
| 464 |
'container' => array( |
| 465 |
'type' => 'thumbnail-selector', |
| 466 |
'mode' => 'none', |
| 467 |
'for' => 'selected_data', |
| 468 |
), |
| 469 |
), |
| 470 |
), |
| 471 |
'album-photo' => array( |
| 472 |
'header' => esc_html__('Pick your album', 'photonic'), |
| 473 |
'desc' => esc_html__('From the list below pick the album whose photos you wish to display. Photos from that album will show up as thumbnails.', 'photonic'), |
| 474 |
'display' => array( |
| 475 |
'container' => array( |
| 476 |
'type' => 'thumbnail-selector', |
| 477 |
'mode' => 'single', |
| 478 |
'for' => 'selected_data', |
| 479 |
), |
| 480 |
), |
| 481 |
), |
| 482 |
'multi-album' => array( |
| 483 |
'header' => esc_html__('Pick your albums', 'photonic'), |
| 484 |
'desc' => esc_html__('From the list below pick the albums you wish to display. Each album will show up as a single thumbnail.', 'photonic'), |
| 485 |
'display' => array( |
| 486 |
'selection' => array( |
| 487 |
'desc' => esc_html__('What do you want to show?', 'photonic'), |
| 488 |
'type' => 'select', |
| 489 |
'options' => array( |
| 490 |
'all' => esc_html__('Automatic all (will automatically add new albums)', 'photonic'), |
| 491 |
'selected' => esc_html__('Selected albums', 'photonic'), |
| 492 |
'not-selected' => esc_html__('All except selected albums', 'photonic'), |
| 493 |
), |
| 494 |
'hint' => esc_html__('If you pick "Automatic all" your selections below will be ignored.', 'photonic'), |
| 495 |
'req' => 1, |
| 496 |
), |
| 497 |
'access' => array( |
| 498 |
'desc' => esc_html__('What type of album?', 'photonic'), |
| 499 |
'type' => 'select', |
| 500 |
'options' => array( |
| 501 |
'' => '', |
| 502 |
'all' => esc_html__('Show both shared and not shared albums', 'photonic'), |
| 503 |
'shared' => esc_html__('Only show shared albums', 'photonic'), |
| 504 |
'not-shared' => esc_html__('Only show albums not shared', 'photonic'), |
| 505 |
), |
| 506 |
'std' => '', |
| 507 |
), |
| 508 |
'container' => array( |
| 509 |
'type' => 'thumbnail-selector', |
| 510 |
'mode' => 'multi', |
| 511 |
'for' => 'selected_data', |
| 512 |
), |
| 513 |
), |
| 514 |
), |
| 515 |
), |
| 516 |
'smugmug' => array( |
| 517 |
'header' => esc_html__('Build your gallery', 'photonic'), |
| 518 |
'album-photo' => array( |
| 519 |
'header' => esc_html__('Pick your album', 'photonic'), |
| 520 |
'desc' => esc_html__('From the list below pick the album whose photos you wish to display. Photos from that album will show up as thumbnails.', 'photonic'), |
| 521 |
'display' => array( |
| 522 |
'text' => array( |
| 523 |
'desc' => esc_html__('Only show photos with this text', 'photonic'), |
| 524 |
'type' => 'text', |
| 525 |
'std' => '', |
| 526 |
'hint' => esc_html__('Comma-separated list of values. Filters will be applied on the front-end, not on the display below', 'photonic'), |
| 527 |
), |
| 528 |
'keywords' => array( |
| 529 |
'desc' => esc_html__('Only show photos with these keywords', 'photonic'), |
| 530 |
'type' => 'text', |
| 531 |
'std' => '', |
| 532 |
'hint' => esc_html__('Comma-separated list of values. Filters will be applied on the front-end, not on the display below', 'photonic'), |
| 533 |
), |
| 534 |
'container' => array( |
| 535 |
'type' => 'thumbnail-selector', |
| 536 |
'mode' => 'single', |
| 537 |
'for' => 'selected_data', |
| 538 |
), |
| 539 |
), |
| 540 |
), |
| 541 |
'folder-photo' => array( |
| 542 |
'header' => esc_html__('Pick your folder', 'photonic'), |
| 543 |
'desc' => esc_html__('From the list below pick the folder whose photos you wish to display. Photos from that folder will show up as thumbnails.', 'photonic'), |
| 544 |
'display' => array( |
| 545 |
'text' => array( |
| 546 |
'desc' => esc_html__('Only show photos with this text', 'photonic'), |
| 547 |
'type' => 'text', |
| 548 |
'std' => '', |
| 549 |
'hint' => esc_html__('Comma-separated list of values. Filters will be applied on the front-end, not on the display below', 'photonic'), |
| 550 |
), |
| 551 |
'keywords' => array( |
| 552 |
'desc' => esc_html__('Only show photos with these keywords', 'photonic'), |
| 553 |
'type' => 'text', |
| 554 |
'std' => '', |
| 555 |
'hint' => esc_html__('Comma-separated list of values. Filters will be applied on the front-end, not on the display below.', 'photonic'), |
| 556 |
), |
| 557 |
'container' => array( |
| 558 |
'type' => 'thumbnail-selector', |
| 559 |
'mode' => 'single', |
| 560 |
'for' => 'selected_data', |
| 561 |
), |
| 562 |
), |
| 563 |
), |
| 564 |
'user-photo' => array( |
| 565 |
'header' => esc_html__('Photos for a User', 'photonic'), |
| 566 |
'desc' => esc_html__('The following lists the top-level folders and albums for the selected user. All photos from these folders will show up as thumbnails.', 'photonic'), |
| 567 |
'display' => array( |
| 568 |
'text' => array( |
| 569 |
'desc' => esc_html__('Only show photos with this text', 'photonic'), |
| 570 |
'type' => 'text', |
| 571 |
'std' => '', |
| 572 |
'hint' => esc_html__('Comma-separated list of values', 'photonic'), |
| 573 |
), |
| 574 |
'keywords' => array( |
| 575 |
'desc' => esc_html__('Only show photos with these keywords', 'photonic'), |
| 576 |
'type' => 'text', |
| 577 |
'std' => '', |
| 578 |
'hint' => esc_html__('Comma-separated list of values', 'photonic'), |
| 579 |
), |
| 580 |
'container' => array( |
| 581 |
'type' => 'thumbnail-selector', |
| 582 |
'mode' => 'none', |
| 583 |
'for' => 'selected_data', |
| 584 |
), |
| 585 |
), |
| 586 |
), |
| 587 |
'multi-album' => array( |
| 588 |
'header' => esc_html__('Pick your albums', 'photonic'), |
| 589 |
'desc' => esc_html__('From the list below pick the albums you wish to display. Each album will show up as a single thumbnail.', 'photonic'), |
| 590 |
'display' => array( |
| 591 |
'selection' => array( |
| 592 |
'desc' => esc_html__('What do you want to show?', 'photonic'), |
| 593 |
'type' => 'select', |
| 594 |
'options' => array( |
| 595 |
'all' => esc_html__('Automatic all (will automatically add new albums)', 'photonic'), |
| 596 |
'selected' => esc_html__('Selected albums', 'photonic'), |
| 597 |
'not-selected' => esc_html__('All except selected albums', 'photonic'), |
| 598 |
), |
| 599 |
'hint' => esc_html__('If you pick "Automatic all" your selections below will be ignored.', 'photonic'), |
| 600 |
'req' => 1, |
| 601 |
), |
| 602 |
'container' => array( |
| 603 |
'type' => 'thumbnail-selector', |
| 604 |
'mode' => 'multi', |
| 605 |
'for' => 'selected_data', |
| 606 |
), |
| 607 |
), |
| 608 |
), |
| 609 |
'folder' => array( |
| 610 |
'header' => esc_html__('Pick your folder', 'photonic'), |
| 611 |
'desc' => esc_html__('From the list below pick the folder you wish to display. The albums within the folder will show up as single thumbnails.', 'photonic'), |
| 612 |
'display' => array( |
| 613 |
'container' => array( |
| 614 |
'type' => 'thumbnail-selector', |
| 615 |
'mode' => 'single', |
| 616 |
'for' => 'selected_data', |
| 617 |
), |
| 618 |
), |
| 619 |
), |
| 620 |
'tree' => array( |
| 621 |
'header' => esc_html__('User Tree', 'photonic'), |
| 622 |
'desc' => esc_html__('The following user tree will be displayed on your site. Only top level folders and albums are shown here. The albums within the folders will show up as single thumbnails and can be clicked to show the images within.', 'photonic'), |
| 623 |
'display' => array( |
| 624 |
'container' => array( |
| 625 |
'type' => 'thumbnail-selector', |
| 626 |
'mode' => 'none', |
| 627 |
'for' => 'selected_data', |
| 628 |
), |
| 629 |
), |
| 630 |
), |
| 631 |
), |
| 632 |
'zenfolio' => array( |
| 633 |
'header' => esc_html__('Build your gallery', 'photonic'), |
| 634 |
'single-photo' => array( |
| 635 |
'header' => esc_html__('Pick a photo', 'photonic'), |
| 636 |
'desc' => esc_html__('From the list below pick the single photo you wish to display.', 'photonic'), |
| 637 |
'display' => array( |
| 638 |
'container' => array( |
| 639 |
'type' => 'thumbnail-selector', |
| 640 |
'mode' => 'single', |
| 641 |
'for' => 'selected_data', |
| 642 |
), |
| 643 |
), |
| 644 |
), |
| 645 |
'multi-photo' => array( |
| 646 |
'header' => esc_html__('Photos from all users', 'photonic'), |
| 647 |
'desc' => esc_html__('You can show photos from all users, and apply text or category filters to show some of them.', 'photonic'), |
| 648 |
'display' => array( |
| 649 |
'text' => array( |
| 650 |
'desc' => esc_html__('With text', 'photonic'), |
| 651 |
'type' => 'text', |
| 652 |
), |
| 653 |
|
| 654 |
'category_code' => array( |
| 655 |
'desc' => esc_html__('Category', 'photonic'), |
| 656 |
'type' => 'select', |
| 657 |
'options' => $this->get_zenfolio_categories(), |
| 658 |
), |
| 659 |
|
| 660 |
'container' => array( |
| 661 |
'type' => 'thumbnail-selector', |
| 662 |
'mode' => 'none', |
| 663 |
'for' => 'selected_data', |
| 664 |
), |
| 665 |
), |
| 666 |
), |
| 667 |
'gallery-photo' => array( |
| 668 |
'header' => esc_html__('Pick your gallery', 'photonic'), |
| 669 |
'desc' => esc_html__('From the list below pick the gallery whose photos you wish to display. Photos from that gallery will show up as thumbnails.', 'photonic'), |
| 670 |
'display' => array( |
| 671 |
'container' => array( |
| 672 |
'type' => 'thumbnail-selector', |
| 673 |
'mode' => 'single', |
| 674 |
'for' => 'selected_data', |
| 675 |
), |
| 676 |
), |
| 677 |
), |
| 678 |
'collection-photo' => array( |
| 679 |
'header' => esc_html__('Pick your collection', 'photonic'), |
| 680 |
'desc' => esc_html__('From the list below pick the collection whose photos you wish to display. Photos from that collection will show up as thumbnails.', 'photonic'), |
| 681 |
'display' => array( |
| 682 |
'container' => array( |
| 683 |
'type' => 'thumbnail-selector', |
| 684 |
'mode' => 'single', |
| 685 |
'for' => 'selected_data', |
| 686 |
), |
| 687 |
), |
| 688 |
), |
| 689 |
'multi-gallery' => array( |
| 690 |
'header' => esc_html__('Pick your galleries', 'photonic'), |
| 691 |
'desc' => esc_html__('From the list below pick the galleries you wish to display. Each album will show up as a single thumbnail. Note that text and category filters are not applied here but will be applied on the front-end.', 'photonic'), |
| 692 |
'display' => array( |
| 693 |
'selection' => array( |
| 694 |
'desc' => esc_html__('What do you want to show?', 'photonic'), |
| 695 |
'type' => 'select', |
| 696 |
'options' => array( |
| 697 |
'all' => esc_html__('Automatic all (will automatically add new galleries)', 'photonic'), |
| 698 |
'selected' => esc_html__('Selected galleries', 'photonic'), |
| 699 |
'not-selected' => esc_html__('All except selected galleries', 'photonic'), |
| 700 |
), |
| 701 |
'req' => 1, |
| 702 |
'hint' => esc_html__('If you pick "Automatic all" your selections below will be ignored.', 'photonic'), |
| 703 |
), |
| 704 |
|
| 705 |
'text' => array( |
| 706 |
'desc' => esc_html__('With text', 'photonic'), |
| 707 |
'type' => 'text', |
| 708 |
), |
| 709 |
|
| 710 |
'category_code' => array( |
| 711 |
'desc' => esc_html__('Category', 'photonic'), |
| 712 |
'type' => 'select', |
| 713 |
'options' => $this->get_zenfolio_categories(), |
| 714 |
), |
| 715 |
|
| 716 |
'container' => array( |
| 717 |
'type' => 'thumbnail-selector', |
| 718 |
'mode' => 'multi', |
| 719 |
'for' => 'selected_data', |
| 720 |
), |
| 721 |
), |
| 722 |
), |
| 723 |
'multi-collection' => array( |
| 724 |
'header' => esc_html__('Pick your collections', 'photonic'), |
| 725 |
'desc' => esc_html__('From the list below pick the collections you wish to display. Each collection will show up as a single thumbnail. Note that text and category filters are not applied here but will be applied on the front-end.', 'photonic'), |
| 726 |
'display' => array( |
| 727 |
'selection' => array( |
| 728 |
'desc' => esc_html__('What do you want to show?', 'photonic'), |
| 729 |
'type' => 'select', |
| 730 |
'options' => array( |
| 731 |
'all' => esc_html__('Automatic all (will automatically add new collections)', 'photonic'), |
| 732 |
'selected' => esc_html__('Selected collections', 'photonic'), |
| 733 |
'not-selected' => esc_html__('All except selected collections', 'photonic'), |
| 734 |
), |
| 735 |
'hint' => esc_html__('If you pick "Automatic all" your selections below will be ignored.', 'photonic'), |
| 736 |
'req' => 1, |
| 737 |
), |
| 738 |
|
| 739 |
'text' => array( |
| 740 |
'desc' => esc_html__('With text', 'photonic'), |
| 741 |
'type' => 'text', |
| 742 |
), |
| 743 |
|
| 744 |
'category_code' => array( |
| 745 |
'desc' => esc_html__('Category', 'photonic'), |
| 746 |
'type' => 'select', |
| 747 |
'options' => $this->get_zenfolio_categories(), |
| 748 |
), |
| 749 |
|
| 750 |
'container' => array( |
| 751 |
'type' => 'thumbnail-selector', |
| 752 |
'mode' => 'multi', |
| 753 |
'for' => 'selected_data', |
| 754 |
), |
| 755 |
), |
| 756 |
), |
| 757 |
'multi-gallery-collection' => array( |
| 758 |
'header' => esc_html__('Pick your galleries and collections', 'photonic'), |
| 759 |
'desc' => esc_html__('From the list below pick the galleries and collections you wish to display. Each gallery and collection will show up as a single thumbnail. Note that text and category filters are not applied here but will be applied on the front-end.', 'photonic'), |
| 760 |
'display' => array( |
| 761 |
'selection' => array( |
| 762 |
'desc' => esc_html__('What do you want to show?', 'photonic'), |
| 763 |
'type' => 'select', |
| 764 |
'options' => array( |
| 765 |
'all' => esc_html__('Automatic all (will automatically add new galleries and collections)', 'photonic'), |
| 766 |
'selected' => esc_html__('Selected galleries and collections', 'photonic'), |
| 767 |
'not-selected' => esc_html__('All except selected galleries and collections', 'photonic'), |
| 768 |
), |
| 769 |
'hint' => esc_html__('If you pick "Automatic all" your selections below will be ignored.', 'photonic'), |
| 770 |
'req' => 1, |
| 771 |
), |
| 772 |
|
| 773 |
'text' => array( |
| 774 |
'desc' => esc_html__('With text', 'photonic'), |
| 775 |
'type' => 'text', |
| 776 |
), |
| 777 |
|
| 778 |
'category_code' => array( |
| 779 |
'desc' => esc_html__('Category', 'photonic'), |
| 780 |
'type' => 'select', |
| 781 |
'options' => $this->get_zenfolio_categories(), |
| 782 |
), |
| 783 |
|
| 784 |
'container' => array( |
| 785 |
'type' => 'thumbnail-selector', |
| 786 |
'mode' => 'multi', |
| 787 |
'for' => 'selected_data', |
| 788 |
), |
| 789 |
), |
| 790 |
), |
| 791 |
'group' => array( |
| 792 |
'header' => esc_html__('Pick your group', 'photonic'), |
| 793 |
'desc' => esc_html__('From the list below pick the group you wish to display. The galleries / collections within the group will show up as single thumbnails.', 'photonic'), |
| 794 |
'display' => array( |
| 795 |
'container' => array( |
| 796 |
'type' => 'thumbnail-selector', |
| 797 |
'mode' => 'single', |
| 798 |
'for' => 'selected_data', |
| 799 |
), |
| 800 |
), |
| 801 |
), |
| 802 |
'group-hierarchy' => array( |
| 803 |
'header' => esc_html__('Your group hierarchy', 'photonic'), |
| 804 |
'desc' => esc_html__('The following group hierarchy will be displayed on your site. Only top level groups and galleries / collections are shown here. The galleries / collections within the groups will show up as single thumbnails and can be clicked to show the images within.', 'photonic'), |
| 805 |
'display' => array( |
| 806 |
'container' => array( |
| 807 |
'type' => 'thumbnail-selector', |
| 808 |
'mode' => 'none', |
| 809 |
'for' => 'selected_data', |
| 810 |
), |
| 811 |
), |
| 812 |
), |
| 813 |
), |
| 814 |
'instagram' => array( |
| 815 |
'header' => esc_html__('Build your gallery', 'photonic'), |
| 816 |
'single-photo' => array( |
| 817 |
'header' => esc_html__('Pick a photo', 'photonic'), |
| 818 |
'desc' => esc_html__('From the list below pick the single photo you wish to display.', 'photonic'), |
| 819 |
'display' => array( |
| 820 |
'container' => array( |
| 821 |
'type' => 'thumbnail-selector', |
| 822 |
'mode' => 'single', |
| 823 |
'for' => 'selected_data', |
| 824 |
), |
| 825 |
), |
| 826 |
), |
| 827 |
'multi-photo' => array( |
| 828 |
'header' => esc_html__('All your photos', 'photonic'), |
| 829 |
'desc' => esc_html__('Though Photonic has the capability to handle tags, Instagram has not granted it permission to display photos by tag. You can only show all your photos without filtering. In the following only the latest 20 photos are displayed. You can change this in subsequent screens.', 'photonic'), |
| 830 |
'display' => array( |
| 831 |
'container' => array( |
| 832 |
'type' => 'thumbnail-selector', |
| 833 |
'mode' => 'none', |
| 834 |
'for' => 'selected_data', |
| 835 |
), |
| 836 |
), |
| 837 |
), |
| 838 |
), |
| 839 |
), |
| 840 |
'screen-4' => array( |
| 841 |
'wp' => array(), |
| 842 |
'flickr' => array(), |
| 843 |
'google' => array(), |
| 844 |
'smugmug' => array(), |
| 845 |
'zenfolio' => array(), |
| 846 |
'instagram' => array(), |
| 847 |
), |
| 848 |
'screen-5' => array( |
| 849 |
'wp' => array( |
| 850 |
'count' => array( |
| 851 |
'desc' => esc_html__('Number of photos to show', 'photonic'), |
| 852 |
'type' => 'text', |
| 853 |
'hint' => esc_html__('Numeric values only. Shows all photos by default.', 'photonic'), |
| 854 |
), |
| 855 |
'main_size' => array( |
| 856 |
'desc' => esc_html__('Main image size', 'photonic'), |
| 857 |
'type' => 'select', |
| 858 |
'options' => $this->allowed_image_sizes['wp']['main_size'], |
| 859 |
'std' => 'full', |
| 860 |
), |
| 861 |
), |
| 862 |
'flickr' => array( |
| 863 |
'L1' => array( |
| 864 |
'sort' => array( |
| 865 |
'desc' => esc_html__('Sort by', 'photonic'), |
| 866 |
'type' => 'select', |
| 867 |
'options' => array( |
| 868 |
'' => '', |
| 869 |
'date-posted-desc' => esc_html__('Date posted, descending', 'photonic'), |
| 870 |
'date-posted-asc' => esc_html__('Date posted, ascending', 'photonic'), |
| 871 |
'date-taken-asc' => esc_html__('Date taken, ascending', 'photonic'), |
| 872 |
'date-taken-desc' => esc_html__('Date taken, descending', 'photonic'), |
| 873 |
'interestingness-desc' => esc_html__('Interestingness, descending', 'photonic'), |
| 874 |
'interestingness-asc' => esc_html__('Interestingness, ascending', 'photonic'), |
| 875 |
'relevance' => esc_html__('Relevance', 'photonic'), |
| 876 |
), |
| 877 |
), |
| 878 |
'media' => array( |
| 879 |
'desc' => esc_html__('Media to Show', 'photonic'), |
| 880 |
'type' => 'select', |
| 881 |
'options' => Photonic::media_options(true, $photonic_flickr_media), |
| 882 |
'std' => '', |
| 883 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → Flickr → Flickr Settings → Media to show</em>'), |
| 884 |
), |
| 885 |
'caption' => array( |
| 886 |
'desc' => esc_html__('Photo titles and captions', 'photonic'), |
| 887 |
'type' => 'select', |
| 888 |
'options' => Photonic::title_caption_options(true, $photonic_flickr_title_caption), |
| 889 |
'std' => '', |
| 890 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → Flickr → Flickr Settings → Photo titles and captions</em>'), |
| 891 |
), |
| 892 |
'headers' => array( |
| 893 |
'desc' => esc_html__('Show Header', 'photonic'), |
| 894 |
'type' => 'select', |
| 895 |
'options' => array( |
| 896 |
'' => $this->default_from_settings, |
| 897 |
'none' => esc_html__('No header', 'photonic'), |
| 898 |
'title' => esc_html__('Title only', 'photonic'), |
| 899 |
'thumbnail' => esc_html__('Thumbnail only', 'photonic'), |
| 900 |
'counter' => esc_html__('Counts only', 'photonic'), |
| 901 |
'title,counter' => esc_html__('Title and counts', 'photonic'), |
| 902 |
'thumbnail,counter' => esc_html__('Thumbnail and counts', 'photonic'), |
| 903 |
'thumbnail,title' => esc_html__('Thumbnail and title', 'photonic'), |
| 904 |
'thumbnail,title,counter' => esc_html__('Thumbnail, title and counts', 'photonic'), |
| 905 |
), |
| 906 |
'conditions' => array('display_type' => array('album-photo', 'gallery-photo')), |
| 907 |
), |
| 908 |
), |
| 909 |
'L2' => array(), |
| 910 |
'L3' => array( |
| 911 |
'collections_display' => array( |
| 912 |
'desc' => esc_html__('Expand Collections', 'photonic'), |
| 913 |
'type' => 'select', |
| 914 |
'options' => array( |
| 915 |
'' => '', |
| 916 |
'lazy' => esc_html__('Lazy loading', 'photonic'), |
| 917 |
'expanded' => esc_html__('Expanded upfront', 'photonic'), |
| 918 |
), |
| 919 |
'hint' => sprintf(esc_html__('The Collections API is slow, so, if you are displaying collections, pick %1$slazy loading%2$s if your collections have many albums / photosets.', 'photonic'), |
| 920 |
'<a href="https://aquoid.com/plugins/photonic/flickr/flickr-collections/" target="_blank">', '</a>'), |
| 921 |
), |
| 922 |
'headers' => array( |
| 923 |
'desc' => esc_html__('Show Header', 'photonic'), |
| 924 |
'type' => 'select', |
| 925 |
'options' => array( |
| 926 |
'' => $this->default_from_settings, |
| 927 |
'none' => esc_html__('No header', 'photonic'), |
| 928 |
'title' => esc_html__('Title only', 'photonic'), |
| 929 |
'thumbnail' => esc_html__('Thumbnail only', 'photonic'), |
| 930 |
'counter' => esc_html__('Counts only', 'photonic'), |
| 931 |
'title,counter' => esc_html__('Title and counts', 'photonic'), |
| 932 |
'thumbnail,counter' => esc_html__('Thumbnail and counts', 'photonic'), |
| 933 |
'thumbnail,title' => esc_html__('Thumbnail and title', 'photonic'), |
| 934 |
'thumbnail,title,counter' => esc_html__('Thumbnail, title and counts', 'photonic'), |
| 935 |
), |
| 936 |
), |
| 937 |
), |
| 938 |
'main_size' => array( |
| 939 |
'desc' => esc_html__('Main image size', 'photonic'), |
| 940 |
'type' => 'select', |
| 941 |
'options' => $this->allowed_image_sizes['flickr']['main_size'], |
| 942 |
'std' => '', |
| 943 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → Flickr → Flickr Settings → Main image size</em>'), |
| 944 |
), |
| 945 |
'video_size' => array( |
| 946 |
'desc' => esc_html__('Main video size', 'photonic'), |
| 947 |
'type' => 'select', |
| 948 |
'options' => $this->allowed_image_sizes['flickr']['video_size'], |
| 949 |
'std' => '', |
| 950 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → Flickr → Flickr Settings → Video size</em>'), |
| 951 |
), |
| 952 |
), |
| 953 |
'google' => array( |
| 954 |
'L1' => array( |
| 955 |
'media' => array( |
| 956 |
'desc' => esc_html__('Media to Show', 'photonic'), |
| 957 |
'type' => 'select', |
| 958 |
'options' => Photonic::media_options(true, $photonic_google_media), |
| 959 |
'std' => '', |
| 960 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → Google Photos → Google Photos settings → Media to show</em>'), |
| 961 |
), |
| 962 |
), |
| 963 |
'main_size' => array( |
| 964 |
'desc' => esc_html__('Main image size', 'photonic'), |
| 965 |
'type' => 'text', |
| 966 |
'std' => 1600, |
| 967 |
'hint' => esc_html__('Numeric values between 1 and 16383, both inclusive.', 'photonic'), |
| 968 |
), |
| 969 |
), |
| 970 |
'smugmug' => array( |
| 971 |
'L1' => array( |
| 972 |
'media' => array( |
| 973 |
'desc' => esc_html__('Media to Show', 'photonic'), |
| 974 |
'type' => 'select', |
| 975 |
'options' => Photonic::media_options(true, $photonic_smug_media), |
| 976 |
'std' => '', |
| 977 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → SmugMug → SmugMug Settings → Media to show</em>'), |
| 978 |
), |
| 979 |
'caption' => array( |
| 980 |
'desc' => esc_html__('Photo titles and captions', 'photonic'), |
| 981 |
'type' => 'select', |
| 982 |
'options' => Photonic::title_caption_options(true, $photonic_smug_title_caption), |
| 983 |
'std' => '', |
| 984 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → SmugMug → SmugMug Settings → Photo titles and captions</em>'), |
| 985 |
), |
| 986 |
'password' => array( |
| 987 |
'desc' => esc_html__('Password for password-protected album', 'photonic'), |
| 988 |
'type' => 'text', |
| 989 |
'req' => 1, |
| 990 |
'hint' => esc_html__('You are trying to display photos from a password-protected album. The password is mandatory for such an album.', 'photonic'), |
| 991 |
'conditions' => array('selection_passworded' => array('1')), |
| 992 |
), |
| 993 |
'sort_method' => array( |
| 994 |
'desc' => esc_html__('Sort photos by', 'photonic'), |
| 995 |
'type' => 'select', |
| 996 |
'options' => array( |
| 997 |
'' => '', |
| 998 |
'DateTaken' => esc_html__('Date Taken', 'photonic'), |
| 999 |
'DateUploaded' => esc_html__('Date Uploaded', 'photonic'), |
| 1000 |
'Popular' => esc_html__('Popular', 'photonic'), |
| 1001 |
), |
| 1002 |
), |
| 1003 |
'sort_order' => array( |
| 1004 |
'desc' => esc_html__('Sort order', 'photonic'), |
| 1005 |
'type' => 'select', |
| 1006 |
'options' => array( |
| 1007 |
'' => '', |
| 1008 |
'Ascending' => esc_html__('Ascending', 'photonic'), |
| 1009 |
'Descending' => esc_html__('Descending', 'photonic'), |
| 1010 |
), |
| 1011 |
), |
| 1012 |
'headers' => array( |
| 1013 |
'desc' => esc_html__('Show Header', 'photonic'), |
| 1014 |
'type' => 'select', |
| 1015 |
'options' => array( |
| 1016 |
'' => $this->default_from_settings, |
| 1017 |
'none' => esc_html__('No header', 'photonic'), |
| 1018 |
'title' => esc_html__('Title only', 'photonic'), |
| 1019 |
'thumbnail' => esc_html__('Thumbnail only', 'photonic'), |
| 1020 |
'counter' => esc_html__('Counts only', 'photonic'), |
| 1021 |
'title,counter' => esc_html__('Title and counts', 'photonic'), |
| 1022 |
'thumbnail,counter' => esc_html__('Thumbnail and counts', 'photonic'), |
| 1023 |
'thumbnail,title' => esc_html__('Thumbnail and title', 'photonic'), |
| 1024 |
'thumbnail,title,counter' => esc_html__('Thumbnail, title and counts', 'photonic'), |
| 1025 |
), |
| 1026 |
), |
| 1027 |
), |
| 1028 |
'L2' => array( |
| 1029 |
'site_password' => array( |
| 1030 |
'desc' => esc_html__('Site Password for password-protected sites', 'photonic'), |
| 1031 |
'type' => 'text', |
| 1032 |
'hint' => esc_html__('If you SmugMug site is password-protected you will need to provide the password to be able to show your photos.', 'photonic'), |
| 1033 |
), |
| 1034 |
'album_sort_order' => array( |
| 1035 |
'desc' => esc_html__('Album sort order', 'photonic'), |
| 1036 |
'type' => 'select', |
| 1037 |
'options' => array( |
| 1038 |
'' => $this->default_from_settings, |
| 1039 |
'Last Updated (Descending)' => esc_html__('Last Updated (Descending)', 'photonic'), |
| 1040 |
'Last Updated (Ascending)' => esc_html__('Last Updated (Ascending)', 'photonic'), |
| 1041 |
'Date Added (Descending)' => esc_html__('Date Added (Descending)', 'photonic'), |
| 1042 |
'Date Added (Ascending)' => esc_html__('Date Added (Ascending)', 'photonic'), |
| 1043 |
), |
| 1044 |
), |
| 1045 |
), |
| 1046 |
'L3' => array( |
| 1047 |
'site_password' => array( |
| 1048 |
'desc' => esc_html__('Site Password for password-protected sites', 'photonic'), |
| 1049 |
'type' => 'text', |
| 1050 |
'hint' => esc_html__('If you SmugMug site is password-protected you will need to provide the password to be able to show your photos.', 'photonic'), |
| 1051 |
), |
| 1052 |
), |
| 1053 |
'main_size' => array( |
| 1054 |
'desc' => esc_html__('Main image size', 'photonic'), |
| 1055 |
'type' => 'select', |
| 1056 |
'options' => $this->allowed_image_sizes['smugmug']['main_size'], |
| 1057 |
'std' => '', |
| 1058 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → SmugMug → SmugMug Settings → Main image size</em>'), |
| 1059 |
), |
| 1060 |
'video_size' => array( |
| 1061 |
'desc' => esc_html__('Main video size', 'photonic'), |
| 1062 |
'type' => 'select', |
| 1063 |
'options' => $this->allowed_image_sizes['smugmug']['video_size'], |
| 1064 |
'std' => '', |
| 1065 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → SmugMug → SmugMug Settings → Video size</em>'), |
| 1066 |
), |
| 1067 |
), |
| 1068 |
'zenfolio' => array( |
| 1069 |
'L1' => array( |
| 1070 |
'media' => array( |
| 1071 |
'desc' => esc_html__('Media to Show', 'photonic'), |
| 1072 |
'type' => 'select', |
| 1073 |
'options' => Photonic::media_options(true, $photonic_zenfolio_media), |
| 1074 |
'std' => '', |
| 1075 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → Zenfolio → Zenfolio Photo Settings → Media to show</em>'), |
| 1076 |
), |
| 1077 |
'caption' => array( |
| 1078 |
'desc' => esc_html__('Photo titles and captions', 'photonic'), |
| 1079 |
'type' => 'select', |
| 1080 |
'options' => Photonic::title_caption_options(true, $photonic_zenfolio_title_caption), |
| 1081 |
'std' => '', |
| 1082 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → Zenfolio → Zenfolio Photo Settings → Photo titles and captions</em>'), |
| 1083 |
), |
| 1084 |
'sort_order' => array( |
| 1085 |
'desc' => esc_html__('Search results sort order', 'photonic'), |
| 1086 |
'type' => 'select', |
| 1087 |
'options' => array( |
| 1088 |
'' => '', |
| 1089 |
'Date' => esc_html__('Date', 'photonic'), |
| 1090 |
'Popularity' => esc_html__('Popularity', 'photonic'), |
| 1091 |
'Rank' => esc_html__('Rank (for searching by text only)', 'photonic'), |
| 1092 |
), |
| 1093 |
), |
| 1094 |
'password' => array( |
| 1095 |
'desc' => esc_html__('Password for password-protected album', 'photonic'), |
| 1096 |
'type' => 'text', |
| 1097 |
'req' => 1, |
| 1098 |
'hint' => esc_html__('You are trying to display photos from a password-protected album. The password is mandatory for such an album.', 'photonic'), |
| 1099 |
'conditions' => array('selection_passworded' => array('1')), |
| 1100 |
), |
| 1101 |
), |
| 1102 |
'L2' => array( |
| 1103 |
'sort_order' => array( |
| 1104 |
'desc' => esc_html__('Search results sort order', 'photonic'), |
| 1105 |
'type' => 'select', |
| 1106 |
'options' => array( |
| 1107 |
'' => '', |
| 1108 |
'Date' => esc_html__('Date', 'photonic'), |
| 1109 |
'Popularity' => esc_html__('Popularity', 'photonic'), |
| 1110 |
'Rank' => esc_html__('Rank (for searching by text only)', 'photonic'), |
| 1111 |
), |
| 1112 |
), |
| 1113 |
), |
| 1114 |
'L3' => array( |
| 1115 |
'structure' => array( |
| 1116 |
'desc' => esc_html__('Group / Hierarchy structure', 'photonic'), |
| 1117 |
'type' => 'select', |
| 1118 |
'options' => array( |
| 1119 |
'' => '', |
| 1120 |
'flat' => esc_html__('All photosets shown in single level', 'photonic'), |
| 1121 |
'nested' => esc_html__('Photosets shown nested within groups', 'photonic'), |
| 1122 |
), |
| 1123 |
'hint' => sprintf(esc_html__('See examples %1$shere%2$s.', 'photonic'), '<a href="https://aquoid.com/plugins/photonic/zenfolio/group-hierarchy/" target="_blank">', '</a>'), |
| 1124 |
), |
| 1125 |
'headers' => array( |
| 1126 |
'desc' => esc_html__('Show Group Header', 'photonic'), |
| 1127 |
'type' => 'select', |
| 1128 |
'options' => array( |
| 1129 |
'' => $this->default_from_settings, |
| 1130 |
'none' => esc_html__('No header', 'photonic'), |
| 1131 |
'title' => esc_html__('Title only', 'photonic'), |
| 1132 |
'counter' => esc_html__('Counts only', 'photonic'), |
| 1133 |
'title,counter' => esc_html__('Title and counts', 'photonic'), |
| 1134 |
), |
| 1135 |
), |
| 1136 |
), |
| 1137 |
'main_size' => array( |
| 1138 |
'desc' => esc_html__('Main image size', 'photonic'), |
| 1139 |
'type' => 'select', |
| 1140 |
'options' => $this->allowed_image_sizes['zenfolio']['main_size'], |
| 1141 |
'std' => '', |
| 1142 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → Zenfolio → Zenfolio Photo Settings → Main image size</em>'), |
| 1143 |
), |
| 1144 |
'video_size' => array( |
| 1145 |
'desc' => esc_html__('Main video size', 'photonic'), |
| 1146 |
'type' => 'select', |
| 1147 |
'options' => $this->allowed_image_sizes['zenfolio']['video_size'], |
| 1148 |
'std' => '', |
| 1149 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → Zenfolio → Zenfolio Photo Settings → Video size</em>'), |
| 1150 |
), |
| 1151 |
), |
| 1152 |
'instagram' => array( |
| 1153 |
'media' => array( |
| 1154 |
'desc' => esc_html__('Media to Show', 'photonic'), |
| 1155 |
'type' => 'select', |
| 1156 |
'options' => Photonic::media_options(true, $photonic_instagram_media), |
| 1157 |
'std' => '', |
| 1158 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → Instagram → Instagram Settings → Media to show</em>'), |
| 1159 |
), |
| 1160 |
'main_size' => array( |
| 1161 |
'desc' => esc_html__('Main image size', 'photonic'), |
| 1162 |
'type' => 'select', |
| 1163 |
'options' => $this->allowed_image_sizes['instagram']['main_size'], |
| 1164 |
'std' => '', |
| 1165 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → Instagram → Instagram Settings → Expanded size</em>'), |
| 1166 |
), |
| 1167 |
'video_size' => array( |
| 1168 |
'desc' => esc_html__('Main video size', 'photonic'), |
| 1169 |
'type' => 'select', |
| 1170 |
'options' => $this->allowed_image_sizes['instagram']['video_size'], |
| 1171 |
'std' => '', |
| 1172 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → Instagram → Instagram Settings → Expanded video size</em>'), |
| 1173 |
), |
| 1174 |
), |
| 1175 |
'slideshow' => array( |
| 1176 |
'slideshow-style' => array( |
| 1177 |
'desc' => esc_html__('Slideshow display style', 'photonic'), |
| 1178 |
'type' => 'image-select', |
| 1179 |
'options' => array( |
| 1180 |
'strip-below' => esc_html__('Thumbnail strip or buttons below slideshow', 'photonic'), |
| 1181 |
'strip-above' => esc_html__('Thumbnail strip above slideshow', 'photonic'), |
| 1182 |
'strip-right' => esc_html__('Thumbnail strip to the right of slideshow', 'photonic'), |
| 1183 |
'no-strip' => esc_html__('No thumbnails or buttons for the slideshow', 'photonic'), |
| 1184 |
), |
| 1185 |
'std' => $photonic_thumbnail_style, |
| 1186 |
), |
| 1187 |
'strip-style' => array( |
| 1188 |
'desc' => esc_html__('Thumbnails or buttons for the strip?', 'photonic'), |
| 1189 |
'type' => 'image-select', |
| 1190 |
'options' => array( |
| 1191 |
'thumbs' => esc_html__('Thumbnails', 'photonic'), |
| 1192 |
'button' => esc_html__('Buttons', 'photonic'), |
| 1193 |
), |
| 1194 |
'hint' => esc_html__('If you choose "Buttons" those are only shown below the slideshow.', 'photonic'), |
| 1195 |
'std' => 'thumbs', |
| 1196 |
), |
| 1197 |
'controls' => array( |
| 1198 |
'desc' => esc_html__('Slideshow Controls', 'photonic'), |
| 1199 |
'type' => 'select', |
| 1200 |
'options' => array( |
| 1201 |
'hide' => esc_html__('Hide', 'photonic'), |
| 1202 |
'show' => esc_html__('Show', 'photonic'), |
| 1203 |
), |
| 1204 |
'hint' => esc_html__('Shows Previous and Next buttons on the slideshow.', 'photonic'), |
| 1205 |
), |
| 1206 |
'fx' => array( |
| 1207 |
'desc' => esc_html__('Slideshow Effects', 'photonic'), |
| 1208 |
'type' => 'select', |
| 1209 |
'options' => array( |
| 1210 |
'fade' => esc_html__('Fade', 'photonic'), |
| 1211 |
'slide' => esc_html__('Slide', 'photonic'), |
| 1212 |
), |
| 1213 |
'hint' => esc_html__('Determines if a photo in a slideshow should fade in or slide in.', 'photonic') |
| 1214 |
), |
| 1215 |
'timeout' => array( |
| 1216 |
'desc' => esc_html__('Time between slides in ms', 'photonic'), |
| 1217 |
'type' => 'text', |
| 1218 |
'std' => '', |
| 1219 |
'hint' => esc_html__('Please enter numbers only', 'photonic') |
| 1220 |
), |
| 1221 |
'speed' => array( |
| 1222 |
'desc' => esc_html__('Time for each transition in ms', 'photonic'), |
| 1223 |
'type' => 'text', |
| 1224 |
'std' => '', |
| 1225 |
'hint' => esc_html__('How fast do you want the fade or slide effect to happen?', 'photonic') |
| 1226 |
), |
| 1227 |
'pause' => array( |
| 1228 |
'desc' => esc_html__('Pause upon hover?', 'photonic'), |
| 1229 |
'type' => 'select', |
| 1230 |
'options' => array( |
| 1231 |
'0' => esc_html__('No', 'photonic'), |
| 1232 |
'1' => esc_html__('Yes', 'photonic'), |
| 1233 |
), |
| 1234 |
'hint' => esc_html__('Should the slideshow pause when you hover over it?', 'photonic') |
| 1235 |
), |
| 1236 |
'columns' => array( |
| 1237 |
'desc' => esc_html__('Number of columns in slideshow', 'photonic'), |
| 1238 |
'type' => 'select', |
| 1239 |
'options' => array( |
| 1240 |
'' => '', |
| 1241 |
'1' => 1, |
| 1242 |
'2' => 2, |
| 1243 |
'3' => 3, |
| 1244 |
'4' => 4, |
| 1245 |
'5' => 5, |
| 1246 |
'6' => 6, |
| 1247 |
'7' => 7, |
| 1248 |
'8' => 8, |
| 1249 |
'9' => 9, |
| 1250 |
'10' => 10, |
| 1251 |
), |
| 1252 |
'hint' => esc_html__('Pick > 1 for a carousel', 'photonic'), |
| 1253 |
), |
| 1254 |
), |
| 1255 |
'square' => array( |
| 1256 |
'columns' => $this->column_options, |
| 1257 |
'flickr' => array( |
| 1258 |
'thumb_size' => array( |
| 1259 |
'desc' => esc_html__('Thumbnail size', 'photonic'), |
| 1260 |
'type' => 'select', |
| 1261 |
'options' => $this->allowed_image_sizes['flickr']['thumb_size'], |
| 1262 |
'std' => '', |
| 1263 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → Flickr → Flickr Settings → Thumbnail size</em>'), |
| 1264 |
), |
| 1265 |
), |
| 1266 |
'google' => array( |
| 1267 |
'thumb_size' => array( |
| 1268 |
'desc' => esc_html__('Thumbnail size', 'photonic'), |
| 1269 |
'type' => 'text', |
| 1270 |
'hint' => esc_html__('Numeric values between 1 and 256, both inclusive.', 'photonic'), |
| 1271 |
'std' => 150, |
| 1272 |
), |
| 1273 |
'crop_thumb' => array( |
| 1274 |
'desc' => esc_html__('Crop Thumbnail', 'photonic'), |
| 1275 |
'type' => 'select', |
| 1276 |
'options' => array( |
| 1277 |
'crop' => esc_html__('Crop the thumbnail', 'photonic'), |
| 1278 |
'no-crop' => esc_html__('Do not crop the thumbnail', 'photonic'), |
| 1279 |
), |
| 1280 |
'std' => 'crop', |
| 1281 |
'hint' => esc_html__('Cropping the thumbnail presents you with a square thumbnail.', 'photonic') |
| 1282 |
), |
| 1283 |
), |
| 1284 |
'smugmug' => array( |
| 1285 |
'thumb_size' => array( |
| 1286 |
'desc' => esc_html__('Thumbnail size', 'photonic'), |
| 1287 |
'type' => 'select', |
| 1288 |
'options' => $this->allowed_image_sizes['smugmug']['thumb_size'], |
| 1289 |
'std' => '', |
| 1290 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → SmugMug → SmugMug Settings → Thumbnail size</em>'), |
| 1291 |
), |
| 1292 |
), |
| 1293 |
'zenfolio' => array( |
| 1294 |
'thumb_size' => array( |
| 1295 |
'desc' => esc_html__('Thumbnail size', 'photonic'), |
| 1296 |
'type' => 'select', |
| 1297 |
'options' => $this->allowed_image_sizes['zenfolio']['thumb_size'], |
| 1298 |
'std' => '', |
| 1299 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → Zenfolio → Zenfolio Photo Settings → Thumbnail size</em>'), |
| 1300 |
), |
| 1301 |
), |
| 1302 |
'instagram' => array( |
| 1303 |
'thumb_size' => array( |
| 1304 |
'desc' => esc_html__('Thumbnail size', 'photonic'), |
| 1305 |
'type' => 'text', |
| 1306 |
'hint' => esc_html__('Numeric values only. Leave blank for default.', 'photonic'), |
| 1307 |
'std' => 150, |
| 1308 |
), |
| 1309 |
), |
| 1310 |
'wp' => array( |
| 1311 |
'thumb_size' => array( |
| 1312 |
'desc' => esc_html__('Thumbnail size', 'photonic'), |
| 1313 |
'type' => 'select', |
| 1314 |
'options' => $this->allowed_image_sizes['wp']['thumb_size'], |
| 1315 |
'std' => 'thumbnail', |
| 1316 |
), |
| 1317 |
), |
| 1318 |
'title_position' => $this->get_title_position_options(), |
| 1319 |
), |
| 1320 |
'random' => array( |
| 1321 |
'flickr' => array( |
| 1322 |
'tile_size' => array( |
| 1323 |
'desc' => esc_html__('Tile size', 'photonic'), |
| 1324 |
'type' => 'select', |
| 1325 |
'options' => $this->allowed_image_sizes['flickr']['tile_size'], |
| 1326 |
'std' => '', |
| 1327 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → Flickr → Flickr Settings → Tile image size</em>'), |
| 1328 |
), |
| 1329 |
), |
| 1330 |
'google' => array( |
| 1331 |
'tile_size' => array( |
| 1332 |
'desc' => esc_html__('Tile size', 'photonic'), |
| 1333 |
'type' => 'text', |
| 1334 |
'hint' => esc_html__('Numeric values between 1 and 16383, both inclusive. Leave blank to use the "Main image size".', 'photonic'), |
| 1335 |
), |
| 1336 |
), |
| 1337 |
'smugmug' => array( |
| 1338 |
'tile_size' => array( |
| 1339 |
'desc' => esc_html__('Tile size', 'photonic'), |
| 1340 |
'type' => 'select', |
| 1341 |
'options' => $this->allowed_image_sizes['smugmug']['tile_size'], |
| 1342 |
'std' => '', |
| 1343 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → SmugMug → SmugMug Settings → Tile image size</em>'), |
| 1344 |
), |
| 1345 |
), |
| 1346 |
'zenfolio' => array( |
| 1347 |
'tile_size' => array( |
| 1348 |
'desc' => esc_html__('Tile size', 'photonic'), |
| 1349 |
'type' => 'select', |
| 1350 |
'options' => $this->allowed_image_sizes['zenfolio']['tile_size'], |
| 1351 |
'std' => '', |
| 1352 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → Zenfolio → Zenfolio Photo Settings → Tile image size</em>'), |
| 1353 |
), |
| 1354 |
), |
| 1355 |
'instagram' => array( |
| 1356 |
'tile_size' => array( |
| 1357 |
'desc' => esc_html__('Tile size', 'photonic'), |
| 1358 |
'type' => 'select', |
| 1359 |
'options' => $this->allowed_image_sizes['instagram']['tile_size'], |
| 1360 |
'std' => '', |
| 1361 |
'hint' => sprintf($this->default_under, '<em>Photonic → Settings → Instagram → Instagram Settings → Tile image size</em>'), |
| 1362 |
), |
| 1363 |
), |
| 1364 |
'wp' => array( |
| 1365 |
'tile_size' => array( |
| 1366 |
'desc' => esc_html__('Tile size', 'photonic'), |
| 1367 |
'type' => 'select', |
| 1368 |
'options' => $this->allowed_image_sizes['wp']['tile_size'], |
| 1369 |
'std' => 'full', |
| 1370 |
), |
| 1371 |
), |
| 1372 |
'title_position' => $this->get_title_position_options(), |
| 1373 |
), |
| 1374 |
'L1' => array( |
| 1375 |
'count' => array( |
| 1376 |
'desc' => esc_html__('Number of photos to show', 'photonic'), |
| 1377 |
'type' => 'text', |
| 1378 |
'hint' => esc_html__('Numeric values only. Leave blank for default.', 'photonic'), |
| 1379 |
), |
| 1380 |
'more' => array( |
| 1381 |
'desc' => esc_html__('"More" button text', 'photonic'), |
| 1382 |
'type' => 'text', |
| 1383 |
'hint' => esc_html__('Will show a "More" button with the specified text if the number of photos is higher than the above entry. Leave blank to show no button', 'photonic'), |
| 1384 |
), |
| 1385 |
), |
| 1386 |
'L2' => array( |
| 1387 |
'count' => array( |
| 1388 |
'desc' => esc_html__('Number of albums to show', 'photonic'), |
| 1389 |
'type' => 'text', |
| 1390 |
'hint' => esc_html__('Numeric values only. Leave blank for default.', 'photonic'), |
| 1391 |
), |
| 1392 |
'more' => array( |
| 1393 |
'desc' => esc_html__('"More" button text', 'photonic'), |
| 1394 |
'type' => 'text', |
| 1395 |
'hint' => esc_html__('Will show a "More" button with the specified text if the number of albums is higher than the above entry. Leave blank to show no button', 'photonic'), |
| 1396 |
), |
| 1397 |
'popup_type' => array( |
| 1398 |
'type' => 'field_list', |
| 1399 |
'list_type' => 'sequence', |
| 1400 |
'list' => array( |
| 1401 |
'popup' => array( |
| 1402 |
'desc' => esc_html__('Show an overlaid popup panel', 'photonic'), |
| 1403 |
'type' => 'select', |
| 1404 |
'options' => array( |
| 1405 |
'' => '', |
| 1406 |
'hide' => esc_html__('No', 'photonic'), |
| 1407 |
'show' => esc_html__('Yes', 'photonic'), |
| 1408 |
), |
| 1409 |
'std' => empty($photonic_enable_popup) ? 'hide' : 'show', |
| 1410 |
'hint' => sprintf(esc_html__('Setting this to "No" would directly start up a lightbox with photos. Setting this to "Yes" would show an overlaid panel that has the photos. See %1$sdocumentation%2$s.', 'photonic'), '<a href="https://aquoid.com/plugins/photonic/layouts/#nested" target="_blank">', '</a>'), |
| 1411 |
), |
| 1412 |
'photo_count' => array( |
| 1413 |
'desc' => esc_html__('Number of photos to show in overlaid popup', 'photonic'), |
| 1414 |
'type' => 'text', |
| 1415 |
'hint' => esc_html__('Numeric values only. Leave blank for default.', 'photonic'), |
| 1416 |
'conditions' => array('popup' => array('show')), |
| 1417 |
), |
| 1418 |
'photo_more' => array( |
| 1419 |
'desc' => esc_html__('"More" button text in overlaid popup', 'photonic'), |
| 1420 |
'type' => 'text', |
| 1421 |
'hint' => esc_html__('Will show a "More" button with the specified text if the number of photos in the overlaid popup is higher than the above entry. Leave blank to show no button', 'photonic'), |
| 1422 |
'conditions' => array('popup' => array('show')), |
| 1423 |
) |
| 1424 |
) |
| 1425 |
), |
| 1426 |
), |
| 1427 |
'L3' => array(), |
| 1428 |
), |
| 1429 |
); |
| 1430 |
|
| 1431 |
$this->flow_options['screen-5']['circle'] = $this->flow_options['screen-5']['square']; |
| 1432 |
$this->flow_options['screen-5']['masonry'] = $this->flow_options['screen-5']['random']; |
| 1433 |
$this->flow_options['screen-5']['masonry']['columns'] = $this->column_options; |
| 1434 |
$this->flow_options['screen-5']['mosaic'] = $this->flow_options['screen-5']['random']; |
| 1435 |
unset($this->flow_options['screen-5']['random']['title_position']['options']['below']); |
| 1436 |
unset($this->flow_options['screen-5']['mosaic']['title_position']['options']['below']); |
| 1437 |
$this->flow_options['screen-5']['L3']['popup_type'] = $this->flow_options['screen-5']['L2']['popup_type']; |
| 1438 |
} |
| 1439 |
|
| 1440 |
private function get_zenfolio_categories() { |
| 1441 |
$response = wp_remote_request('https://api.zenfolio.com/api/1.8/zfapi.asmx/GetCategories', array('sslverify' => PHOTONIC_SSL_VERIFY)); |
| 1442 |
$category_list = array('' => ''); |
| 1443 |
|
| 1444 |
if (!is_wp_error($response)) { |
| 1445 |
if (isset($response['response']) && isset($response['response']['code'])) { |
| 1446 |
if ($response['response']['code'] == 200) { |
| 1447 |
if (isset($response['body'])) { |
| 1448 |
$response = simplexml_load_string($response['body']); |
| 1449 |
if (!empty($response->Category)) { |
| 1450 |
$categories = $response->Category; |
| 1451 |
foreach ($categories as $category) { |
| 1452 |
$category_list[esc_attr($category->Code)] = $category->DisplayName; |
| 1453 |
} |
| 1454 |
} |
| 1455 |
} |
| 1456 |
} |
| 1457 |
} |
| 1458 |
} |
| 1459 |
asort($category_list); |
| 1460 |
return $category_list; |
| 1461 |
} |
| 1462 |
|
| 1463 |
private function set_allowed_image_sizes() { |
| 1464 |
$this->allowed_image_sizes = array( |
| 1465 |
'flickr' => array( |
| 1466 |
'thumb_size' => array( |
| 1467 |
'' => $this->default_from_settings, |
| 1468 |
's' => esc_html__('Small square, 75x75px', 'photonic'), |
| 1469 |
'q' => esc_html__('Large square, 150x150px', 'photonic'), |
| 1470 |
't' => esc_html__('Thumbnail, 100px on longest side', 'photonic'), |
| 1471 |
'm' => esc_html__('Small, 240px on longest side', 'photonic'), |
| 1472 |
'n' => esc_html__('Small, 320px on longest side', 'photonic'), |
| 1473 |
), |
| 1474 |
'tile_size' => array( |
| 1475 |
'' => $this->default_from_settings, |
| 1476 |
'same' => esc_html__('Same as Main image size', 'photonic'), |
| 1477 |
'n' => esc_html__('Small, 320px on longest side', 'photonic'), |
| 1478 |
'none' => esc_html__('Medium, 500px on the longest side', 'photonic'), |
| 1479 |
'z' => esc_html__('Medium, 640px on longest side', 'photonic'), |
| 1480 |
'c' => esc_html__('Medium, 800px on longest side', 'photonic'), |
| 1481 |
'b' => esc_html__('Large, 1024px on longest side', 'photonic'), |
| 1482 |
'h' => esc_html__('Large, 1600px on longest side', 'photonic'), |
| 1483 |
'k' => esc_html__('Large, 2048px on longest side', 'photonic'), |
| 1484 |
'o' => esc_html__('Original', 'photonic'), |
| 1485 |
), |
| 1486 |
'main_size' => array( |
| 1487 |
'' => $this->default_from_settings, |
| 1488 |
'none' => esc_html__('Medium, 500px on the longest side', 'photonic'), |
| 1489 |
'z' => esc_html__('Medium, 640px on longest side', 'photonic'), |
| 1490 |
'c' => esc_html__('Medium, 800px on longest side', 'photonic'), |
| 1491 |
'b' => esc_html__('Large, 1024px on longest side', 'photonic'), |
| 1492 |
'h' => esc_html__('Large, 1600px on longest side', 'photonic'), |
| 1493 |
'k' => esc_html__('Large, 2048px on longest side', 'photonic'), |
| 1494 |
'o' => esc_html__('Original', 'photonic'), |
| 1495 |
), |
| 1496 |
'video_size' => array( |
| 1497 |
'' => $this->default_from_settings, |
| 1498 |
'Site MP4' => esc_html__('Site MP4', 'photonic'), |
| 1499 |
'Mobile MP4' => esc_html__('Mobile MP4', 'photonic'), |
| 1500 |
'HD MP4' => esc_html__('HD MP4', 'photonic'), |
| 1501 |
'Video Original' => esc_html__('Video Original', 'photonic'), |
| 1502 |
), |
| 1503 |
), |
| 1504 |
'smugmug' => array( |
| 1505 |
'thumb_size' => array( |
| 1506 |
'' => $this->default_from_settings, |
| 1507 |
'Tiny' => esc_html__('Tiny', 'photonic'), |
| 1508 |
'Thumb' => esc_html__('Thumb', 'photonic'), |
| 1509 |
'Small' => esc_html__('Small', 'photonic'), |
| 1510 |
), |
| 1511 |
'tile_size' => array( |
| 1512 |
'' => $this->default_from_settings, |
| 1513 |
'same' => esc_html__('Same as Main image size', 'photonic'), |
| 1514 |
'4K' => esc_html__('4K (not always available)', 'photonic'), |
| 1515 |
'5K' => esc_html__('5K (not always available)', 'photonic'), |
| 1516 |
'Medium' => esc_html__('Medium', 'photonic'), |
| 1517 |
'Original' => esc_html__('Original (not always available)', 'photonic'), |
| 1518 |
'Large' => esc_html__('Large', 'photonic'), |
| 1519 |
'Largest' => esc_html__('Largest available', 'photonic'), |
| 1520 |
'XLarge' => esc_html__('XLarge (not always available)', 'photonic'), |
| 1521 |
'X2Large' => esc_html__('X2Large (not always available)', 'photonic'), |
| 1522 |
'X3Large' => esc_html__('X3Large (not always available)', 'photonic'), |
| 1523 |
), |
| 1524 |
'main_size' => array( |
| 1525 |
'' => $this->default_from_settings, |
| 1526 |
'4K' => esc_html__('4K (not always available)', 'photonic'), |
| 1527 |
'5K' => esc_html__('5K (not always available)', 'photonic'), |
| 1528 |
'Medium' => esc_html__('Medium', 'photonic'), |
| 1529 |
'Original' => esc_html__('Original (not always available)', 'photonic'), |
| 1530 |
'Large' => esc_html__('Large', 'photonic'), |
| 1531 |
'Largest' => esc_html__('Largest available', 'photonic'), |
| 1532 |
'XLarge' => esc_html__('XLarge (not always available)', 'photonic'), |
| 1533 |
'X2Large' => esc_html__('X2Large (not always available)', 'photonic'), |
| 1534 |
'X3Large' => esc_html__('X3Large (not always available)', 'photonic'), |
| 1535 |
), |
| 1536 |
'video_size' => array( |
| 1537 |
'' => $this->default_from_settings, |
| 1538 |
'110' => esc_html__('110px along longest side', 'photonic'), |
| 1539 |
'200' => esc_html__('200px along longest side', 'photonic'), |
| 1540 |
'320' => esc_html__('320px along longest side', 'photonic'), |
| 1541 |
'640' => esc_html__('640px along longest side', 'photonic'), |
| 1542 |
'1280' => esc_html__('1280px along longest side', 'photonic'), |
| 1543 |
'1920' => esc_html__('1920px along longest side', 'photonic'), |
| 1544 |
'Largest' => esc_html__('Largest available', 'photonic'), |
| 1545 |
), |
| 1546 |
), |
| 1547 |
'google' => array( |
| 1548 |
'thumb_size' => array( |
| 1549 |
'32' => '32', |
| 1550 |
'48' => 48, |
| 1551 |
'64' => 64, |
| 1552 |
'72' => 72, |
| 1553 |
'104' => 104, |
| 1554 |
'144' => 144, |
| 1555 |
'150' => 150, |
| 1556 |
'160' => 160, |
| 1557 |
), |
| 1558 |
'tile_size' => array( |
| 1559 |
'same' => esc_html__('Same as Main image size', 'photonic'), |
| 1560 |
'94' => 94, |
| 1561 |
'110' => 110, |
| 1562 |
'128' => 128, |
| 1563 |
'200' => 200, |
| 1564 |
'220' => 220, |
| 1565 |
'288' => 288, |
| 1566 |
'320' => 320, |
| 1567 |
'400' => 400, |
| 1568 |
'512' => 512, |
| 1569 |
'576' => 576, |
| 1570 |
'640' => 640, |
| 1571 |
'720' => 720, |
| 1572 |
'800' => 800, |
| 1573 |
'912' => 912, |
| 1574 |
'1024' => 1024, |
| 1575 |
'1152' => 1152, |
| 1576 |
'1280' => 1280, |
| 1577 |
'1440' => 1440, |
| 1578 |
'1600' => 1600, |
| 1579 |
), |
| 1580 |
'main_size' => array( |
| 1581 |
'94' => 94, |
| 1582 |
'110' => 110, |
| 1583 |
'128' => 128, |
| 1584 |
'200' => 200, |
| 1585 |
'220' => 220, |
| 1586 |
'288' => 288, |
| 1587 |
'320' => 320, |
| 1588 |
'400' => 400, |
| 1589 |
'512' => 512, |
| 1590 |
'576' => 576, |
| 1591 |
'640' => 640, |
| 1592 |
'720' => 720, |
| 1593 |
'800' => 800, |
| 1594 |
'912' => 912, |
| 1595 |
'1024' => 1024, |
| 1596 |
'1152' => 1152, |
| 1597 |
'1280' => 1280, |
| 1598 |
'1440' => 1440, |
| 1599 |
'1600' => 1600, |
| 1600 |
), |
| 1601 |
), |
| 1602 |
'zenfolio' => array( |
| 1603 |
'thumb_size' => array( |
| 1604 |
'' => $this->default_from_settings, |
| 1605 |
"1" => esc_html__("Square thumbnail, 60 × 60px, cropped square", 'photonic'), |
| 1606 |
"0" => esc_html__("Small thumbnail, upto 80 × 80px", 'photonic'), |
| 1607 |
"10" => esc_html__("Medium thumbnail, upto 120 × 120px", 'photonic'), |
| 1608 |
"11" => esc_html__("Large thumbnail, upto 120 × 120px", 'photonic'), |
| 1609 |
"2" => esc_html__("Small image, upto 400 × 400px", 'photonic'), |
| 1610 |
), |
| 1611 |
'tile_size' => array( |
| 1612 |
'' => $this->default_from_settings, |
| 1613 |
'same' => esc_html__('Same as Main image size', 'photonic'), |
| 1614 |
'2' => esc_html__('Small image, upto 400 × 400px', 'photonic'), |
| 1615 |
'3' => esc_html__('Medium image, upto 580 × 450px', 'photonic'), |
| 1616 |
'4' => esc_html__('Large image, upto 800 × 630px', 'photonic'), |
| 1617 |
'5' => esc_html__('X-Large image, upto 1100 × 850px', 'photonic'), |
| 1618 |
'6' => esc_html__('XX-Large image, upto 1550 × 960px', 'photonic'), |
| 1619 |
), |
| 1620 |
'main_size' => array( |
| 1621 |
'' => $this->default_from_settings, |
| 1622 |
'2' => esc_html__('Small image, upto 400 × 400px', 'photonic'), |
| 1623 |
'3' => esc_html__('Medium image, upto 580 × 450px', 'photonic'), |
| 1624 |
'4' => esc_html__('Large image, upto 800 × 630px', 'photonic'), |
| 1625 |
'5' => esc_html__('X-Large image, upto 1100 × 850px', 'photonic'), |
| 1626 |
'6' => esc_html__('XX-Large image, upto 1550 × 960px', 'photonic'), |
| 1627 |
), |
| 1628 |
'video_size' => array( |
| 1629 |
'' => $this->default_from_settings, |
| 1630 |
'220' => esc_html__('360p resolution (MP4)', 'photonic'), |
| 1631 |
'215' => esc_html__('480p resolution (MP4)', 'photonic'), |
| 1632 |
'210' => esc_html__('720p resolution (MP4)', 'photonic'), |
| 1633 |
'200' => esc_html__('1080p resolution (MP4)', 'photonic'), |
| 1634 |
), |
| 1635 |
), |
| 1636 |
'instagram' => array( |
| 1637 |
'main_size' => array( |
| 1638 |
'' => $this->default_from_settings, |
| 1639 |
'low_resolution' => esc_html__('Low Resolution - 306x306px, or 320x320px', 'photonic'), |
| 1640 |
'standard_resolution' => esc_html__('Standard Resolution - 612x612px or 640x640px', 'photonic'), |
| 1641 |
'largest' => esc_html__('Largest available resolution (640x640px for old images, upto 1080x1080px for new images)', 'photonic'), |
| 1642 |
), |
| 1643 |
'tile_size' => array( |
| 1644 |
'' => $this->default_from_settings, |
| 1645 |
'same' => esc_html__('Same as Main image size', 'photonic'), |
| 1646 |
'low_resolution' => esc_html__('Low Resolution - 306x306px, or 320x320px', 'photonic'), |
| 1647 |
'standard_resolution' => esc_html__('Standard Resolution - 612x612px or 640x640px', 'photonic'), |
| 1648 |
'largest' => esc_html__('Largest available resolution (640x640px for old images, upto 1080x1080px for new images)', 'photonic'), |
| 1649 |
), |
| 1650 |
'video_size' => array( |
| 1651 |
'' => $this->default_from_settings, |
| 1652 |
'low_resolution' => esc_html__('Low Resolution', 'photonic'), |
| 1653 |
'standard_resolution' => esc_html__('Standard Resolution', 'photonic'), |
| 1654 |
'low_bandwidth' => esc_html__('Low Bandwidth', 'photonic'), |
| 1655 |
), |
| 1656 |
), |
| 1657 |
'wp' => array( |
| 1658 |
'thumb_size' => Photonic::get_wp_image_sizes(false, true), |
| 1659 |
'tile_size' => Photonic::get_wp_image_sizes(true, true), |
| 1660 |
'main_size' => Photonic::get_wp_image_sizes(true, true), |
| 1661 |
), |
| 1662 |
); |
| 1663 |
|
| 1664 |
global $photonic_flickr_thumb_size, $photonic_flickr_tile_size, $photonic_flickr_main_size, $photonic_flickr_video_size, |
| 1665 |
$photonic_smug_thumb_size, $photonic_smug_tile_size, $photonic_smug_main_size, $photonic_smug_video_size, |
| 1666 |
$photonic_zenfolio_thumb_size, $photonic_zenfolio_tile_size, $photonic_zenfolio_main_size, $photonic_zenfolio_video_size, |
| 1667 |
$photonic_instagram_main_size, $photonic_instagram_tile_size, $photonic_instagram_video_size; |
| 1668 |
|
| 1669 |
$this->allowed_image_sizes['flickr']['thumb_size'][''] .= ' - '.$this->allowed_image_sizes['flickr']['thumb_size'][$photonic_flickr_thumb_size]; |
| 1670 |
$this->allowed_image_sizes['flickr']['tile_size'][''] .= ' - '.$this->allowed_image_sizes['flickr']['tile_size'][$photonic_flickr_tile_size]; |
| 1671 |
$this->allowed_image_sizes['flickr']['main_size'][''] .= ' - '.$this->allowed_image_sizes['flickr']['main_size'][$photonic_flickr_main_size]; |
| 1672 |
$this->allowed_image_sizes['flickr']['video_size'][''] .= ' - '.$this->allowed_image_sizes['flickr']['video_size'][$photonic_flickr_video_size]; |
| 1673 |
|
| 1674 |
$this->allowed_image_sizes['smugmug']['thumb_size'][''] .= ' - '.$this->allowed_image_sizes['smugmug']['thumb_size'][$photonic_smug_thumb_size]; |
| 1675 |
$this->allowed_image_sizes['smugmug']['tile_size'][''] .= ' - '.$this->allowed_image_sizes['smugmug']['tile_size'][$photonic_smug_tile_size]; |
| 1676 |
$this->allowed_image_sizes['smugmug']['main_size'][''] .= ' - '.$this->allowed_image_sizes['smugmug']['main_size'][$photonic_smug_main_size]; |
| 1677 |
$this->allowed_image_sizes['smugmug']['video_size'][''] .= ' - '.$this->allowed_image_sizes['smugmug']['video_size'][$photonic_smug_video_size]; |
| 1678 |
|
| 1679 |
$this->allowed_image_sizes['zenfolio']['thumb_size'][''] .= ' - '.$this->allowed_image_sizes['zenfolio']['thumb_size'][$photonic_zenfolio_thumb_size]; |
| 1680 |
$this->allowed_image_sizes['zenfolio']['tile_size'][''] .= ' - '.$this->allowed_image_sizes['zenfolio']['tile_size'][$photonic_zenfolio_tile_size]; |
| 1681 |
$this->allowed_image_sizes['zenfolio']['main_size'][''] .= ' - '.$this->allowed_image_sizes['zenfolio']['main_size'][$photonic_zenfolio_main_size]; |
| 1682 |
$this->allowed_image_sizes['zenfolio']['video_size'][''] .= ' - '.$this->allowed_image_sizes['zenfolio']['video_size'][$photonic_zenfolio_video_size]; |
| 1683 |
|
| 1684 |
$this->allowed_image_sizes['instagram']['main_size'][''] .= ' - '.$this->allowed_image_sizes['instagram']['main_size'][$photonic_instagram_main_size]; |
| 1685 |
$this->allowed_image_sizes['instagram']['tile_size'][''] .= ' - '.$this->allowed_image_sizes['instagram']['main_size'][$photonic_instagram_tile_size]; |
| 1686 |
$this->allowed_image_sizes['instagram']['video_size'][''] .= ' - '.$this->allowed_image_sizes['instagram']['video_size'][$photonic_instagram_video_size]; |
| 1687 |
} |
| 1688 |
|
| 1689 |
/** |
| 1690 |
* @return mixed |
| 1691 |
*/ |
| 1692 |
public function get_flow_options() { |
| 1693 |
return $this->flow_options; |
| 1694 |
} |
| 1695 |
|
| 1696 |
/** |
| 1697 |
* @return array |
| 1698 |
*/ |
| 1699 |
public function get_layout_options() { |
| 1700 |
return $this->layout_options; |
| 1701 |
} |
| 1702 |
|
| 1703 |
private function get_title_position_options() { |
| 1704 |
$ret = array( |
| 1705 |
'' => $this->default_from_settings, |
| 1706 |
'regular' => esc_html__('Normal title display using the HTML "title" attribute', 'photonic'), |
| 1707 |
'below' => esc_html__('Below the thumbnail', 'photonic'), |
| 1708 |
'tooltip' => esc_html__('Using the JQuery Tooltip plugin', 'photonic'), |
| 1709 |
'hover-slideup-show' => esc_html__('Slide up from bottom upon hover', 'photonic'), |
| 1710 |
'slideup-stick' => esc_html__('Cover the lower portion always', 'photonic'), |
| 1711 |
'none' => esc_html__('No title', 'photonic'), |
| 1712 |
); |
| 1713 |
|
| 1714 |
return array( |
| 1715 |
'desc' => esc_html__('How do you want the title?', 'photonic'), |
| 1716 |
'type' => 'select', |
| 1717 |
'options' => $ret, |
| 1718 |
'std' => '', |
| 1719 |
); |
| 1720 |
} |
| 1721 |
} |
| 1722 |
|