ID), 'full'); $image_width = $featured_image[1]; } 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; $caption = get_post( get_post_thumbnail_id() )->post_excerpt; $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 '
' .'
'; // If not home page, use a shorter image height } else { echo '
' .'
'; } echo '

' . $title . '

'; if ( $caption ) echo '

' . $caption . '

'; if ( $description ) echo '

' . $description . '

'; // Only for home page, show a scroll down icon if ( is_front_page() ) { echo '
'; echo ''; } echo '
' .'
' .'
'; // IF NO FEATUED IMAGE, THEN DISPLAY TITLE AND OPTIONAL SUBTITLE elseif ( ! is_front_page() ) : //else : ?>

' . 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', 'flat-bootstrap' ), '' . get_search_query() . '' ); elseif ( is_day() ) : printf( __( 'Day: %s', 'flat-bootstrap' ), '' . get_the_date() . '' ); elseif ( is_month() ) : printf( __( 'Month: %s', 'flat-bootstrap' ), '' . get_the_date( 'F Y' ) . '' ); elseif ( is_year() ) : printf( __( 'Year: %s', 'flat-bootstrap' ), '' . get_the_date( 'Y' ) . '' ); /* elseif ( is_tax( 'post_format', 'post-format-aside' ) ) : _e( 'Asides', 'flat-bootstrap' ); elseif ( is_tax( 'post_format', 'post-format-image' ) ) : _e( 'Images', 'flat-bootstrap'); elseif ( is_tax( 'post_format', 'post-format-video' ) ) : _e( 'Videos', 'flat-bootstrap' ); elseif ( is_tax( 'post_format', 'post-format-quote' ) ) : _e( 'Quotes', 'flat-bootstrap' ); elseif ( is_tax( 'post_format', 'post-format-link' ) ) : _e( 'Links', 'flat-bootstrap' ); */ elseif ( is_post_type_archive( 'jetpack-portfolio' ) OR is_tax ( 'jetpack-portfolio-type' ) ) : _e( 'Portfolio', 'flat-bootstrap' ); elseif ( is_home() ) : //ONLY if home page is static and we are on the blog page //elseif ( is_home() AND ! is_front_page() ) : //ONLY if home page is static and we are on the blog page $home_page = get_option ( 'page_for_posts' ); if ( $home_page ) $post = get_post( $home_page ); if ( $post ) { echo $post->post_title; } else { _e( 'Blog', 'flat-bootstrap' ); } else : //elseif ( ! is_front_page() ) : _e( 'Archives', 'flat-bootstrap' ); endif; ?>

%s', $subtitle ); // If not home page, then display the term description or custom subtitle } else { $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() ?>