' . 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_day() ) :
$ample_header_title = sprintf( __( 'Day: %s', 'ample' ), '' . get_the_date() . '' );
elseif ( is_month() ) :
$ample_header_title = sprintf( __( 'Month: %s', 'ample' ), '' . get_the_date( 'F Y' ) . '' );
elseif ( is_year() ) :
$ample_header_title = sprintf( __( 'Year: %s', 'ample' ), '' . get_the_date( 'Y' ) . '' );
else :
$ample_header_title = __( 'Archives', 'ample' );
endif;
}
elseif( is_404() ) {
$ample_header_title = __( 'Page NOT Found', 'ample' );
}
elseif( is_search() ) {
$ample_header_title = sprintf( __( 'Search Results For: %s', 'ample' ), '' . get_search_query() . '' );
}
elseif( is_page() ) {
$ample_header_title = get_the_title();
}
elseif( is_single() ) {
$ample_header_title = get_the_title();
}
elseif( is_home() ){
$queried_id = get_option( 'page_for_posts' );
$ample_header_title = get_the_title( $queried_id );
}
else {
$ample_header_title = '';
}
return $ample_header_title;
}
endif;
/****************************************************************************************/
if ( ! function_exists( 'ample_breadcrumb' ) ) :
/**
* Display breadcrumb on header.
*
* If the page is home or front page, slider is displayed.
* In other pages, breadcrumb will display if breadcrumb NavXT plugin exists.
*/
function ample_breadcrumb() {
if( function_exists( 'bcn_display' ) ) {
echo '';
echo ''.__( 'You are here:', 'ample' ).'';
bcn_display();
echo '
';
}
}
endif; ?>