-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.php
41 lines (38 loc) · 1.57 KB
/
menu.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
<?php
defined('_EXCEPTIONAL') or die("Go through the front door please.");
?>
<?php
//this is the menu across the top
?>
<nav class="navbar navbar-default navbar-fixed-top navbar-inverse" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<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="?action=about">Exceptional Emails</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<?php
global $userRef;
if($userRef){
// echo '<li><a href="?action=dashboard">Dashboard</a></li>';
echo '<li><a href="?action=expected">Alerts</a></li>';
echo '<li><a href="?action=events">Events</a></li>';
echo '<li><a href="?action=received">All Mails</a></li>';
echo '<li><a href="?action=faq">FAQ</a></li>';
echo '<li><a href="https://github.com/AlanBell/ExceptionalEmails/issues" target="_new">Issues</a></li>';
echo '<li><a href="?action=logout">Logout</a></li>';
}else{
echo '<li><a href="?action=about">Welcome</a></li>';
echo '<li><a href="?action=faq">FAQ</a></li>';
}
?>
</ul>
</div><!-- /.navbar-collapse -->
</nav>