-
Notifications
You must be signed in to change notification settings - Fork 26
/
nav.php
90 lines (72 loc) · 2.75 KB
/
nav.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
session_start();
require_once 'connect.php';
?>
<!-- Navigation -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="assets/css/index.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-red fixed-top">
<div class="container">
<a class="navbar-brand" href="index.php">Foodie</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="nav navbar-nav">
<li>
<a href="index.php">Home </a>
</li>
<li><a href="faq.php">FAQ</a>
</li>
<li><a href="about_us.php">About Us</a>
</li>
<li><a href="contact_us.php">Contact Us</a> </li>
<li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="menu" aria-haspopup="false" aria-expanded="true">Cuisine <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="result.php">Thai</a>
</li>
<li><a href="result.php">Chinese</a></li>
<li><a href="result.php">Italian</a></li>
<li role="separator" class="divider"></li>
<li><a href="result.php">Other Cuisine</a></li>
</ul>
</li>
</ul>
<?php
if(isset($_SESSION['valid'])!=true){
?>
<ul class="nav navbar-nav navbar-right">
<li><a href="sign_in.php">Sign In</a></li>
<li><a href="sign_up.php">Sign Up</a></li>
<?php require './fb-init.php'; ?>
<li><a href="<?php echo $login_url ?>">Facebook Login</a></li>
</ul>
<?php
}
else{
?>
<ul class="nav navbar-nav navbar-right">
<li><a href="profile.php">Profile</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
<?php
}
?>
</div>
</div>
</nav>
</body>
</html>