← All changes
|
modules/atomic-widgets/elements/atomic-form/atomic-form.php
+3
-7
4.0.9
→
4.0.0-beta1
View file →
| @@ -25,9 +25,8 @@ | ||
| 25 | 25 | use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\String_Prop_Type; |
| 26 | 26 | use Elementor\Modules\AtomicWidgets\Styles\Style_Definition; |
| 27 | 27 | use Elementor\Modules\AtomicWidgets\Styles\Style_Variant; |
| 28 | 28 | use Elementor\Core\Breakpoints\Manager as Breakpoints_Manager; |
| 29 | -use Elementor\Modules\Components\PropTypes\Overridable_Prop_Type; | |
| 30 | 29 | |
| 31 | 30 | if ( ! defined( 'ABSPATH' ) ) { |
| 32 | 31 | exit; // Exit if accessed directly. |
| 33 | 32 | } |
| @@ -54,9 +53,9 @@ | ||
| 54 | 53 | return self::get_type(); |
| 55 | 54 | } |
| 56 | 55 | |
| 57 | 56 | public function get_title() { |
| 58 | - return esc_html__( 'Atomic form', 'elementor' ); | |
| 57 | + return esc_html__( 'Atomic Form', 'elementor' ); | |
| 59 | 58 | } |
| 60 | 59 | |
| 61 | 60 | public function get_keywords() { |
| 62 | 61 | return [ 'atomic', 'form' ]; |
| @@ -103,11 +102,10 @@ | ||
| 103 | 102 | String_Prop_Type::generate( self::METADATA_USER_AGENT ), |
| 104 | 103 | ] ), |
| 105 | 104 | 'email' => Email_Prop_Type::make() |
| 106 | 105 | ->set_dependencies( $email_dependencies ) |
| 107 | - ->meta( Overridable_Prop_Type::ignore() ) | |
| 108 | 106 | ->default( [] ), |
| 109 | - 'attributes' => Attributes_Prop_Type::make()->meta( Overridable_Prop_Type::ignore() ), | |
| 107 | + 'attributes' => Attributes_Prop_Type::make(), | |
| 110 | 108 | ]; |
| 111 | 109 | } |
| 112 | 110 | |
| 113 | 111 | protected function define_atomic_controls(): array { |
| @@ -138,9 +136,9 @@ | ||
| 138 | 136 | Section::make() |
| 139 | 137 | ->set_label( __( 'Content', 'elementor' ) ) |
| 140 | 138 | ->set_items( [ |
| 141 | 139 | Text_Control::bind_to( 'form-name' ) |
| 142 | - ->set_label( __( 'Form name', 'elementor' ) ), | |
| 140 | + ->set_label( __( 'Form Name', 'elementor' ) ), | |
| 143 | 141 | $state_control, |
| 144 | 142 | Chips_Control::bind_to( 'actions-after-submit' ) |
| 145 | 143 | ->set_label( __( 'Actions after submit', 'elementor' ) ) |
| 146 | 144 | ->set_meta( [ 'topDivider' => true ] ) |
| @@ -192,10 +190,8 @@ | ||
| 192 | 190 | ->add_prop( 'display', String_Prop_Type::generate( 'flex' ) ) |
| 193 | 191 | ->add_prop( 'flex', String_Prop_Type::generate( '1' ) ) |
| 194 | 192 | ->add_prop( 'flex-direction', String_Prop_Type::generate( 'row' ) ) |
| 195 | 193 | ->add_prop( 'flex-wrap', String_Prop_Type::generate( 'wrap' ) ) |
| 196 | - ->add_prop( 'align-items', String_Prop_Type::generate( 'flex-start' ) ) | |
| 197 | - ->add_prop( 'align-content', String_Prop_Type::generate( 'start' ) ) | |
| 198 | 194 | ->add_prop( 'gap', Size_Prop_Type::generate( [ |
| 199 | 195 | 'size' => 10, |
| 200 | 196 | 'unit' => 'px', |
| 201 | 197 | ] ) ) |