📁 File Manager
Editing:
/home/wedigitalindia/www/gallery.php
<?php include("admin/connection.php"); include('include/header.php'); ?> <style> .gallery_item { overflow: hidden; margin-top: 20px; border-radius: 10px; } .popup-gallery a { display: block; width: 100%; position: relative; overflow: hidden; } .popup-gallery img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; transition: all 0.4s ease; } /* Hover Effect */ .hover_affect_nlf:hover img { transform: scale(1.1); opacity: 0.5; } /* Center Icon */ .singicon_btn_nlf { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8); opacity: 0; transition: all 0.3s ease; } .hover_affect_nlf:hover .singicon_btn_nlf { opacity: 1; transform: translate(-50%, -50%) scale(1); } .singicon_btn_nlf svg { color: #fff; } /* Responsive */ @media (max-width: 768px) { .popup-gallery img { height: 150px; } } </style> <!--Page Header Start--> <section class="page-header"> <div class="page-header__bg" style="background-image: url(<?php path() ?>assets/images/backgrounds/page-header-bg.jpg);"> </div> <div class="page-header__shape-1"> <img src="<?php path() ?>assets/images/shapes/page-header-shape-1.png" alt=""> </div> <div class="container"> <div class="page-header__inner"> <h3>Our Gallery</h3> <div class="thm-breadcrumb__inner"> <ul class="thm-breadcrumb list-unstyled"> <li><a href="<?php path() ?>index.php">Home</a></li> <li><span class="fas fa-angle-right"></span></li> <li>Gallery</li> </ul> </div> </div> </div> </section> <!--Page Header End--> <!--About One Start --> <section class="about-one mb-5"> <div class="container"> <div class="row popup-gallery"> <!-- IMPORTANT CLASS ADDED --> <?php $gallery = mysqli_query($con, "SELECT * FROM media WHERE page_name = 'Image' ORDER BY id DESC"); while ($row = mysqli_fetch_array($gallery)) { $photo = $row['photo']; ?> <div class="col-6 col-lg-4 mb-3"> <div class="gallery_item"> <a class="hover_affect_nlf position-relative" href="<?php echo path(); ?>/admin/assets/images/gallery/<?php echo $photo; ?>" title="Wedigital India"> <img src="<?php echo path(); ?>/admin/assets/images/gallery/<?php echo $photo; ?>" alt="Wedigital India"> <span class="singicon_btn_nlf"> <svg xmlns="http://www.w3.org/2000/svg" width="35" height="35" fill="currentColor" viewBox="0 0 16 16"> <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M8.5 4.5a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 0 0 1 0v-3h3a.5.5 0 0 0 0-1h-3z" /> </svg> </span> </a> </div> </div> <?php } ?> </div> </div> </section> <!--About One End --> <?php include("include/footer.php"); ?>
Save
Cancel