PluginProbe
Elementor Website Builder – more than just a page builder / 4.1.0-beta2
Elementor Website Builder – more than just a page builder v4.1.0-beta2
4.3.4 4.3.3 4.3.2 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 All 457 releases
← All changes | modules/atomic-widgets/elements/div-block/div-block.php +2 -18 4.3.4 → 4.1.0-beta2 View file →
@@ -2,9 +2,8 @@
2 2 namespace Elementor\Modules\AtomicWidgets\Elements\Div_Block;
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\PropTypes\Primitives\String_Prop_Type;
8 7 use Elementor\Modules\AtomicWidgets\PropTypes\Size_Prop_Type;
9 8 use Elementor\Modules\AtomicWidgets\Styles\Style_Definition;
10 9 use Elementor\Modules\AtomicWidgets\PropTypes\Attributes_Prop_Type;
@@ -35,10 +34,8 @@
35 34 public static function get_type() {
36 35 return 'e-div-block';
37 36 }
38 37
39 - public static $widget_description = 'A block container (div) for grouping and wrapping content, with default styles (see llm_guidance.default_styles).';
40 -
41 38 public static function get_element_type(): string {
42 39 return 'e-div-block';
43 40 }
44 41
@@ -46,9 +43,9 @@
46 43 return esc_html__( 'Div block', 'elementor' );
47 44 }
48 45
49 46 public function get_keywords() {
50 - return [ 'ato', 'atom', 'atoms', 'atomic', 'container', 'wrapper', 'section', 'row', 'column', 'div', 'box', 'layout' ];
47 + return [ 'ato', 'atom', 'atoms', 'atomic' ];
51 48 }
52 49
53 50 public function get_icon() {
54 51 return 'eicon-div-block';
@@ -53,12 +50,8 @@
53 50 public function get_icon() {
54 51 return 'eicon-div-block';
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,10 @@
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 div block container. One of: div, header, section, article, aside, footer, main, nav, a (link), or button. Do not use heading or paragraph tags.' )
88 80 ->set_dependencies( $tag_dependencies ),
89 81 'link' => Link_Prop_Type::make(),
90 82 'attributes' => Attributes_Prop_Type::make()->meta( Overridable_Prop_Type::ignore() ),
91 83 ];
@@ -121,16 +113,8 @@
121 113 ],
122 114 [
123 115 'value' => 'footer',
124 116 'label' => 'Footer',
125 - ],
126 - [
127 - 'value' => 'main',
128 - 'label' => 'Main',
129 - ],
130 - [
131 - 'value' => 'nav',
132 - 'label' => 'Nav',
133 117 ],
134 118 ])
135 119 ->set_fallback_labels( [
136 120 'a' => 'a (link)',