settings['box_full_screen_height_controls'] ?? ''; $layout_preset = $this->settings['layout_preset'] ?? ''; $layout_classnames = [ self::LAYOUT_CLASSNAME, 'has-layout-preset-' . $this->settings['layout_preset'], ]; if ( ! empty( $layout_full_height_controls ) ) { foreach ( $layout_full_height_controls as $breakpoint ) { $layout_classnames[] = ' is-full-height-' . $breakpoint; } } if ( 'yes' === $this->settings['show_box_border'] ) { $layout_classnames[] = 'has-border'; } if ( 'yes' === $this->settings['image_stretch'] ) { $layout_classnames[] = 'has-image-stretch'; } $shapes = new Ehp_Shapes( $this->widget, [ 'container_prefix' => 'box', 'render_attribute' => 'layout', 'widget_name' => 'form', ] ); $shapes->add_shape_attributes(); $ehp_full_height = new Ehp_Full_Height( $this->widget ); $ehp_full_height->add_full_height_attributes(); $column_structure = new Ehp_Column_Structure( $this->widget, [ 'render_attribute' => 'layout', ] ); $column_structure->add_column_structure_attributes(); $this->widget->add_render_attribute( 'layout', [ 'name' => $this->settings['form_name'] || '', 'class' => $layout_classnames, 'method' => 'post', ] ); $this->widget->add_render_attribute( 'wrapper', [ 'class' => self::LAYOUT_CLASSNAME . '__wrapper', ] ); $referer_title = trim( wp_title( '', false ) ); if ( ! $referer_title && is_home() ) { $referer_title = get_option( 'blogname' ); } $this->widget->add_render_attribute( 'overlay', [ 'class' => self::LAYOUT_CLASSNAME . '__overlay', ] ); $this->widget->add_render_attribute( 'content', 'class', self::LAYOUT_CLASSNAME . '__content' ); ?>
settings['button_width'] ) ) { $submit_group_classnames[] = 'has-width-' . $this->settings['button_width']; if ( ! empty( $this->settings['button_width_tablet'] ) ) { $submit_group_classnames[] = 'has-width-md-' . $this->settings['button_width_tablet']; } if ( ! empty( $this->settings['button_width_mobile'] ) ) { $submit_group_classnames[] = 'has-width-sm-' . $this->settings['button_width_mobile']; } } if ( ! empty( $this->settings['button_align'] ) ) { $submit_group_classnames[] = 'has-button-align-' . $this->settings['button_align']; if ( ! empty( $this->settings['button_align_tablet'] ) ) { $submit_group_classnames[] = 'has-button-align-md-' . $this->settings['button_align_tablet']; } if ( ! empty( $this->settings['button_align_mobile'] ) ) { $submit_group_classnames[] = 'has-button-align-sm-' . $this->settings['button_align_mobile']; } } $this->widget->add_render_attribute( 'submit-group', [ 'class' => $submit_group_classnames, ] ); if ( 'yes' === $this->settings['button_border_switcher'] ) { $button_classnames[] = 'has-border'; } $shapes = new Ehp_Shapes( $this->widget, [ 'container_prefix' => 'button', 'render_attribute' => 'button', 'widget_name' => 'form', ] ); $shapes->add_shape_attributes(); if ( ! empty( $this->settings['button_type'] ) ) { $button_classnames[] = 'is-type-' . $this->settings['button_type']; } if ( $this->settings['button_hover_animation'] ) { $button_classnames[] = 'elementor-animation-' . $this->settings['button_hover_animation']; } $this->widget->add_render_attribute( 'button', [ 'class' => $button_classnames, 'type' => 'submit', ] ); if ( ! empty( $this->settings['button_css_id'] ) ) { $this->widget->add_render_attribute( 'button', 'id', $this->settings['button_css_id'] ); } $this->widget->add_render_attribute( 'button-text', [ 'class' => self::LAYOUT_CLASSNAME . '__button-text', ] ); ?>