← All changes
|
modules/atomic-widgets/elements/atomic-divider/atomic-divider.php
+0
-15
4.3.0-beta3
→
4.0.0-dev3
View file →
| @@ -3,9 +3,8 @@ | ||
| 3 | 3 | namespace Elementor\Modules\AtomicWidgets\Elements\Atomic_Divider; |
| 4 | 4 | |
| 5 | 5 | use Elementor\Modules\AtomicWidgets\Elements\Base\Atomic_Widget_Base; |
| 6 | 6 | use Elementor\Modules\AtomicWidgets\Elements\Base\Has_Template; |
| 7 | -use Elementor\Modules\AtomicWidgets\Elements\Base\Html_Tag_Computer; | |
| 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; |
| @@ -46,12 +45,8 @@ | ||
| 46 | 45 | public function get_icon() { |
| 47 | 46 | return 'eicon-e-divider'; |
| 48 | 47 | } |
| 49 | 48 | |
| 50 | - public static function get_computed_html_tag( array $settings ): string { | |
| 51 | - return Html_Tag_Computer::compute( $settings, 'hr' ); | |
| 52 | - } | |
| 53 | - | |
| 54 | 49 | protected static function define_props_schema(): array { |
| 55 | 50 | return [ |
| 56 | 51 | 'classes' => Classes_Prop_Type::make() |
| 57 | 52 | ->default( [] ), |
| @@ -91,13 +86,8 @@ | ||
| 91 | 86 | $background_value = Background_Prop_Type::generate([ |
| 92 | 87 | 'color' => Color_Prop_Type::generate( '#000' ), |
| 93 | 88 | ]); |
| 94 | 89 | |
| 95 | - $width_value = Size_Prop_Type::generate([ | |
| 96 | - 'size' => 100, | |
| 97 | - 'unit' => '%', | |
| 98 | - ]); | |
| 99 | - | |
| 100 | 90 | return [ |
| 101 | 91 | 'base' => Style_Definition::make() |
| 102 | 92 | ->add_variant( |
| 103 | 93 | Style_Variant::make() |
| @@ -105,9 +95,8 @@ | ||
| 105 | 95 | ->add_prop( 'border-color', 'transparent' ) |
| 106 | 96 | ->add_prop( 'border-style', 'none' ) |
| 107 | 97 | ->add_prop( 'background', $background_value ) |
| 108 | 98 | ->add_prop( 'height', $height_value ) |
| 109 | - ->add_prop( 'width', $width_value ) | |
| 110 | 99 | ), |
| 111 | 100 | ]; |
| 112 | 101 | } |
| 113 | 102 | |
| @@ -114,10 +103,6 @@ | ||
| 114 | 103 | protected function get_templates(): array { |
| 115 | 104 | return [ |
| 116 | 105 | 'elementor/elements/atomic-divider' => __DIR__ . '/atomic-divider.html.twig', |
| 117 | 106 | ]; |
| 118 | - } | |
| 119 | - | |
| 120 | - public function render_markdown(): string { | |
| 121 | - return '---'; | |
| 122 | 107 | } |
| 123 | 108 | } |