| @@ -5,8 +5,9 @@ | ||
| 5 | 5 | use ABlocks\Controls\Typography; |
| 6 | 6 | use ABlocks\Controls\Border; |
| 7 | 7 | use ABlocks\Controls\Range; |
| 8 | 8 | use ABlocks\Controls\BoxShadow; |
| 9 | +use ABlocks\Components\ButtonGroup; | |
| 9 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | 11 | exit; |
| 11 | 12 | } |
| 12 | 13 | |
| @@ -18,10 +19,8 @@ | ||
| 18 | 19 | 'background' => [ |
| 19 | 20 | 'type' => 'string', |
| 20 | 21 | 'default' => 'white' |
| 21 | 22 | ], |
| 22 | - | |
| 23 | - // flex direction start | |
| 24 | 23 | 'direction' => [ |
| 25 | 24 | 'type' => 'string', |
| 26 | 25 | 'default' => 'column', |
| 27 | 26 | ], |
| @@ -32,10 +31,8 @@ | ||
| 32 | 31 | 'directionMobile' => [ |
| 33 | 32 | 'type' => 'string', |
| 34 | 33 | 'default' => '', |
| 35 | 34 | ], |
| 36 | - // flex direction end | |
| 37 | - // flex 'justify content' start | |
| 38 | 35 | 'justify' => [ |
| 39 | 36 | 'type' => 'string', |
| 40 | 37 | 'default' => '', |
| 41 | 38 | ], |
| @@ -46,10 +43,8 @@ | ||
| 46 | 43 | 'justifyMobile' => [ |
| 47 | 44 | 'type' => 'string', |
| 48 | 45 | 'default' => '', |
| 49 | 46 | ], |
| 50 | - // flex 'justify content' end | |
| 51 | - // flex 'align items" start | |
| 52 | 47 | 'align' => [ |
| 53 | 48 | 'type' => 'string', |
| 54 | 49 | 'default' => '', |
| 55 | 50 | ], |
| @@ -60,10 +55,8 @@ | ||
| 60 | 55 | 'alignMobile' => [ |
| 61 | 56 | 'type' => 'string', |
| 62 | 57 | 'default' => '', |
| 63 | 58 | ], |
| 64 | - // flex 'align items" end | |
| 65 | - | |
| 66 | 59 | 'menuItemTextColor' => [ |
| 67 | 60 | 'type' => 'string', |
| 68 | 61 | 'default' => '' |
| 69 | 62 | ], |
| @@ -68,9 +61,9 @@ | ||
| 68 | 61 | 'default' => '' |
| 69 | 62 | ], |
| 70 | 63 | 'menuItemTextColorH' => [ |
| 71 | 64 | 'type' => 'string', |
| 72 | - 'default' => '#000000', | |
| 65 | + 'default' => '', | |
| 73 | 66 | ], |
| 74 | 67 | 'menuItemBackground' => [ |
| 75 | 68 | 'type' => 'string', |
| 76 | 69 | 'default' => '', |
| @@ -132,8 +125,11 @@ | ||
| 132 | 125 | ]; |
| 133 | 126 | |
| 134 | 127 | $attributes = array_merge( |
| 135 | 128 | $attributes, |
| 129 | + ButtonGroup::get_attribute( 'menuItemJustification', true, [ | |
| 130 | + 'value' => 'space-between', | |
| 131 | + ] ), | |
| 136 | 132 | BoxShadow::get_attribute( 'boxShadow', true ), |
| 137 | 133 | Dimensions::get_attribute( 'padding', false ), |
| 138 | 134 | Dimensions::get_attribute( 'menuItemPadding', false ), |
| 139 | 135 | Dimensions::get_attribute( 'menuItemMargin', false ), |