PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.16.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.16.0
2.16.0 2.15.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 All 83 releases
← All changes | includes/blocks/price-menu/attributes.php +23 -6 2.9.1 → 2.16.0 View file →
@@ -17,8 +17,12 @@
17 17 'block_id' => [
18 18 'type' => 'string',
19 19 'default' => '',
20 20 ],
21 + 'blockVersion' => array(
22 + 'type' => 'number',
23 + 'default' => '',
24 + ),
21 25 'device' => [
22 26 'type' => 'string',
23 27 'default' => '',
24 28 ],
@@ -67,13 +71,13 @@
67 71 'default' => 'p',
68 72 ],
69 73 'descriptionColor' => [
70 74 'type' => 'string',
71 - 'default' => '#74777C',
75 + 'default' => '#595959',
72 76 ],
73 77 // divider related attributes
74 78 'placeDivider' => [
75 - 'type' => 'string',
79 + 'type' => [ 'string', 'object' ],
76 80 'default' => 'near title',
77 81 ],
78 82 'dividerPatternUrl' => [
79 83 'type' => 'string',
@@ -87,9 +91,9 @@
87 91 'type' => 'string',
88 92 'default' => '#000000',
89 93 ],
90 94 'placePrice' => [
91 - 'type' => 'string',
95 + 'type' => [ 'string', 'object' ],
92 96 'default' => 'right',
93 97 ],
94 98 'priceTag' => [
95 99 'type' => 'string',
@@ -98,8 +102,12 @@
98 102 'priceColor' => [
99 103 'type' => 'string',
100 104 'default' => '#595959',
101 105 ],
106 + 'priceAlignmentCustom' => [
107 + 'type' => 'boolean',
108 + 'default' => false,
109 + ],
102 110 ];
103 111
104 112 $attributes = array_merge(
105 113 $attributes,
@@ -140,11 +148,12 @@
140 148 'attributeName' => 'width',
141 149 'attributeObjectKey' => 'value',
142 150 'isResponsive' => true,
143 151 'defaultValue' => 100,
144 - 'defaultValueMobile' => 100,
145 - 'defaultValueTablet' => 100,
146 - 'hasUnit' => false,
152 + 'defaultValueMobile' => '',
153 + 'defaultValueTablet' => '',
154 + 'hasUnit' => true,
155 + 'unitDefaultValue' => '',
147 156 ] ),
148 157 Range::get_attribute( [
149 158 'attributeName' => 'weight',
150 159 'isResponsive' => false,
@@ -161,8 +170,16 @@
161 170 'isResponsive' => true,
162 171 'defaultValue' => 10,
163 172 'defaultValueMobile' => 3,
164 173 'defaultValueTablet' => 1,
174 + 'hasUnit' => true,
175 + 'unitDefaultValue' => 'px',
176 + ] ),
177 + Range::get_attribute( [
178 + 'attributeName' => 'titlePriceGap',
179 + 'attributeObjectKey' => 'value',
180 + 'isResponsive' => true,
181 + 'defaultValue' => '',
165 182 'hasUnit' => true,
166 183 'unitDefaultValue' => 'px',
167 184 ] ),
168 185 );