shopping-list/public_html/cont/nav.php

47 lines
2.1 KiB
PHP
Raw Normal View History

2019-05-23 11:58:26 +02:00
<nav class="navbar navbar-expand-sm navbar-dark bg-dark rounded-bottom fixed-top">
<a class="navbar-brand" href="/">
<i class="fas fa-check-square w-auto"></i>
ShoppingList
</a>
2019-05-19 18:37:00 +02:00
2019-05-23 11:58:26 +02:00
<button class="navbar-toggler float-right" type="button" data-toggle="collapse" data-target="#navbarToggleResponsive" aria-controls="navbarToggleResponsive" aria-expanded="false" aria-label="Toggle navigation">
<i class="fas fa-bars"></i>
</button>
<div class="collapse navbar-collapse">
<ul class="navbar-nav mr-auto">
2019-05-23 14:19:35 +02:00
<li class="nav-item <?php if(($site=="list")||($site=="-1")){print_r("active");} ?>">
2019-05-24 11:11:11 +02:00
<a class="nav-link-font nav-link" href="/list"><i class="fas fa-list"></i> Liste</a>
2019-05-23 11:58:26 +02:00
</li>
<li class="nav-item <?php if($site=="recipes"){print_r("active");} ?>">
2019-05-24 11:11:11 +02:00
<a class="nav-link-font nav-link" href="/recipes"><i class="fas fa-book"></i> Rezepte</a>
2019-05-23 11:58:26 +02:00
</li>
</ul>
<ul class="navbar-nav">
<li class="nav-item <?php if($site=="settings"){print_r("active");} ?>">
2019-05-24 11:11:11 +02:00
<a class="nav-link-font nav-link" href="/settings"><i class="fas fa-user-cog"></i></a>
2019-05-23 11:58:26 +02:00
</li>
<li class="nav-item">
2019-05-24 11:11:11 +02:00
<a class="nav-link-font nav-link" href="/php/logout.php"><i class="fas fa-sign-out-alt"></i></a>
2019-05-23 11:58:26 +02:00
</li>
</ul>
</div>
2019-05-19 18:37:00 +02:00
2019-05-23 11:58:26 +02:00
<div class="collapse w-75 pl-2" id="navbarToggleResponsive">
<ul class="navbar-nav mr-auto">
<li class="nav-item <?php if(($site=="list")||($site=="-1")){print_r("active");} ?>">
2019-05-23 11:58:26 +02:00
<a class="nav-link" href="/list"><i class="fas fa-list"></i> Liste</a>
</li>
<li class="nav-item <?php if($site=="recipes"){print_r("active");} ?>">
<a class="nav-link" href="/recipes"><i class="fas fa-book"></i> Rezepte</a>
</li>
<li class="nav-item <?php if($site=="settings"){print_r("active");} ?>">
<a class="nav-link" href="/settings"><i class="fas fa-user-cog"></i> Einstellungen</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/php/logout.php"><i class="fas fa-sign-out-alt"></i> Logout</a>
</li>
</ul>
</div>
</nav>