I have the following code of breadcrumbs (in functions.php). It works fine, but it has too many if statements. Maybe more logical reconfig to switch/case? How can I do it?
function the_breadcrumb()
{
if (!is_front_page())
{
echo '<li><a href="' . get_option( 'home' ) . '"> Home </a><li>';
if (is_category() || is_single()) the_category(' ');
if (is_page()) the_title();
if (is_archive()) echo "<span class='slicer'></span>";
if (is_single()) echo "<span class='slicer'></span>";
if (!is_category() && is_single()) the_title();
}
else {
echo 'Home';
}
}