ID), 'full'); $image_width = $featured_image[1]; } // Handle pages with full-width featured image if ( $content_width AND $image_width >= $content_width ) : echo '
'; $image_url = $featured_image[0]; // Use Title, Caption and Description from the featured image. $title = get_post( get_post_thumbnail_id() )->post_title; // Title $caption = get_post( get_post_thumbnail_id() )->post_excerpt; // Caption $description = get_post(get_post_thumbnail_id())->post_content; // If no title or description, get them from the page or post and custom fields if ( ! $title ) $title = get_the_title(); if ( ! $caption ) $caption = get_post_meta( get_the_ID(), '_subtitle', $single = true ); // For home page only, use special image classes for taller image if ( is_front_page() ) { echo '
' .'
'; // Otherwise, use a shorter image height } else { echo '
' .'
'; } echo '

' . $title . '

'; if ( $caption ) echo '

' . $caption . '

'; if ( $description ) echo '

' . $description . '

'; if ( is_front_page() ) { echo '
'; echo ''; } echo '
' .'
' .'
'; // Otherwise, display the title and optional subtitle elseif ( ! is_front_page() ) : ?>

' . get_the_author() . '' ); /* Since we called the_post() above, we need to * rewind the loop back to the beginning that way * we can run the loop properly, in full. */ rewind_posts(); elseif ( is_search() ) : printf( __( 'Search Results for: %s', 'xsbf' ), '' . get_search_query() . '' ); elseif ( is_day() ) : printf( __( 'Day: %s', 'xsbf' ), '' . get_the_date() . '' ); elseif ( is_month() ) : printf( __( 'Month: %s', 'xsbf' ), '' . get_the_date( 'F Y' ) . '' ); elseif ( is_year() ) : printf( __( 'Year: %s', 'xsbf' ), '' . get_the_date( 'Y' ) . '' ); /* elseif ( is_tax( 'post_format', 'post-format-aside' ) ) : _e( 'Asides', 'xsbf' ); elseif ( is_tax( 'post_format', 'post-format-image' ) ) : _e( 'Images', 'xsbf'); elseif ( is_tax( 'post_format', 'post-format-video' ) ) : _e( 'Videos', 'xsbf' ); elseif ( is_tax( 'post_format', 'post-format-quote' ) ) : _e( 'Quotes', 'xsbf' ); elseif ( is_tax( 'post_format', 'post-format-link' ) ) : _e( 'Links', 'xsbf' ); else : _e( 'Archives', 'xsbf' ); */ elseif ( is_home() ) : //ONLY if home page is static and we are on the blog page _e( 'Blog', 'xsbf' ); /* else : _e( 'Oops, we need to update content-header to catch this page type', 'xsbf' ); */ endif; ?>

%s', $subtitle ); } else { // Show an optional taxonomy (category, tag, etc.) $term_description = term_description(); if ( ! empty( $term_description ) ) { printf( '

%s

', $term_description ); // Show an optional custom page field named "subtitle" } else { $subtitle = get_post_meta( get_the_ID(), '_subtitle', $single = true ); if ( $subtitle ) printf( '

%s

', $subtitle ); } // term_description } // is_home() ?>