← All changes
|
modules/atomic-widgets/elements/atomic-button/atomic-button.php
+3
-12
4.0.9
→
3.35.7
View file →
| @@ -2,9 +2,8 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Elementor\Modules\AtomicWidgets\Elements\Atomic_Button; |
| 4 | 4 | |
| 5 | 5 | use Elementor\Modules\AtomicWidgets\Controls\Types\Text_Control; |
| 6 | -use Elementor\Modules\AtomicWidgets\Controls\Types\Inline_Editing_Control; | |
| 7 | 6 | use Elementor\Modules\AtomicWidgets\Elements\Base\Atomic_Widget_Base; |
| 8 | 7 | use Elementor\Modules\AtomicWidgets\Controls\Section; |
| 9 | 8 | use Elementor\Modules\AtomicWidgets\Controls\Types\Link_Control; |
| 10 | 9 | use Elementor\Modules\AtomicWidgets\Elements\Base\Has_Template; |
| @@ -10,9 +9,8 @@ | ||
| 10 | 9 | use Elementor\Modules\AtomicWidgets\Elements\Base\Has_Template; |
| 11 | 10 | use Elementor\Modules\AtomicWidgets\PropTypes\Background_Prop_Type; |
| 12 | 11 | use Elementor\Modules\AtomicWidgets\PropTypes\Attributes_Prop_Type; |
| 13 | 12 | use Elementor\Modules\AtomicWidgets\PropTypes\Classes_Prop_Type; |
| 14 | -use Elementor\Modules\AtomicWidgets\PropTypes\Html_V3_Prop_Type; | |
| 15 | 13 | use Elementor\Modules\AtomicWidgets\PropTypes\Color_Prop_Type; |
| 16 | 14 | use Elementor\Modules\AtomicWidgets\PropTypes\Link_Prop_Type; |
| 17 | 15 | use Elementor\Modules\AtomicWidgets\PropTypes\Dimensions_Prop_Type; |
| 18 | 16 | use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\String_Prop_Type; |
| @@ -48,21 +46,14 @@ | ||
| 48 | 46 | $props = [ |
| 49 | 47 | 'classes' => Classes_Prop_Type::make() |
| 50 | 48 | ->default( [] ), |
| 51 | 49 | |
| 52 | - 'text' => Html_V3_Prop_Type::make() | |
| 53 | - ->default( [ | |
| 54 | - 'content' => String_Prop_Type::generate( __( 'Click here', 'elementor' ) ), | |
| 55 | - 'children' => [], | |
| 56 | - ] ) | |
| 50 | + 'text' => String_Prop_Type::make() | |
| 51 | + ->default( __( 'Click here', 'elementor' ) ) | |
| 57 | 52 | ->description( 'The text displayed on the button.' ), |
| 58 | 53 | |
| 59 | 54 | 'link' => Link_Prop_Type::make(), |
| 60 | 55 | |
| 61 | - 'tag' => String_Prop_Type::make() | |
| 62 | - ->default( 'button' ) | |
| 63 | - ->description( 'The HTML tag for the button element.' ), | |
| 64 | - | |
| 65 | 56 | 'attributes' => Attributes_Prop_Type::make()->meta( Overridable_Prop_Type::ignore() ), |
| 66 | 57 | ]; |
| 67 | 58 | |
| 68 | 59 | return $props; |
| @@ -72,9 +63,9 @@ | ||
| 72 | 63 | return [ |
| 73 | 64 | Section::make() |
| 74 | 65 | ->set_label( __( 'Content', 'elementor' ) ) |
| 75 | 66 | ->set_items( [ |
| 76 | - Inline_Editing_Control::bind_to( 'text' ) | |
| 67 | + Text_Control::bind_to( 'text' ) | |
| 77 | 68 | ->set_placeholder( __( 'Type your button text here', 'elementor' ) ) |
| 78 | 69 | ->set_label( __( 'Button text', 'elementor' ) ), |
| 79 | 70 | ] ), |
| 80 | 71 | Section::make() |