| @@ -4,8 +4,9 @@ | ||
| 4 | 4 | } |
| 5 | 5 | use ABlocks\Controls\Range; |
| 6 | 6 | use ABlocks\Controls\BackgroundOverlay; |
| 7 | 7 | use ABlocks\Components\ButtonGroup; |
| 8 | +use ABlocks\Controls\Link; | |
| 8 | 9 | |
| 9 | 10 | $attributes = [ |
| 10 | 11 | 'block_id' => array( |
| 11 | 12 | 'type' => 'string', |
| @@ -10,8 +11,12 @@ | ||
| 10 | 11 | 'block_id' => array( |
| 11 | 12 | 'type' => 'string', |
| 12 | 13 | 'default' => '' |
| 13 | 14 | ), |
| 15 | + 'blockVersion' => array( | |
| 16 | + 'type' => 'number', | |
| 17 | + 'default' => '', | |
| 18 | + ), | |
| 14 | 19 | 'className' => [ |
| 15 | 20 | 'type' => 'string', |
| 16 | 21 | 'default' => '', |
| 17 | 22 | ], |
| @@ -71,9 +76,51 @@ | ||
| 71 | 76 | 'wrapMobile' => [ |
| 72 | 77 | 'type' => 'string', |
| 73 | 78 | 'default' => '', |
| 74 | 79 | ], |
| 80 | + 'layout' => [ | |
| 81 | + 'type' => 'string', | |
| 82 | + 'default' => '', | |
| 83 | + ], | |
| 84 | + 'htmlTag' => [ | |
| 85 | + 'type' => 'string', | |
| 86 | + 'default' => '', | |
| 87 | + ], | |
| 75 | 88 | |
| 89 | + // shape divider | |
| 90 | + 'shapeTop' => [ | |
| 91 | + 'type' => 'string', | |
| 92 | + 'default' => '', | |
| 93 | + ], | |
| 94 | + 'shapeBottom' => [ | |
| 95 | + 'type' => 'string', | |
| 96 | + 'default' => '', | |
| 97 | + ], | |
| 98 | + 'shapeTopColor' => [ | |
| 99 | + 'type' => 'string', | |
| 100 | + 'default' => '#61CE70', | |
| 101 | + ], | |
| 102 | + 'shapeBottomColor' => [ | |
| 103 | + 'type' => 'string', | |
| 104 | + 'default' => '#61CE70', | |
| 105 | + ], | |
| 106 | + 'bottomShapeBringToFront' => [ | |
| 107 | + 'type' => 'boolean', | |
| 108 | + 'default' => false, | |
| 109 | + ], | |
| 110 | + 'topShapeBringToFront' => [ | |
| 111 | + 'type' => 'boolean', | |
| 112 | + 'default' => false, | |
| 113 | + ], | |
| 114 | + 'topShapeFlip' => [ | |
| 115 | + 'type' => 'boolean', | |
| 116 | + 'default' => false, | |
| 117 | + ], | |
| 118 | + 'bottomShapeFlip' => [ | |
| 119 | + 'type' => 'boolean', | |
| 120 | + 'default' => false, | |
| 121 | + ], | |
| 122 | + | |
| 76 | 123 | ]; |
| 77 | 124 | |
| 78 | 125 | $columnGap = Range::get_attribute([ |
| 79 | 126 | 'attributeName' => 'gap', |
| @@ -91,9 +138,8 @@ | ||
| 91 | 138 | 'hasUnit' => true, |
| 92 | 139 | 'unitDefaultValue' => 'px', |
| 93 | 140 | ]); |
| 94 | 141 | |
| 95 | - | |
| 96 | 142 | $attributes = array_merge( |
| 97 | 143 | $attributes, |
| 98 | 144 | [ |
| 99 | 145 | 'gap' => [ |
| @@ -135,8 +181,26 @@ | ||
| 135 | 181 | 'hasUnit' => true, |
| 136 | 182 | 'unitDefaultValue' => '%', |
| 137 | 183 | ]), |
| 138 | 184 | Range::get_attribute([ |
| 185 | + 'attributeName' => 'gridColumn', | |
| 186 | + 'attributeObjectKey' => 'value', | |
| 187 | + 'isResponsive' => true, | |
| 188 | + 'defaultValue' => 0, | |
| 189 | + 'defaultValueTablet' => 2, | |
| 190 | + 'defaultValueMobile' => 1, | |
| 191 | + 'hasUnit' => false, | |
| 192 | + 'unitDefaultValue' => '', | |
| 193 | + ]), | |
| 194 | + Range::get_attribute([ | |
| 195 | + 'attributeName' => 'gridRow', | |
| 196 | + 'attributeObjectKey' => 'value', | |
| 197 | + 'isResponsive' => true, | |
| 198 | + 'defaultValue' => '', | |
| 199 | + 'hasUnit' => false, | |
| 200 | + 'unitDefaultValue' => '', | |
| 201 | + ]), | |
| 202 | + Range::get_attribute([ | |
| 139 | 203 | 'attributeName' => 'containerContentWidth', |
| 140 | 204 | 'attributeObjectKey' => 'value', |
| 141 | 205 | 'isResponsive' => true, |
| 142 | 206 | 'defaultValue' => '', |
| @@ -142,8 +206,41 @@ | ||
| 142 | 206 | 'defaultValue' => '', |
| 143 | 207 | 'hasUnit' => true, |
| 144 | 208 | 'unitDefaultValue' => 'px', |
| 145 | 209 | ]), |
| 210 | + Range::get_attribute([ | |
| 211 | + 'attributeName' => 'shapeBottomHeight', | |
| 212 | + 'attributeObjectKey' => 'value', | |
| 213 | + 'isResponsive' => true, | |
| 214 | + 'defaultValue' => '100', | |
| 215 | + 'hasUnit' => true, | |
| 216 | + 'unitDefaultValue' => 'px', | |
| 217 | + ]), | |
| 218 | + Range::get_attribute([ | |
| 219 | + 'attributeName' => 'shapeBottomWidth', | |
| 220 | + 'attributeObjectKey' => 'value', | |
| 221 | + 'isResponsive' => true, | |
| 222 | + 'defaultValue' => '100', | |
| 223 | + 'hasUnit' => true, | |
| 224 | + 'unitDefaultValue' => '%', | |
| 225 | + ]), | |
| 226 | + Range::get_attribute([ | |
| 227 | + 'attributeName' => 'shapeTopHeight', | |
| 228 | + 'attributeObjectKey' => 'value', | |
| 229 | + 'isResponsive' => true, | |
| 230 | + 'defaultValue' => '100', | |
| 231 | + 'hasUnit' => true, | |
| 232 | + 'unitDefaultValue' => 'px', | |
| 233 | + ]), | |
| 234 | + Range::get_attribute([ | |
| 235 | + 'attributeName' => 'shapeTopWidth', | |
| 236 | + 'attributeObjectKey' => 'value', | |
| 237 | + 'isResponsive' => true, | |
| 238 | + 'defaultValue' => '100', | |
| 239 | + 'hasUnit' => true, | |
| 240 | + 'unitDefaultValue' => '%', | |
| 241 | + ]), | |
| 146 | 242 | BackgroundOverlay::get_attribute( '_backgroundOverlay', true ), |
| 243 | + Link::get_attribute( 'link' ), | |
| 147 | 244 | ); |
| 148 | 245 | |
| 149 | 246 | return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() ); |