| 1 |
<?php |
| 2 |
/** |
| 3 |
* Post list 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_list_two_attributes = array( |
| 14 |
'paginationEnable' => array( |
| 15 |
'type' => 'boolean', |
| 16 |
'default' => true, |
| 17 |
), |
| 18 |
'largeItemPadding' => $this->spacing_attribute( 30, 30, 30, 30 ), |
| 19 |
'readMoreTextColor' => array( |
| 20 |
'type' => 'object', |
| 21 |
'default' => array( |
| 22 |
'color' => '', |
| 23 |
'hover' => 'var(--smart-post-secondary)', |
| 24 |
), |
| 25 |
), |
| 26 |
'postListLayout' => array( |
| 27 |
'type' => 'string', |
| 28 |
'default' => 'sp-smart-post-list-two-layout-one', |
| 29 |
), |
| 30 |
'verticalGap' => $this->ranger_attribute( 24 ), |
| 31 |
'dividerBorderStyle' => array( |
| 32 |
'type' => 'string', |
| 33 |
'default' => 'solid', |
| 34 |
), |
| 35 |
'showHideDivider' => array( |
| 36 |
'type' => 'boolean', |
| 37 |
'default' => false, |
| 38 |
), |
| 39 |
'dividerAlignment' => array( |
| 40 |
'type' => 'string', |
| 41 |
'default' => 'center', |
| 42 |
), |
| 43 |
'dividerBg' => array( |
| 44 |
'type' => 'object', |
| 45 |
'default' => array( |
| 46 |
'color' => array( |
| 47 |
'style' => 'bgColor', |
| 48 |
'transparent' => '', |
| 49 |
'solidColor' => '#E0E0E0', |
| 50 |
'gradient' => 'linear-gradient(162deg, rgba(128, 128, 214, 0.2) 0%, rgba(136, 169, 231, 0.2) 51%, rgba(144, 234, 228, 0.2) 100%)', |
| 51 |
), |
| 52 |
), |
| 53 |
), |
| 54 |
'dividerWidth' => array( |
| 55 |
'type' => 'object', |
| 56 |
'default' => array( |
| 57 |
'device' => array( |
| 58 |
'Desktop' => 100, |
| 59 |
'Tablet' => '', |
| 60 |
'Mobile' => '', |
| 61 |
), |
| 62 |
'unit' => array( |
| 63 |
'Desktop' => '%', |
| 64 |
'Tablet' => 'px', |
| 65 |
'Mobile' => 'px', |
| 66 |
), |
| 67 |
), |
| 68 |
), |
| 69 |
'dividerHeight' => $this->ranger_attribute( 1 ), |
| 70 |
'spaceBetweenListItems' => $this->ranger_attribute( 5 ), |
| 71 |
'contentAreaPadding' => $this->spacing_attribute(), |
| 72 |
); |
| 73 |
|
| 74 |
$post_list_two_attributes_updated_attr = $this->change_attribute_data( |
| 75 |
$shared_attributes, |
| 76 |
array( |
| 77 |
array( |
| 78 |
'attrName' => 'excerptShow', |
| 79 |
'value' => true, |
| 80 |
), |
| 81 |
array( |
| 82 |
'attrName' => 'showReadMoreButton', |
| 83 |
'value' => true, |
| 84 |
), |
| 85 |
array( |
| 86 |
'attrName' => 'imageSpace', |
| 87 |
'value' => '', |
| 88 |
), |
| 89 |
) |
| 90 |
); |
| 91 |
return array_merge( |
| 92 |
$post_list_two_attributes_updated_attr, |
| 93 |
$post_list_two_attributes, |
| 94 |
array( |
| 95 |
'paginationType' => array( |
| 96 |
'type' => 'string', |
| 97 |
'default' => 'none', |
| 98 |
), |
| 99 |
) |
| 100 |
); |
| 101 |
|