| @@ -1,0 +1,61 @@ | ||
| 1 | +<?php | |
| 2 | + | |
| 3 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 4 | + exit; | |
| 5 | +} | |
| 6 | +use ABlocks\Controls\Range; | |
| 7 | + | |
| 8 | + | |
| 9 | +$attributes = [ | |
| 10 | + 'block_id' => [ | |
| 11 | + 'type' => 'string', | |
| 12 | + 'default' => '', | |
| 13 | + ], | |
| 14 | + 'blockVersion' => [ | |
| 15 | + 'type' => 'number', | |
| 16 | + 'default' => '', | |
| 17 | + ], | |
| 18 | + 'marqueeSlideLength' => [ | |
| 19 | + 'type' => 'number', | |
| 20 | + 'default' => 0, | |
| 21 | + ], | |
| 22 | + 'pauseOnHover' => [ | |
| 23 | + 'type' => 'boolean', | |
| 24 | + 'default' => true, | |
| 25 | + ], | |
| 26 | + 'marqueeDirection' => [ | |
| 27 | + 'type' => 'string', | |
| 28 | + 'default' => 'left', | |
| 29 | + ], | |
| 30 | + 'marqueeSpeed' => [ | |
| 31 | + 'type' => 'number', | |
| 32 | + 'default' => 10, | |
| 33 | + ], | |
| 34 | + 'loop' => [ | |
| 35 | + 'type' => 'boolean', | |
| 36 | + 'default' => false, | |
| 37 | + ], | |
| 38 | + 'enableShadow' => [ | |
| 39 | + 'type' => 'boolean', | |
| 40 | + 'default' => true, | |
| 41 | + ], | |
| 42 | + 'loopCount' => [ | |
| 43 | + 'type' => 'number', | |
| 44 | + 'default' => 2, | |
| 45 | + ], | |
| 46 | + | |
| 47 | +]; | |
| 48 | + | |
| 49 | +$attributes = array_merge( | |
| 50 | + $attributes, | |
| 51 | + Range::get_attribute([ | |
| 52 | + 'attributeName' => 'gap', | |
| 53 | + 'attributeObjectKey' => 'value', | |
| 54 | + 'isResponsive' => true, | |
| 55 | + 'hasUnit' => false, | |
| 56 | + 'unitDefaultValue' => 'px', | |
| 57 | + 'defaultValue' => 12, | |
| 58 | + ]) | |
| 59 | +); | |
| 60 | + | |
| 61 | +return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() ); | |