settings['form_name']; if ( ! empty( $form_name ) ) { $this->widget->add_render_attribute( 'form', 'name', $form_name ); } $this->widget->add_render_attribute( 'wrapper', [ 'class' => 'ehp-form__wrapper', ] ); $referer_title = trim( wp_title( '', false ) ); if ( ! $referer_title && is_home() ) { $referer_title = get_option( 'blogname' ); } ?>
widget->print_render_attribute_string( 'form' ); ?>> render_text_container(); ?>
widget->print_render_attribute_string( 'wrapper' ); ?>> settings['form_fields'] as $item_index => $item ) : $item['input_size'] = $this->settings['input_size']; $this->widget->form_fields_render_attributes( $item_index, $this->settings, $item ); $field_type = $item['field_type']; /** * Render form field. * * Filters the field rendered by Elementor forms. * * @param array $item The field value. * @param int $item_index The field index. * @param Ehp_Form $this An instance of the form. * * @since 1.0.0 * */ $item = apply_filters( 'hello_plus/forms/render/item', $item, $item_index, $this ); /** * Render form field. * * Filters the field rendered by Elementor forms. * * The dynamic portion of the hook name, `$field_type`, refers to the field type. * * @param array $item The field value. * @param int $item_index The field index. * @param Ehp_Form $this An instance of the form. * * @since 1.0.0 * */ $item = apply_filters( "hello_plus/forms/render/item/{$field_type}", $item, $item_index, $this ); $print_label = ! in_array( $item['field_type'], [ 'hidden', 'html', 'step' ], true ); ?>
widget->print_render_attribute_string( 'field-group' . $item_index ); ?>> widget->make_textarea_field( $item, $item_index, $this->settings ), [ 'textarea' => [ 'cols' => true, 'rows' => true, 'name' => true, 'id' => true, 'class' => true, 'style' => true, 'placeholder' => true, 'maxlength' => true, 'required' => true, 'readonly' => true, 'disabled' => true, ], ] ); break; case 'select': echo wp_kses( $this->widget->make_select_field( $item, $item_index ), [ 'select' => [ 'name' => true, 'id' => true, 'class' => true, 'style' => true, 'required' => true, 'disabled' => true, ], 'option' => [ 'value' => true, 'selected' => true, ], ] ); break; case 'text': case 'email': $this->widget->add_render_attribute( 'input' . $item_index, 'class', 'elementor-field-textual' ); ?> widget->print_render_attribute_string( 'input' . $item_index ); ?>> widget ); endswitch; ?>
render_button(); ?>
settings['selected_button_icon']; $button_text = $this->settings['button_text']; $button_css_id = $this->settings['button_css_id']; $button_width = $this->settings['button_width']; $button_width_tablet = $this->settings['button_width_tablet']; $button_width_mobile = $this->settings['button_width_mobile']; $button_hover_animation = $this->settings['button_hover_animation']; $button_classnames = 'ehp-form__button'; $button_border = $this->settings['button_border_switcher']; $button_corner_shape = $this->settings['button_shape']; $button_type = $this->settings['button_type']; $submit_group_classnames = 'ehp-form__submit-group'; if ( ! empty( $button_width ) ) { $submit_group_classnames .= ' has-width-' . $button_width; } if ( ! empty( $button_width_tablet ) ) { $submit_group_classnames .= ' has-width-md-' . $button_width_tablet; } if ( ! empty( $button_width_mobile ) ) { $submit_group_classnames .= ' has-width-sm-' . $button_width_mobile; } $this->widget->add_render_attribute( 'submit-group', [ 'class' => $submit_group_classnames, ] ); if ( 'yes' === $button_border ) { $button_classnames .= ' has-border'; } if ( ! empty( $button_corner_shape ) ) { $button_classnames .= ' has-shape-' . $button_corner_shape; } if ( ! empty( $button_type ) ) { $button_classnames .= ' is-type-' . $button_type; } $this->widget->add_render_attribute( 'button', [ 'class' => $button_classnames, 'type' => 'submit', ] ); if ( $button_hover_animation ) { $this->widget->add_render_attribute( 'button', 'class', 'elementor-animation-' . $button_hover_animation ); } if ( ! empty( $button_css_id ) ) { $this->widget->add_render_attribute( 'button', 'id', $button_css_id ); } $this->widget->add_render_attribute( 'button-text', [ 'class' => 'ehp-form__button-text', ] ); ?>
widget->print_render_attribute_string( 'submit-group' ); ?>>
settings['text_heading']; $has_heading = ! empty( $this->settings['text_heading'] ); $heading_tag = $this->settings['text_heading_tag']; $description_text = $this->settings['text_description']; $has_description = ! empty( $description_text ); ?>
%3$s', Elementor_Utils::validate_html_tag( $heading_tag ), 'class="ehp-form__heading"', esc_html( $heading_text ) ); // Escaped above Elementor_Utils::print_unescaped_internal_string( $heading_output ); } ?>

widget = $widget; $this->settings = $widget->get_settings_for_display(); } }