BLACKSITE
:
216.73.216.62
:
147.93.18.13 / vinyasaweddings.com
:
Linux srv667811 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
:
/
var
/
www
/
vinyasawedding
/
views
/
Upload File:
files >> /var/www/vinyasawedding/views/gallery.php
<?php require 'views/layout/header.php'; ?> <?php require 'views/layout/hero.php'; ?> <?php require_once 'db.php'; // Adjust path as needed $stmt = $db->prepare("SELECT * FROM gallery WHERE status = 'active' ORDER BY id DESC"); $stmt->execute(); $galleryItems = $stmt->fetchAll(PDO::FETCH_ASSOC); ?> <main> <!-- Gallery Section --> <section class="gallery-page"> <div class="container"> <div class="section-header text-center"> <h2 class="section-title">Our Wedding Gallery</h2> <p class="section-subtitle">Captured moments of love and celebration</p> </div> <!-- Gallery Filter --> <div class="gallery-filter"> <button class="filter-btn active" data-filter="all">All</button> <button class="filter-btn" data-filter="ceremonies">Ceremonies</button> <button class="filter-btn" data-filter="receptions">Receptions</button> <button class="filter-btn" data-filter="portraits">Portraits</button> <button class="filter-btn" data-filter="details">Details</button> </div> <!-- Gallery Grid --> <!-- Gallery Grid --> <div class="gallery-grid"> <?php if (count($galleryItems) > 0): ?> <?php foreach ($galleryItems as $item): ?> <?php $category = strtolower($item['title']); // normalize for filtering $image = htmlspecialchars($item['image']); $imagePath = 'uploads/gallery/' . $image; // adjust as needed ?> <div class="gallery-item" data-category="<?= $category ?>"> <img src="<?= $imagePath ?>" alt="Gallery image" class="gallery-img"> <!-- Optional overlay --> <!-- <div class="gallery-overlay"> <div class="overlay-content"> <h3><?= htmlspecialchars($item['title']) ?></h3> <p>Description here</p> <i class="fas fa-expand"></i> </div> </div> --> </div> <?php endforeach; ?> <?php else: ?> <p class="text-center">No gallery images found.</p> <?php endif; ?> </div> <!-- View More Button --> <!-- <div class="text-center mt-5"> <a href="#" class="view-more-btn">View More Weddings <i class="fas fa-arrow-right"></i></a> </div> --> </div> </section> <!-- Testimonials --> <?php require 'views/layout/testimonial.php'; ?> <!-- Enquiry --> <?php require 'views/layout/enquiry.php'; ?> </main> <?php require 'views/layout/footer.php'; ?>