| 1 |
<?php |
| 2 |
/** |
| 3 |
* Buttons 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 |
return array( |
| 13 |
'uniqueId' => array( |
| 14 |
'type' => 'string', |
| 15 |
'default' => '', |
| 16 |
), |
| 17 |
'innerBlockId' => array( |
| 18 |
'type' => 'string', |
| 19 |
'default' => '', |
| 20 |
), |
| 21 |
'dynamicCss' => array( 'type' => 'string' ), |
| 22 |
'fullWidthBtnEnable' => array( |
| 23 |
'type' => 'boolean', |
| 24 |
'default' => false, |
| 25 |
), |
| 26 |
'buttonGap' => array( |
| 27 |
'type' => 'object', |
| 28 |
'default' => array( |
| 29 |
'device' => array( |
| 30 |
'Desktop' => 16, |
| 31 |
'Tablet' => '', |
| 32 |
'Mobile' => '', |
| 33 |
), |
| 34 |
'unit' => array( |
| 35 |
'Desktop' => 'px', |
| 36 |
'Tablet' => 'px', |
| 37 |
'Mobile' => 'px', |
| 38 |
), |
| 39 |
), |
| 40 |
), |
| 41 |
'buttonsMargin' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ), |
| 42 |
'buttonsHorizontalAlignment' => array( |
| 43 |
'type' => 'string', |
| 44 |
'default' => 'flex-start', |
| 45 |
), |
| 46 |
'buttonsVerticalAlignment' => array( |
| 47 |
'type' => 'string', |
| 48 |
'default' => 'flex-start', |
| 49 |
), |
| 50 |
'buttonsAlignment' => array( |
| 51 |
'type' => 'string', |
| 52 |
'default' => 'horizontal', |
| 53 |
), |
| 54 |
'isPreview' => array( |
| 55 |
'type' => 'boolean', |
| 56 |
'default' => false, |
| 57 |
), |
| 58 |
'additionalCssClass' => array( |
| 59 |
'type' => 'string', |
| 60 |
'default' => '', |
| 61 |
), |
| 62 |
'customCss' => array( |
| 63 |
'type' => 'string', |
| 64 |
'default' => '', |
| 65 |
), |
| 66 |
'hideOnDesktop' => array( |
| 67 |
'type' => 'boolean', |
| 68 |
'default' => false, |
| 69 |
), |
| 70 |
'hideOnTablet' => array( |
| 71 |
'type' => 'boolean', |
| 72 |
'default' => false, |
| 73 |
), |
| 74 |
'hideOnMobile' => array( |
| 75 |
'type' => 'boolean', |
| 76 |
'default' => false, |
| 77 |
), |
| 78 |
'globalBreakPointData' => array( |
| 79 |
'type' => 'object', |
| 80 |
'default' => array(), |
| 81 |
), |
| 82 |
); |
| 83 |
|