PluginProbe
Elementor Website Builder – more than just a page builder / 3.35.8
Elementor Website Builder – more than just a page builder v3.35.8
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 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | modules/atomic-widgets/elements/div-block/div-block.php +2 -25 4.3.0-beta33.35.8 View file →
@@ -1,10 +1,8 @@
1 1 <?php
2 2 namespace Elementor\Modules\AtomicWidgets\Elements\Div_Block;
3 3
4 4 use Elementor\Modules\AtomicWidgets\Elements\Base\Atomic_Element_Base;
5 -use Elementor\Modules\AtomicWidgets\Elements\Base\Has_Element_Template;
6 -use Elementor\Modules\AtomicWidgets\Elements\Base\Html_Tag_Computer;
7 5 use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\String_Prop_Type;
8 6 use Elementor\Modules\AtomicWidgets\PropTypes\Size_Prop_Type;
9 7 use Elementor\Modules\AtomicWidgets\Styles\Style_Definition;
10 8 use Elementor\Modules\AtomicWidgets\PropTypes\Attributes_Prop_Type;
@@ -22,10 +20,8 @@
22 20 exit; // Exit if accessed directly.
23 21 }
24 22
25 23 class Div_Block extends Atomic_Element_Base {
26 - use Has_Element_Template;
27 -
28 24 const BASE_STYLE_KEY = 'base';
29 25
30 26 public function __construct( $data = [], $args = null ) {
31 27 parent::__construct( $data, $args );
@@ -44,9 +40,9 @@
44 40 return esc_html__( 'Div block', 'elementor' );
45 41 }
46 42
47 43 public function get_keywords() {
48 - return [ 'ato', 'atom', 'atoms', 'atomic', 'container', 'wrapper', 'section', 'row', 'column', 'div', 'box', 'layout' ];
44 + return [ 'ato', 'atom', 'atoms', 'atomic' ];
49 45 }
50 46
51 47 public function get_icon() {
52 48 return 'eicon-div-block';
@@ -51,12 +47,8 @@
51 47 public function get_icon() {
52 48 return 'eicon-div-block';
53 49 }
54 50
55 - public static function get_computed_html_tag( array $settings ): string {
56 - return Html_Tag_Computer::compute( $settings, 'div' );
57 - }
58 -
59 51 protected static function define_props_schema(): array {
60 52 $tag_dependencies = Dependency_Manager::make( Dependency_Manager::RELATION_AND )
61 53 ->where( [
62 54 'operator' => 'ne',
@@ -79,11 +71,10 @@
79 71 return [
80 72 'classes' => Classes_Prop_Type::make()
81 73 ->default( [] ),
82 74 'tag' => String_Prop_Type::make()
83 - ->enum( [ 'div', 'header', 'section', 'article', 'aside', 'footer', 'a', 'button', 'main', 'nav' ] )
75 + ->enum( [ 'div', 'header', 'section', 'article', 'aside', 'footer', 'a', 'button' ] )
84 76 ->default( 'div' )
85 - ->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.' )
86 77 ->set_dependencies( $tag_dependencies ),
87 78 'link' => Link_Prop_Type::make(),
88 79 'attributes' => Attributes_Prop_Type::make()->meta( Overridable_Prop_Type::ignore() ),
89 80 ];
@@ -120,16 +111,8 @@
120 111 [
121 112 'value' => 'footer',
122 113 'label' => 'Footer',
123 114 ],
124 - [
125 - 'value' => 'main',
126 - 'label' => 'Main',
127 - ],
128 - [
129 - 'value' => 'nav',
130 - 'label' => 'Nav',
131 - ],
132 115 ])
133 116 ->set_fallback_labels( [
134 117 'a' => 'a (link)',
135 118 ] )
@@ -199,12 +182,6 @@
199 182 $attributes = array_merge( $attributes, $link_attributes );
200 183 }
201 184
202 185 $this->add_render_attribute( '_wrapper', array_merge( $initial_attributes, $attributes ) );
203 - }
204 -
205 - protected function get_templates(): array {
206 - return [
207 - 'elementor/elements/div-block' => __DIR__ . '/div-block.html.twig',
208 - ];
209 186 }
210 187 }