PluginProbe
Elementor Website Builder – more than just a page builder / 3.31.4
Elementor Website Builder – more than just a page builder v3.31.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/atomic-divider/atomic-divider.php +6 -33 4.3.0-beta3 → 3.31.4 View file →
@@ -1,21 +1,17 @@
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 -use Elementor\Modules\AtomicWidgets\PropTypes\Attributes_Prop_Type;
8 +use Elementor\Modules\AtomicWidgets\PropTypes\Key_Value_Array_Prop_Type;
10 9 use Elementor\Modules\AtomicWidgets\PropTypes\Classes_Prop_Type;
11 10 use Elementor\Modules\AtomicWidgets\PropTypes\Color_Prop_Type;
12 11 use Elementor\Modules\AtomicWidgets\PropTypes\Size_Prop_Type;
13 12 use Elementor\Modules\AtomicWidgets\Styles\Style_Definition;
14 13 use Elementor\Modules\AtomicWidgets\Styles\Style_Variant;
15 -use Elementor\Modules\AtomicWidgets\Controls\Section;
16 -use Elementor\Modules\AtomicWidgets\Controls\Types\Text_Control;
17 -use Elementor\Modules\Components\PropTypes\Overridable_Prop_Type;
18 14
19 15 if ( ! defined( 'ABSPATH' ) ) {
20 16 exit;
21 17 }
@@ -46,36 +42,23 @@
46 42 public function get_icon() {
47 43 return 'eicon-e-divider';
48 44 }
49 45
50 - public static function get_computed_html_tag( array $settings ): string {
51 - return Html_Tag_Computer::compute( $settings, 'hr' );
52 - }
53 -
54 46 protected static function define_props_schema(): array {
55 47 return [
56 48 'classes' => Classes_Prop_Type::make()
57 49 ->default( [] ),
58 50
59 - 'attributes' => Attributes_Prop_Type::make()->meta( Overridable_Prop_Type::ignore() ),
51 + 'attributes' => Key_Value_Array_Prop_Type::make(),
60 52 ];
61 53 }
62 54
63 55 protected function define_atomic_controls(): array {
64 - return [
65 - Section::make()
66 - ->set_label( __( 'Settings', 'elementor' ) )
67 - ->set_id( 'settings' )
68 - ->set_items( $this->get_settings_controls() ),
69 - ];
56 + return [];
70 57 }
71 58
72 59 protected function get_settings_controls(): array {
73 - return [
74 - Text_Control::bind_to( '_cssid' )
75 - ->set_label( __( 'ID', 'elementor' ) )
76 - ->set_meta( $this->get_css_id_control_meta() ),
77 - ];
60 + return [];
78 61 }
79 62
80 63 protected function define_base_styles(): array {
81 64 $border_width_value = Size_Prop_Type::generate([
@@ -91,13 +74,8 @@
91 74 $background_value = Background_Prop_Type::generate([
92 75 'color' => Color_Prop_Type::generate( '#000' ),
93 76 ]);
94 77
95 - $width_value = Size_Prop_Type::generate([
96 - 'size' => 100,
97 - 'unit' => '%',
98 - ]);
99 -
100 78 return [
101 79 'base' => Style_Definition::make()
102 80 ->add_variant(
103 81 Style_Variant::make()
@@ -105,9 +83,8 @@
105 83 ->add_prop( 'border-color', 'transparent' )
106 84 ->add_prop( 'border-style', 'none' )
107 85 ->add_prop( 'background', $background_value )
108 86 ->add_prop( 'height', $height_value )
109 - ->add_prop( 'width', $width_value )
110 87 ),
111 88 ];
112 89 }
113 90
@@ -114,10 +91,6 @@
114 91 protected function get_templates(): array {
115 92 return [
116 93 'elementor/elements/atomic-divider' => __DIR__ . '/atomic-divider.html.twig',
117 94 ];
118 - }
119 -
120 - public function render_markdown(): string {
121 - return '---';
122 95 }
123 96 }