Server : Apache System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64 User : nobody ( 99) PHP Version : 8.1.23 Disable Function : NONE Directory : /home/dnlcambodia/www/ |
<?php function isCurrentPage($page) { $currentPage = basename($_SERVER['PHP_SELF']); if ($currentPage === $page) { return 'active'; } return ''; } ?> <style> @font-face { font-family: 'Khmer OS Siemreap'; src: url('assets/css/KhmerOSSiemreap.ttf') format('truetype'); } /* Style for dropdown toggle */ .dropdown-active { cursor: pointer; padding: 0.5rem; border-radius: 0.375rem; transition: background-color 0.3s ease; } .dropdown-active:hover { background-color: #f8f9fa; /* Change to desired hover background color */ } .dropdown-menu { min-width: 7rem; padding: 0; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 0.375rem; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); } .dropdown-item { padding: 0.5rem 1rem; font-size: 0.875rem; color: #212529; font-family: 'Khmer OS Siemreap'; transition: background-color 0.3s ease; } .dropdown-item:hover { background-color: #f8f9fa; } </style> <header id="ft-header" class="ft-header-section header-style-one" style="background:#fff;"> <div class="ft-header-content-wrapper position-relative"> <div class="container"> <div class="ft-header-content position-relative"> <div class="ft-brand-logo"> <a href="#"><img src="assets/img/logo/logo3.png" alt=""></a> </div> <div class="ft-header-menu-top-cta position-relative"> <div class="ft-header-top ul-li"> <ul> <li><i class="fal fa-map-marker-alt"></i>Unit 809 (Floor 8), C7 Fortune Tower, Olympia City, Street 182 corner 161, Sangkat Veal Vong, Khan 7 Makara, Phnom Penh, Cambodia</li> </ul> </div> <div class="ft-header-main-menu d-flex justify-content-center align-items-center"> <nav class="ft-main-navigation clearfix ul-li"> <ul id="ft-main-nav" class="nav navbar-nav clearfix" style="margin-right:20px;"> <li class="<?php echo isCurrentPage('index.php'); ?>"><a href="./" style="color:<?php echo isCurrentPage('index.php') === 'active' ? '#ea1e00' : '#00570E'; ?>">Home Page</a></li> <li class="<?php echo isCurrentPage('about.php'); ?>"><a href="about" style="color:<?php echo isCurrentPage('about.php') === 'active' ? 'red' : '#00570E'; ?>">About</a></li> <li class="<?php echo isCurrentPage('service.php'); ?>"><a href="service" style="color:<?php echo isCurrentPage('service.php') === 'active' ? 'red' : '#00570E'; ?>">Service</a></li> <li class="<?php echo isCurrentPage('activities.php'); ?>"><a href="activities" style="color:<?php echo isCurrentPage('activities.php') === 'active' ? 'red' : '#00570E'; ?>">Project</a></li> <li class="<?php echo isCurrentPage('news.php'); ?>"><a href="news" style="color:<?php echo isCurrentPage('news.php') === 'active' ? 'red' : '#00570E'; ?>">News</a></li> <li class="dropdown"> <a href="faq.php" style="color:<?php echo isCurrentPage('faq.php') === 'active' ? 'red' : '#00570E'; ?>">Other</a> </li> </ul> </nav> <div class="ft-header-cta-btn"> <a class="d-flex justify-content-center align-items-center" href="contact.php" style="background:#00570E; color:#fff;">Get A Quote</a> </div> <div class="dropdown" style="margin-right: 60px;"> <button class="btn dropdown-toggle" type="button" id="dropdownLanguage" data-bs-toggle="dropdown" aria-expanded="false"> <img src="./assets/flag/English-Flag.png" alt="Eng" style="width:43px;"> Eng </button> <ul class="dropdown-menu" aria-labelledby="dropdownLanguage"> <li><a class="dropdown-item" href="./Khmer/"> <img src="./assets/flag/Khmer-Flag.png" alt="Eng" style="width:43px;">ខ្មែរ </a></li> </ul> </div> </div> </div> <div class="mobile_menu position-relative"> <div class="mobile_menu_button open_mobile_menu" style="color:#00570E;"> <i class="fal fa-bars"></i> </div> <div class="mobile_menu_wrap"> <div class="mobile_menu_overlay open_mobile_menu"></div> <div class="mobile_menu_content"> <div class="mobile_menu_close open_mobile_menu"> <i class="fal fa-times"></i> </div> <div class="m-brand-logo"> <a href="!#"><img src="assets/img/logo/logo3.png" alt=""></a> </div> <nav class="mobile-main-navigation clearfix ul-li"> <ul id="m-main-nav" class="navbar-nav text-capitalize clearfix"> <li><a href="index.php">Home Page</a></li> <li><a href="about.php">About</a></li> <li><a href="service.php" style="color:#00570E;">Service</a></li> <li><a href="activities.php" style="color:#00570E;">Project</a></li> <li><a href="blog.php" style="color:#00570E;">News</a></li> <li><a href="#">Other</a></li> <li></li> </ul> <div class="dropdown" style="margin-top:20px;"> <button class="btn dropdown-toggle" type="button" id="dropdownLanguage" data-bs-toggle="dropdown" aria-expanded="false"> <img src="./assets/flag/English-Flag.png" alt="Eng" style="width:45px;"> Eng </button> <ul class="dropdown-menu" aria-labelledby="dropdownLanguage"> <li><a class="dropdown-item" href="./Khmer/"> <img src="./assets/flag/Khmer-Flag.png" alt="Eng" style="width:45px;">ខ្មែរ </a></li> </ul> </div> </nav> </div> </div> </div> </div> </div> <div class="ft-header-cta-info d-flex" style="font-size: medium;"> <div class="ft-header-cta-icon d-flex justify-content-center align-items-center" style="background:#00570E;"> <i class="flaticon-call"></i> </div> <div class="ft-header-cta-text headline pera-content" style="color:#00570E;"> <p>Get In Touch</p> <h3>+855 23 885 335</h3> </div> </div> </div> </header>