';
echo '
';
// the_custom_header_markup();
$header_images = get_uploaded_header_images();
if ( $header_images && count( $header_images ) > 0 ) {
echo '
';
foreach ( $header_images as $header_image ) {
echo '- ';
echo wp_get_attachment_image( $header_image['attachment_id'], 'thumb-ilovewp-featured' );
echo '
';
}
echo '
';
}
echo '
';
echo '
';
} else {
if ( is_singular() ) {
if ( function_exists ( "is_woocommerce") && is_woocommerce() ) {
return true;
}
$themeoptions_featured_hero = esc_attr(get_theme_mod( 'endurance-display-featured-hero', 0 ));
if ( $themeoptions_featured_hero == 1 ) {
while (have_posts()) : the_post();
get_template_part('slideshow','single');
endwhile;
}
}
}
?>