title: Adding a Breadcrumbs php to my Bootstrap Nav Bar
body: <p>My bootstrap Nav bar intially had a <code>&lt;ul&gt;</code> tag with link. I decided to replace it with a breadcrumbs. Since it's a php file used as a header, it's php code for the breadcrumbs, placed in a <code>&lt;div&gt;</code> using the same class as the previous <code>&lt;uL&gt;</code>. I still have another <code>&lt;ul&gt;</code>that pulls right. </p>
  
  <p>The issue I am having is that the breadcrumbs are loading at the very top of my browser and the <code>&lt;uL&gt;</code>is loading where it should. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
  &lt;nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation"&gt;
         
    &lt;div class="nav navbar-nav"&gt;
     &lt;?php 
        $path = $_SERVER["PHP_SELF"];
           $parts = explode('/',$path);
        if (count($parts) &lt; 2){
        echo("home");
        }
        else {
   echo ("&lt;a href=\"/\"&gt;home&lt;/a&gt; &amp;raquo; ");
   for ($i = 1; $i &lt; count($parts); $i++)
       {
       if (!strstr($parts[$i],"."))
           {
           echo("&lt;a href=\"");
           for ($j = 0; $j &lt;= $i; $j++) {echo $parts[$j]."/";};
           echo("\"&gt;". str_replace('-', ' ', $parts[$i])."&lt;/a&gt; » ");
           }
       else
           {
            $str = $parts[$i];
           $pos = strrpos($str,".");
           $parts[$i] = substr($str, 0, $pos);
           echo str_replace('-', ' ', $parts[$i]);
           };
       };
   };  
  ?&gt;
      &lt;/div&gt;
      
      &lt;!-- &lt;ul class="nav navbar-nav"&gt;
            &lt;li class="active"&gt;&lt;a href="&lt;?php echo $tmp['t100_navlink1']; ?&gt;"&gt;&lt;?php echo getTemplateMessage('t100_navoption1'); ?&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="&lt;?php echo $tmp['t100_navlink2']; ?&gt;"&gt;&lt;?php echo getTemplateMessage('t100_navoption2'); ?&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="&lt;?php echo $tmp['t100_navlink3']; ?&gt;"&gt;&lt;?php echo getTemplateMessage('t100_navoption3'); ?&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="&lt;?php echo $tmp['t100_navlink4']; ?&gt;"&gt;&lt;?php echo getTemplateMessage('t100_navoption4'); ?&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="&lt;?php echo $tmp['t100_navlink5']; ?&gt;"&gt;&lt;?php echo getTemplateMessage('t100_navoption5'); ?&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;--&gt;
          &lt;ul class="nav navbar-nav navbar-right"&gt;
            &lt;li&gt;&lt;a href="&lt;?php echo $tmp['t100_navlink6']; ?&gt;"&gt;&lt;?php echo getTemplateMessage('t100_navoption6'); ?&gt;&lt;/a&gt;&lt;/li&gt;
          
       &lt;li&gt;&lt;?php
       if(!$currentuser) {
        if(!$tngconfig['disallowreg'])
         echo "&lt;li&gt;&lt;a href=\"newacctform.php\"&gt;{$text['mnuregister']}&lt;/a&gt;&lt;/li&gt;\n";
        echo "&lt;li&gt;&lt;a href=\"login.php\"&gt;{$text['mnulogon']}&lt;/a&gt;&lt;/li&gt;\n";
       }
       else {
        echo "&lt;li&gt;&lt;a href=\"logout.php\"&gt;{$text['mnulogout']}&lt;/a&gt;&lt;/li&gt;\n";
       }
       ?&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="&lt;?php echo $tmp['t100_navlink7']; ?&gt;"&gt;&lt;?php echo getTemplateMessage('t100_navoption7'); ?&gt;&lt;/a&gt;&lt;/li&gt;
       &lt;li&gt;&lt;a href="&lt;?php echo $tmp['t100_navlink8']; ?&gt;"&gt;&lt;?php echo getTemplateMessage('t100_navoption8'); ?&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      
        &lt;/nav&gt;
  &lt;/div&gt;     </code></pre>
  </div>
  </div>
  </p>
  
  <p>you can see what I mean if you go to <a href="http://www.mariahswind.com/TNGSandBox/surnames.php" rel="nofollow">example</a> requires login use guest and guest to login. This loads at the top above jumbotron on all pages except the index.php</p>
  
  <p>(For those interested my project is customizing with Bootstrap the output php pages of my TNG (The Next Generation of Genealogy Site Building) site.) </p>