= 2 || $page >= 2 ) {
$filtered_title .= ' | ' . sprintf( __( 'Page %s', 'spacious' ), max( $paged, $page ) );
}
// Return the modified title
return $filtered_title;
}
endif;
/****************************************************************************************/
if ( ! function_exists( 'spacious_render_header_image' ) ) :
/**
* Shows the small info text on top header part
*/
function spacious_render_header_image() {
$header_image = get_header_image();
if( !empty( $header_image ) ) {
?>
' . 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() ) :
$spacious_header_title = sprintf( __( 'Day: %s', 'spacious' ), '' . get_the_date() . '' );
elseif ( is_month() ) :
$spacious_header_title = sprintf( __( 'Month: %s', 'spacious' ), '' . get_the_date( 'F Y' ) . '' );
elseif ( is_year() ) :
$spacious_header_title = sprintf( __( 'Year: %s', 'spacious' ), '' . get_the_date( 'Y' ) . '' );
elseif ( is_tax( 'post_format', 'post-format-aside' ) ) :
$spacious_header_title = __( 'Asides', 'spacious' );
elseif ( is_tax( 'post_format', 'post-format-image' ) ) :
$spacious_header_title = __( 'Images', 'spacious');
elseif ( is_tax( 'post_format', 'post-format-video' ) ) :
$spacious_header_title = __( 'Videos', 'spacious' );
elseif ( is_tax( 'post_format', 'post-format-quote' ) ) :
$spacious_header_title = __( 'Quotes', 'spacious' );
elseif ( is_tax( 'post_format', 'post-format-link' ) ) :
$spacious_header_title = __( 'Links', 'spacious' );
else :
$spacious_header_title = __( 'Archives', 'spacious' );
endif;
}
elseif( is_404() ) {
$spacious_header_title = __( 'Page NOT Found', 'spacious' );
}
elseif( is_search() ) {
$spacious_header_title = __( 'Search Results', 'spacious' );
}
elseif( is_page() ) {
$spacious_header_title = get_the_title();
}
elseif( is_single() ) {
$spacious_header_title = get_the_title();
}
else {
$spacious_header_title = '';
}
return $spacious_header_title;
}
endif;
/****************************************************************************************/
if ( ! function_exists( 'spacious_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 spacious_breadcrumb() {
if( function_exists( 'bcn_display' ) ) {
echo '
';
echo ''.__( 'You are here:', 'spacious' ).'';
bcn_display();
echo '
';
}
}
endif;
?>