| 1 |
<?php |
| 2 |
/** |
| 3 |
* Post slider block attributes file class for Smart Post Show Blocks. |
| 4 |
* |
| 5 |
* @package Smart_Post_Show_Pro |
| 6 |
* @subpackage Smart_Post_Show_Pro/blocks/includes |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; |
| 11 |
} |
| 12 |
|
| 13 |
$post_slider_two_attributes = array( |
| 14 |
'postSliderTwoLayout' => array( |
| 15 |
'type' => 'string', |
| 16 |
'default' => 'post-slider-two-layout-one', |
| 17 |
), |
| 18 |
'postSliderTwoHeight' => $this->ranger_attribute( 620 ), |
| 19 |
'postSliderTwoNavArrow' => array( |
| 20 |
'type' => 'boolean', |
| 21 |
'default' => true, |
| 22 |
), |
| 23 |
'postSliderTwoPagination' => array( |
| 24 |
'type' => 'boolean', |
| 25 |
'default' => false, |
| 26 |
), |
| 27 |
'postSliderTwoCarouselSpeed' => $this->ranger_attribute( 1000, '', '', 'ms' ), |
| 28 |
'postSliderTwoSlideToScroll' => array( |
| 29 |
'type' => 'object', |
| 30 |
'default' => array( |
| 31 |
'device' => array( |
| 32 |
'Desktop' => 1, |
| 33 |
'Tablet' => 1, |
| 34 |
'Mobile' => 1, |
| 35 |
), |
| 36 |
), |
| 37 |
), |
| 38 |
'postSliderTwoAnimationEffect' => array( |
| 39 |
'type' => 'string', |
| 40 |
'default' => 'slide', |
| 41 |
), |
| 42 |
'postSliderTwoContentAreaArray' => array( |
| 43 |
'type' => 'array', |
| 44 |
'default' => array( |
| 45 |
array( |
| 46 |
'id' => 1, |
| 47 |
'label' => 'Title', |
| 48 |
'value' => 'title', |
| 49 |
), |
| 50 |
array( |
| 51 |
'id' => 2, |
| 52 |
'label' => 'Taxonomy/Category', |
| 53 |
'value' => 'taxonomy', |
| 54 |
), |
| 55 |
array( |
| 56 |
'id' => 3, |
| 57 |
'label' => 'Meta Data', |
| 58 |
'value' => 'metadata', |
| 59 |
), |
| 60 |
array( |
| 61 |
'id' => 4, |
| 62 |
'label' => 'Excerpt', |
| 63 |
'value' => 'excerpt', |
| 64 |
), |
| 65 |
array( |
| 66 |
'id' => 5, |
| 67 |
'label' => 'Read More', |
| 68 |
'value' => 'read-more', |
| 69 |
), |
| 70 |
array( |
| 71 |
'id' => 6, |
| 72 |
'label' => 'Social Share', |
| 73 |
'value' => 'social-share', |
| 74 |
), |
| 75 |
), |
| 76 |
), |
| 77 |
'postSliderTwoAdaptiveHeight' => array( |
| 78 |
'type' => 'boolean', |
| 79 |
'default' => false, |
| 80 |
), |
| 81 |
'postSliderTwoTabKeyNavigation' => array( |
| 82 |
'type' => 'boolean', |
| 83 |
'default' => true, |
| 84 |
), |
| 85 |
'postSliderTwoMouseWheelControl' => array( |
| 86 |
'type' => 'boolean', |
| 87 |
'default' => false, |
| 88 |
), |
| 89 |
'postSliderTwoFreeScrollMode' => array( |
| 90 |
'type' => 'boolean', |
| 91 |
'default' => false, |
| 92 |
), |
| 93 |
'postSliderTwoPaginationDot' => array( |
| 94 |
'type' => 'boolean', |
| 95 |
'default' => false, |
| 96 |
), |
| 97 |
'carouselData' => array( |
| 98 |
'type' => 'string', |
| 99 |
'default' => '', |
| 100 |
), |
| 101 |
'postSliderGeneralPreloader' => array( |
| 102 |
'type' => 'boolean', |
| 103 |
'default' => false, |
| 104 |
), |
| 105 |
|
| 106 |
'titleEffect' => array( |
| 107 |
'type' => 'string', |
| 108 |
'default' => 'none', |
| 109 |
), |
| 110 |
|
| 111 |
|
| 112 |
'titleUnderlineEffect' => array( |
| 113 |
'type' => 'string', |
| 114 |
'default' => 'leftToRight', |
| 115 |
), |
| 116 |
'titleEffectColor' => array( |
| 117 |
'type' => 'string', |
| 118 |
'default' => '#0054FB', |
| 119 |
), |
| 120 |
|
| 121 |
); |
| 122 |
return array_merge( $post_slider_two_attributes, $shared_attributes, $carousel_attributes ); |
| 123 |
|