PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.14.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.14.0
2.14.0 2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 81 releases
← All changes | includes/blocks/countdown/attributes.php +27 -1 2.9.1 → 2.14.0 View file →
@@ -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() );