| 1 |
<?php |
| 2 |
/** |
| 3 |
* The Display options Meta-box configurations. |
| 4 |
* |
| 5 |
* @package Smart_Post_Show |
| 6 |
* @subpackage Smart_Post_Show/admin |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
die; |
| 11 |
} // Cannot access pages directly. |
| 12 |
|
| 13 |
/** |
| 14 |
* The Layout building class. |
| 15 |
*/ |
| 16 |
class SPS_Display { |
| 17 |
|
| 18 |
/** |
| 19 |
* Display options section metabox. |
| 20 |
* |
| 21 |
* @param string $prefix The metabox key. |
| 22 |
* @return void |
| 23 |
*/ |
| 24 |
public static function section( $prefix ) { |
| 25 |
SP_PC::createSection( |
| 26 |
$prefix, |
| 27 |
array( |
| 28 |
'title' => __( 'DISPLAY Settings', 'post-carousel' ), |
| 29 |
'icon' => 'sps-icon-display-s', |
| 30 |
'fields' => array( |
| 31 |
array( |
| 32 |
'type' => 'tabbed', |
| 33 |
'class' => 'pcp-display-tabs', |
| 34 |
'tabs' => array( |
| 35 |
array( |
| 36 |
'title' => __( 'Basic Styles', 'post-carousel' ), |
| 37 |
'icon' => '<i class="sps-icon-basic-style-01-1" aria-hidden="true"></i>', |
| 38 |
'fields' => array( |
| 39 |
array( |
| 40 |
'id' => 'section_title', |
| 41 |
'type' => 'switcher', |
| 42 |
'title' => __( 'Section Title ', 'post-carousel' ), |
| 43 |
'subtitle' => __( 'Show/Hide item showcase section title.', 'post-carousel' ), |
| 44 |
'default' => false, |
| 45 |
'text_on' => __( 'Show', 'post-carousel' ), |
| 46 |
'text_off' => __( 'Hide', 'post-carousel' ), |
| 47 |
'text_width' => 75, |
| 48 |
), |
| 49 |
array( |
| 50 |
'id' => 'pcp_number_of_columns', |
| 51 |
'type' => 'column', |
| 52 |
'title' => __( 'Column(s)', 'post-carousel' ), |
| 53 |
'subtitle' => __( |
| 54 |
'Set number of column(s) in different responsive devices.', |
| 55 |
'post-carousel' |
| 56 |
), |
| 57 |
'sanitize' => 'spf_pcp_sanitize_number_array_field', |
| 58 |
'default' => array( |
| 59 |
'lg_desktop' => '4', |
| 60 |
'desktop' => '4', |
| 61 |
'tablet' => '3', |
| 62 |
'mobile_landscape' => '2', |
| 63 |
'mobile' => '1', |
| 64 |
), |
| 65 |
'min' => '1', |
| 66 |
'decimal' => true, |
| 67 |
'title_info' => '<i class="fa fa-television"></i> ' . __( 'Large Desktop - is larger than 1200px', 'post-carousel' ) . ',<br><i class="fa fa-desktop"></i> ' . __( 'Desktop - size is larger than 992px', 'post-carousel' ) . ',<br> <i class="fa fa-tablet"></i> ' . __( 'Tablet - Size is larger than 768', 'post-carousel' ) . ',<br> <i class="fa fa-mobile"></i> ' . __( 'Mobile Landscape- size is larger than 576px.', 'post-carousel' ) . ',<br> <i class="fa fa-mobile"></i> ' . __( 'Mobile - size is smaller than 576px.', 'post-carousel' ), |
| 68 |
'dependency' => array( 'pcp_layout_preset', 'any', 'carousel_layout,thumbnails_slider,grid_layout,masonry_layout,glossary_layout,filter_layout,large_with_small', true ), |
| 69 |
), |
| 70 |
// array( |
| 71 |
// 'id' => 'margin_between_post', |
| 72 |
// 'type' => 'spacing', |
| 73 |
// 'title' => __( 'Margin Between Columns', 'post-carousel' ), |
| 74 |
// 'subtitle' => __( 'Set margin between columns (items).', 'post-carousel' ), |
| 75 |
// 'sanitize' => 'spf_pcp_sanitize_number_array_field', |
| 76 |
// 'all' => true, |
| 77 |
// 'all_icon' => '<i class="fa fa-arrows-h"></i>', |
| 78 |
// 'units' => array( |
| 79 |
// 'px', |
| 80 |
// ), |
| 81 |
// 'all_placeholder' => 'margin', |
| 82 |
// 'default' => array( |
| 83 |
// 'all' => '20', |
| 84 |
// ), |
| 85 |
// ), |
| 86 |
array( |
| 87 |
'id' => 'margin_between_post', |
| 88 |
'type' => 'spacing', |
| 89 |
'title' => __( 'Space', 'post-carousel' ), |
| 90 |
'subtitle' => __( 'Set space or gap between items.', 'post-carousel' ), |
| 91 |
'gap_between' => true, |
| 92 |
'all_icon' => '<i class="fa fa-arrows-h"></i>', |
| 93 |
'units' => array( |
| 94 |
'px', |
| 95 |
), |
| 96 |
'all_placeholder' => '', |
| 97 |
'default' => array( |
| 98 |
'top-bottom' => 20, |
| 99 |
'left-right' => 20, |
| 100 |
), |
| 101 |
'title_info' => '<div class="spf-img-tag"><img src="' . SP_PC_URL . '/admin/img/visual-info/space.svg" alt="space"></div><div class="spf-info-label img">' . __( 'Space', 'post-carousel' ) . '</div>', |
| 102 |
'dependency' => array( 'pcp_layout_preset', 'not-any', 'table_layout,slider_layout', true ), |
| 103 |
), |
| 104 |
array( |
| 105 |
'id' => 'post_content_orientation', |
| 106 |
'type' => 'layout_preset', |
| 107 |
'title' => __( 'Content Orientation ', 'post-carousel' ), |
| 108 |
'subtitle' => __( 'Set a position for the item content.', 'post-carousel' ), |
| 109 |
'desc' => sprintf( |
| 110 |
/* translators: 1: start link and strong tag, 2: close tags. */ |
| 111 |
__( 'To unlock more amazing Content Orientation and Layout based Settings, %1$sUpgrade To Pro!%2$s', 'post-carousel' ), |
| 112 |
'<a href="https://wpsmartpost.com/pricing/?ref=1" target="_blank"><strong>', |
| 113 |
'</strong></a>' |
| 114 |
), |
| 115 |
'class' => 'pcp-content-orientation', |
| 116 |
'options' => array( |
| 117 |
'default' => array( |
| 118 |
'image' => SP_PC_URL . 'admin/img/content-orientation/bottom.svg', |
| 119 |
'text' => __( 'Default', 'post-carousel' ), |
| 120 |
), |
| 121 |
'left-thumb' => array( |
| 122 |
'image' => SP_PC_URL . 'admin/img/content-orientation/left.svg', |
| 123 |
'text' => __( 'Left', 'post-carousel' ), |
| 124 |
), |
| 125 |
'right-thumb' => array( |
| 126 |
'image' => SP_PC_URL . 'admin/img/content-orientation/right.svg', |
| 127 |
'text' => __( 'Right', 'post-carousel' ), |
| 128 |
), |
| 129 |
'card' => array( |
| 130 |
'image' => SP_PC_URL . 'admin/img/content-orientation/card.svg', |
| 131 |
'text' => __( 'Card', 'post-carousel' ), |
| 132 |
'pro_only' => true, |
| 133 |
), |
| 134 |
'overlay' => array( |
| 135 |
'image' => SP_PC_URL . 'admin/img/content-orientation/overlay.svg', |
| 136 |
'text' => __( 'Overlay', 'post-carousel' ), |
| 137 |
'pro_only' => true, |
| 138 |
), |
| 139 |
'overlay-box' => array( |
| 140 |
'image' => SP_PC_URL . 'admin/img/content-orientation/overlay_box.svg', |
| 141 |
'text' => __( 'Overlay Box', 'post-carousel' ), |
| 142 |
'pro_only' => true, |
| 143 |
), |
| 144 |
), |
| 145 |
'default' => 'default', |
| 146 |
'dependency' => array( 'pcp_layout_preset', 'not-any', 'slider_layout,list_layout', true ), |
| 147 |
), |
| 148 |
array( |
| 149 |
'id' => 'box_content_position', |
| 150 |
'type' => 'layout_preset', |
| 151 |
'only_pro' => true, |
| 152 |
'class' => 'hide-active-sign', |
| 153 |
'title' => __( 'Content Box Position', 'post-carousel' ), |
| 154 |
'subtitle' => __( 'Select a position for the overlay content box.', 'post-carousel' ), |
| 155 |
'options' => array( |
| 156 |
// 'in_top' => __( 'Inner Top', 'post-carousel' ), |
| 157 |
// 'in_middle' => __( 'Inner Middle', 'post-carousel' ), |
| 158 |
// 'in_bottom' => __( 'Inner Bottom', 'post-carousel' ), |
| 159 |
// 'outer_top' => __( 'Outer Top', 'post-carousel' ), |
| 160 |
// 'outer_right' => __( 'Outer Right', 'post-carousel' ), |
| 161 |
// 'outer_bottom' => __( 'Outer Bottom', 'post-carousel' ), |
| 162 |
// 'outer_left' => __( 'Outer Left', 'post-carousel' ), |
| 163 |
'in_middle' => array( |
| 164 |
'image' => SP_PC_URL . 'admin/img/overlay-box-content-position/inner_middle.svg', |
| 165 |
'text' => __( 'Inner Middle', 'post-carousel' ), |
| 166 |
'pro_only' => true, |
| 167 |
), |
| 168 |
'in_top' => array( |
| 169 |
'image' => SP_PC_URL . 'admin/img/overlay-box-content-position/inner_top.svg', |
| 170 |
'text' => __( 'Inner Top', 'post-carousel' ), |
| 171 |
'pro_only' => true, |
| 172 |
), |
| 173 |
'in_bottom' => array( |
| 174 |
'image' => SP_PC_URL . 'admin/img/overlay-box-content-position/inner_bottom.svg', |
| 175 |
'text' => __( 'Inner Bottom', 'post-carousel' ), |
| 176 |
'pro_only' => true, |
| 177 |
), |
| 178 |
'outer_top' => array( |
| 179 |
'image' => SP_PC_URL . 'admin/img/overlay-box-content-position/outer_top.svg', |
| 180 |
'text' => __( 'Outer Top', 'post-carousel' ), |
| 181 |
'pro_only' => true, |
| 182 |
), |
| 183 |
'outer_bottom' => array( |
| 184 |
'image' => SP_PC_URL . 'admin/img/overlay-box-content-position/outer_bottom.svg', |
| 185 |
'text' => __( 'Outer Bottom', 'post-carousel' ), |
| 186 |
'pro_only' => true, |
| 187 |
), |
| 188 |
'outer_left' => array( |
| 189 |
'image' => SP_PC_URL . 'admin/img/overlay-box-content-position/outer_left.svg', |
| 190 |
'text' => __( 'Outer Left', 'post-carousel' ), |
| 191 |
'pro_only' => true, |
| 192 |
), |
| 193 |
'outer_right' => array( |
| 194 |
'image' => SP_PC_URL . 'admin/img/overlay-box-content-position/outer_right.svg', |
| 195 |
'text' => __( 'Outer Right', 'post-carousel' ), |
| 196 |
'pro_only' => true, |
| 197 |
), |
| 198 |
), |
| 199 |
'default' => 'in_middle', |
| 200 |
'dependency' => array( 'pcp_layout_preset|post_content_orientation', 'any|==', 'carousel_layout,grid_layout,masonry_layout,filter_layout,glossary_layout,large_with_small|overlay-box', true ), |
| 201 |
), |
| 202 |
array( |
| 203 |
'id' => 'post_overlay_content_visibility', |
| 204 |
'type' => 'button_set', |
| 205 |
'class' => 'pro-overlay-options', |
| 206 |
'only_pro' => true, |
| 207 |
'inline' => true, |
| 208 |
'title' => __( 'Content Visibility', 'post-carousel' ), |
| 209 |
'subtitle' => __( 'Choose a visibility type for overlay content.', 'post-carousel' ), |
| 210 |
'options' => array( |
| 211 |
'always' => __( 'Always', 'post-carousel' ), |
| 212 |
'on_hover' => __( 'On Hover', 'post-carousel' ), |
| 213 |
), |
| 214 |
'default' => 'on_hover', |
| 215 |
'title_info' => '<div class="spf-img-tag"><img src="' . SP_PC_URL . '/admin/img/visual-info/overlay_content_visibility.svg" alt="overlay_content_visibility"></div><div class="spf-info-label img">' . __( 'Overlay Content Visibility', 'post-carousel' ) . '</div>', |
| 216 |
'dependency' => array( 'pcp_layout_preset|post_content_orientation', 'any|any', 'carousel_layout,grid_layout,masonry_layout,filter_layout,glossary_layout,large_with_small,thumbnails_slider,slider_layout|overlay-box,overlay', true ), |
| 217 |
), |
| 218 |
array( |
| 219 |
'id' => 'post_animation', |
| 220 |
'type' => 'select', |
| 221 |
'class' => 'pro-overlay-options', |
| 222 |
'only_pro' => true, |
| 223 |
'title' => __( 'Hover Animation', 'post-carousel' ), |
| 224 |
'subtitle' => __( 'Select an animation type for the overlay content on hover.', 'post-carousel' ), |
| 225 |
'options' => array( |
| 226 |
'none' => __( 'None', 'post-carousel' ), |
| 227 |
'fadeIn' => __( 'fadeIn', 'post-carousel' ), |
| 228 |
'fadeInDown' => __( 'fadeInDown', 'post-carousel' ), |
| 229 |
'fadeInRight' => __( 'fadeInRight', 'post-carousel' ), |
| 230 |
'fadeInLeft' => __( 'fadeInLeft', 'post-carousel' ), |
| 231 |
'fadeInUp' => __( 'fadeInUp', 'post-carousel' ), |
| 232 |
'flipInX' => __( 'flipInX', 'post-carousel' ), |
| 233 |
'flipInY' => __( 'flipInY', 'post-carousel' ), |
| 234 |
'slideInUp' => __( 'slideInUp', 'post-carousel' ), |
| 235 |
'slideInDown' => __( 'slideInDown', 'post-carousel' ), |
| 236 |
'zoomIn' => __( 'zoomIn', 'post-carousel' ), |
| 237 |
'zoomInDown' => __( 'zoomInDown', 'post-carousel' ), |
| 238 |
'jackInTheBox' => __( 'jackInTheBox', 'post-carousel' ), |
| 239 |
'rollIn' => __( 'rollIn', 'post-carousel' ), |
| 240 |
), |
| 241 |
'default' => 'zoomIn', |
| 242 |
'dependency' => array( 'pcp_layout_preset|post_content_orientation|post_overlay_content_visibility', 'any|any|==', 'carousel_layout,grid_layout,masonry_layout,filter_layout,glossary_layout,large_with_small,thumbnails_slider,slider_layout|overlay,overlay-box|on_hover' ), |
| 243 |
), |
| 244 |
array( |
| 245 |
'id' => 'post_overlay_background_type', |
| 246 |
'only_pro' => true, |
| 247 |
'type' => 'button_set', |
| 248 |
'class' => 'pro-overlay-options', |
| 249 |
'title' => __( 'Overlay Color Type', 'post-carousel' ), |
| 250 |
'subtitle' => __( 'Choose an overlay color type.', 'post-carousel' ), |
| 251 |
'options' => array( |
| 252 |
'solid' => __( 'Solid', 'post-carousel' ), |
| 253 |
'gradient' => __( 'Gradient', 'post-carousel' ), |
| 254 |
), |
| 255 |
'default' => array( 'solid' ), |
| 256 |
'dependency' => array( 'pcp_layout_preset|post_content_orientation', 'any|any', 'carousel_layout,grid_layout,masonry_layout,filter_layout,glossary_layout,large_with_small,thumbnails_slider,slider_layout|overlay-box,overlay', true ), |
| 257 |
), |
| 258 |
array( |
| 259 |
'id' => 'post_border', |
| 260 |
'type' => 'border', |
| 261 |
'title' => __( 'Border', 'post-carousel' ), |
| 262 |
'subtitle' => __( 'Set border for the item.', 'post-carousel' ), |
| 263 |
'all' => true, |
| 264 |
'border_radius' => true, |
| 265 |
'show_units' => true, |
| 266 |
'units' => array( 'px', '%' ), |
| 267 |
'default' => array( |
| 268 |
'all' => '0', |
| 269 |
'style' => 'solid', |
| 270 |
'color' => '#e2e2e2', |
| 271 |
'border_radius' => '0', |
| 272 |
'unit' => 'px', |
| 273 |
), |
| 274 |
), |
| 275 |
// array( |
| 276 |
// 'id' => 'post_border_radius_property', |
| 277 |
// 'type' => 'spacing', |
| 278 |
// 'title' => __( 'Border Radius', 'post-carousel' ), |
| 279 |
// 'subtitle' => __( 'Set border radius for item.', 'post-carousel' ), |
| 280 |
// 'all' => true, |
| 281 |
// 'sanitize' => 'spf_pcp_sanitize_number_array_field', |
| 282 |
// 'units' => array( 'px', '%' ), |
| 283 |
// 'default' => array( |
| 284 |
// 'all' => '0', |
| 285 |
// ), |
| 286 |
// ), |
| 287 |
array( |
| 288 |
'id' => 'post_background_property', |
| 289 |
'type' => 'color', |
| 290 |
'title' => __( 'Background', 'post-carousel' ), |
| 291 |
'subtitle' => __( 'Set background color for the item.', 'post-carousel' ), |
| 292 |
'default' => 'transparent', |
| 293 |
'dependency' => array( 'post_content_orientation', 'not-any', 'overlay,overlay-box' ), |
| 294 |
), |
| 295 |
array( |
| 296 |
'id' => 'post_inner_padding_property', |
| 297 |
'type' => 'spacing', |
| 298 |
'title' => __( 'Inner Padding', 'post-carousel' ), |
| 299 |
'subtitle' => __( 'Set inner padding for item.', 'post-carousel' ), |
| 300 |
'sanitize' => 'spf_pcp_sanitize_number_array_field', |
| 301 |
'default' => array( |
| 302 |
'top' => '0', |
| 303 |
'right' => '0', |
| 304 |
'bottom' => '0', |
| 305 |
'left' => '0', |
| 306 |
'unit' => 'px', |
| 307 |
), |
| 308 |
'title_info' => "<img src='" . SP_PC_URL . "/admin/assets/img/inner_padding.jpg'>", |
| 309 |
), |
| 310 |
array( |
| 311 |
'id' => 'show_preloader', |
| 312 |
'type' => 'switcher', |
| 313 |
'title' => __( 'Preloader', 'post-carousel' ), |
| 314 |
'subtitle' => __( 'Items will be hidden until page load completed.', 'post-carousel' ), |
| 315 |
'text_on' => __( 'Enabled', 'post-carousel' ), |
| 316 |
'text_off' => __( 'Disabled', 'post-carousel' ), |
| 317 |
'text_width' => 100, |
| 318 |
'default' => false, |
| 319 |
), |
| 320 |
array( |
| 321 |
'id' => 'item_same_height', |
| 322 |
'type' => 'switcher', |
| 323 |
'class' => 'pro_only_field', |
| 324 |
'title' => __( 'Enable Equal Height', 'post-carousel' ), |
| 325 |
'subtitle' => __( 'Enable to equalize all items height as the tallest one.', 'post-carousel' ), |
| 326 |
'text_on' => __( 'Enabled', 'post-carousel' ), |
| 327 |
'text_off' => __( 'Disabled', 'post-carousel' ), |
| 328 |
'default' => false, |
| 329 |
'text_width' => 100, |
| 330 |
'title_info' => '<div class="spf-img-tag"><img src="' . SP_PC_URL . '/admin/img/visual-info/equalize_members_height.svg" alt="equalize_members_height"></div><div class="spf-info-label img">' . __( 'Enable Equal Height', 'post-carousel' ) . '</div>', |
| 331 |
), |
| 332 |
), |
| 333 |
), |
| 334 |
array( |
| 335 |
'title' => __( 'Content Fields', 'post-carousel' ), |
| 336 |
'icon' => '<i class="sps-icon-content-1" aria-hidden="true"></i>', |
| 337 |
'fields' => array( |
| 338 |
array( |
| 339 |
'id' => 'post_content_sorter', |
| 340 |
'type' => 'sortable', |
| 341 |
'title' => __( 'Content Fields', 'post-carousel' ), |
| 342 |
'subtitle' => __( 'Item content fields which are draggable to change display order and it\'s settings.', 'post-carousel' ), |
| 343 |
// 'desc' => __( 'To show Social Share and Custom Fields, <a href="https://wpsmartpost.com/" target="_blank"><strong>Upgrade To Pro!</strong></a>', 'post-carousel' ), |
| 344 |
'class' => 'post_content_sorter', |
| 345 |
'fields' => array( |
| 346 |
array( |
| 347 |
'id' => 'pcp_post_thumb', |
| 348 |
'type' => 'accordion', |
| 349 |
'accordions' => array( |
| 350 |
array( |
| 351 |
'title' => __( 'Image', 'post-carousel' ), |
| 352 |
'fields' => array( |
| 353 |
array( |
| 354 |
'id' => 'post_thumb_show', |
| 355 |
'type' => 'switcher', |
| 356 |
'title' => __( 'Featured Image', 'post-carousel' ), |
| 357 |
'text_on' => __( 'Show', 'post-carousel' ), |
| 358 |
'text_off' => __( 'Hide', 'post-carousel' ), |
| 359 |
'default' => true, |
| 360 |
'text_width' => 80, |
| 361 |
), |
| 362 |
array( |
| 363 |
'id' => 'pcp_thumb_sizes', |
| 364 |
'type' => 'image_sizes', |
| 365 |
'title' => __( 'Size', 'post-carousel' ), |
| 366 |
'default' => 'full', |
| 367 |
'dependency' => array( 'post_thumb_show', '==', 'true', true ), |
| 368 |
), |
| 369 |
array( |
| 370 |
'id' => 'pcp_thumb_border', |
| 371 |
'type' => 'border', |
| 372 |
'title' => __( 'Border', 'post-carousel' ), |
| 373 |
'all' => true, |
| 374 |
'border_radius' => true, |
| 375 |
'show_units' => true, |
| 376 |
'units' => array( 'px', '%' ), |
| 377 |
'default' => array( |
| 378 |
'all' => '0', |
| 379 |
'style' => 'solid', |
| 380 |
'color' => '#dddddd', |
| 381 |
'border_radius' => '0', |
| 382 |
'unit' => 'px', |
| 383 |
), |
| 384 |
'dependency' => array( 'post_thumb_show', '==', 'true', true ), |
| 385 |
), |
| 386 |
array( |
| 387 |
'id' => 'pcp_img_lazy_load', |
| 388 |
'type' => 'switcher', |
| 389 |
'only_pro' => true, |
| 390 |
'class' => 'pro_only_field', |
| 391 |
'title' => __( 'Lazy Load', 'post-carousel' ), |
| 392 |
'title_info' => __( 'Deferring the loading of images until they are needed significantly improves the page load time.', 'post-carousel' ), |
| 393 |
'default' => true, |
| 394 |
'text_on' => __( 'Enabled', 'post-carousel' ), |
| 395 |
'text_off' => __( 'Disabled', 'post-carousel' ), |
| 396 |
'text_width' => 100, |
| 397 |
), |
| 398 |
array( |
| 399 |
'id' => 'pcp_thumb_src_replace', |
| 400 |
'type' => 'checkbox', |
| 401 |
'only_pro' => true, |
| 402 |
'class' => 'pro-overlay-options', |
| 403 |
'title' => __( 'Replace With (Pro)', 'post-carousel' ), |
| 404 |
'title_help' => __( 'This option will replace your default/featured post image with first resource ( image/video/audio ) from the content.', 'post-carousel' ), |
| 405 |
'options' => array( |
| 406 |
'image' => __( 'Image', 'post-carousel' ), |
| 407 |
'video' => __( 'Video', 'post-carousel' ), |
| 408 |
'audio' => __( 'Audio', 'post-carousel' ), |
| 409 |
), |
| 410 |
'dependency' => array( 'post_thumb_show', '==', 'true' ), |
| 411 |
), |
| 412 |
array( |
| 413 |
'type' => 'notice', |
| 414 |
'class' => 'taxonomy-ajax-filter-notice', |
| 415 |
'content' => __( 'To enhance the Featured Image using advanced customizations?', 'post-carousel' ) . ' <a href="https://wpsmartpost.com/pricing/?ref=1" target="_blank"><b>' . __( 'Upgrade To Pro!', 'post-carousel' ) . '</b></a>', |
| 416 |
), |
| 417 |
), |
| 418 |
), |
| 419 |
), |
| 420 |
), |
| 421 |
array( |
| 422 |
'id' => 'pcp_post_title', |
| 423 |
'type' => 'accordion', |
| 424 |
'accordions' => array( |
| 425 |
array( |
| 426 |
'title' => 'Title', |
| 427 |
'fields' => array( |
| 428 |
array( |
| 429 |
'id' => 'show_post_title', |
| 430 |
'type' => 'switcher', |
| 431 |
'title' => __( 'Title', 'post-carousel' ), |
| 432 |
'text_on' => __( 'Show', 'post-carousel' ), |
| 433 |
'text_off' => __( 'Hide', 'post-carousel' ), |
| 434 |
'default' => true, |
| 435 |
'text_width' => 80, |
| 436 |
), |
| 437 |
array( |
| 438 |
'id' => 'post_title_tag', |
| 439 |
'type' => 'select', |
| 440 |
'title' => __( 'HTML Tag for Title', 'post-carousel' ), |
| 441 |
'options' => array( |
| 442 |
'h1' => __( 'h1', 'post-carousel' ), |
| 443 |
'h2' => __( 'h2', 'post-carousel' ), |
| 444 |
'h3' => __( 'h3', 'post-carousel' ), |
| 445 |
'h4' => __( 'h4', 'post-carousel' ), |
| 446 |
'h5' => __( 'h5', 'post-carousel' ), |
| 447 |
'h6' => __( 'h6', 'post-carousel' ), |
| 448 |
'p' => __( 'p', 'post-carousel' ), |
| 449 |
'div' => __( 'div', 'post-carousel' ), |
| 450 |
), |
| 451 |
'default' => 'h2', |
| 452 |
'class' => 'chosen', |
| 453 |
'dependency' => array( 'show_post_title', '==', 'true', true ), |
| 454 |
), |
| 455 |
array( |
| 456 |
'type' => 'notice', |
| 457 |
'class' => 'taxonomy-ajax-filter-notice', |
| 458 |
'content' => __( 'To limit the title with specific characters or words length,', 'post-carousel' ) . ' <a href="https://wpsmartpost.com/pricing/?ref=1" target="_blank"><b>' . __( 'Upgrade To Pro!', 'post-carousel' ) . '</b></a>', |
| 459 |
), |
| 460 |
), |
| 461 |
), |
| 462 |
), |
| 463 |
), |
| 464 |
array( |
| 465 |
'id' => 'pcp_post_meta', |
| 466 |
'class' => 'pcp_post_meta sp-product-not-fields', |
| 467 |
'type' => 'accordion', |
| 468 |
'accordions' => array( |
| 469 |
array( |
| 470 |
'title' => __( 'Meta Data', 'post-carousel' ), |
| 471 |
'fields' => array( |
| 472 |
array( |
| 473 |
'id' => 'show_post_meta', |
| 474 |
'type' => 'switcher', |
| 475 |
'title' => __( 'Meta Fields', 'post-carousel' ), |
| 476 |
'text_on' => __( 'Show', 'post-carousel' ), |
| 477 |
'text_off' => __( 'Hide', 'post-carousel' ), |
| 478 |
'default' => true, |
| 479 |
'text_width' => 80, |
| 480 |
), |
| 481 |
array( |
| 482 |
'id' => 'pcp_post_meta_group', |
| 483 |
'class' => 'pcp_custom_group_design', |
| 484 |
'type' => 'group', |
| 485 |
'button_title' => __( 'Add New Meta', 'post-carousel' ), |
| 486 |
'dependency' => array( 'show_post_meta', '==', 'true' ), |
| 487 |
'fields' => array( |
| 488 |
array( |
| 489 |
'id' => 'select_post_meta', |
| 490 |
'type' => 'select', |
| 491 |
'title' => __( 'Select Meta', 'post-carousel' ), |
| 492 |
'placeholder' => __( 'Select a meta', 'post-carousel' ), |
| 493 |
'class' => 'pcp-meta-select', |
| 494 |
'options' => array( |
| 495 |
'author' => __( 'Author', 'post-carousel' ), |
| 496 |
'date' => __( 'Date', 'post-carousel' ), |
| 497 |
'comment_count' => __( 'Comment Count', 'post-carousel' ), |
| 498 |
'taxonomy' => __( 'Taxonomy (Pro)', 'post-carousel' ), |
| 499 |
'view_count' => __( 'View Count (Pro)', 'post-carousel' ), |
| 500 |
'like' => __( 'Like (Pro)', 'post-carousel' ), |
| 501 |
'reading_time' => __( 'Reading Time (Pro)', 'post-carousel' ), |
| 502 |
), |
| 503 |
), |
| 504 |
array( |
| 505 |
'id' => 'pcp_custom_meta_date_format', |
| 506 |
'type' => 'text', |
| 507 |
'title' => ' ', |
| 508 |
'class' => 'pcp_custom_meta_date_format', |
| 509 |
'placeholder' => __( 'F j, Y', 'post-carousel' ), |
| 510 |
'default' => __( 'F j, Y', 'post-carousel' ), |
| 511 |
'desc' => sprintf( |
| 512 |
/* translators: 1: start link and em tag, 2: close tags. */ |
| 513 |
__( 'To define format, check %1$sthis doc%2$s.', 'post-carousel' ), |
| 514 |
'<a href="https://wordpress.org/support/article/formatting-date-and-time/" target="_blank" rel="noopener noreferrer nofollow"><em>', |
| 515 |
'</em></a>' |
| 516 |
), |
| 517 |
'dependency' => array( 'select_post_meta|post_meta_date_format', '==|==', 'date|custom' ), |
| 518 |
), |
| 519 |
array( |
| 520 |
'id' => 'post_meta_taxonomy', |
| 521 |
'type' => 'select', |
| 522 |
'title' => __( 'Select Taxonomy', 'post-carousel' ), |
| 523 |
'class' => 'post_meta_taxonomy', |
| 524 |
'options' => 'taxonomy', |
| 525 |
'query_args' => array( |
| 526 |
'type' => 'any', |
| 527 |
), |
| 528 |
'attributes' => array( |
| 529 |
'style' => 'width: 200px;', |
| 530 |
), |
| 531 |
'empty_message' => __( 'No taxonomies found.', 'post-carousel' ), |
| 532 |
'dependency' => array( 'select_post_meta', '==', 'taxonomy' ), |
| 533 |
), |
| 534 |
array( |
| 535 |
'id' => 'pcp_meta_position', |
| 536 |
'class' => 'pcp_meta_position', |
| 537 |
'type' => 'button_set', |
| 538 |
'title' => __( 'Position', 'post-carousel' ), |
| 539 |
'options' => array( |
| 540 |
'beside_meta' => __( 'Beside Other Meta', 'post-carousel' ), |
| 541 |
'above_title' => __( 'Above Title', 'post-carousel' ), |
| 542 |
'over_thumb' => __( 'Over Thumbnail', 'post-carousel' ), |
| 543 |
|
| 544 |
), |
| 545 |
'default' => 'beside_meta', |
| 546 |
'dependency' => array( 'select_post_meta', '==', 'taxonomy' ), |
| 547 |
), |
| 548 |
array( |
| 549 |
'id' => 'pcp_meta_over_thump_position', |
| 550 |
'type' => 'select', |
| 551 |
'title' => __( 'Over Thumbnail Position', 'post-carousel' ), |
| 552 |
'options' => array( |
| 553 |
'top_left' => __( 'Top Left', 'post-carousel' ), |
| 554 |
'top_right' => __( 'Top Right', 'post-carousel' ), |
| 555 |
'bottom_left' => __( 'Bottom Left', 'post-carousel' ), |
| 556 |
'bottom_right' => __( 'Bottom Right', 'post-carousel' ), |
| 557 |
), |
| 558 |
'default' => 'top_left', |
| 559 |
'dependency' => array( 'select_post_meta|pcp_meta_position', '==|==', 'taxonomy|over_thumb' ), |
| 560 |
), |
| 561 |
array( |
| 562 |
'id' => 'pcp_meta_pill_color', |
| 563 |
'type' => 'color_group', |
| 564 |
'title' => __( 'Meta Color', 'post-carousel' ), |
| 565 |
'options' => array( |
| 566 |
'text' => __( 'Text', 'post-carousel' ), |
| 567 |
'bg' => __( 'Background', 'post-carousel' ), |
| 568 |
), |
| 569 |
'default' => array( |
| 570 |
'text' => '#fff', |
| 571 |
'bg' => '#e53935', |
| 572 |
), |
| 573 |
'dependency' => array( 'select_post_meta|pcp_meta_position', '==|!=', 'taxonomy|beside_meta' ), |
| 574 |
), |
| 575 |
array( |
| 576 |
'id' => 'pcp_word_per_minute', |
| 577 |
'type' => 'number', |
| 578 |
'title' => __( 'Per Minute', 'post-carousel' ), |
| 579 |
'class' => 'pcp_reading_time_meta', |
| 580 |
'title_help' => __( 'Default 300 words, the average reading speed for adults.', 'post-carousel' ), |
| 581 |
'sanitize' => 'pcp_sanitize_number_field', |
| 582 |
'unit' => __( 'words', 'post-carousel' ), |
| 583 |
'dependency' => array( 'select_post_meta', '==', 'reading_time' ), |
| 584 |
'default' => 300, |
| 585 |
), |
| 586 |
array( |
| 587 |
'id' => 'reading_time_postfix', |
| 588 |
'type' => 'text', |
| 589 |
'title' => __( 'Reading Time Postfix', 'post-carousel' ), |
| 590 |
'class' => 'pcp_reading_time_postfix', |
| 591 |
'title_help' => __( 'Text after time. Leave empty for nothing.', 'post-carousel' ), |
| 592 |
'default' => ' Min Read', |
| 593 |
'dependency' => array( 'select_post_meta', '==', 'reading_time' ), |
| 594 |
), |
| 595 |
), |
| 596 |
'default' => array( |
| 597 |
array( |
| 598 |
'select_post_meta' => 'author', |
| 599 |
'post_meta_author_avatar' => 'name_with_icon', |
| 600 |
'select_meta_icon' => 'fa fa-user', |
| 601 |
'pcp_meta_position' => 'beside_meta', |
| 602 |
), |
| 603 |
array( |
| 604 |
'select_post_meta' => 'date', |
| 605 |
'select_meta_icon' => 'fa fa-calendar', |
| 606 |
'pcp_meta_position' => 'beside_meta', |
| 607 |
), |
| 608 |
array( |
| 609 |
'select_post_meta' => 'comment_count', |
| 610 |
'select_meta_icon' => 'fa fa-comments-o', |
| 611 |
'pcp_meta_position' => 'beside_meta', |
| 612 |
), |
| 613 |
), |
| 614 |
), |
| 615 |
array( |
| 616 |
'id' => 'meta_separator', |
| 617 |
'type' => 'radio', |
| 618 |
'title' => __( 'Meta Separator', 'post-carousel' ), |
| 619 |
'options' => array( |
| 620 |
' ' => __( 'Normal Space ', 'post-carousel' ), |
| 621 |
'. ' => __( 'Full Stop ( . ) ', 'post-carousel' ), |
| 622 |
'| ' => __( 'Straight Line ( | )', 'post-carousel' ), |
| 623 |
'/ ' => __( 'Slash ( / )', 'post-carousel' ), |
| 624 |
'\ ' => __( 'Back Slash( \\ )', 'post-carousel' ), |
| 625 |
), |
| 626 |
'default' => ' ', |
| 627 |
'dependency' => array( 'show_post_meta', '==', 'true' ), |
| 628 |
), |
| 629 |
array( |
| 630 |
'type' => 'notice', |
| 631 |
'class' => 'taxonomy-ajax-filter-notice', |
| 632 |
'content' => __( 'To access more Meta Data and options,', 'post-carousel' ) . ' <a href="https://wpsmartpost.com/pricing/?ref=1" target="_blank"><b>' . __( 'Upgrade To Pro!', 'post-carousel' ) . '</b></a>', |
| 633 |
), |
| 634 |
), |
| 635 |
), |
| 636 |
), |
| 637 |
), |
| 638 |
array( |
| 639 |
'id' => 'pcp_post_content', |
| 640 |
'type' => 'accordion', |
| 641 |
'accordions' => array( |
| 642 |
array( |
| 643 |
'title' => 'Content', |
| 644 |
'fields' => array( |
| 645 |
array( |
| 646 |
'id' => 'show_post_content', |
| 647 |
'type' => 'switcher', |
| 648 |
'title' => __( 'Content', 'post-carousel' ), |
| 649 |
'text_on' => __( 'Show', 'post-carousel' ), |
| 650 |
'text_off' => __( 'Hide', 'post-carousel' ), |
| 651 |
'default' => true, |
| 652 |
'text_width' => 80, |
| 653 |
), |
| 654 |
array( |
| 655 |
'id' => 'post_content_type', |
| 656 |
'type' => 'button_set', |
| 657 |
'class' => 'pcp-post-content-type', |
| 658 |
'title' => __( 'Content Display Type', 'post-carousel' ), |
| 659 |
'options' => array( |
| 660 |
'excerpt' => __( 'Excerpt', 'post-carousel' ), |
| 661 |
'full_content' => __( 'Full', 'post-carousel' ), |
| 662 |
'limit_content' => __( 'Limit', 'post-carousel' ), |
| 663 |
), |
| 664 |
'default' => 'excerpt', |
| 665 |
'dependency' => array( 'show_post_content', '==', 'true', true ), |
| 666 |
), |
| 667 |
// ReadMore settings. |
| 668 |
array( |
| 669 |
'id' => 'show_read_more', |
| 670 |
'type' => 'switcher', |
| 671 |
'title' => __( 'Read More', 'post-carousel' ), |
| 672 |
'text_on' => __( 'Show', 'post-carousel' ), |
| 673 |
'text_off' => __( 'Hide', 'post-carousel' ), |
| 674 |
'default' => true, |
| 675 |
'text_width' => 80, |
| 676 |
'dependency' => array( 'post_content_type', '!=', 'full_content', true ), |
| 677 |
), |
| 678 |
array( |
| 679 |
'id' => 'pcp_read_label', |
| 680 |
'type' => 'text', |
| 681 |
'title' => __( 'Read More Label', 'post-carousel' ), |
| 682 |
'default' => 'Read More', |
| 683 |
'dependency' => array( 'post_content_type|show_read_more', '!=|==', 'full_content|true', true ), |
| 684 |
), |
| 685 |
array( |
| 686 |
'id' => 'readmore_color_button', |
| 687 |
'type' => 'color_group', |
| 688 |
'title' => __( 'Read More Color', 'post-carousel' ), |
| 689 |
'options' => array( |
| 690 |
'standard' => __( 'Text Color', 'post-carousel' ), |
| 691 |
'hover' => __( 'Text Hover Color', 'post-carousel' ), |
| 692 |
'bg' => __( 'Background', 'post-carousel' ), |
| 693 |
'hover_bg' => __( 'Hover Background', 'post-carousel' ), |
| 694 |
// 'border' => __( 'Border', 'post-carousel' ), |
| 695 |
// 'hover_border' => __( 'Hover Border', 'post-carousel' ), |
| 696 |
), |
| 697 |
'default' => array( |
| 698 |
'standard' => '#111', |
| 699 |
'hover' => '#fff', |
| 700 |
'bg' => 'transparent', |
| 701 |
'hover_bg' => '#e1624b', |
| 702 |
// 'border' => '#888', |
| 703 |
// 'hover_border' => '#e1624b', |
| 704 |
), |
| 705 |
'dependency' => array( 'post_content_type|show_read_more', '!=|==', 'full_content|true', true ), |
| 706 |
), |
| 707 |
|
| 708 |
array( |
| 709 |
'id' => 'read_more_btn_border', |
| 710 |
'type' => 'border', |
| 711 |
'title' => __( 'Border', 'post-carousel' ), |
| 712 |
'subtitle' => __( 'Set border for the read more button.', 'post-carousel' ), |
| 713 |
'all' => true, |
| 714 |
'border_radius' => true, |
| 715 |
'hover_color' => true, |
| 716 |
'show_units' => true, |
| 717 |
'units' => array( 'px', '%' ), |
| 718 |
'default' => array( |
| 719 |
'all' => '1', |
| 720 |
'style' => 'solid', |
| 721 |
'color' => '#888', |
| 722 |
'hover_color' => '#e1624b', |
| 723 |
'border_radius' => '0', |
| 724 |
'unit' => 'px', |
| 725 |
), |
| 726 |
'dependency' => array( 'post_content_type|show_read_more', '!=|==', 'full_content|true', true ), |
| 727 |
), |
| 728 |
array( |
| 729 |
'type' => 'notice', |
| 730 |
'class' => 'taxonomy-ajax-filter-notice', |
| 731 |
'content' => __( 'To limit the Content and more options,', 'post-carousel' ) . ' <a href="https://wpsmartpost.com/pricing/?ref=1" target="_blank"><b>' . __( 'Upgrade To Pro!', 'post-carousel' ) . '</b></a>', |
| 732 |
), |
| 733 |
), |
| 734 |
), |
| 735 |
), |
| 736 |
), |
| 737 |
array( |
| 738 |
'id' => 'pcp_social_share', |
| 739 |
'type' => 'accordion', |
| 740 |
'class' => 'pcp-pro-only pcp-social-share-fields', |
| 741 |
'accordions' => array( |
| 742 |
array( |
| 743 |
'title' => __( 'Social Share (Pro)', 'post-carousel' ), |
| 744 |
'fields' => array( |
| 745 |
array( |
| 746 |
'id' => 'social_share__label', |
| 747 |
'type' => 'text', |
| 748 |
'title' => '', |
| 749 |
'default' => 'Read More', |
| 750 |
), |
| 751 |
), |
| 752 |
), |
| 753 |
), |
| 754 |
), // PCP Post Social. |
| 755 |
array( |
| 756 |
'id' => 'pcp_custom_fields', |
| 757 |
'type' => 'accordion', |
| 758 |
'class' => 'pcp-pro-only pcp-custom-fields', |
| 759 |
'accordions' => array( |
| 760 |
array( |
| 761 |
'title' => __( 'Custom Fields (Pro)', 'post-carousel' ), |
| 762 |
'fields' => array( |
| 763 |
array( |
| 764 |
'id' => 'custom_field__label', |
| 765 |
'type' => 'text', |
| 766 |
'title' => '', |
| 767 |
'default' => 'Read More', |
| 768 |
), |
| 769 |
), // End Fields array. |
| 770 |
), |
| 771 |
), // Accordion. |
| 772 |
), // Custom fields end. |
| 773 |
), |
| 774 |
), |
| 775 |
), |
| 776 |
), |
| 777 |
array( |
| 778 |
'title' => __( 'Load More Pagination', 'post-carousel' ), |
| 779 |
'class' => 'pcp_ajax_pagination', |
| 780 |
'icon' => '<i class="sps-icon-ajax" aria-hidden="true"></i>', |
| 781 |
'fields' => array( |
| 782 |
array( |
| 783 |
'id' => 'show_post_pagination', |
| 784 |
'type' => 'switcher', |
| 785 |
'text_on' => __( 'Enabled', 'post-carousel' ), |
| 786 |
'text_off' => __( 'Disabled', 'post-carousel' ), |
| 787 |
'text_width' => 100, |
| 788 |
'title' => __( 'Pagination', 'post-carousel' ), |
| 789 |
'subtitle' => __( 'Enabled/Disabled item pagination.', 'post-carousel' ), |
| 790 |
'default' => true, |
| 791 |
'dependency' => array( 'pcp_layout_preset', 'not-any', 'carousel_layout', 'true' ), |
| 792 |
), |
| 793 |
array( |
| 794 |
'id' => 'post_pagination_type', |
| 795 |
'type' => 'radio', |
| 796 |
'title' => __( 'Pagination Type', 'post-carousel' ), |
| 797 |
'subtitle' => __( 'Choose a pagination type.', 'post-carousel' ), |
| 798 |
'desc' => sprintf( |
| 799 |
/* translators: 1: start link and strong tag, 2: close tags. */ |
| 800 |
__( 'More amazing Ajax Pagination Settings are available in %1$sPro%2$s', 'post-carousel' ), |
| 801 |
'<a href="https://wpsmartpost.com/" target="_blank"><strong>', |
| 802 |
'</strong></a>!' |
| 803 |
), |
| 804 |
'class' => 'pcp-pagination-type', |
| 805 |
'options' => array( |
| 806 |
'no_ajax' => __( 'Normal Pagination', 'post-carousel' ), |
| 807 |
'ajax_load_more' => __( 'Ajax Load More Button (Pro)', 'post-carousel' ), |
| 808 |
'ajax_pagination' => __( 'Ajax Number Pagination (Pro)', 'post-carousel' ), |
| 809 |
'infinite_scroll' => __( 'Ajax Infinite Scroll (Pro)', 'post-carousel' ), |
| 810 |
), |
| 811 |
'default' => 'no_ajax', |
| 812 |
'dependency' => array( 'pcp_layout_preset|show_post_pagination', 'not-any|==', 'carousel_layout|true', true ), |
| 813 |
), |
| 814 |
array( |
| 815 |
'id' => 'post_per_page', |
| 816 |
'type' => 'spinner', |
| 817 |
'title' => __( 'Items Per Page', 'post-carousel' ), |
| 818 |
'subtitle' => __( 'Set number of items to show per page.', 'post-carousel' ), |
| 819 |
'title_info' => sprintf( |
| 820 |
/* translators: 1: start strong tag, 2: close tags. */ |
| 821 |
__( 'This value should be lesser than that %1$s Limit %2$s from %1$sFilter Content %2$s tab.', 'post-carousel' ), |
| 822 |
'<strong>', |
| 823 |
'</strong>' |
| 824 |
), |
| 825 |
'default' => 12, |
| 826 |
'dependency' => array( 'pcp_layout_preset|show_post_pagination', 'not-any|==', 'carousel_layout|true', true ), |
| 827 |
), |
| 828 |
array( |
| 829 |
'id' => 'pcp_pagination_btn_color', |
| 830 |
'type' => 'color_group', |
| 831 |
'sanitize' => 'spf_pcp_sanitize_color_group_field', |
| 832 |
'title' => __( 'Color', 'post-carousel' ), |
| 833 |
'subtitle' => __( 'Set Pagination color', 'post-carousel' ), |
| 834 |
'options' => array( |
| 835 |
'text_color' => __( 'Text Color', 'post-carousel' ), |
| 836 |
'text_acolor' => __( 'Text Active Color', 'post-carousel' ), |
| 837 |
// 'border_color' => __( 'Border Color', 'post-carousel' ), |
| 838 |
// 'border_acolor' => __( 'Border Active Color', 'post-carousel' ), |
| 839 |
'background' => __( 'Background', 'post-carousel' ), |
| 840 |
'active_background' => __( 'Active BG', 'post-carousel' ), |
| 841 |
), |
| 842 |
'default' => array( |
| 843 |
'text_color' => '#5e5e5e', |
| 844 |
'text_acolor' => '#ffffff', |
| 845 |
// 'border_color' => '#bbbbbb', |
| 846 |
// 'border_acolor' => '#e1624b', |
| 847 |
'background' => '#ffffff', |
| 848 |
'active_background' => '#e1624b', |
| 849 |
), |
| 850 |
'dependency' => array( 'pcp_layout_preset|show_post_pagination|post_pagination_type', '!=|==|any', 'carousel_layout|true|ajax_pagination,no_ajax', true ), |
| 851 |
), |
| 852 |
array( |
| 853 |
'id' => 'pcp_pagination_btn_border', |
| 854 |
'type' => 'border', |
| 855 |
'title' => __( 'Border', 'post-carousel' ), |
| 856 |
'subtitle' => __( 'Set border for the pagination button.', 'post-carousel' ), |
| 857 |
'all' => true, |
| 858 |
'border_radius' => true, |
| 859 |
'hover_color' => true, |
| 860 |
'show_units' => true, |
| 861 |
'units' => array( 'px', '%' ), |
| 862 |
'sanitize' => 'spf_pcp_sanitize_border_field', |
| 863 |
'default' => array( |
| 864 |
'all' => '2', |
| 865 |
'style' => 'solid', |
| 866 |
'color' => '#bbbbbb', |
| 867 |
'hover_color' => '#e1624b', |
| 868 |
'border_radius' => '2', |
| 869 |
'unit' => 'px', |
| 870 |
), |
| 871 |
'dependency' => array( 'pcp_layout_preset|show_post_pagination|post_pagination_type', '!=|==|!=', 'carousel_layout|true|infinite_scroll', true ), |
| 872 |
), |
| 873 |
array( |
| 874 |
'id' => 'pagination_alignment', |
| 875 |
'type' => 'button_set', |
| 876 |
'title' => __( 'Alignment', 'post-carousel' ), |
| 877 |
'subtitle' => __( 'Choose pagination alignment.', 'post-carousel' ), |
| 878 |
'options' => array( |
| 879 |
'left' => '<i class="fa fa-align-left" title="Left"></i>', |
| 880 |
'center' => '<i class="fa fa-align-center" title="Center"></i>', |
| 881 |
'right' => '<i class="fa fa-align-right" title="Right"></i>', |
| 882 |
), |
| 883 |
'default' => 'left', |
| 884 |
'dependency' => array( 'pcp_layout_preset|show_post_pagination|post_pagination_type', '!=|==|!=', 'carousel_layout|true|infinite_scroll', true ), |
| 885 |
), |
| 886 |
), |
| 887 |
), |
| 888 |
array( |
| 889 |
'title' => __( 'Advertisement', 'post-carousel' ), |
| 890 |
'icon' => '<i class="sps-icon-ad" aria-hidden="true"></i>', |
| 891 |
'fields' => array(), |
| 892 |
), |
| 893 |
), |
| 894 |
), |
| 895 |
), // End of fields array. |
| 896 |
) |
| 897 |
); // Display settings section end. |
| 898 |
} |
| 899 |
} |
| 900 |
|