'image', ); } echo apply_filters( // phpcs:ignore 'generate_featured_image_output', sprintf( '
%3$s %2$s
', esc_url( get_permalink() ), get_the_post_thumbnail( get_the_ID(), apply_filters( 'generate_page_header_default_size', 'full' ), $attrs ), apply_filters( 'generate_inside_featured_image_output', '' ) ) ); } } } if ( ! function_exists( 'generate_featured_page_header_area' ) ) { /** * Build the page header. * * @since 1.0.7 * * @param string $class The featured image container class. */ function generate_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; } $attrs = array(); if ( 'microdata' === generate_get_schema_type() ) { $attrs = array( 'itemprop' => 'image', ); } ?>