title: wordpress breadcrumbs from if`s to switch
body: <p>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?</p>
  
  <pre><code>function the_breadcrumb()
  {
      if (!is_front_page())
      {
          echo '&lt;li&gt;&lt;a href="' . get_option( 'home' ) . '"&gt; Home &lt;/a&gt;&lt;li&gt;';
  
          if (is_category() || is_single()) the_category(' ');
          if (is_page()) the_title();
          if (is_archive()) echo "&lt;span class='slicer'&gt;&lt;/span&gt;";
          if (is_single()) echo "&lt;span class='slicer'&gt;&lt;/span&gt;";
          if (!is_category() &amp;&amp; is_single()) the_title();
      }
      else {
          echo 'Home';
      }
  }
  </code></pre>