-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavbar_skeleton.php
35 lines (34 loc) · 1.84 KB
/
navbar_skeleton.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
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only"><?php echo $_SITE_NAVIGATE_TOGGLE; ?></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Kontest</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="home.php"><?php echo $_SITE_TITLE_HOME; ?></a></li>
<?php
if($userRow['user_role'] >= 50)
echo "<li><a href=\"users.php\">". $_SITE_TITLE_USER ."</a></li>\n";
?>
<li><a href="contest.php"><?php echo $_SITE_TITLE_CONTEST; ?></a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-user"></span> <?php echo $userRow['user_name']; ?> <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="profile.php"><span class="glyphicon glyphicon-user"></span> <?php echo $_SITE_NAVIGATE_PROFILE; ?></a></li>
<li><a href="about.php"><span class="glyphicon glyphicon-info-sign"></span> <?php echo $_SITE_NAVIGATE_ABOUT; ?></a></li>
<li><a href="logout.php?logout=true"><span class="glyphicon glyphicon-log-out"></span> <?php echo $_SITE_NAVIGATE_LOGOFF; ?></a></li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>