| 1 |
<?php |
| 2 |
/** |
| 3 |
* Thumbnail 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_thumbnail_two_attributes = array( |
| 14 |
'thumbnailSliderTwoLayout' => array( |
| 15 |
'type' => 'string', |
| 16 |
'default' => 'thumbnail-slider-two-layout-one', |
| 17 |
), |
| 18 |
'thumbnailTwoAlignment' => array( |
| 19 |
'type' => 'string', |
| 20 |
'default' => 'right', |
| 21 |
), |
| 22 |
'thumbnailTwoPosition' => array( |
| 23 |
'type' => 'string', |
| 24 |
'default' => 'bottom', |
| 25 |
), |
| 26 |
'thumbnailSliderTwoHeight' => $this->ranger_attribute( 620 ), |
| 27 |
'thumbnailTwoItemsHeight' => $this->ranger_attribute( 132, 132, 0, 'px' ), |
| 28 |
'thumbnailItemsToShow' => array( |
| 29 |
'type' => 'object', |
| 30 |
'default' => array( |
| 31 |
'device' => array( |
| 32 |
'Desktop' => 3, |
| 33 |
'Tablet' => 3, |
| 34 |
'Mobile' => '', |
| 35 |
), |
| 36 |
), |
| 37 |
), |
| 38 |
'thumbnailTwoSlideToScroll' => array( |
| 39 |
'type' => 'object', |
| 40 |
'default' => array( |
| 41 |
'device' => array( |
| 42 |
'Desktop' => 1, |
| 43 |
'Tablet' => 1, |
| 44 |
'Mobile' => 1, |
| 45 |
), |
| 46 |
), |
| 47 |
), |
| 48 |
'thumbnailTwoAnimationEffect' => array( |
| 49 |
'type' => 'string', |
| 50 |
'default' => 'slide', |
| 51 |
), |
| 52 |
'thumbnailTwoAdaptiveHeight' => array( |
| 53 |
'type' => 'boolean', |
| 54 |
'default' => false, |
| 55 |
), |
| 56 |
'thumbnailTwoTabKeyNavigation' => array( |
| 57 |
'type' => 'boolean', |
| 58 |
'default' => true, |
| 59 |
), |
| 60 |
'thumbnailTwoMouseWheelControl' => array( |
| 61 |
'type' => 'boolean', |
| 62 |
'default' => false, |
| 63 |
), |
| 64 |
'thumbnailTwoFreeScrollMode' => array( |
| 65 |
'type' => 'boolean', |
| 66 |
'default' => false, |
| 67 |
), |
| 68 |
'thumbnailTwoNavArrow' => array( |
| 69 |
'type' => 'boolean', |
| 70 |
'default' => false, |
| 71 |
), |
| 72 |
'thumbnailProgressPosition' => array( |
| 73 |
'type' => 'string', |
| 74 |
'default' => 'bottom', |
| 75 |
), |
| 76 |
'thumbnailProgressBarWidth' => $this->ranger_attribute( 100, 100, 100, '%' ), |
| 77 |
'thumbnailProgressThickness' => $this->ranger_attribute( 2, 2, 2 ), |
| 78 |
'thumbnailProgressColor' => array( |
| 79 |
'type' => 'object', |
| 80 |
'default' => array( |
| 81 |
'color' => array( |
| 82 |
'style' => 'bgColor', |
| 83 |
'translate' => '', |
| 84 |
'solidColor' => 'rgba(255, 255, 255, 0.6)', |
| 85 |
'gradient' => '', |
| 86 |
), |
| 87 |
'hover' => array( |
| 88 |
'style' => 'gradient', |
| 89 |
'translate' => '', |
| 90 |
'solidColor' => 'var(--sp-smart-primary-2-600)', |
| 91 |
'gradient' => 'linear-gradient(90deg, var(--sp-smart-primary-2-600) 0%, var(--sp-smart-primary-2-400) 65.02%);', |
| 92 |
), |
| 93 |
), |
| 94 |
), |
| 95 |
'thumbnailTwoGeneralPreloader' => array( |
| 96 |
'type' => 'boolean', |
| 97 |
'default' => false, |
| 98 |
), |
| 99 |
'thumbnailTwoThumbBGColor' => array( |
| 100 |
'type' => 'object', |
| 101 |
'default' => array( |
| 102 |
'color' => array( |
| 103 |
'style' => 'bgColor', |
| 104 |
'translate' => '', |
| 105 |
'solidColor' => '', |
| 106 |
'gradient' => '', |
| 107 |
), |
| 108 |
'hover' => array( |
| 109 |
'style' => 'bgColor', |
| 110 |
'translate' => '', |
| 111 |
'solidColor' => '', |
| 112 |
'gradient' => 'linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.68) 100%)', |
| 113 |
), |
| 114 |
), |
| 115 |
), |
| 116 |
'thumbnailThumbBGColor' => array( |
| 117 |
'type' => 'object', |
| 118 |
'default' => array( |
| 119 |
'color' => array( |
| 120 |
'style' => 'bgColor', |
| 121 |
'translate' => '', |
| 122 |
'solidColor' => '', |
| 123 |
'gradient' => '', |
| 124 |
), |
| 125 |
'hover' => array( |
| 126 |
'style' => 'bgColor', |
| 127 |
'translate' => '', |
| 128 |
'solidColor' => '', |
| 129 |
'gradient' => 'linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.68) 100%)', |
| 130 |
), |
| 131 |
), |
| 132 |
), |
| 133 |
'carouselData' => array( |
| 134 |
'type' => 'string', |
| 135 |
'default' => '', |
| 136 |
), |
| 137 |
'thumbnailsData' => array( |
| 138 |
'type' => 'string', |
| 139 |
'default' => '', |
| 140 |
), |
| 141 |
|
| 142 |
'titleEffect' => array( |
| 143 |
'type' => 'string', |
| 144 |
'default' => 'none', |
| 145 |
), |
| 146 |
|
| 147 |
|
| 148 |
'titleUnderlineEffect' => array( |
| 149 |
'type' => 'string', |
| 150 |
'default' => 'leftToRight', |
| 151 |
), |
| 152 |
'titleEffectColor' => array( |
| 153 |
'type' => 'string', |
| 154 |
'default' => '#fff', |
| 155 |
), |
| 156 |
|
| 157 |
); |
| 158 |
return array_merge( $post_thumbnail_two_attributes, $shared_attributes, $carousel_attributes ); |
| 159 |
|