PluginProbe
Elementor Website Builder – more than just a page builder / 4.1.4
Elementor Website Builder – more than just a page builder v4.1.4
4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← All changes | modules/atomic-widgets/elements/flexbox/flexbox.php +3 -18 4.3.1 → 4.1.4 View file →
@@ -2,9 +2,8 @@
2 2 namespace Elementor\Modules\AtomicWidgets\Elements\Flexbox;
3 3
4 4 use Elementor\Modules\AtomicWidgets\Elements\Base\Atomic_Element_Base;
5 5 use Elementor\Modules\AtomicWidgets\Elements\Base\Has_Element_Template;
6 -use Elementor\Modules\AtomicWidgets\Elements\Base\Html_Tag_Computer;
7 6 use Elementor\Modules\AtomicWidgets\PropDependencies\Manager as Dependency_Manager;
8 7 use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\String_Prop_Type;
9 8 use Elementor\Modules\AtomicWidgets\PropTypes\Size_Prop_Type;
10 9 use Elementor\Modules\AtomicWidgets\Styles\Style_Definition;
@@ -35,10 +34,8 @@
35 34 public static function get_type() {
36 35 return 'e-flexbox';
37 36 }
38 37
39 - public static $widget_description = 'A container (div) with flex display and flex-direction row by default.';
40 -
41 38 public static function get_element_type(): string {
42 39 return 'e-flexbox';
43 40 }
44 41
@@ -46,9 +43,9 @@
46 43 return esc_html__( 'Flexbox', 'elementor' );
47 44 }
48 45
49 46 public function get_keywords() {
50 - return [ 'ato', 'atom', 'atoms', 'atomic', 'container', 'wrapper', 'section', 'row', 'column', 'flex', 'layout' ];
47 + return [ 'ato', 'atom', 'atoms', 'atomic' ];
51 48 }
52 49
53 50 public function get_icon() {
54 51 return 'eicon-flexbox';
@@ -53,12 +50,8 @@
53 50 public function get_icon() {
54 51 return 'eicon-flexbox';
55 52 }
56 53
57 - public static function get_computed_html_tag( array $settings ): string {
58 - return Html_Tag_Computer::compute( $settings, 'div' );
59 - }
60 -
61 54 protected static function define_props_schema(): array {
62 55 $tag_dependencies = Dependency_Manager::make( Dependency_Manager::RELATION_AND )
63 56 ->where( [
64 57 'operator' => 'ne',
@@ -81,11 +74,11 @@
81 74 return [
82 75 'classes' => Classes_Prop_Type::make()
83 76 ->default( [] ),
84 77 'tag' => String_Prop_Type::make()
85 - ->enum( [ 'div', 'header', 'section', 'article', 'aside', 'footer', 'a', 'button', 'main', 'nav' ] )
78 + ->enum( [ 'div', 'header', 'section', 'article', 'aside', 'footer', 'a', 'button' ] )
86 79 ->default( 'div' )
87 - ->description( 'The HTML tag for the flexbox container. One of: div, header, section, article, aside, footer, main, nav, a (link), or button.' )
80 + ->description( 'The HTML tag for the flexbox container. Could be div, header, section, article, aside, footer, or a (link).' )
88 81 ->set_dependencies( $tag_dependencies ),
89 82 'link' => Link_Prop_Type::make(),
90 83 'attributes' => Attributes_Prop_Type::make()->meta( Overridable_Prop_Type::ignore() ),
91 84 ];
@@ -123,16 +116,8 @@
123 116 ],
124 117 [
125 118 'value' => 'footer',
126 119 'label' => 'Footer',
127 - ],
128 - [
129 - 'value' => 'main',
130 - 'label' => 'Main',
131 - ],
132 - [
133 - 'value' => 'nav',
134 - 'label' => 'Nav',
135 120 ],
136 121 ])
137 122 ->set_label( esc_html__( 'HTML Tag', 'elementor' ) )
138 123 ->set_fallback_labels( [