';
echo '
'.get_bloginfo('name').'';
if (is_page()) {
$ancestors = get_post_ancestors($post);
if ($ancestors) {
$ancestors = array_reverse($ancestors);
foreach ($ancestors as $crumb) {
echo '
'.get_the_title($crumb).'';
}
}
}
if (is_single()) {
$category = get_the_category();
echo '
'.$category[0]->cat_name.'';
}
if (is_category()) {
$category = get_the_category();
echo '
'.$category[0]->cat_name.'';
}
// Current page
if (is_page() || is_single()) {
echo '
'.get_the_title().'';
}
echo '';
} elseif (is_front_page()) {
// Front page
echo '
';
}
?>