widget = $widget; $this->settings = $widget->get_settings_for_display(); } public function render(): void { $layout_classnames = self::LAYOUT_CLASSNAME; $layout_full_height_controls = $this->settings['box_full_screen_height_controls'] ?? ''; if ( ! empty( $layout_full_height_controls ) ) { foreach ( $layout_full_height_controls as $breakpoint ) { $layout_classnames .= ' is-full-height-' . $breakpoint; } } $this->widget->add_render_attribute( 'layout', [ 'class' => $layout_classnames, ] ); ?>
widget->print_render_attribute_string( 'layout' ); ?>> render_text_container(); $this->render_cta_button(); $this->render_image_container(); ?>
settings['heading_text']; $heading_tag = $this->settings['heading_tag']; $has_heading = '' !== $heading_text; $subheading_text = $this->settings['subheading_text']; $subheading_tag = $this->settings['subheading_tag']; $has_subheading = '' !== $subheading_text; $text_container_classnames = self::TEXT_CONTAINER_CLASSNAME; $this->widget->add_render_attribute( 'text-container', [ 'class' => $text_container_classnames, ] ); ?>
widget->print_render_attribute_string( 'text-container' ); ?>> %3$s', Utils::validate_html_tag( $heading_tag ), 'class="ehp-hero__heading"', esc_html( $heading_text ) ); // Escaped above Utils::print_unescaped_internal_string( $heading_output ); } ?> %3$s', Utils::validate_html_tag( $subheading_tag ), 'class="ehp-hero__subheading"', esc_html( $subheading_text ) ); // Escaped above Utils::print_unescaped_internal_string( $subheading_output ); } ?>
widget, [ 'type' => 'primary', 'widget_name' => $this->widget->get_name(), ] ); ?>
render(); ?>
widget, [ 'widget_name' => $this->widget->get_name(), ] ); $image->render(); } }