
<nav class="navbar navbar-inverse navbar-fixed-top">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
        <a class="navbar-brand" href="homepages">Website</a>
    </div>
    <div id="navbar" class="collapse navbar-collapse">
      <ul class="nav navbar-nav">
        <li <?php if ($thisPage=="blog")
          {echo " id=\"currentpage\""; }?> >
            <a href="index">Blog</a></li>	            	            
      </ul>
      <ul class="nav navbar-nav">
        <li <?php if ($thisPage=="login") {
          echo " id=\"currentpage\""; }?> >
            <a href="login">Login</a>
        </li>	            	            
      </ul><?php
      if (isset($_SESSION['rechte'])){                // admin rechte
        if ($_SESSION['rechte'] == "admin") { ?>
          <ul class="nav navbar-nav">
            <li <?php if ($thisPage=="admin") {
              echo " id=\"currentpage\""; } ?> >
              <a href="posts-admin">Admin</a>
            </li>	            	            
          </ul><?php
        }
      }  ?>

      <ul class="nav navbar-nav" style="float:right">
        <li>
          <a href="impressum">Impressum</a>
        </li>	            	            
      </ul>

    </div><!--/.nav-collapse -->
  </div>

</nav>

<br />
<br />
<br />
