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/tabs/attributes.php +40 -9 2.9.1 → 2.14.0 View file →
@@ -1,5 +1,10 @@
1 1 <?php
2 +
3 +if ( ! defined( 'ABSPATH' ) ) {
4 + exit;
5 +}
6 +
2 7 use ABlocks\Controls\Typography;
3 8 use ABlocks\Controls\Range;
4 9 use ABlocks\Controls\Icon;
5 10 use ABlocks\Controls\Dimensions;
@@ -11,8 +16,12 @@
11 16 'block_id' => [
12 17 'type' => 'string',
13 18 'default' => '',
14 19 ],
20 + 'blockVersion' => array(
21 + 'type' => 'number',
22 + 'default' => '',
23 + ),
15 24 'className' => [
16 25 'type' => 'string',
17 26 'default' => '',
18 27 ],
@@ -27,8 +36,12 @@
27 36 'clickedTabIndex' => [
28 37 'type' => 'number',
29 38 'default' => 0
30 39 ],
40 + 'tabMenusBackgroundColor' => [
41 + 'type' => 'string',
42 + 'default' => ''
43 + ],
31 44 'tabPositionChange' => [
32 45 'type' => 'boolean',
33 46 'default' => false
34 47 ],
@@ -79,8 +92,12 @@
79 92 'activeColorOptions' => [
80 93 'type' => 'string',
81 94 'default' => 'background'
82 95 ],
96 + 'enableHoverSwitch' => [
97 + 'type' => 'boolean',
98 + 'default' => false,
99 + ],
83 100 'tabMenuAlign' => [
84 101 'type' => 'string',
85 102 'default' => '',
86 103 ],
@@ -107,8 +124,12 @@
107 124 'tabBackgroundColor' => [
108 125 'type' => 'string',
109 126 'default' => '#F9F9F9'
110 127 ],
128 + 'contentBackgroundColor' => [
129 + 'type' => 'string',
130 + 'default' => ''
131 + ],
111 132 'tabActiveBackgroundColor' => [
112 133 'type' => 'string',
113 134 'default' => '#61CE70'
114 135 ],
@@ -121,18 +142,14 @@
121 142 'default' => '#0A0909'
122 143 ],
123 144 'subTitleTextColor' => [
124 145 'type' => 'string',
125 - 'default' => '#74777C'
146 + 'default' => '#3A3A3A '
126 147 ],
127 148 'subTitleTextActiveColor' => [
128 149 'type' => 'string',
129 - 'default' => '#74777C'
150 + 'default' => '#3A3A3A'
130 151 ],
131 - 'contentBackgroundColor' => [
132 - 'type' => 'string',
133 - 'default' => '#ffffff00'
134 - ],
135 152 'activeBorderColor' => [
136 153 'type' => 'string',
137 154 'default' => '#61CE70',
138 155 ],
@@ -236,20 +253,35 @@
236 253 'hasUnit' => true,
237 254 'unitDefaultValue' => 'px',
238 255 ] ),
239 256 Icon::get_attribute( 'icon' ),
240 - ButtonGroup::get_attribute( 'iconPosition', false, [
257 + ButtonGroup::get_attribute( 'iconPosition', true, [
241 258 'value' => 'left',
242 259 ] ),
243 260 ButtonGroup::get_attribute( 'tabsMenuPositioning', true, [
244 261 'value' => 'left',
245 262 ] ),
263 + ButtonGroup::get_attribute( 'tabsMenuDirection', true, [
264 + 'value' => 'row',
265 + ] ),
266 + ButtonGroup::get_attribute( 'tabsWidthType', true, [
267 + 'value' => 'auto',
268 + ] ),
269 + ButtonGroup::get_attribute( 'tabsContentWidthType', true, [
270 + 'value' => 'auto',
271 + ] ),
272 + ButtonGroup::get_attribute( 'tabWrap', true, [
273 + 'value' => 'wrap',
274 + ] ),
246 275 ButtonGroup::get_attribute( 'tabMenuAlignment', true, [
247 - 'value' => '',
276 + 'value' => 'center',
248 277 ] ),
249 278 ButtonGroup::get_attribute( 'menuContentAlignment', true, [
250 279 'value' => 'center',
251 280 ] ),
281 + Dimensions::get_attribute( 'tabMenusMargin', true ),
282 + Dimensions::get_attribute( 'tabMenusPadding', true ),
283 + Border::get_attribute( 'tabMenusBorder', true ),
252 284 Dimensions::get_attribute( 'contentMargin', true ),
253 285 Dimensions::get_attribute( 'iconPositionMargin', true ),
254 286 Typography::get_attribute( 'titleTypography', true ),
255 287 Typography::get_attribute( 'subTitleTypography', true ),
@@ -260,5 +292,4 @@
260 292 BoxShadow::get_attribute( 'boxShadow', true ),
261 293 );
262 294
263 295 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
264 -