| 1 |
<?php |
| 2 |
/** |
| 3 |
* Post slider block attributes file 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_attributes = array( |
| 14 |
'postSliderLayout' => array( |
| 15 |
'type' => 'string', |
| 16 |
'default' => 'post-slider-layout-one', |
| 17 |
), |
| 18 |
'postSliderColumns' => array( |
| 19 |
'type' => 'object', |
| 20 |
'default' => array( |
| 21 |
'device' => array( |
| 22 |
'Desktop' => 3, |
| 23 |
'Tablet' => 2, |
| 24 |
'Mobile' => 1, |
| 25 |
), |
| 26 |
), |
| 27 |
), |
| 28 |
'postSliderHeight' => $this->ranger_attribute( 620, 350, 250 ), |
| 29 |
'postSliderSlideScroll' => array( |
| 30 |
'type' => 'object', |
| 31 |
'default' => array( |
| 32 |
'device' => array( |
| 33 |
'Desktop' => 1, |
| 34 |
'Tablet' => 1, |
| 35 |
'Mobile' => 1, |
| 36 |
), |
| 37 |
), |
| 38 |
), |
| 39 |
'postSliderHoverPause' => array( |
| 40 |
'type' => 'boolean', |
| 41 |
'default' => true, |
| 42 |
), |
| 43 |
'postSliderAnimationEffect' => array( |
| 44 |
'type' => 'string', |
| 45 |
'default' => 'slide', |
| 46 |
), |
| 47 |
'postSliderTabKeyNav' => array( |
| 48 |
'type' => 'boolean', |
| 49 |
'default' => false, |
| 50 |
), |
| 51 |
'postSliderMouseWheel' => array( |
| 52 |
'type' => 'boolean', |
| 53 |
'default' => false, |
| 54 |
), |
| 55 |
'postSliderFreeScroll' => array( |
| 56 |
'type' => 'boolean', |
| 57 |
'default' => false, |
| 58 |
), |
| 59 |
'postSliderNavArrow' => array( |
| 60 |
'type' => 'boolean', |
| 61 |
'default' => true, |
| 62 |
), |
| 63 |
'postSliderPaginationDots' => array( |
| 64 |
'type' => 'boolean', |
| 65 |
'default' => true, |
| 66 |
), |
| 67 |
'postSliderArrowStyle' => array( |
| 68 |
'type' => 'string', |
| 69 |
'default' => 'open', |
| 70 |
), |
| 71 |
'postSliderArrowSize' => $this->ranger_attribute( 20 ), |
| 72 |
'postSliderArrowWidth' => $this->ranger_attribute( 40 ), |
| 73 |
'postSliderArrowHeight' => $this->ranger_attribute( 32 ), |
| 74 |
'postSliderArrowSpaceBetween' => $this->ranger_attribute(), |
| 75 |
'postSliderArrowHorizontal' => $this->ranger_attribute(), |
| 76 |
'postSliderArrowVertical' => $this->ranger_attribute(), |
| 77 |
'postSliderArrowColor' => array( |
| 78 |
'type' => 'object', |
| 79 |
'default' => array( |
| 80 |
'color' => '#ffffff', |
| 81 |
'hoverColor' => '#4e4f52', |
| 82 |
), |
| 83 |
), |
| 84 |
'postSliderArrowBgColor' => array( |
| 85 |
'type' => 'object', |
| 86 |
'default' => array( |
| 87 |
'color' => '#4e4f52', |
| 88 |
'hoverColor' => '#ffffff', |
| 89 |
), |
| 90 |
), |
| 91 |
'postSliderArrowBorder' => array( |
| 92 |
'type' => 'object', |
| 93 |
'default' => array( |
| 94 |
'style' => 'none', |
| 95 |
'color' => '#4e4f52', |
| 96 |
'hoverColor' => '#4E4F52', |
| 97 |
), |
| 98 |
), |
| 99 |
'postSliderArrowBorderWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 100 |
'postSliderArrowBorderRadius' => $this->spacing_attribute( 50, 50, 50, 50, '%', true ), |
| 101 |
'postSliderBoxShadowEnable' => array( |
| 102 |
'type' => 'boolean', |
| 103 |
'default' => false, |
| 104 |
), |
| 105 |
'postSliderBoxShadow' => array( |
| 106 |
'type' => 'object', |
| 107 |
'default' => array( |
| 108 |
'device' => array( |
| 109 |
'Desktop' => array( |
| 110 |
'top' => 3, |
| 111 |
'right' => 3, |
| 112 |
'bottom' => 6, |
| 113 |
'left' => 0, |
| 114 |
), |
| 115 |
'Tablet' => array( |
| 116 |
'top' => '', |
| 117 |
'right' => '', |
| 118 |
'bottom' => '', |
| 119 |
'left' => '', |
| 120 |
), |
| 121 |
'Mobile' => array( |
| 122 |
'top' => '', |
| 123 |
'right' => '', |
| 124 |
'bottom' => '', |
| 125 |
'left' => '', |
| 126 |
), |
| 127 |
), |
| 128 |
'unit' => array( |
| 129 |
'Desktop' => 'outset', |
| 130 |
'Tablet' => 'outset', |
| 131 |
'Mobile' => 'outset', |
| 132 |
), |
| 133 |
'color' => '', |
| 134 |
'selectDefault' => 'var(--smart-post-shadow-medium-4dp)', |
| 135 |
), |
| 136 |
), |
| 137 |
'postSliderPaginationStyle' => array( |
| 138 |
'type' => 'string', |
| 139 |
'default' => 'dots', |
| 140 |
), |
| 141 |
'postSliderPaginationWidth' => $this->ranger_attribute( 8 ), |
| 142 |
'postSliderPaginationHeight' => $this->ranger_attribute( 8 ), |
| 143 |
'postSliderPaginationSpaceBetween' => $this->ranger_attribute( 4 ), |
| 144 |
'postSliderPaginationHorizontal' => $this->ranger_attribute(), |
| 145 |
'postSliderPaginationVertical' => $this->ranger_attribute(), |
| 146 |
'postSliderPaginationTextColor' => array( |
| 147 |
'type' => 'object', |
| 148 |
'default' => array( |
| 149 |
'color' => '#ffffff', |
| 150 |
'activeColor' => '#4e4f52', |
| 151 |
), |
| 152 |
), |
| 153 |
'postSliderPaginationColor' => array( |
| 154 |
'type' => 'object', |
| 155 |
'default' => array( |
| 156 |
'color' => '#dddddd', |
| 157 |
'hoverColor' => '#4e4f52', |
| 158 |
), |
| 159 |
), |
| 160 |
'postSliderPaginationBorder' => array( |
| 161 |
'type' => 'object', |
| 162 |
'default' => array( |
| 163 |
'style' => 'none', |
| 164 |
'color' => '#4e4f52', |
| 165 |
'hoverColor' => '#4E4F52', |
| 166 |
), |
| 167 |
), |
| 168 |
'postSliderPaginationBorderWidth' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 169 |
'postSliderPaginationBorderWidthHover' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 170 |
'postSliderGeneralContentAlign' => array( |
| 171 |
'type' => 'string', |
| 172 |
'default' => 'left', |
| 173 |
), |
| 174 |
'postSliderGeneralOpenIn' => array( |
| 175 |
'type' => 'string', |
| 176 |
'default' => 'new-tab', |
| 177 |
), |
| 178 |
'postSliderGeneralPreloader' => array( |
| 179 |
'type' => 'boolean', |
| 180 |
'default' => false, |
| 181 |
), |
| 182 |
'postSliderGeneralEqualHeight' => array( |
| 183 |
'type' => 'boolean', |
| 184 |
'default' => false, |
| 185 |
), |
| 186 |
'postSliderSubheadingLabel' => array( |
| 187 |
'type' => 'string', |
| 188 |
'default' => 'About Post Slider', |
| 189 |
), |
| 190 |
'carouselData' => array( |
| 191 |
'type' => 'string', |
| 192 |
'default' => '', |
| 193 |
), |
| 194 |
|
| 195 |
'titleEffect' => array( |
| 196 |
'type' => 'string', |
| 197 |
'default' => 'none', |
| 198 |
), |
| 199 |
|
| 200 |
|
| 201 |
'titleUnderlineEffect' => array( |
| 202 |
'type' => 'string', |
| 203 |
'default' => 'leftToRight', |
| 204 |
), |
| 205 |
'titleEffectColor' => array( |
| 206 |
'type' => 'string', |
| 207 |
'default' => '#fff', |
| 208 |
), |
| 209 |
|
| 210 |
|
| 211 |
); |
| 212 |
return array_merge( $post_slider_attributes, $shared_attributes, $carousel_attributes ); |
| 213 |
|