| 1 |
<?php |
| 2 |
/** |
| 3 |
* Post parent 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 |
return array( |
| 14 |
'layout' => array( |
| 15 |
'type' => 'string', |
| 16 |
'default' => 'layoutOne', |
| 17 |
), |
| 18 |
'uniqueId' => array( 'type' => 'string' ), |
| 19 |
'dynamicCss' => array( 'type' => 'string' ), |
| 20 |
'alignment' => array( |
| 21 |
'type' => 'string', |
| 22 |
'default' => 'center', |
| 23 |
), |
| 24 |
'gap' => array( |
| 25 |
'type' => 'object', |
| 26 |
'default' => array( |
| 27 |
'device' => array( |
| 28 |
'Desktop' => 16, |
| 29 |
'Tablet' => '', |
| 30 |
'Mobile' => '', |
| 31 |
), |
| 32 |
'unit' => array( |
| 33 |
'Desktop' => 'px', |
| 34 |
'Tablet' => 'px', |
| 35 |
'Mobile' => 'px', |
| 36 |
), |
| 37 |
), |
| 38 |
), |
| 39 |
'multipleFilterRelation' => array( |
| 40 |
'type' => 'string', |
| 41 |
'default' => 'and', |
| 42 |
), |
| 43 |
|
| 44 |
|
| 45 |
// style attr. |
| 46 |
'titleTypography' => array( |
| 47 |
'type' => 'object', |
| 48 |
'default' => array( |
| 49 |
'googleFont' => array( |
| 50 |
'family' => 'Default', |
| 51 |
'variants' => array( '300', '400', '500', '600', '700', '800' ), |
| 52 |
), |
| 53 |
'typography' => array( |
| 54 |
'family' => '', |
| 55 |
'fontWeight' => '500', |
| 56 |
'style' => 'normal', |
| 57 |
'transform' => 'uppercase', |
| 58 |
'decoration' => 'none', |
| 59 |
), |
| 60 |
), |
| 61 |
), |
| 62 |
'titleFontSize' => $this->ranger_attribute( 22 ), |
| 63 |
'titleLatterSpacing' => $this->ranger_attribute( 0 ), |
| 64 |
'titleWordSpacing' => $this->ranger_attribute( 0 ), |
| 65 |
'titleLineHeight' => array( |
| 66 |
'type' => 'object', |
| 67 |
'default' => array( |
| 68 |
'device' => array( |
| 69 |
'Desktop' => 1.25, |
| 70 |
'Tablet' => '', |
| 71 |
'Mobile' => '', |
| 72 |
), |
| 73 |
// 'unit' => array( |
| 74 |
// 'Desktop' => '%', |
| 75 |
// 'Tablet' => 'px', |
| 76 |
// 'Mobile' => 'px', |
| 77 |
// ), |
| 78 |
), |
| 79 |
), |
| 80 |
'optionTypography' => array( |
| 81 |
'type' => 'object', |
| 82 |
'default' => array( |
| 83 |
'googleFont' => array( |
| 84 |
'family' => 'Default', |
| 85 |
'variants' => array( '300', '400', '500', '600', '700', '800' ), |
| 86 |
), |
| 87 |
'typography' => array( |
| 88 |
'family' => '', |
| 89 |
'fontWeight' => '500', |
| 90 |
'style' => 'normal', |
| 91 |
'transform' => 'uppercase', |
| 92 |
'decoration' => 'none', |
| 93 |
), |
| 94 |
), |
| 95 |
), |
| 96 |
'optionFontSize' => $this->ranger_attribute( 22 ), |
| 97 |
'optionLatterSpacing' => $this->ranger_attribute( 0 ), |
| 98 |
'optionWordSpacing' => $this->ranger_attribute( 0 ), |
| 99 |
'optionLineHeight' => array( |
| 100 |
'type' => 'object', |
| 101 |
'default' => array( |
| 102 |
'device' => array( |
| 103 |
'Desktop' => 1.25, |
| 104 |
'Tablet' => '', |
| 105 |
'Mobile' => '', |
| 106 |
), |
| 107 |
// 'unit' => array( |
| 108 |
// 'Desktop' => '%', |
| 109 |
// 'Tablet' => 'px', |
| 110 |
// 'Mobile' => 'px', |
| 111 |
// ), |
| 112 |
), |
| 113 |
), |
| 114 |
'titleColor' => array( |
| 115 |
'type' => 'object', |
| 116 |
'default' => array( |
| 117 |
'color' => '#FFFFFF', |
| 118 |
'activeColor' => '#FFFFFF', |
| 119 |
), |
| 120 |
), |
| 121 |
'optionColor' => array( |
| 122 |
'type' => 'object', |
| 123 |
'default' => array( |
| 124 |
'color' => '#FFFFFF', |
| 125 |
'activeColor' => '#FFFFFF', |
| 126 |
), |
| 127 |
), |
| 128 |
'iconColor' => array( |
| 129 |
'type' => 'object', |
| 130 |
'default' => array( |
| 131 |
'color' => '#FFFFFF', |
| 132 |
'activeColor' => '#FFFFFF', |
| 133 |
), |
| 134 |
), |
| 135 |
'bgColor' => array( |
| 136 |
'type' => 'object', |
| 137 |
'default' => array( |
| 138 |
'color' => '#FFFFFF', |
| 139 |
'activeColor' => '#FFFFFF', |
| 140 |
), |
| 141 |
), |
| 142 |
'borderNormal' => array( |
| 143 |
'type' => 'object', |
| 144 |
'default' => array( |
| 145 |
'color' => '#4e4f52', |
| 146 |
'style' => 'solid', |
| 147 |
'hoverColor' => '#EF5D30', |
| 148 |
), |
| 149 |
), |
| 150 |
'borderHover' => array( |
| 151 |
'type' => 'object', |
| 152 |
'default' => array( |
| 153 |
'color' => '#4e4f52', |
| 154 |
'style' => 'solid', |
| 155 |
'hoverColor' => '#EF5D30', |
| 156 |
), |
| 157 |
), |
| 158 |
'borderWidthNormal' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 159 |
'borderWidthHover' => $this->spacing_attribute( 1, 1, 1, 1, 'px', true ), |
| 160 |
'borderRadiusNormal' => $this->spacing_attribute( 2, 2, 2, 2, 'px', true ), |
| 161 |
'borderRadiusHover' => $this->spacing_attribute( 2, 2, 2, 2, 'px', true ), |
| 162 |
'padding' => $this->spacing_attribute( 10, 10, 10, 10, 'px', true ), |
| 163 |
'margin' => $this->spacing_attribute( 0, 0, 0, 0, 'px', true ), |
| 164 |
); |
| 165 |
|