Created
March 21, 2017 21:11
-
-
Save sheminusminus/900ff4ecc3af1e326d9e9f56e7cbe207 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$actual_link = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; | |
$path = parse_url($actual_link)['path']; | |
?> | |
<div id= "menu"> | |
<ul> | |
<li><a class="<?php if ($path == '/home.php') { echo 'active'; }?>" href="home.php">Home</a></li> | |
<li><a class="<?php if ($path == '/tv.php') { echo 'active'; }?>" href="tv.php">TV</a></li> | |
<li><a class="<?php if ($path == '/watch.php') { echo 'active'; }?>" href="watch.php">Watch</a></li> | |
<li><a class="<?php if ($path == '/laptop.php') { echo 'active'; }?>" href="laptop.php">laptop</a></li> | |
<li><a class="<?php if ($path == '/cellphone.php') { echo 'active'; }?>" href="cellphone.php">Cellphone</a></li> | |
<li><a class="<?php if ($path == '/ipad.php') { echo 'active'; }?>" href="ipad.php">ipad</a></li> | |
<li class="right <?php if ($path == '/signin.php') { echo 'active'; }?>"><a href="signin.php">Sign In</a></li> | |
<li class="right <?php if ($path == '/Register.php') { echo 'active'; }?>"><a href="Register.php">Register</a></li> | |
</ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment