
PK 
<?php
ob_start();
session_start();
date_default_timezone_set("Asia/Kolkata");
include 'admin/includes/settings/constant.php';
require_once 'admin/includes/settings/PDODB.php';
include 'admin/includes/modules/functions.php';
$function = new FUNCTIONS();
/* Fetch images */
//$allimagesdata = $function->getImages($id, NULL, 1, 'DESC');
$title = isset($_GET['title']) ? str_replace('-', ' ', $_GET['title']) : '';
$allimagesdata = $function->getImages(
$id = NULL,
$title,
$status = 1,
$orderBy = 'DESC'
);
//print_r(count($allimagesdata));
if (empty($allimagesdata)) {
header("HTTP/1.0 404 Not Found");
exit('Gallery not found');
}
$galleryTitle = $allimagesdata[0]['title'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>RWA Sectore 40 Noida</title>
<!-- Bootstrap core CSS -->
<link href="../css/font-awesome.min.css" rel="stylesheet">
<link href="../vendor/bootstrap/css/bootstrap.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="../css/noida40.css" rel="stylesheet">
<link href="../css/bootstrap-dropdownhover.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
<!-- lightgallery css -->
<link href="../css/lightgallery.css" rel="stylesheet">
</head>
<body>
<?php include_once 'header2.php'; ?>
<!-- banner -->
<header class="bg-info text-center py-5 mb-4">
<div class="container">
<h1 class="font-weight-light text-white heading">Gallery</h1>
</div>
</header>
<!--end banner -->
<!-- Page Content -->
<div class="container-fluid padding-0">
<div class="container mt-5">
<div class="main-post-intro-title">
<h2 class="text-center"><?=$galleryTitle;?></h2>
</div>
<div class="row justify-content-center rwa-gallery">
<ul id="lightgallery" class="list-unstyled">
<?php foreach ($allimagesdata as $key => $value) { ?>
<li class="col-lg-3 col-md-4 col-sm-6" data-src="../admin/uploads/gallery/<?=$value['file_name'];?>">
<a href="">
<img class="img-responsive" src="../admin/uploads/gallery/<?=$value['file_name'];?>">
</a>
</li>
<?php } ?>
</ul>
</div>
</div>
<!-- end Page Content -->
</div>
<!-- Footer -->
<?php include_once'footer.php';?>
<!-- End Footer -->
<?php include_once'login2.php';?>
<!-- Bootstrap core JavaScript -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="../vendor/jquery/jquery.min.js"></script>
<script src="../vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="../js/bootstrap-4-hover-navbar.js"></script>
<script src="../js/lightgallery-all.min.js"></script>
<script src="../js/jquery.mousewheel.min.js"></script>
<script src="../js/jquery.form-validator.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#lightgallery').lightGallery({
selector: 'li'
});
});
</script>
</body>
</html>


PK 99