%2$s
',
esc_url( get_permalink() ),
get_the_post_thumbnail(
get_the_ID(),
apply_filters( 'shesha_pageheader_default_size', 'full' ),
array(
'itemprop' => 'image',
)
)
) );
}
}
}
if ( ! function_exists( 'shesha_featured_page_header_area' ) ) {
/**
* Build the page header.
*
*
* @param string The featured image container class
*/
function shesha_featured_page_header_area( $class ) {
// Don't run the function unless we're on a page it applies to.
if ( ! is_singular() ) {
return;
}
// Don't run the function unless we have a post thumbnail.
if ( ! has_post_thumbnail() ) {
return;
}
?>
'image',
)
); ?>