| 1 |
<?php |
| 2 |
|
| 3 |
use ABlocks\Controls\Range; |
| 4 |
|
| 5 |
if ( ! defined( 'ABSPATH' ) ) { |
| 6 |
exit; |
| 7 |
} |
| 8 |
|
| 9 |
$attributes = [ |
| 10 |
'block_id' => [ |
| 11 |
'type' => 'string', |
| 12 |
'default' => '' |
| 13 |
], |
| 14 |
'blockVersion' => array( |
| 15 |
'type' => 'number', |
| 16 |
'default' => '', |
| 17 |
), |
| 18 |
]; |
| 19 |
$attributes = array_merge( |
| 20 |
$attributes, |
| 21 |
Range::get_attribute( [ |
| 22 |
'attributeName' => 'spacerHeight', |
| 23 |
'attributeObjectKey' => 'value', |
| 24 |
'isResponsive' => true, |
| 25 |
'defaultValue' => 50, |
| 26 |
'hasUnit' => true, |
| 27 |
'unitDefaultValue' => 'px', |
| 28 |
'unitDefaultValueTablet' => 'px', |
| 29 |
'unitDefaultValueMobile' => 'px', |
| 30 |
] ), |
| 31 |
); |
| 32 |
return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() ); |
| 33 |
|
| 34 |
|