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' ); } ?>
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', ] ); ?>