📁 File Manager
Editing:
/home/wvl7mof7402e/www/wingstourandtravels.com/header.php
<?php /** * ============================================================ * WINGS TOUR & TRAVELS * PROFESSIONAL RESPONSIVE HEADER WITH DROPDOWNS & BREADCRUMB * ============================================================ */ require_once __DIR__ . '/db_config.php'; $conn = $GLOBALS['conn']; // Dynamic Breadcrumb Logic $current_page = basename($_SERVER['PHP_SELF']); $breadcrumbs = []; if ($current_page !== 'index.php') { $breadcrumbs[] = ['title' => 'Home', 'link' => 'index.php']; switch ($current_page) { case 'about.php': $breadcrumbs[] = ['title' => 'About Us', 'link' => '']; break; case 'chardham.php': $breadcrumbs[] = ['title' => 'Chardham Yatra', 'link' => 'chardham.php']; $breadcrumbs[] = ['title' => 'Chardham Yatra By Helicopter', 'link' => '']; break; case 'detail.php': $det_id = isset($_GET['id']) ? intval($_GET['id']) : 0; $option_title = 'Tour Details'; if ($det_id > 0) { $opt_query = "SELECT option_name FROM dropdown_options WHERE id = $det_id"; $opt_res = mysqli_query($conn, $opt_query); if ($opt_res && mysqli_num_rows($opt_res) > 0) { $opt_row = mysqli_fetch_assoc($opt_res); $option_title = $opt_row['option_name']; } } $breadcrumbs[] = ['title' => $option_title, 'link' => '']; break; case 'itinerary.php': $breadcrumbs[] = ['title' => 'Tour Details', 'link' => '']; $breadcrumbs[] = ['title' => 'Itinerary', 'link' => '']; break; case 'inclusions.php': $breadcrumbs[] = ['title' => 'Tour Details', 'link' => '']; $breadcrumbs[] = ['title' => 'Inclusions', 'link' => '']; break; case 'hotels.php': $breadcrumbs[] = ['title' => 'Tour Details', 'link' => '']; $breadcrumbs[] = ['title' => 'Hotels & Stay', 'link' => '']; break; case 'guidelines.php': $breadcrumbs[] = ['title' => 'Tour Details', 'link' => '']; $breadcrumbs[] = ['title' => 'Guidelines', 'link' => '']; break; case 'contact.php': $breadcrumbs[] = ['title' => 'Contact Us', 'link' => '']; break; case 'book.php': $breadcrumbs[] = ['title' => 'Book Now', 'link' => '']; break; default: $clean_name = ucwords(str_replace(['-', '_', '.php'], [' ', ' ', ''], $current_page)); $breadcrumbs[] = ['title' => $clean_name, 'link' => '']; break; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Chardham Yatra By Helicopter 2026 | Wings Tour & Travels</title> <!-- Font Awesome --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css"> <!-- Google Fonts --> <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800;900&family=Montserrat:wght@600;700&display=swap" rel="stylesheet"> <style> /* ==================================================== ROOT VARIABLES ==================================================== */ :root { --saffron: #D4A359; --deep-saffron: #E65100; --forest-green: #1B5E20; --dark-green: #0F172A; --text-dark: #1E293B; --white: #FFFFFF; --soft-green: #f3f8f4; --soft-orange: #fff6ed; --border: rgba(15, 23, 42, 0.10); } /* RESET */ * { margin: 0; padding: 0; box-sizing: border-box; } html { scroll-behavior: smooth; } body { margin: 0; background: #FAFAFA; color: var(--text-dark); font-family: 'Poppins', Arial, sans-serif; line-height: 1.6; overflow-x: hidden; } a { text-decoration: none; } button { font-family: inherit; } /* HEADER WRAPPER */ .hh-header { position: sticky; top: 0; z-index: 9999; width: 100%; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08); border-bottom: 1px solid var(--border); } /* TOP BAR */ .hh-topbar { width: 100%; min-height: 37px; padding: 7px 4%; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #ffffff; background: linear-gradient(90deg, #0F172A, #1E293B, #0F172A); font-size: 12px; } .hh-top-info { display: flex; align-items: center; gap: 22px; flex-shrink: 0; } .hh-top-info-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #ffffff; } .hh-top-info-item i { color: var(--saffron); font-size: 12px; } .hh-top-info-item span, .hh-top-info-item a { color: rgba(255,255,255,0.92); } .hh-top-alert { flex: 1; min-width: 0; max-width: 650px; overflow: hidden; text-align: right; white-space: nowrap; color: var(--saffron); font-size: 12px; font-weight: 600; } .hh-top-alert-content { display: inline-block; padding-left: 100%; animation: hhMarquee 18s linear infinite; } @keyframes hhMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } } /* MAIN NAVIGATION */ .hh-main { width: 100%; } .hh-container { width: min(94%, 1420px); min-height: 78px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; } /* LOGO STYLING FIXED */ .hh-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; } .hh-logo-img { height: 80px; width: auto; object-fit: contain; } .hh-header-logo-text { display: flex; flex-direction: column; justify-content: center; text-align: left; } .hh-logo-title { font-family: 'Cinzel', 'Times New Roman', serif; font-size: 26px; font-weight: 800; color: #12521f !important; letter-spacing: 2px; line-height: 1; text-transform: uppercase; display: block !important; } .hh-logo-subtitle { font-family: 'Montserrat', sans-serif; font-size: 8.5px; font-weight: 700; color: #12521f !important; letter-spacing: 1.5px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; white-space: nowrap; } .hh-header-logo-subtitle::before, .hh-header-logo-subtitle::after { content: ''; display: inline-block; width: 8px; height: 1.5px; background-color: #12521f; } /* DESKTOP NAV */ .hh-nav { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex: 1; list-style: none; } .hh-nav-item { position: relative; } .hh-nav-item > a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 10px; min-height: 42px; border-radius: 11px; color: #12521f; font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: color .25s ease, background .25s ease; } .hh-nav-item > a i { color: #12521f; font-size: 11px; transition: color .25s ease; } .hh-nav-item:hover > a { color: var(--deep-saffron); background: var(--soft-orange); } .hh-nav-item:hover > a i { color: var(--deep-saffron); } /* DROPDOWN MENU STYLING (AUTO HEIGHT - NO SCROLL) */ .hh-dropdown { position: absolute; top: 100%; left: 0; min-width: 250px; max-height: none; overflow-y: visible; background: #ffffff; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12); border-radius: 14px; padding: 8px 0; list-style: none; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.25s ease; z-index: 1000; border: 1px solid var(--border); } .hh-nav-item:hover .hh-dropdown { opacity: 1; visibility: visible; transform: translateY(0); } .hh-dropdown li a { display: flex; align-items: center; gap: 8px; padding: 9px 18px; font-size: 12.5px; color: #12521f; font-weight: 500; transition: background 0.2s ease, color 0.2s ease; } .hh-dropdown li a:hover { background: var(--soft-orange); color: var(--deep-saffron); } .hh-dropdown li a i { font-size: 11px; color: var(--deep-saffron); } /* BOOK NOW BUTTON */ .hh-book { margin-left: 5px; padding: 11px 17px !important; border-radius: 12px !important; color: #ffffff !important; background: linear-gradient(135deg, var(--deep-saffron), var(--saffron)) !important; font-weight: 700 !important; box-shadow: 0 8px 18px rgba(230, 81, 0, 0.22); } .hh-book i { color: #ffffff !important; } .hh-book:hover { color: #ffffff !important; transform: translateY(-1px); background: linear-gradient(135deg, var(--saffron), var(--deep-saffron)) !important; } /* MOBILE TOGGLE & MENU */ .hh-mobile-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid rgba(15, 23, 42, 0.10); border-radius: 12px; background: #f5f8f6; color: var(--dark-green); font-size: 19px; cursor: pointer; } .hh-mobile-menu { display: none; position: absolute; top: calc(100% + 8px); left: 3%; right: 3%; padding: 12px; border: 1px solid rgba(15, 23, 42, 0.10); border-radius: 17px; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(16px); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14); max-height: 80vh; overflow-y: auto; } .hh-mobile-menu.open { display: block; animation: hhMenuOpen .22s ease; } @keyframes hhMenuOpen { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } } .hh-mobile-menu > a { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; margin-bottom: 2px; border-radius: 11px; color: var(--text-dark); font-size: 13.5px; font-weight: 600; } .hh-mobile-menu > a:hover { color: var(--deep-saffron); background: var(--soft-orange); } .hh-mobile-menu > a i { width: 20px; color: var(--deep-saffron); text-align: center; } /* MOBILE ACCORDION DROPDOWN */ .hh-mob-dropdown-container { margin-bottom: 4px; } .hh-mob-dropdown-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px; border-radius: 11px; color: var(--text-dark); font-size: 13.5px; font-weight: 600; background: transparent; border: none; cursor: pointer; text-align: left; } .hh-mob-dropdown-toggle:hover { color: var(--deep-saffron); background: var(--soft-orange); } .hh-mob-dropdown-toggle .left-icon-text { display: flex; align-items: center; gap: 11px; } .hh-mob-dropdown-toggle .left-icon-text i { width: 20px; color: var(--deep-saffron); text-align: center; } .hh-mob-dropdown-toggle .fa-chevron-down { font-size: 10px; transition: transform 0.3s ease; color: #888; } .hh-mob-dropdown-content { display: none; padding-left: 20px; background: #fafafa; border-radius: 10px; margin: 4px 0 6px 0; border: 1px solid var(--border); } .hh-mob-dropdown-content a { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; padding: 8px 10px; color: #12521f; border-radius: 8px; } .hh-mob-dropdown-content a:hover { color: var(--deep-saffron); background: var(--soft-orange); } .hh-mob-dropdown-container.active .hh-mob-dropdown-content { display: block; } .hh-mob-dropdown-container.active .fa-chevron-down { transform: rotate(180deg); color: var(--deep-saffron); } .hh-mobile-book { justify-content: center; margin-top: 8px !important; color: #ffffff !important; background: var(--deep-saffron) !important; } .hh-mobile-book i { color: #ffffff !important; } /* BREADCRUMB STYLING */ .hh-breadcrumb-container { width: 100%; background-color: #fcf9f4; padding: 12px 0; border-bottom: 1px solid #eee7dd; } .hh-breadcrumb-wrap { width: min(94%, 1420px); margin: 0 auto; display: flex; align-items: center; gap: 8px; font-size: 13px; } .crumb-link { color: var(--deep-saffron); text-decoration: none; font-weight: 500; transition: color 0.2s ease; } .crumb-link:hover { color: var(--dark-green); text-decoration: underline; } .crumb-separator { color: #888888; font-size: 12px; } .crumb-current { color: #17231d; font-weight: 600; } /* MEDIA QUERIES */ @media (max-width: 1250px) { .hh-container { width: 95%; gap: 13px; } .hh-nav-item > a { padding: 9px 7px; font-size: 12px; } .hh-book { padding: 10px 13px !important; } } @media (max-width: 1050px) { .hh-topbar { padding: 7px 4%; } .hh-top-info { gap: 15px; } .hh-top-alert { display: none; } .hh-container { width: 92%; min-height: 70px; } .hh-nav { display: none; } .hh-mobile-toggle { display: flex; } } @media (max-width: 600px) { .hh-topbar { min-height: 34px; padding: 6px 4%; justify-content: center; font-size: 10.5px; } .hh-top-info { justify-content: center; gap: 14px; width: 100%; } .hh-container { min-height: 65px; width: 92%; } .hh-logo-img { height: 38px; } .hh-logo-title { font-size: 19px; letter-spacing: 1px; } .hh-logo-subtitle { font-size: 7px; letter-spacing: 1px; } .hh-logo-subtitle::before, .hh-logo-subtitle::after { width: 8px; } .hh-mobile-toggle { width: 42px; height: 42px; font-size: 18px; } .hh-mobile-menu { left: 2%; right: 2%; } .hh-breadcrumb-wrap { font-size: 11.5px; gap: 6px; } } /* ========================================================= FINAL MOBILE / TABLET RESPONSIVE UI OVERRIDE Content, PHP logic, database queries and links unchanged. ========================================================= */ html, body { width: 100%; max-width: 100%; overflow-x: hidden; } .hh-header, .hh-topbar, .hh-main, .hh-container, .hh-mobile-menu, .hh-breadcrumb-container, .hh-breadcrumb-wrap { max-width: 100%; } .hh-container, .hh-breadcrumb-wrap { padding-left: 12px; padding-right: 12px; } .hh-logo-text { min-width: 0; } .hh-logo-title, .hh-logo-subtitle { overflow: hidden; text-overflow: ellipsis; } .hh-mobile-toggle { flex: 0 0 auto; -webkit-tap-highlight-color: transparent; } .hh-mobile-toggle:focus-visible, .hh-mob-dropdown-toggle:focus-visible, .hh-mobile-menu a:focus-visible { outline: 2px solid var(--deep-saffron); outline-offset: 2px; } .hh-mobile-menu { box-sizing: border-box; -webkit-overflow-scrolling: touch; } .hh-mobile-menu a, .hh-mob-dropdown-toggle { min-height: 44px; } .hh-breadcrumb-wrap { min-width: 0; flex-wrap: wrap; line-height: 1.45; } .crumb-link, .crumb-current { min-width: 0; overflow-wrap: anywhere; word-break: break-word; } @media (max-width: 1050px) { .hh-topbar { min-height: 34px; } .hh-container { min-height: 68px; } .hh-logo-img { max-width: 48px; } } @media (max-width: 767px) { .hh-header { box-shadow: 0 5px 18px rgba(0, 0, 0, .08); } .hh-topbar { min-height: auto; padding: 6px 10px; display: block; } .hh-top-info { width: 100%; display: flex; justify-content: center; align-items: center; gap: 8px 14px; flex-wrap: wrap; line-height: 1.2; } .hh-top-info-item { gap: 5px; font-size: 10px; max-width: 100%; } .hh-top-info-item span, .hh-top-info-item a { overflow-wrap: anywhere; } .hh-top-info-item i { font-size: 10px; flex: 0 0 auto; } .hh-container { width: 100%; min-height: 60px; padding: 7px 12px; gap: 8px; } .hh-logo { min-width: 0; max-width: calc(100% - 52px); gap: 7px; } .hh-logo-img { width: 38px; height: 38px; flex: 0 0 38px; } .hh-logo-title { font-size: 18px; letter-spacing: .8px; line-height: 1; } .hh-logo-subtitle { font-size: 6.5px; letter-spacing: .8px; margin-top: 3px; } .hh-logo-subtitle::before, .hh-logo-subtitle::after { width: 5px; } .hh-mobile-toggle { width: 40px; height: 40px; min-width: 40px; border-radius: 11px; font-size: 17px; } .hh-mobile-menu { top: calc(100% + 5px); left: 10px; right: 10px; width: auto; padding: 8px; border-radius: 15px; max-height: min(76vh, 520px); } .hh-mobile-menu > a, .hh-mob-dropdown-toggle { padding: 9px 10px; font-size: 13px; min-height: 44px; } .hh-mobile-menu > a i, .hh-mob-dropdown-toggle .left-icon-text i { width: 18px; font-size: 13px; } .hh-mob-dropdown-content { padding: 3px 7px 5px 17px; margin: 3px 0 5px; } .hh-mob-dropdown-content a { min-height: 40px; padding: 7px 8px; font-size: 12px; line-height: 1.35; } .hh-mobile-book { margin-top: 6px !important; border-radius: 10px !important; } .hh-breadcrumb-container { padding: 8px 0; } .hh-breadcrumb-wrap { width: 100%; padding-left: 12px; padding-right: 12px; font-size: 10.5px; gap: 5px; } .crumb-separator { font-size: 9px; } } @media (max-width: 480px) { .hh-top-info { gap: 5px 10px; } .hh-top-info-item { font-size: 9.5px; } .hh-container { min-height: 57px; padding: 6px 10px; } .hh-logo { gap: 6px; } .hh-logo-img { width: 35px; height: 35px; flex-basis: 35px; } .hh-logo-title { font-size: 17px; } .hh-logo-subtitle { font-size: 6px; letter-spacing: .6px; } .hh-mobile-toggle { width: 38px; height: 38px; min-width: 38px; } .hh-mobile-menu { left: 7px; right: 7px; padding: 7px; } .hh-breadcrumb-wrap { font-size: 10px; } } @media (max-width: 380px) { .hh-top-info { flex-direction: column; gap: 3px; } .hh-topbar { padding: 5px 8px; } .hh-top-info-item { font-size: 9px; } .hh-container { min-height: 54px; padding: 5px 9px; } .hh-logo-img { width: 32px; height: 32px; flex-basis: 32px; } .hh-logo-title { font-size: 15.5px; } .hh-logo-subtitle { font-size: 5.5px; letter-spacing: .45px; } .hh-mobile-toggle { width: 36px; height: 36px; min-width: 36px; border-radius: 10px; font-size: 16px; } .hh-mobile-menu { left: 5px; right: 5px; max-height: 72vh; } .hh-mobile-menu > a, .hh-mob-dropdown-toggle { font-size: 12.5px; padding: 8px 9px; } .hh-breadcrumb-wrap { font-size: 9.5px; } } @media (orientation: landscape) and (max-width: 767px) { .hh-mobile-menu { max-height: 68vh; } .hh-topbar { padding-top: 4px; padding-bottom: 4px; } .hh-container { min-height: 54px; } } @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } } </style> </head> <body> <!-- HEADER --> <header class="hh-header"> <!-- TOP BAR --> <div class="hh-topbar"> <div class="hh-top-info"> <div class="hh-top-info-item"> <i class="fas fa-phone-alt"></i> <a href="tel:+917827366566">+91 7827366566</a> </div> <div class="hh-top-info-item"> <i class="fas fa-envelope"></i> <a href="mailto:wingstourandtravels6@gmail.com">wingstourandtravels6@gmail.com</a> </div> </div> <div class="hh-top-alert"> <div class="hh-top-alert-content"> 🔔 Bookings open for 2026 Chardham Yatra! Limited seats available. </div> </div> </div> <!-- MAIN NAVIGATION --> <div class="hh-main"> <div class="hh-container"> <!-- LOGO --> <a href="index.php" class="hh-logo" aria-label="Wings Tour and Travels Home"> <img src="assents/images/logo.png" alt="Wings Logo" class="hh-logo-img"> <div class="hh-logo-text"> <span class="hh-logo-title">WINGS</span> <span class="hh-logo-subtitle">TOUR and TRAVELS</span> </div> </a> <!-- DESKTOP NAVIGATION --> <ul class="hh-nav" aria-label="Main Navigation"> <li class="hh-nav-item"> <a href="index.php"><i class="fas fa-house"></i> Home</a> </li> <li class="hh-nav-item"> <a href="about.php"><i class="fas fa-circle-info"></i> About</a> </li> <!-- CHARDHAM DROPDOWN --> <li class="hh-nav-item"> <a href="chardham.php"><i class="fas fa-place-of-worship"></i> Chardham <i class="fas fa-chevron-down" style="font-size: 9px; margin-left: 2px;"></i></a> <ul class="hh-dropdown"> <li><a href="chardham.php"><i class="fas fa-angle-right"></i> Chardham Yatra By Helicopter</a></li> <li><a href="do-dham-yatra-by-helicopter.php"><i class="fas fa-angle-right"></i> Do Dham Yatra By Helicopter</a></li> <li><a href="kedarnath-by-helicopter.php"><i class="fas fa-angle-right"></i> Kedarnath By Helicopter</a></li> <li><a href="badrinath-by-helicopter.php"><i class="fas fa-angle-right"></i> Badrinath By Helicopter</a></li> </ul> </li> <!-- TOUR DETAILS DROPDOWN --> <li class="hh-nav-item"> <a href="#"><i class="fas fa-layer-group"></i> Tour Details <i class="fas fa-chevron-down" style="font-size: 9px; margin-left: 2px;"></i></a> <ul class="hh-dropdown"> <li><a href="itinerary.php"><i class="fas fa-route"></i> Itinerary</a></li> <li><a href="inclusions.php"><i class="fas fa-circle-check"></i> Inclusions</a></li> <li><a href="hotels.php"><i class="fas fa-hotel"></i> Hotels & Stay</a></li> <li><a href="guidelines.php"><i class="fas fa-shield-halved"></i> Guidelines</a></li> </ul> </li> <!-- DYNAMIC MENUS ADDED FROM DATABASE --> <?php $menu_sql = "SELECT * FROM main_menus"; $menu_result = mysqli_query($conn, $menu_sql); if($menu_result && mysqli_num_rows($menu_result) > 0) { while($menu_row = mysqli_fetch_assoc($menu_result)) { $menu_id = $menu_row['id']; $menu_name = $menu_row['menu_name']; $sub_sql = "SELECT * FROM dropdown_options WHERE main_menu_id = '$menu_id'"; $sub_result = mysqli_query($conn, $sub_sql); echo '<li class="hh-nav-item">'; echo '<a href="#"><i class="fas fa-layer-group"></i> ' . htmlspecialchars($menu_name) . ' <i class="fas fa-chevron-down" style="font-size: 9px; margin-left: 2px;"></i></a>'; if($sub_result && mysqli_num_rows($sub_result) > 0) { echo '<ul class="hh-dropdown">'; while($sub_row = mysqli_fetch_assoc($sub_result)) { $option_id = $sub_row['id']; $option_name = $sub_row['option_name']; echo '<li><a href="detail.php?id=' . $option_id . '"><i class="fas fa-angle-right"></i> ' . htmlspecialchars($option_name) . '</a></li>'; } echo '</ul>'; } echo '</li>'; } } ?> <li class="hh-nav-item"> <a href="contact.php"><i class="fas fa-phone"></i> Contact</a> </li> <li class="hh-nav-item"> <a href="book.php" class="hh-book"><i class="fas fa-paper-plane"></i> Book Now</a> </li> </ul> <!-- MOBILE MENU BUTTON --> <button type="button" class="hh-mobile-toggle" id="hhMobileToggle" aria-label="Open Menu" aria-expanded="false"> <i class="fas fa-bars" id="hhMenuIcon"></i> </button> </div> </div> <!-- MOBILE MENU WITH INTERACTIVE ACCORDIONS --> <nav class="hh-mobile-menu" id="hhMobileMenu" aria-label="Mobile Navigation"> <a href="index.php"><i class="fas fa-house"></i> <span>Home</span></a> <a href="about.php"><i class="fas fa-circle-info"></i> <span>About Us</span></a> <!-- CHARDHAM MOBILE DROPDOWN --> <div class="hh-mob-dropdown-container"> <button type="button" class="hh-mob-dropdown-toggle"> <span class="left-icon-text"><i class="fas fa-place-of-worship"></i> <span>Chardham Services</span></span> <i class="fas fa-chevron-down"></i> </button> <div class="hh-mob-dropdown-content"> <a href="chardham.php"><i class="fas fa-angle-right"></i> Chardham Yatra</a> <a href="do-dham-yatra-by-helicopter.php"><i class="fas fa-angle-right"></i> Do Dham Yatra</a> <a href="kedarnath-by-helicopter.php"><i class="fas fa-angle-right"></i> Kedarnath By Helicopter</a> <a href="badrinath-by-helicopter.php"><i class="fas fa-angle-right"></i> Badrinath By Helicopter</a> </div> </div> <!-- TOUR DETAILS MOBILE DROPDOWN --> <div class="hh-mob-dropdown-container"> <button type="button" class="hh-mob-dropdown-toggle"> <span class="left-icon-text"><i class="fas fa-layer-group"></i> <span>Tour Information</span></span> <i class="fas fa-chevron-down"></i> </button> <div class="hh-mob-dropdown-content"> <a href="itinerary.php"><i class="fas fa-angle-right"></i> Itinerary</a> <a href="inclusions.php"><i class="fas fa-angle-right"></i> Inclusions</a> <a href="hotels.php"><i class="fas fa-angle-right"></i> Hotels & Stay</a> <a href="guidelines.php"><i class="fas fa-angle-right"></i> Guidelines</a> </div> </div> <!-- DYNAMIC DATABASE MENUS MOBILE ACCORDIONS --> <?php $menu_result_mob = mysqli_query($conn, "SELECT * FROM main_menus"); if($menu_result_mob && mysqli_num_rows($menu_result_mob) > 0) { while($menu_row_m = mysqli_fetch_assoc($menu_result_mob)) { $m_id = $menu_row_m['id']; $m_name = $menu_row_m['menu_name']; $sub_res_mob = mysqli_query($conn, "SELECT * FROM dropdown_options WHERE main_menu_id = '$m_id'"); echo '<div class="hh-mob-dropdown-container">'; echo '<button type="button" class="hh-mob-dropdown-toggle">'; echo '<span class="left-icon-text"><i class="fas fa-map-location-dot"></i> <span>' . htmlspecialchars($m_name) . '</span></span>'; echo '<i class="fas fa-chevron-down"></i>'; echo '</button>'; echo '<div class="hh-mob-dropdown-content">'; if($sub_res_mob && mysqli_num_rows($sub_res_mob) > 0) { while($sub_m_row = mysqli_fetch_assoc($sub_res_mob)) { $option_id = $sub_m_row['id']; echo '<a href="detail.php?id=' . $option_id . '"><i class="fas fa-angle-right"></i> <span>' . htmlspecialchars($sub_m_row['option_name']) . '</span></a>'; } } echo '</div>'; echo '</div>'; } } ?> <a href="contact.php"><i class="fas fa-phone"></i> <span>Contact Us</span></a> <a href="book.php" class="hh-mobile-book"><i class="fas fa-paper-plane"></i> <span>Book / Enquire Now</span></a> </nav> </header> <!-- AUTOMATIC BREADCRUMB BAR --> <?php if (!empty($breadcrumbs)): ?> <div class="hh-breadcrumb-container"> <div class="hh-breadcrumb-wrap"> <?php foreach ($breadcrumbs as $index => $crumb): ?> <?php if (!empty($crumb['link'])): ?> <a href="<?php echo $crumb['link']; ?>" class="crumb-link"><?php echo $crumb['title']; ?></a> <?php else: ?> <span class="crumb-current"><?php echo $crumb['title']; ?></span> <?php endif; ?> <?php if ($index < count($breadcrumbs) - 1): ?> <span class="crumb-separator">></span> <?php endif; ?> <?php endforeach; ?> </div> </div> <?php endif; ?> <!-- SCRIPT --> <script> (function () { const toggle = document.getElementById('hhMobileToggle'); const menu = document.getElementById('hhMobileMenu'); const icon = document.getElementById('hhMenuIcon'); if (!toggle || !menu || !icon) return; toggle.addEventListener('click', function () { const opened = menu.classList.toggle('open'); toggle.setAttribute('aria-expanded', opened ? 'true' : 'false'); if (opened) { icon.classList.remove('fa-bars'); icon.classList.add('fa-xmark'); } else { icon.classList.remove('fa-xmark'); icon.classList.add('fa-bars'); } }); // Mobile Accordion Dropdowns Toggle Logic const mobDropdownToggles = document.querySelectorAll('.hh-mob-dropdown-toggle'); mobDropdownToggles.forEach(btn => { btn.addEventListener('click', function () { const container = this.parentElement; document.querySelectorAll('.hh-mob-dropdown-container').forEach(item => { if (item !== container) { item.classList.remove('active'); } }); container.classList.toggle('active'); }); }); document.addEventListener('click', function (event) { if (!menu.contains(event.target) && !toggle.contains(event.target)) { menu.classList.remove('open'); toggle.setAttribute('aria-expanded', 'false'); icon.classList.remove('fa-xmark'); icon.classList.add('fa-bars'); } }); })(); </script> </html>
Save
Cancel