<?php include('header.php');?>

<div class="content"  >
		<div id="slider">
      <ul>
			<?php
			$home_page_query = mysql_query("select * from home_page_banners where status = 'yes' order by home_page_banners_id asc");
			if(mysql_num_rows($home_page_query)>0){	
			while($home_page_row=mysql_fetch_array($home_page_query)){
			echo "<li data-text='Yash - Photography'><a href='home.php'><img src='".$base_url."admin/uploads/home_page_banners/".$home_page_row['url']."'></a></li>";
			}
			}
			?>
    </ul>
		</div>
	</div>

		<div id="body-content">


<br><br>
			
			<section id="content-section" class="portfolio-list-masonry min-height-850">
				<div class="container-fluid">
					<div class="row">
						<div class="col-md-12">

							<!-- Begin content wrap -->
							<div class="content-wrap">
								<div class="isotope gutter-2 col-5">

									<!-- Begin gallery top content -->
									<div class="gallery-top-content">

										<div class="row margin-bottom-40">
											<div class="col-md-12">
                                       <div class="ali-caption">
									<h2 class="ali-title">Welcome To Yash Photography</h2>
									 
								       </div>
															<p class="filter-heading" style="text-align:justify;">Yash Photography, One of the best candid photographers & wedding cinematographers based in Tamil Nadu. We have been in this field for more than 10 years. Ours is not a regular typical photography, As a candid photographer & wedding cinematographers we photograph the deepest sense & feelings of the family… Everything else lasts for few days, music, dance, celebrations, parties, only the memories stays with you for lifetime, in form of pictures & videos. We understand that your wedding is one of the most important day of your life and you want the memories to be the same i.e captured in the most beautiful way. We have a team of wedding Photographers & Videographers , dedicated to create the most beautiful memories of your wedding day.</p2>

											</div> <!-- /.col -->
											</div>
											<div class="row margin-bottom-40">
											<div class="col-md-12">

												<!-- Begin isotope filter -->
												<div class="isotope-filter">

													<!-- Begin isotope filter links -->
													<div class="isotope-filter-links collapse navbar-collapse no-padding" id="isotope-filter-collapse">
														<a class="active" href="#" data-filter="*">all</a>
														<?php
														$photo_category_query = mysql_query("select * from photo_category where status = 'yes' order by photo_category_id asc");
														if(mysql_num_rows($photo_category_query)>0){	
														while($photo_category_row=mysql_fetch_array($photo_category_query)){
														echo "<a href='#' data-filter='.".$photo_category_row['photo_category_id']."'>".$photo_category_row['photo_category_name']."</a>";
														}
														}
														?>
													</div>
													<!-- End isotope filter links -->

												</div>
												<!-- End isotope filter -->
												
											</div> <!-- /.col -->

										
										</div> <!-- /.row -->

									</div>
									<!-- End gallery top content -->
									<div class="isotope-items-wrap ali-style-2 caption-outside lightgallery hover-center hover-boxed">
										<div class="grid-sizer"></div>
									
									
									<?php
									$photo_query = mysql_query("select * from photo inner join customer on customer.customer_code=photo.customer_code inner join photo_category on photo_category.photo_category_id=photo.photo_category_id inner join function_category on function_category.function_category_id=photo.function_category_id where photo.status = 'yes' order by photo.photo_id asc");
									if(mysql_num_rows($photo_query)>0){	
									$i=0;
									while($photo_row=mysql_fetch_array($photo_query)){
										$photo_details_query = mysql_query("select * from photo_details where photo_id = ".$photo_row['photo_id']." order by photo_details_id asc limit 1");
										if(mysql_num_rows($photo_details_query)>0){	
										while($photo_details_row=mysql_fetch_array($photo_details_query)){
											$url = $photo_details_row['url'];
										}
										}
									?>
									<div class="isotope-item <?php echo $photo_row['photo_category_id']; ?>" style='height:250px;float:left;'>
									<div class="album-single-item">
									<div class="ali-img-wrap">
									<img class="ali-img" src="<?php echo $base_url; ?>admin/uploads/photo/<?php echo $url; ?>" alt="image">				 
									</div>
									<div class="asi-cover">
									<a class="ali-link" href="<?php echo $base_url; ?>gallery.php?photo_id=<?php echo $photo_row['photo_id']; ?>">
									<div class="asi-info">
									<span class="s-icon"><i class="fas fa-eye"></i></span>
									</div>
									</a>
									</div>
									</div>
									<div class="album-list-item">
									<a class="ali-link" href="<?php echo $base_url; ?>gallery.php?photo_id=<?php echo $photo_row['photo_id']; ?>">
									<div class="ali-caption">
									<h2 class="ali-title"><?php echo $photo_row['name']; ?>(<?php echo $photo_row['function_category_name']; ?>)- <?php echo $photo_row['photo_category_name']; ?></h2>
									<div class="ali-meta">Yash Photography</div>
									</div>
									</a></div>
									</div>
									<?php
									$i++;
									}
									}
									?>
									<!-- End isotope item -->
									
									

									</div>
									<!-- End isotope items wrap -->

								</div>
								<!-- End isotope -->

							</div>
							<!-- End content wrap -->
							
						</div> <!-- /.col -->
					</div> <!-- /.row -->

				 
				</div> <!-- /.container -->
			</section>

<?php include('footer.php');?>
