PK

ADDRLIN : C:/Inetpub/vhosts/dharmayatra.co.in/httpdocs/includes/
FLL :
Current File : C:/Inetpub/vhosts/dharmayatra.co.in/httpdocs/includes/header.php

   <?php
    include './includes/db.php';
    ?>
   <!DOCTYPE php>
   <html lang="en">

   <head>
       <meta charset="UTF-8">
       <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
       <meta name="description" content="Dharma Yatra - Explore Odisha's spiritual heritage with Khandai Holidays. Puri, Konark, Bhubaneswar, and authentic village tourism experiences.">
       <meta name="keywords" content="Odisha tourism, Puri, Konark, Bhubaneswar, Jagannath Temple, village tourism, Khandai Holidays">
       <meta name="author" content="Khandai Holidays Pvt Ltd">
       <title>Dharma Yatra | Khandai Holidays - Spiritual Tourism Odisha</title>

       <link rel="icon" href="./logo-transparent.png" type="image/x-icon">

       <!-- Fonts -->
       <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">

       <!-- Font Awesome Icons -->
       <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">

       <!-- Swiper.js for carousel -->
       <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css" />

       <link rel="stylesheet" href="./style.css">

       <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">

       <style>
        /* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #D4AF37;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 25px;
        gap: 20px;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .nav-menu.show {
        left: 0;
    }
    
    .nav-menu a,
    .nav-menu .nav-item {
        width: 100%;
    }
    
    .nav-menu .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background: transparent;
    }
    
    .nav-menu .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 85%;
    }
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #f0a46a;
}
.nav-menu a {
    color: #2D2A24 !important;
}
       </style>
     <script>
function toggleMenu() {
    const menu = document.getElementById("navMenu");
    menu.classList.toggle("show");
}

// Close menu when clicking outside
document.addEventListener('click', function(event) {
    const menu = document.getElementById("navMenu");
    const menuBtn = document.querySelector('.mobile-menu-btn');
    
    if (!menu.contains(event.target) && !menuBtn.contains(event.target) && menu.classList.contains('show')) {
        menu.classList.remove('show');
    }
});

// Close menu when clicking on a nav link
document.querySelectorAll('.nav-menu a, .nav-menu .dropdown-item').forEach(link => {
    link.addEventListener('click', () => {
        const menu = document.getElementById("navMenu");
        menu.classList.remove('show');
    });
});
</script>
   </head>

   <body>
       <!-- Header -->
       <header class="header">
           <div class="header-content">
               <div class="logo">
                   <!-- <h1><img src="./logo-transparent.png" alt="" style="width: 30px"> <span style="margin-bottom: 20px;">Dharma Yatra</span></h1> -->
                   <h1 style="display: flex; align-items: center; gap: 10px;">
                       <img src="./logo-transparent.png" style="width: 30px">
                       <span>Dharma Yatra</span>
                   </h1>
                   <p>by Khandai Holidays Pvt Ltd</p>
               </div>
               <div class="mobile-menu-btn" onclick="toggleMenu()">
                   <i class="fas fa-bars"></i>
               </div>
               <?php
                $current_page = basename($_SERVER['PHP_SELF']);
                ?>
               <!-- <nav class="nav-menu" id="navMenu">
                <a href="index.php" class="active">Home</a>
                <a href="destinations.php">Destinations</a>
                <a href="packages.php">Packages</a>
                <a href="villagetour.php">Village Tourism</a>
                <a href="blog.php">Culture & Blog</a>
                <a href="gallery.php">Gallery</a>
                <a href="contact.php">Plan My Trip</a>
            </nav> -->

               <nav class="nav-menu" id="navMenu">
                   <a href="index.php" class="<?= ($current_page == 'index.php') ? 'active' : '' ?>">Home</a>

                   <a href="destinations.php" class="<?= ($current_page == 'destinations.php') ? 'active' : '' ?>">Destinations</a>

                   <!-- <a href="packages.php" class="<? //= ($current_page == 'packages.php') ? 'active' : '' 
                                                        ?>">Packages</a> -->

                   <?php
                    $current_category = isset($_GET['category']) ? $_GET['category'] : '';
                    $is_packages_active = ($current_page == 'packages.php');
                    ?>

                   <div class="nav-item dropdown <?= $is_packages_active ? 'active' : '' ?>">
                       <a class="dropdown-toggle <?= $is_packages_active ? 'active' : '' ?>"
                           href="#"
                           id="packagesDropdown"
                           role="button"
                           data-bs-toggle="dropdown">
                           Packages
                       </a>

                       <ul class="dropdown-menu bg-white">
                           <?php
                            $categories = $conn->query("SELECT * FROM categories ORDER BY name");
                            while ($cat = $categories->fetch_assoc()):
                            ?>
                               <li>
                                   <a class="dropdown-item <?= ($current_category == $cat['slug']) ? 'active' : '' ?>"
                                       href="packages.php?category=<?php echo $cat['slug']; ?>">
                                       <?php echo $cat['name']; ?>
                                   </a>
                               </li>
                           <?php endwhile; ?>
                       </ul>
                   </div>


                   <!-- <a href="villagetour.php" class="<?//= ($current_page == 'villagetour.php') ? 'active' : '' ?>">Village Tourism</a> -->
                   <a href="blog.php" class="<?= ($current_page == 'blog.php') ? 'active' : '' ?>">Culture & Blog</a>

                   <a href="gallery.php" class="<?= ($current_page == 'gallery.php') ? 'active' : '' ?>">Gallery</a>

                   <a href="contact.php" class="<?= ($current_page == 'contact.php') ? 'active' : '' ?>">Plan My Trip</a>
               </nav>

               <div class="header-buttons">
                   <a href="tel:+919876543210" class="btn-call"><i class="fas fa-phone"></i> Call</a>
                   <a href="https://wa.me/919876543210" class="btn-wa"><i class="fab fa-whatsapp"></i> WhatsApp</a>
               </div>
           </div>
       </header>


PK 99