-
Notifications
You must be signed in to change notification settings - Fork 0
/
navigation2.php
26 lines (22 loc) · 1.42 KB
/
navigation2.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
<!-- navigation bar for the registration and login. It displays the content for the user who is not logged in-->
<?php $currentPage = basename($_SERVER['SCRIPT_FILENAME']); ?> <!-- setting current page for navigation -->
<!-- creating the navbar that collapses when the screen size gets small enough -->
<nav class="navbar navbar-inverse navbar-fixed-top" id="navigationbar">
<div class="container">
<div class="navbar-header">
<div class="navbar-brand" style="color:white; font-size:1.5em; font-weight:bold;">AsthmaApp</div>
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar1" aria-expanded="false" aria-controls="navbar1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div id="navbar1" class="collapse navbar-collapse">
<ul id="navigation" class="nav navbar-nav navbar-right">
<li <?php if ($currentPage == 'signin.php') { echo 'class="active"';} ?>><a href="signin.php"><span class="glyphicon glyphicon-log-in"></span> Sign in</a></li>
<li <?php if ($currentPage == 'registration.php') { echo 'class="active"';} ?>><a href="registration.php"><span class="glyphicon glyphicon-user"></span> Sign up</a></li>
<li></li>
</ul>
</div>
</div>
</nav>