';
// Do not display on the homepage
if ( !is_front_page() ) {
// Home page
echo '
' . $home_title . '';
echo ' ' . $separator . ' ';
if ( is_single() ) {
// Single post (Only display the first category)
echo '' . sprintf( __( '%s' , 'estella') , $category[0]->cat_name ) . '';
echo ' ' . $separator . ' ';
echo '' . __( get_the_title(), 'estella' ) . '';
} else if ( is_category() ) {
// Category page
echo '' . sprintf( __( '%s' , 'estella'), $category[0]->cat_name ) . '';
} else if ( is_page() ) {
// Standard page
if( $post->post_parent ){
$parents= false;
// If child page, get parents
$anc = get_post_ancestors( $post->ID );
// Get parents in the right order
$anc = array_reverse($anc);
// Parent page loop
foreach ( $anc as $ancestor ) {
$parents .= '' . sprintf( __( '%s', 'estella' ) , get_the_title($ancestor) ) . '';
$parents .= ' ' . $separator . ' ';
}
// Display parent pages
echo $parents;
// Current page
echo ' ' . __( get_the_title(), 'estella' ) . '';
} else {
// Just display current page if not parents
echo ' ' . __( get_the_title(), 'estella' ) . '';
}
} else if ( is_tag() ) {
// Tag page
// Get tag information
$term_id = get_query_var('tag_id');
$taxonomy = 'post_tag';
$args ='include=' . $term_id;
$terms = get_terms( $taxonomy, $args );
// Display the tag name
echo '' . sprintf( __( '%s', 'estella' ), $terms[0]->name ) . '';
} elseif ( is_day() ) {
// Day archive
// Year link
echo '' . __( get_the_time('Y'), 'estella' ) . __( 'Archives', 'estella' ) . '';
echo ' ' . $separator . ' ';
// Month link
echo '' . sprintf( __( '%s', 'estella' ), get_the_time('M') ) . __( 'Archives', 'estella' ) . '';
echo ' ' . $separator . ' ';
// Day display
echo ' ' . __( get_the_time('jS'), 'estella' ) . ' ' . __( get_the_time('M'), 'estella' ) . __( 'Archives', 'estella' ) . '';
} else if ( is_month() ) {
// Month Archive
// Year link
echo '' . __( get_the_time('Y'), 'estella' ) . __( 'Archives', 'estella' ) . '';
echo ' ' . $separator . ' ';
// Month display
echo '' . __( get_the_time('M'), 'estella' ) . __( 'Archives', 'estella' ) . '';
} else if ( is_year() ) {
// Display year archive
echo '' . __( get_the_time('Y'), 'estella' ) . __( 'Archives', 'estella' ) . '';
} else if ( is_author() ) {
// Auhor archive
// Get the author information
global $author;
$userdata = get_userdata( $author );
// Display author name
echo '' . __( 'Author: ', 'estella' ) . $userdata->display_name . '';
} else if ( get_query_var('paged') ) {
// Paginated archives
echo ''.__('Page', 'estella') . ' ' . __( get_query_var('paged'), 'estella' ) . '';
} else if ( is_search() ) {
// Search results page
echo '' . __('Search results for: ', 'estella' ) . __( get_search_query(), 'estella' ) . '';
} elseif ( is_404() ) {
// 404 page
echo '' . __( 'Error 404', 'estella' ) . '';
}
}
echo '';
}
?>