if ( !is_front_page() && !is_home() && !is_404() ) {
echo '
';
if (!is_front_page()) {
echo '- ';
bloginfo('name');
echo "
".$separator;
if ( is_category() || is_single() ) {
echo "- ";
the_category (', ');
echo "
";
if ( is_single() ) {
echo $separator;
echo "- ";
the_title();
echo "
";
}
} elseif ( is_page() && $post->post_parent ) {
$home = get_page(get_option('page_on_front'));
for ($i = count($post->ancestors)-1; $i >= 0; $i--) {
if (($home->ID) != ($post->ancestors[$i])) {
echo '- ';
echo get_the_title($post->ancestors[$i]);
echo "
".$separator;
}
}
echo "- ";
the_title();
echo "
";
} elseif (is_page()) {
echo "- ";
the_title();
echo "
";
} elseif (is_404()) {
echo "404";
}
} else {
"- ".bloginfo('name')."
";
}
echo '
';
}
}
}