Classes_Prop_Type::make() ->default( [] ), 'paragraph' => String_Prop_Type::make() ->default( __( 'Type your paragraph here', 'elementor' ) ), 'link' => Link_Prop_Type::make(), 'attributes' => Attributes_Prop_Type::make(), ]; return $props; } protected function define_atomic_controls(): array { return [ Section::make() ->set_label( __( 'Content', 'elementor' ) ) ->set_items( [ Textarea_Control::bind_to( 'paragraph' ) ->set_placeholder( __( 'Type your paragraph here', 'elementor' ) ) ->set_label( __( 'Paragraph', 'elementor' ) ), ] ), Section::make() ->set_label( __( 'Settings', 'elementor' ) ) ->set_id( 'settings' ) ->set_items( $this->get_settings_controls() ), ]; } protected function get_settings_controls(): array { return [ Link_Control::bind_to( 'link' ) ->set_label( __( 'Link', 'elementor' ) ), Text_Control::bind_to( '_cssid' ) ->set_label( __( 'ID', 'elementor' ) ) ->set_meta( $this->get_css_id_control_meta() ), ]; } protected function define_base_styles(): array { $margin_value = Size_Prop_Type::generate( [ 'unit' => 'px', 'size' => 0 , ] ); return [ 'base' => Style_Definition::make() ->add_variant( Style_Variant::make() ->add_prop( 'margin', $margin_value ) ), self::LINK_BASE_STYLE_KEY => Style_Definition::make() ->add_variant( Style_Variant::make() ->add_prop( 'all', 'unset' ) ->add_prop( 'cursor', 'pointer' ) ), ]; } protected function get_templates(): array { return [ 'elementor/elements/atomic-paragraph' => __DIR__ . '/atomic-paragraph.html.twig', ]; } }