← All changes
|
modules/atomic-widgets/elements/atomic-form/atomic-form-promotion.php
+5
-8
4.3.0
→
4.1.4
View file →
| @@ -3,10 +3,9 @@ | ||
| 3 | 3 | namespace Elementor\Modules\AtomicWidgets\Elements\Atomic_Form; |
| 4 | 4 | |
| 5 | 5 | use Elementor\Modules\AtomicWidgets\Elements\Base\Atomic_Element_Base; |
| 6 | 6 | use Elementor\Modules\AtomicWidgets\Elements\Base\Has_Element_Template; |
| 7 | -use Elementor\Modules\AtomicWidgets\Elements\Base\Html_Tag_Computer; | |
| 8 | -use Elementor\Modules\AtomicWidgets\Elements\Promotions\Preserves_Children_Subtree; | |
| 7 | +use Elementor\Modules\AtomicWidgets\PropTypes\Classes_Prop_Type; | |
| 9 | 8 | use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\String_Prop_Type; |
| 10 | 9 | use Elementor\Modules\AtomicWidgets\Styles\Style_Definition; |
| 11 | 10 | use Elementor\Modules\AtomicWidgets\Styles\Style_Variant; |
| 12 | 11 | |
| @@ -15,9 +14,8 @@ | ||
| 15 | 14 | } |
| 16 | 15 | |
| 17 | 16 | class Atomic_Form_Promotion extends Atomic_Element_Base { |
| 18 | 17 | use Has_Element_Template; |
| 19 | - use Preserves_Children_Subtree; | |
| 20 | 18 | |
| 21 | 19 | const BASE_STYLE_KEY = 'base'; |
| 22 | 20 | public function __construct( $data = [], $args = null ) { |
| 23 | 21 | parent::__construct( $data, $args ); |
| @@ -40,14 +38,13 @@ | ||
| 40 | 38 | public function get_icon() { |
| 41 | 39 | return 'eicon-atomic-form'; |
| 42 | 40 | } |
| 43 | 41 | |
| 44 | - public static function get_computed_html_tag( array $settings ): string { | |
| 45 | - return Html_Tag_Computer::compute( $settings, 'div' ); | |
| 46 | - } | |
| 47 | - | |
| 48 | 42 | protected static function define_props_schema(): array { |
| 49 | - return Atomic_Form::get_base_props_schema(); | |
| 43 | + return [ | |
| 44 | + 'classes' => Classes_Prop_Type::make() | |
| 45 | + ->default( [] ), | |
| 46 | + ]; | |
| 50 | 47 | } |
| 51 | 48 | |
| 52 | 49 | protected function define_atomic_controls(): array { |
| 53 | 50 | return []; |