Fixed the URLs of the navbar
This commit is contained in:
parent
2c5643271d
commit
ce17d076aa
1 changed files with 3 additions and 3 deletions
|
@ -5,8 +5,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="navbar" >
|
<div id="navbar" >
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
<li class="<?php echo isActive("/Routes.php");?>" ><a href="/Routes.php">Routes</a></li>
|
<li class="<?php echo isActive("Routes.php");?>" ><a href="Routes.php">Routes</a></li>
|
||||||
<li class="<?php echo isActive("/Stops.php");?>"><a href="/Stops.php">Stops</a></li>
|
<li class="<?php echo isActive("Stops.php");?>"><a href="Stops.php">Stops</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
function isActive($url){
|
function isActive($url){
|
||||||
if ($_SERVER['PHP_SELF'] == $url){
|
if (basename($_SERVER['PHP_SELF']) == $url){
|
||||||
return ' active ';
|
return ' active ';
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Reference in a new issue