| 1 |
<?php |
| 2 |
global $photonic_zenfolio_options; |
| 3 |
|
| 4 |
$photonic_zenfolio_options = array( |
| 5 |
array('name' => "Zenfolio Photo Settings", |
| 6 |
'desc' => "Control settings for Zenfolio", |
| 7 |
'category' => 'zenfolio-settings', |
| 8 |
'type' => 'section',), |
| 9 |
|
| 10 |
array('name' => 'Default user', |
| 11 |
'desc' => 'If no user is specified in the shortcode this one will be used. This is the username from https://<span style="text-decoration: underline">username</span>.zenfolio.com/', |
| 12 |
'id' => 'zenfolio_default_user', |
| 13 |
'grouping' => 'zenfolio-settings', |
| 14 |
'type' => 'text', |
| 15 |
'std' => ''), |
| 16 |
|
| 17 |
array('name' => 'Media to show', |
| 18 |
'desc' => 'You can choose to include photos as well as videos in your output. This can be overridden by the <code>media</code> parameter in the shortcode:', |
| 19 |
'id' => "zenfolio_media", |
| 20 |
'grouping' => "zenfolio-settings", |
| 21 |
'type' => 'select', |
| 22 |
'options' => Photonic::media_options(), |
| 23 |
'std' => 'photos'), |
| 24 |
|
| 25 |
array('name' => "Disable lightbox linking", |
| 26 |
'desc' => "Check this to disable linking the photo title in the lightbox to the original photo page.", |
| 27 |
'id' => "zenfolio_disable_title_link", |
| 28 |
'grouping' => 'zenfolio-settings', |
| 29 |
'type' => 'checkbox', |
| 30 |
'std' => ''), |
| 31 |
|
| 32 |
array('name' => "Constrain Photos Per Row", |
| 33 |
'desc' => "How do you want the control the number of photo thumbnails per row by default? This can be overridden by adding the '<code>columns</code>' parameter to the '<code>gallery</code>' shortcode.", |
| 34 |
'id' => "zenfolio_photos_per_row_constraint", |
| 35 |
'grouping' => 'zenfolio-settings', |
| 36 |
'type' => 'select', |
| 37 |
'options' => array("padding" => "Fix the padding around the thumbnails", |
| 38 |
"count" => "Fix the number of thumbnails per row", |
| 39 |
), |
| 40 |
'std' => "padding"), |
| 41 |
|
| 42 |
array('name' => "Constrain by padding", |
| 43 |
'desc' => " If you have constrained by padding above, enter the number of pixels here to pad the thumbs by", |
| 44 |
'id' => "zenfolio_photos_constrain_by_padding", |
| 45 |
'grouping' => 'zenfolio-settings', |
| 46 |
'type' => 'text', |
| 47 |
'hint' => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored.", |
| 48 |
'std' => "15"), |
| 49 |
|
| 50 |
array('name' => "Constrain by number of thumbnails", |
| 51 |
'desc' => "If you have constrained by number of thumbnails per row above, enter the number of thumbnails", |
| 52 |
'id' => "zenfolio_photos_constrain_by_count", |
| 53 |
'grouping' => 'zenfolio-settings', |
| 54 |
'type' => 'select', |
| 55 |
'options' => photonic_selection_range(1, 25), |
| 56 |
'std' => 5), |
| 57 |
|
| 58 |
array('name' => "Photo Thumbnail Border", |
| 59 |
'desc' => "Setup the border of photo thumbnail when the photo is displayed as a part of a photoset or in a photo-stream. This is valid for the short-code usage <code>[gallery type='zenfolio' view='photosets' object_id='xyz']</code>, or <code>[gallery type='zenfolio' view='photos' kind='popular']</code>.", |
| 60 |
'id' => "zenfolio_photo_thumb_border", |
| 61 |
'grouping' => 'zenfolio-settings', |
| 62 |
'type' => 'border', |
| 63 |
'options' => array(), |
| 64 |
'std' => photonic_default_border(), |
| 65 |
), |
| 66 |
|
| 67 |
array('name' => "Photo Thumbnail - Padding between border and image", |
| 68 |
'desc' => "Setup the padding between the photo thumbnail and its border.", |
| 69 |
'id' => "zenfolio_photo_thumb_padding", |
| 70 |
'grouping' => 'zenfolio-settings', |
| 71 |
'type' => 'padding', |
| 72 |
'options' => array(), |
| 73 |
'std' => photonic_default_padding(), |
| 74 |
), |
| 75 |
|
| 76 |
array('name' => "Thumbnail size", |
| 77 |
'desc' => "What size should a thumbnail be shown in if no size is specified? Zenfolio lets you display a thumbnail in the following sizes:", |
| 78 |
'id' => "zenfolio_thumb_size", |
| 79 |
'grouping' => 'zenfolio-settings', |
| 80 |
'type' => 'select', |
| 81 |
'options' => array( |
| 82 |
"0" => "Small thumbnail, upto 80 x 80px", |
| 83 |
"1" => "Square thumbnail, 60 x 60px, cropped square", |
| 84 |
"10" => "Medium thumbnail, upto 120 x 120px", |
| 85 |
"11" => "Large thumbnail, upto 120 x 120px", |
| 86 |
"2" => "Small image, upto 400 x 400px", |
| 87 |
), |
| 88 |
'std' => "1"), |
| 89 |
|
| 90 |
array('name' => "Main image size", |
| 91 |
'desc' => "Show this size for the image in the lightbox:", |
| 92 |
'id' => "zenfolio_main_size", |
| 93 |
'grouping' => 'zenfolio-settings', |
| 94 |
'type' => 'select', |
| 95 |
'options' => array( |
| 96 |
"2" => "Small image, upto 400 x 400px", |
| 97 |
"3" => "Medium image, upto 580 x 450px", |
| 98 |
"4" => "Large image, upto 800 x 630px", |
| 99 |
"5" => "X-Large image, upto 1100 x 850px", |
| 100 |
"6" => "XX-Large image, upto 1550 x 960px", |
| 101 |
), |
| 102 |
'std' => "4"), |
| 103 |
|
| 104 |
array('name' => "Tile image size", |
| 105 |
'desc' => "<strong>This is applicable only if you are using the random tiled gallery, masonry or mosaic layouts.</strong> This size will be used as the image for the tiles. Picking a size smaller than the Main image size above will save bandwidth if your users <strong>don't click</strong> on individual images. Conversely, leaving this the same as the Main image size will save bandwidth if your users <strong>do click</strong> on individual images:", |
| 106 |
'id' => "zenfolio_tile_size", |
| 107 |
'grouping' => 'zenfolio-settings', |
| 108 |
'type' => 'select', |
| 109 |
'options' => array( |
| 110 |
"same" => "Same as Main image size", |
| 111 |
"2" => "Small image, upto 400 x 400px", |
| 112 |
"3" => "Medium image, upto 580 x 450px", |
| 113 |
"4" => "Large image, upto 800 x 630px", |
| 114 |
"5" => "X-Large image, upto 1100 x 850px", |
| 115 |
"6" => "XX-Large image, upto 1550 x 960px", |
| 116 |
), |
| 117 |
'std' => "same"), |
| 118 |
|
| 119 |
array('name' => 'Video size', |
| 120 |
'desc' => 'Show this size for the video in the lightbox:', |
| 121 |
'id' => "zenfolio_video_size", |
| 122 |
'grouping' => 'zenfolio-settings', |
| 123 |
'type' => 'select', |
| 124 |
'options' => array( |
| 125 |
'220' => "360p resolution (MP4)", |
| 126 |
'215' => "480p resolution (MP4)", |
| 127 |
'210' => "720p resolution (MP4)", |
| 128 |
'200' => "1080p resolution (MP4)", |
| 129 |
), |
| 130 |
'std' => '210'), |
| 131 |
|
| 132 |
array('name' => "Photo Title Display", |
| 133 |
'desc' => "How do you want the title of the photos?", |
| 134 |
'id' => "zenfolio_photo_title_display", |
| 135 |
'grouping' => 'zenfolio-settings', |
| 136 |
'type' => "radio", |
| 137 |
'options' => photonic_title_styles(), |
| 138 |
'std' => "tooltip"), |
| 139 |
|
| 140 |
array('name' => "Photo titles and captions", |
| 141 |
'desc' => "What do you want to show as the photo title in the tooltip and lightbox?", |
| 142 |
'id' => "zenfolio_title_caption", |
| 143 |
'grouping' => 'zenfolio-settings', |
| 144 |
'type' => 'select', |
| 145 |
'options' => Photonic::title_caption_options(), |
| 146 |
'std' => "title"), |
| 147 |
|
| 148 |
array('name' => "Zenfolio Groups", |
| 149 |
'desc' => "Control settings for Zenfolio Groups", |
| 150 |
'category' => 'zenfolio-groups', |
| 151 |
'type' => 'section',), |
| 152 |
|
| 153 |
array('name' => "What is this section?", |
| 154 |
'desc' => "Options in this section are in effect when you use the shortcode format <code>[gallery type='zenfolio' view='hierarchy' ...]</code> or <code>[gallery type='zenfolio' view='group' ...]</code>. They are used to control the Photoset's thumbnail display", |
| 155 |
'grouping' => 'zenfolio-groups', |
| 156 |
'type' => "blurb",), |
| 157 |
|
| 158 |
array('name' => "Exclude Empty Groups", |
| 159 |
'desc' => "Do not show groups whose immediate children photosets have no photos.", |
| 160 |
'id' => "zenfolio_hide_empty_groups", |
| 161 |
'grouping' => 'zenfolio-groups', |
| 162 |
'type' => 'checkbox', |
| 163 |
'std' => ''), |
| 164 |
|
| 165 |
array('name' => "Hide Group Title", |
| 166 |
'desc' => "This will hide the title for your Zenfolio Group.", |
| 167 |
'id' => "zenfolio_hide_group_title", |
| 168 |
'grouping' => 'zenfolio-groups', |
| 169 |
'type' => 'checkbox', |
| 170 |
'std' => ''), |
| 171 |
|
| 172 |
array('name' => "Link to Zenfolio", |
| 173 |
'desc' => "Link the group title (if shown) to the Zenfolio group page", |
| 174 |
'id' => "zenfolio_link_group_page", |
| 175 |
'grouping' => 'zenfolio-groups', |
| 176 |
'type' => 'checkbox', |
| 177 |
'std' => ''), |
| 178 |
|
| 179 |
array('name' => "Hide Number of Photos, if available", |
| 180 |
'desc' => "This will hide the number of photos in your Zenfolio Group.", |
| 181 |
'id' => "zenfolio_hide_group_photo_count", |
| 182 |
'grouping' => 'zenfolio-groups', |
| 183 |
'type' => 'checkbox', |
| 184 |
'std' => ''), |
| 185 |
|
| 186 |
array('name' => "Hide Number of Sub-Groups, if available", |
| 187 |
'desc' => "This will hide the number of sub-groups in your Zenfolio Group.", |
| 188 |
'id' => "zenfolio_hide_group_group_count", |
| 189 |
'grouping' => 'zenfolio-groups', |
| 190 |
'type' => 'checkbox', |
| 191 |
'std' => ''), |
| 192 |
|
| 193 |
array('name' => "Hide Number of Photosets, if available", |
| 194 |
'desc' => "This will hide the number of photosets in your Zenfolio Group.", |
| 195 |
'id' => "zenfolio_hide_group_set_count", |
| 196 |
'grouping' => 'zenfolio-groups', |
| 197 |
'type' => 'checkbox', |
| 198 |
'std' => ''), |
| 199 |
|
| 200 |
array('name' => "Zenfolio Photoset Thumbnails (with other Photosets)", |
| 201 |
'desc' => "Control settings for Zenfolio Photoset thumbnails", |
| 202 |
'category' => 'zenfolio-sets', |
| 203 |
'type' => 'section',), |
| 204 |
|
| 205 |
array('name' => "What is this section?", |
| 206 |
'desc' => "Options in this section are in effect when you use the shortcode format <code>[gallery type='zenfolio' view='photosets' ...]</code>. They are used to control the Photoset's thumbnail display", |
| 207 |
'grouping' => 'zenfolio-sets', |
| 208 |
'type' => "blurb",), |
| 209 |
|
| 210 |
array('name' => "Photoset Title Display", |
| 211 |
'desc' => "How do you want the title of the Photoset?", |
| 212 |
'id' => "zenfolio_set_title_display", |
| 213 |
'grouping' => 'zenfolio-sets', |
| 214 |
'type' => "radio", |
| 215 |
'options' => photonic_title_styles(), |
| 216 |
'std' => "tooltip"), |
| 217 |
|
| 218 |
array('name' => "Hide Photo Count in Title Display", |
| 219 |
'desc' => "This will hide the number of photos in your Photoset's title.", |
| 220 |
'id' => "zenfolio_hide_set_photos_count_display", |
| 221 |
'grouping' => 'zenfolio-sets', |
| 222 |
'type' => 'checkbox', |
| 223 |
'std' => ''), |
| 224 |
|
| 225 |
array('name' => "Hide thumbnails for Password-protected sets", |
| 226 |
'desc' => "This will hide the thumbnail of password-protected photosets (Password-protected sets are not currently supported, so it is advisable to hide the thumbnails).", |
| 227 |
'id' => "zenfolio_hide_password_protected_thumbnail", |
| 228 |
'grouping' => 'zenfolio-sets', |
| 229 |
'type' => 'checkbox', |
| 230 |
'std' => ''), |
| 231 |
|
| 232 |
array('name' => "Constrain Photosets Per Row", |
| 233 |
'desc' => "How do you want the control the number of photoset thumbnails per row? This can be overridden by adding the '<code>columns</code>' parameter to the '<code>gallery</code>' shortcode.", |
| 234 |
'id' => "zenfolio_sets_per_row_constraint", |
| 235 |
'grouping' => 'zenfolio-sets', |
| 236 |
'type' => 'select', |
| 237 |
'options' => array("padding" => "Fix the padding around the thumbnails", |
| 238 |
"count" => "Fix the number of thumbnails per row", |
| 239 |
), |
| 240 |
'std' => "padding"), |
| 241 |
|
| 242 |
array('name' => "Constrain by padding", |
| 243 |
'desc' => " If you have constrained by padding above, enter the number of pixels here to pad the thumbs by", |
| 244 |
'id' => "zenfolio_sets_constrain_by_padding", |
| 245 |
'grouping' => 'zenfolio-sets', |
| 246 |
'type' => 'text', |
| 247 |
'hint' => "Enter the number of pixels here (don't enter 'px'). Non-integers will be ignored.", |
| 248 |
'std' => "15"), |
| 249 |
|
| 250 |
array('name' => "Constrain by number of thumbnails", |
| 251 |
'desc' => " If you have constrained by number of thumbnails per row above, enter the number of thumbnails", |
| 252 |
'id' => "zenfolio_sets_constrain_by_count", |
| 253 |
'grouping' => 'zenfolio-sets', |
| 254 |
'type' => 'select', |
| 255 |
'options' => photonic_selection_range(1, 25), |
| 256 |
'std' => 5), |
| 257 |
|
| 258 |
array('name' => "Photoset Thumbnail Border", |
| 259 |
'desc' => "Setup the border of Photoset thumbnail when the Photoset is a part of a larger group of photosets, like search results. This is valid for the short-code usage <code>[gallery type='zenfolio' view='photosets' ...]</code>", |
| 260 |
'id' => "zenfolio_sets_set_thumb_border", |
| 261 |
'grouping' => 'zenfolio-sets', |
| 262 |
'type' => 'border', |
| 263 |
'options' => array(), |
| 264 |
'std' => photonic_default_border(), |
| 265 |
), |
| 266 |
|
| 267 |
array('name' => "Photoset Thumbnail - Padding between border and image", |
| 268 |
'desc' => "Setup the padding between the photoset thumbnail and its border.", |
| 269 |
'id' => "zenfolio_sets_set_thumb_padding", |
| 270 |
'grouping' => 'zenfolio-sets', |
| 271 |
'type' => 'padding', |
| 272 |
'options' => array(), |
| 273 |
'std' => photonic_default_padding(), |
| 274 |
), |
| 275 |
|
| 276 |
array('name' => "Zenfolio Photoset Header Thumbnails", |
| 277 |
'desc' => "Control settings for Zenfolio Photosets when displayed in your page", |
| 278 |
'category' => 'zenfolio-set', |
| 279 |
'type' => 'section',), |
| 280 |
|
| 281 |
array('name' => "What is this section?", |
| 282 |
'desc' => "Options in this section are in effect when you use the shortcode format <code>[gallery type='zenfolio' view='photosets' ...]</code>. In other words, the gallery output for the Photoset is directly on the page, or in a popup and you want to control your Photoset's thumbnail.", |
| 283 |
'grouping' => 'zenfolio-set', |
| 284 |
'type' => "blurb",), |
| 285 |
|
| 286 |
array('name' => "Hide Photoset Thumbnail", |
| 287 |
'desc' => "This will hide the thumbnail for your Zenfolio Photoset.", |
| 288 |
'id' => "zenfolio_hide_set_thumbnail", |
| 289 |
'grouping' => 'zenfolio-set', |
| 290 |
'type' => 'checkbox', |
| 291 |
'std' => ''), |
| 292 |
|
| 293 |
array('name' => "Hide Photoset Title", |
| 294 |
'desc' => "This will hide the title for your Zenfolio Photoset.", |
| 295 |
'id' => "zenfolio_hide_set_title", |
| 296 |
'grouping' => 'zenfolio-set', |
| 297 |
'type' => 'checkbox', |
| 298 |
'std' => ''), |
| 299 |
|
| 300 |
array('name' => "Link to Zenfolio", |
| 301 |
'desc' => "Link the set thumbnail and title (if shown) to the Zenfolio set page", |
| 302 |
'id' => "zenfolio_link_set_page", |
| 303 |
'grouping' => 'zenfolio-set', |
| 304 |
'type' => 'checkbox', |
| 305 |
'std' => ''), |
| 306 |
|
| 307 |
array('name' => "Hide Number of Photos", |
| 308 |
'desc' => "This will hide the number of photos in your Zenfolio Photoset.", |
| 309 |
'id' => "zenfolio_hide_set_photo_count", |
| 310 |
'grouping' => 'zenfolio-set', |
| 311 |
'type' => 'checkbox', |
| 312 |
'std' => ''), |
| 313 |
); |
| 314 |
|