[ 'type' => 'string', 'default' => '', ], 'blockVersion' => array( 'type' => 'number', 'default' => '', ), 'text' => [ 'type' => 'string', 'default' => 'Click here', ], 'buttonType' => [ 'type' => 'string', 'default' => '#ddd', ], 'buttonSize' => [ 'type' => 'string', 'default' => 'small', ], 'textColor' => [ 'type' => 'string', 'default' => '#000000', ], 'textColorH' => [ 'type' => 'string', 'default' => '', ], 'background' => [ 'type' => 'string', 'default' => '', ], 'backgroundH' => [ 'type' => 'string', 'default' => '', ], 'transition' => [ 'type' => 'number', 'default' => '', ], 'showIcon' => [ 'type' => 'boolean', 'default' => false, ], 'iconPosition' => [ 'type' => 'string', 'default' => 'left', ], ]; $attributes = array_merge( $attributes, Icon::get_attribute( 'icon', [ 'size' => '16' ] ), Link::get_attribute( 'link' ), Border::get_attribute( 'border', true ), Dimensions::get_attribute( 'padding', true ), Typography::get_attribute( 'typography', true ), TextShadow::get_attribute( 'textShadow' ), Alignment::get_attribute( 'position', true, [ 'value' => 'left' ] ), Alignment::get_attribute( 'alignment', true, [ 'value' => 'left' ] ), BoxShadow::get_attribute( 'boxShadow', true ), Range::get_attribute([ 'attributeName' => 'iconSpace', 'attributeObjectKey' => 'value', 'isResponsive' => true, 'defaultValue' => 10, 'hasUnit' => true, 'unitDefaultValue' => 'px', ]), ); return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );