File manager - Edit - /home/asiatechinc/public_html/asiatech-websites/hotelmahima.com/include/header.php
Back
<?php $url = "$_SERVER[REQUEST_URI]"; $active = ''; if(strpos($url,'index') !== false){ $active = 1; } if(strpos($url,'about') !== false){ $active = 2; } if(strpos($url,'room') !== false){ $active = 3; } if(strpos($url,'facilities') !== false){ $active = 4; } if(strpos($url,'bar') !== false){ $active = 5; } if(strpos($url,'tariff') !== false){ $active = 6; } if(strpos($url,'gallery') !== false){ $active = 7; } if(strpos($url,'attraction') !== false){ $active = 8; } if(strpos($url,'contact') !== false){ $active = 9; } ?> <header> <!--Default Header Area Start--> <div class="default-header-area header-sticky"> <div class="container"> <div class="row align-items-center"> <!--Header Logo Start--> <div class="col-lg-2 col-md-6"> <div class="header-logo"> <a href="index.php"><img src="img/logo/logo.png" alt=""></a> </div> </div> <!--Header Logo End--> <!--Header Menu Start--> <div class="col-lg-8 d-none d-lg-block"> <div class="header-menu-area"> <nav> <ul class="main-menu"> <li><a href="index.php" <?php if($active == 1){ echo 'id="active"'; } ?>>Home</a> </li> <li><a href="about.php" <?php if($active == 2){ echo 'id="active"'; } ?>>About Us</a></li> <li><a href="#" <?php if($active == 3){ echo 'id="active"'; } ?>>Rooms</a> <!--Dropdown Menu Start--> <ul> <li><a href="premium.php">Premium Room</a></li> <li><a href="royal.php">Royal Room </a></li> </ul> <!--Dropdown Menu End--> </li> <li><a href="facilities.php" <?php if($active == 4){ echo 'id="active"'; } ?>>Facilities</a></li> <li><a href="bar.php" <?php if($active == 5){ echo 'id="active"'; } ?>>Bar & Restro</a></li> <li><a href="tariff.php" <?php if($active == 6){ echo 'id="active"'; } ?>>Tariff</a></li> <li><a href="gallery.php" <?php if($active == 7){ echo 'id="active"'; } ?>>Gallery</a></li> <li><a href="attraction.php" <?php if($active == 8){ echo 'id="active"'; } ?>>Attractions</a></li> <li><a href="contact.php" <?php if($active == 9){ echo 'id="active"'; } ?>>Contact Us</a></li> </ul> </nav> </div> </div> <!--Header Menu End--> <!--Book Now Area Start--> <div class="col-lg-2 col-md-6"> <div class="book-now-btn text-right"> <a href="https://asiatech.in/booking_engine/index3?token=NTI0NQ==" target="_blank">Book Now</a> </div> </div> <!--Book Now Area Start--> </div> <div class="row"> <div class="col-12"> <!--Mobile Menu Area Start--> <div class="mobile-menu d-lg-none d-xl-none"></div> <!--Mobile Menu Area End--> </div> </div> </div> </div> <!--Default Header Area End--> </header>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings