Server : LiteSpeed
System : Linux terra.hostitbro.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : outerorb ( 1091)
PHP Version : 8.1.34
Disable Function : mail
Directory :  /home6/outerorb/dev.outerorbittech.com/oot/

📁 Create New:
⬆️ Upload File:
Current Dir [ Writable ] Root [ Writable ]


OR Upload from URL:
URL: Save as:

📄 File: gallery.php

Path: //home6/outerorb/dev.outerorbittech.com/oot/gallery.php

Size: 5.95 KB

Permissions: 0644

<?php
include_once("include/main.inc.php");
$admin_res = getAdminDetails();
$galleryQuery = mysqli_query($GLOBALS['dbconn'], "select gallery_title,gallery_image from gallery_tbl");
$page_metatitle = 'Gallery - ' . COMPANY;
$page_metakey = 'Gallery - ' . COMPANY;
$page_metadesc = 'Gallery - ' . COMPANY;
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <?php include "app_top.php"; ?>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.css" />

</head>

<body>
    <?php include "app_header.php"; ?>

    <section class="heading_banner" style="background-image: url(<?= theme_url; ?>img/Gallary.jpg)">
        <div class="container">
            <div class="row">
                <div class="col-12 text-center">
                    <h1 class="cat_title">Photo Gallery</h1>
                </div>
            </div>
        </div>
    </section>

    <div class="inner_breadcrumb hidden_xs">
        <div class="container">
            <div class="row">
                <div class="col-12">
                    <ul class="breadcrumb">
                        <li><a href="<?= site_url; ?>" title="Home">Home</a></li>
                        <li class="active">Photo Gallery</li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <style>
        .photozone-gallery {
            padding: 0 20px 30px 20px;
            background-color: #f9f9f9;
            font-family: 'Poppins', sans-serif;
        }

        .photozone-container {
            max-width: 1200px;
            margin: auto;
        }

        .photozone-heading {
            text-align: center;
            font-size: 32px;
            font-weight: 700;
            color: var(--surface-color);
            margin: 40px 0 30px;
            position: relative;
            display: inline-block;
            left: 50%;
            transform: translateX(-50%);
            padding-bottom: 10px;
            line-height: 1.2;
            word-break: break-word;
        }

        /* Underline style */
        .photozone-heading::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background-color: var(--accent-color);
            border-radius: 5px;
        }

        /* 🔽 Responsive adjustments */
        @media (max-width: 768px) {
            .photozone-heading {
                font-size: 26px;
            }
        }

        @media (max-width: 480px) {
            .photozone-heading {
                font-size: 22px;
            }
        }


        .photozone-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        @media (min-width: 768px) {
            .photozone-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .photozone-card {
            position: relative;
            overflow: hidden;
            border-radius: 16px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
            transition: transform 0.3s ease;
            z-index: 1;
        }

        .photozone-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.4s ease;
            aspect-ratio: 1 / 1;
        }

        .photozone-card:hover img {
            transform: scale(1.05);
        }

        .photozone-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(25, 25, 25, 0.5);
            color: #fff;
            opacity: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 500;
            transition: opacity 0.3s ease;
            text-align: center;
            padding: 10px;
            pointer-events: none;
            z-index: 2;
        }

        .photozone-overlay {
            color: #fff;
            font-size: 25px;
            font-weight: 500;
            margin: 0;
            z-index: 3;
            pointer-events: none;
        }

        .photozone-card:hover .photozone-overlay {
            opacity: 1;
        }
    </style>

    <section class="photozone-gallery">
        <div class="photozone-container">
            <h2 class="photozone-heading">Company Events</h2>

            <div class="photozone-grid">
                <?php while ($resGallery = mysqli_fetch_assoc($galleryQuery)) {
                    ?>
                    <div class="photozone-card">
                        <a data-fancybox="gallery" title="<?= $resGallery['gallery_title']; ?>"
                            href="<?= upload_url; ?>gallery/<?= $resGallery['gallery_image']; ?>">
                            <img src="<?= upload_url; ?>gallery/<?= $resGallery['gallery_image']; ?>"
                                title="<?= $resGallery['gallery_title']; ?>" alt="<?= $resGallery['gallery_title']; ?>">
                            <div class="photozone-overlay">
                                <i class="bi bi-zoom-in"></i>
                            </div>
                        </a>
                    </div>
                <?php }
                ; ?>
            </div>

        </div>
    </section>



    <?php include "app_footer.php"; ?>
    <?php include "app_bottom.php"; ?>


    <script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.js"></script>
    <script>
        Fancybox.bind('[data-fancybox="gallery"]', {
            on: {
                close: () => {
                    document.querySelectorAll('.photozone-overlay').forEach(el => {
                        el.style.opacity = '0';
                        setTimeout(() => el.style.opacity = '', 10);
                    });
                }
            }
        });
    </script>

</body>

</html>

← Back to Directory Edit File 🔒 Chmod

WP File Manager