55ok
| Direktori : /home/bestphotography/www/ |
| Current File : /home/bestphotography/www/photography.php |
<?php
ini_set('memory_limit','2048M');
ini_set('max_execution_time', '0'); // for infinite time of execution
// Initialize the session
session_start();
include "Admin/config.php";
if($_GET['category']){
$pro_result = $conn->query('SELECT * FROM gallery WHERE category = "'.$_GET['category'].'" AND status = 1');
}
$cat_result1 = $conn->query('SELECT * FROM category WHERE category_id = "'.$_GET['category'].'" AND status = 1 LIMIT 1');
$cat_row1 = mysqli_fetch_array($cat_result1);
?>
<!DOCTYPE html>
<html lang="zxx">
<head>
<!-- Meta Tags -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<meta name="description" content="Are you looking for a professional photographer in Valasaravakkam at an affordable cost? Best Photography in Chennai offers stunning services capturing corporate events, weddings, products, and any occasion. Get in touch">
<meta name="author" content="">
<!-- Favicon and touch Icons -->
<link href="assets/img/favicon.png" rel="shortcut icon" type="image/png">
<!-- Page Title -->
<title>Best Photography in Valasaravakkam| Professional Photographers in Chennai</title>
<!-- Styles Include -->
<link rel="stylesheet" href="assets/css/main.css">
<style>
.wptb-packages2 .wptb-item--inner .wptb-item--description{
color: #dbd01f;
}
.wptb-packages2 .wptb-item--image {
padding :0px;
}
</style>
</head>
<body class="theme-style--light">
<!-- Preloader -->
<?php include "preloader.php";?>
<!-- pointer start -->
<div class="pointer bnz-pointer" id="bnz-pointer"></div>
<!-- Main Header -->
<header class="header">
<?php include "header.php";?>
</header>
<!-- End Main Header -->
<!-- Mobile Responsive Menu -->
<?php include "mobile-sidebar.php";?>
<!-- Modal Search -->
<!-- Main Wrapper-->
<main class="wrapper">
<!-- Page Header -->
<div class="wptb-page-heading">
<div class="wptb-item--inner" style="background-image: url('assets/img/portfolio/banner/<?php echo $cat_row1["image"];?>');">
<div class="wptb-item-layer wptb-item-layer-one">
<img src="assets/img/more/circle.png" alt="img">
</div>
<h2 class="wptb-item--title "><?php echo $cat_row1["category_name"];?></h2>
<p class="text-white"><?php echo $cat_row1["subtitle"];?></p>
</div>
</div>
<!-- Our Projects -->
<section>
<div class="container">
<!-- Package 1 -->
<div class="wptb-packages2">
<div class="wptb-item--inner" style="background:none;">
<div class="wptb-item--image">
<img src="assets/img/portfolio/banner/detail/<?php echo $cat_row1["detail_image"];?>" alt="">
</div>
<div class="wptb-item--holder">
<h6 class="wptb-item--subtitle mb-2"><?php echo $cat_row1["category_name"];?></h6>
<!--<h6 class="wptb-item--description">Freezing life’s most important moments in time forever</h6>-->
<p><?php echo $cat_row1["category_desc"];?></p>
</div>
</div>
</div>
</div>
<?php if($pro_result->num_rows == 0) { ?>
<div class="container" style="padding-top:60px;">
<div class="col-lg-12">
<div class="text-center">
<h1><i style="font-size:80px;" class="bi bi-emoji-neutral"></i></h1>
<h1>No photos in this category</h1>
</div>
</div>
</div>
<?php } ?>
<?php if($pro_result->num_rows>0) { ?>
<div class="container">
<div class="wptb-project--inner">
<!--
<div class="wptb-heading">
<div class="wptb-item--inner text-center">
<h6 class="wptb-item--subtitle"><span></span> Our Portfolio</h6>
<h1 class="wptb-item--title"> Documenting Timeless Photos Of Love Stories</h1>
</div>
</div>
-->
<div class="wptb-heading" style="padding:0px;">
<div class="wptb-item--inner text-left">
<h1 class="wptb-item--title">Our Portfolio</h1>
</div>
</div>
<div class="effect-gradient has-radius">
<div class="grid grid-3 gutter-10 clearfix">
<div class="grid-sizer"></div>
<?php
while ($pro_row = mysqli_fetch_array($pro_result)){
?>
<div class="grid-item">
<div class="wptb-item--inner">
<div class="wptb-item--image">
<img src="assets/img/portfolio/album/<?php echo $pro_row["preview_image"];?>" alt="img">
<a class="wptb-item--link" href="photography-detail.php?id=<?php echo $pro_row["gallery_id"];?>"><i class="bi bi-chevron-right"></i></a>
</div>
<div class="wptb-item--holder">
<div class="wptb-item--meta">
<h4><a href="photography-detail.php?id=<?php echo $pro_row["gallery_id"];?>"><?php echo $pro_row["gallery_name"];?></a></h4>
<p><?php echo $cat_row1["category_name"];?></p>
</div>
</div>
</div>
</div>
<?php } } ?>
</div>
</div>
</div>
<!--
<div class="wptb-pagination-wrap text-center">
<ul class="pagination justify-content-center">
<li><a class="disabled page-number previous" href="#"><i class="bi bi-chevron-left"></i></a></li>
<li><span class="page-number current">01</span></li>
<li><a class="page-number" href="#">02</a></li>
<li><a class="page-number" href="#">03</a></li>
<li>.....</li>
<li><a class="page-number" href="#">09</a></li>
<li><a class="page-number next" href="#"><i class="bi bi-chevron-right"></i></a></li>
</ul>
</div>
-->
</div>
</section>
<?php include "cta.php";?>
</main>
<!-- Footer -->
<?php include "footer.php";?>
<div class="totop">
<a href="#"><i class="bi bi-chevron-up"></i></a>
</div>
<!-- Core JS -->
<script src="assets/js/jquery-3.6.0.min.js"></script>
<!-- Framework -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- WOW Scroll Effect -->
<script src="plugins/wow/wow.min.js"></script>
<!-- Swiper Slider -->
<script src="plugins/swiper/swiper-bundle.min.js"></script>
<script src="plugins/swiper/swiper-gl.min.js"></script>
<!-- Odometer Counter -->
<script src="plugins/odometer/appear.js"></script>
<script src="plugins/odometer/odometer.js"></script>
<!-- Projects -->
<script src="plugins/isotope/isotope.pkgd.min.js"></script>
<script src="plugins/isotope/imagesloaded.pkgd.min.js"></script>
<script src="plugins/isotope/isotope-init.js"></script>
<!-- Fancybox -->
<script src="plugins/fancybox/jquery.fancybox.min.js"></script>
<!-- Flatpickr -->
<script src="plugins/flatpickr/flatpickr.min.js"></script>
<!-- Nice Select -->
<script src="plugins/nice-select/jquery.nice-select.min.js"></script>
<!-- Cursor Effect -->
<script src="plugins/cursor-effect/cursor-effect.js"></script>
<!-- Theme Custom JS -->
<script src="assets/js/theme.js"></script>
</body>
</html>