';
if ( 'default' === $layout ) {
echo wp_kses_post( $this->render_woocommerce_page_title( $layout ) );
}
$this->render_woocommerce_header_background();
echo '';
return '';
}
/**
* Display titile in content for WooCommerce pages.
*/
public function woocommerce_title_in_content() {
$layout = apply_filters( 'hestia_header_layout', get_theme_mod( 'hestia_header_layout', 'default' ) );
if ( 'default' === $layout ) {
return;
}
if ( is_product_category() ) {
return;
}
echo $this->render_woocommerce_page_title( $layout );
}
/**
* Display image in content.
*
* @return void
*/
public function woocommerce_image_in_content() {
if ( is_product() || is_cart() || is_checkout() || is_product_category() ) {
return;
}
$layout = apply_filters( 'hestia_header_layout', get_theme_mod( 'hestia_header_layout', 'default' ) );
if ( 'classic-blog' !== $layout ) {
return;
}
$image_url = $this->get_woocommerce_header_image_url();
if ( empty( $image_url ) ) {
return;
}
$image_id = attachment_url_to_postid( $image_url );
$image1_alt = '';
if ( $image_id ) {
$image1_alt = get_post_meta( $image_id, '_wp_attachment_image_alt', true );
}
$image_markup = '';
if ( is_shop() ) {
$image_markup = '