-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
32 lines (32 loc) · 1.13 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<nav class="nav navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#mynavBar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="index.php" class="navbar-brand">LifeStyle Stores</a>
</div>
<div class="collapse navbar-collapse" id="mynavBar">
<?php
if(isset($_SESSION["email_id"])){
?>
<ul class="nav navbar-nav navbar-right">
<li><a href="cart.php"><span class="glyphicon glyphicon-shopping-cart"></span> Cart</a></li>
<li><a href="settings.php"><span class="glyphicon glyphicon-user"></span> Settings</a></li>
<li><a href="logout.php"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li>
</ul>
<?php
}else{
?>
<ul class="nav navbar-nav navbar-right">
<li><a href="login.php"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
<li><a href="signup.php"><span class="glyphicon glyphicon-user"></span> SignUp</a></li>
</ul>
<?php
}
?>
</div>
</div>
</nav>