PluginProbe
Elementor Website Builder – more than just a page builder / 3.32.3
Elementor Website Builder – more than just a page builder v3.32.3
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/atomic-divider/atomic-divider.php +3 -19 4.3.0 → 3.32.3 View file →
@@ -1,11 +1,10 @@
1 1 <?php
2 2
3 3 namespace Elementor\Modules\AtomicWidgets\Elements\Atomic_Divider;
4 4
5 -use Elementor\Modules\AtomicWidgets\Elements\Base\Atomic_Widget_Base;
6 -use Elementor\Modules\AtomicWidgets\Elements\Base\Has_Template;
7 -use Elementor\Modules\AtomicWidgets\Elements\Base\Html_Tag_Computer;
5 +use Elementor\Modules\AtomicWidgets\Elements\Atomic_Widget_Base;
6 +use Elementor\Modules\AtomicWidgets\Elements\Has_Template;
8 7 use Elementor\Modules\AtomicWidgets\PropTypes\Background_Prop_Type;
9 8 use Elementor\Modules\AtomicWidgets\PropTypes\Attributes_Prop_Type;
10 9 use Elementor\Modules\AtomicWidgets\PropTypes\Classes_Prop_Type;
11 10 use Elementor\Modules\AtomicWidgets\PropTypes\Color_Prop_Type;
@@ -13,9 +12,8 @@
13 12 use Elementor\Modules\AtomicWidgets\Styles\Style_Definition;
14 13 use Elementor\Modules\AtomicWidgets\Styles\Style_Variant;
15 14 use Elementor\Modules\AtomicWidgets\Controls\Section;
16 15 use Elementor\Modules\AtomicWidgets\Controls\Types\Text_Control;
17 -use Elementor\Modules\Components\PropTypes\Overridable_Prop_Type;
18 16
19 17 if ( ! defined( 'ABSPATH' ) ) {
20 18 exit;
21 19 }
@@ -46,18 +44,14 @@
46 44 public function get_icon() {
47 45 return 'eicon-e-divider';
48 46 }
49 47
50 - public static function get_computed_html_tag( array $settings ): string {
51 - return Html_Tag_Computer::compute( $settings, 'hr' );
52 - }
53 -
54 48 protected static function define_props_schema(): array {
55 49 return [
56 50 'classes' => Classes_Prop_Type::make()
57 51 ->default( [] ),
58 52
59 - 'attributes' => Attributes_Prop_Type::make()->meta( Overridable_Prop_Type::ignore() ),
53 + 'attributes' => Attributes_Prop_Type::make(),
60 54 ];
61 55 }
62 56
63 57 protected function define_atomic_controls(): array {
@@ -91,13 +85,8 @@
91 85 $background_value = Background_Prop_Type::generate([
92 86 'color' => Color_Prop_Type::generate( '#000' ),
93 87 ]);
94 88
95 - $width_value = Size_Prop_Type::generate([
96 - 'size' => 100,
97 - 'unit' => '%',
98 - ]);
99 -
100 89 return [
101 90 'base' => Style_Definition::make()
102 91 ->add_variant(
103 92 Style_Variant::make()
@@ -105,9 +94,8 @@
105 94 ->add_prop( 'border-color', 'transparent' )
106 95 ->add_prop( 'border-style', 'none' )
107 96 ->add_prop( 'background', $background_value )
108 97 ->add_prop( 'height', $height_value )
109 - ->add_prop( 'width', $width_value )
110 98 ),
111 99 ];
112 100 }
113 101
@@ -114,10 +102,6 @@
114 102 protected function get_templates(): array {
115 103 return [
116 104 'elementor/elements/atomic-divider' => __DIR__ . '/atomic-divider.html.twig',
117 105 ];
118 - }
119 -
120 - public function render_markdown(): string {
121 - return '---';
122 106 }
123 107 }