Loading...
> 'color: {{VALUE}}', '{{WRAPPER}} .eael-contact-form-7 .wpcf7-response-output' => 'color: {{VALUE}}', ], ] ); $this->add_group_control( Group_Control_Background::get_type(), [ 'name' => 'contact_form_after_submit_feedback_background', 'label' => __('Background', 'essential-addons-for-elementor-lite'), 'types' => ['classic', 'gradient'], 'selector' => '{{WRAPPER}} .eael-contact-form-7 .wpcf7-mail-sent-ng, {{WRAPPER}} .eael-contact-form-7 .wpcf7-mail-sent-ok, {{WRAPPER}} .eael-contact-form-7 .wpcf7-response-output', 'separator' => 'before', ] ); $this->add_group_control( Group_Control_Border::get_type(), [ 'name' => 'contact_form_after_submit_feedback_border', 'label' => __('Border', 'essential-addons-for-elementor-lite'), 'placeholder' => '1px', 'default' => '1px', 'selector' => '{{WRAPPER}} .eael-contact-form-7 .wpcf7-mail-sent-ng, {{WRAPPER}} .eael-contact-form-7 .wpcf7-mail-sent-ok, {{WRAPPER}} .eael-contact-form-7 .wpcf7-response-output', 'separator' => 'before', ] ); $this->add_responsive_control( 'contact_form_after_submit_feedback_border_radius', [ 'label' => esc_html__('Radius', 'essential-addons-for-elementor-lite'), 'type' => Controls_Manager::SLIDER, 'size_units' => ['px', 'em', '%'], 'range' => [ 'px' => [ 'min' => 10, 'max' => 1500, ], 'em' => [ 'min' => 1, 'max' => 80, ], ], 'selectors' => [ '{{WRAPPER}} .eael-contact-form-7 .wpcf7-mail-sent-ng' => 'border-radius: {{SIZE}}{{UNIT}};', '{{WRAPPER}} .eael-contact-form-7 .wpcf7-mail-sent-ok' => 'border-radius: {{SIZE}}{{UNIT}};', '{{WRAPPER}} .eael-contact-form-7 .wpcf7-response-output' => 'border-radius: {{SIZE}}{{UNIT}};', ], ] ); $this->add_responsive_control( 'contact_form_after_submit_feedback_border_margin', [ 'label' => esc_html__('Margin', 'essential-addons-for-elementor-lite'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', 'em', '%'], 'selectors' => [ '{{WRAPPER}} .eael-contact-form-7 .wpcf7-mail-sent-ng' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', '{{WRAPPER}} .eael-contact-form-7 .wpcf7-mail-sent-ok' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', '{{WRAPPER}} .eael-contact-form-7 .wpcf7-response-output' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); $this->add_responsive_control( 'contact_form_after_submit_feedback_border_padding', [ 'label' => esc_html__('Padding', 'essential-addons-for-elementor-lite'), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => ['px', 'em', '%'], 'selectors' => [ '{{WRAPPER}} .eael-contact-form-7 .wpcf7-mail-sent-ng' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', '{{WRAPPER}} .eael-contact-form-7 .wpcf7-mail-sent-ok' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', '{{WRAPPER}} .eael-contact-form-7 .wpcf7-response-output' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ], 'separator' => 'before', ] ); $this->end_controls_section(); } /** * @access protected */ protected function render() { if (!function_exists('wpcf7')) { return; } $settings = $this->get_settings_for_display(); $this->add_render_attribute('contact-form', 'class', [ 'eael-contact-form', 'eael-contact-form-7', 'eael-contact-form-' . esc_attr($this->get_id()), ]); if ($settings['labels_switch'] != 'yes') { $this->add_render_attribute('contact-form', 'class', 'labels-hide'); } if ($settings['placeholder_switch'] == 'yes') { $this->add_render_attribute('contact-form', 'class', 'placeholder-show'); } if ($settings['custom_radio_checkbox'] == 'yes') { $this->add_render_attribute('contact-form', 'class', 'eael-custom-radio-checkbox'); } if ($settings['eael_contact_form_alignment'] == 'left') { $this->add_render_attribute('contact-form', 'class', 'eael-contact-form-align-left'); } elseif ($settings['eael_contact_form_alignment'] == 'center') { $this->add_render_attribute('contact-form', 'class', 'eael-contact-form-align-center'); } elseif ($settings['eael_contact_form_alignment'] == 'right') { $this->add_render_attribute('contact-form', 'class', 'eael-contact-form-align-right'); } else { $this->add_render_attribute('contact-form', 'class', 'eael-contact-form-align-default'); } if (!empty($settings['contact_form_list'])) { echo '
get_render_attribute_string('contact-form') . '>'; if ($settings['form_title'] == 'yes' || $settings['form_description'] == 'yes') { echo '
'; if ($settings['form_title'] == 'yes' && $settings['form_title_text'] != '') { echo '

' . esc_attr($settings['form_title_text']) . '

'; } if ($settings['form_description'] == 'yes' && $settings['form_description_text'] != '') { echo '
' . $this->parse_text_editor($settings['form_description_text']) . '
'; } echo '
'; } echo do_shortcode('[contact-form-7 id="' . esc_attr( $settings['contact_form_list'] ) . '" ]'); echo '
'; } } }