-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavbar.php
63 lines (62 loc) · 1.8 KB
/
navbar.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!--menu start-->
<section id="menu">
<div class="container">
<div class="menubar">
<nav class="navbar navbar-default">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<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="index.php">
<span class="h1">NerdyBay</span>
<!-- <img src="assets/images/logo/logo.png" alt="" /> -->
</a>
</div>
<!--/.navbar-header -->
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="index.php">Home</a></li>
<li><a href="products.php">Products</a></li>
<li><a href="about.php">About</a></li>
<li><a href="contact.php">Contact</a></li>
<?php
if ($_SESSION['logincheck'] == true) {
echo '<li>
<a href="logout.php">
logout
</a>
</li>';
}
else {
echo '
<li>
<a href="login.php">
<span class="lnr lnr-user"></span>
</a>
</li>';
}
?>
<li>
<a href="cart.html">
<span class="lnr lnr-cart"></span>
</a>
</li>
</ul>
<!-- / ul -->
</div>
<!-- /.navbar-collapse -->
</nav>
<!--/nav -->
</div>
<!--/.menubar -->
</div>
<!-- /.container -->
</section>
<!--/#menu-->
<!--menu end-->