| @@ -8,8 +8,9 @@ | ||
| 8 | 8 | use ABlocks\Controls\Typography; |
| 9 | 9 | use ABlocks\Controls\BoxShadow; |
| 10 | 10 | use ABlocks\Controls\Border; |
| 11 | 11 | use ABlocks\Components\ButtonGroup; |
| 12 | +use ABlocks\Controls\Dimensions; | |
| 12 | 13 | |
| 13 | 14 | |
| 14 | 15 | $attributes = [ |
| 15 | 16 | 'block_id' => [ |
| @@ -15,8 +16,12 @@ | ||
| 15 | 16 | 'block_id' => [ |
| 16 | 17 | 'type' => 'string', |
| 17 | 18 | 'default' => '', |
| 18 | 19 | ], |
| 20 | + 'blockVersion' => [ | |
| 21 | + 'type' => 'number', | |
| 22 | + 'default' => '', | |
| 23 | + ], | |
| 19 | 24 | 'targetTime' => [ |
| 20 | 25 | 'type' => 'string', |
| 21 | 26 | 'default' => '', |
| 22 | 27 | ], |
| @@ -111,8 +116,28 @@ | ||
| 111 | 116 | 'isAction' => [ |
| 112 | 117 | 'type' => 'boolean', |
| 113 | 118 | 'default' => true, |
| 114 | 119 | ], |
| 120 | + 'evergreen' => [ | |
| 121 | + 'type' => 'boolean', | |
| 122 | + 'default' => false, | |
| 123 | + ], | |
| 124 | + 'evergreenDays' => [ | |
| 125 | + 'type' => 'number', | |
| 126 | + 'default' => 0, | |
| 127 | + ], | |
| 128 | + 'evergreenHours' => [ | |
| 129 | + 'type' => 'number', | |
| 130 | + 'default' => 0, | |
| 131 | + ], | |
| 132 | + 'evergreenMinutes' => [ | |
| 133 | + 'type' => 'number', | |
| 134 | + 'default' => 0, | |
| 135 | + ], | |
| 136 | + 'evergreenRestart' => [ | |
| 137 | + 'type' => 'boolean', | |
| 138 | + 'default' => false, | |
| 139 | + ], | |
| 115 | 140 | 'action' => [ |
| 116 | 141 | 'type' => 'string', |
| 117 | 142 | 'default' => 'none', |
| 118 | 143 | ], |
| @@ -184,9 +209,9 @@ | ||
| 184 | 209 | ] ), |
| 185 | 210 | ButtonGroup::get_attribute( 'orient', true, [ |
| 186 | 211 | 'value' => 'row', |
| 187 | 212 | ] ), |
| 188 | - ButtonGroup::get_attribute( 'justifyDep', true, [ | |
| 213 | + ButtonGroup::get_attribute( 'justificationAlign', true, [ | |
| 189 | 214 | 'value' => 'center', |
| 190 | 215 | ] ), |
| 191 | 216 | ButtonGroup::get_attribute( 'alignment', true, [ |
| 192 | 217 | 'value' => 'stretch', |
| @@ -225,8 +250,9 @@ | ||
| 225 | 250 | 'defaultValue' => 5, |
| 226 | 251 | 'hasUnit' => true, |
| 227 | 252 | 'unitDefaultValue' => 'px', |
| 228 | 253 | ] ), |
| 254 | + Dimensions::get_attribute( 'padding', true ), | |
| 229 | 255 | $attributes |
| 230 | 256 | ); |
| 231 | 257 | |
| 232 | 258 | return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() ); |