<?php
include 'header.php';
?>



	
	<!-- Page Title -->
    <section class="page-title">
		<div class="color-one"></div>
		<div class="color-two"></div>
		<div class="color-three"></div>
		<div class="color-four"></div>
        <div class="auto-container">
			<h2>Our Video Gallery</h2>
			<ul class="bread-crumb clearfix">
				<li><a href="index.php"><i class="flaticon-home"></i> OIPS</a></li>
				<li>Our Video Gallery</li>
			</ul>
        </div>
		<!--Waves Container-->
        <div>
          <svg class="waves" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
          viewBox="0 24 150 28" preserveAspectRatio="none" shape-rendering="auto">
          <defs>
          <path id="gentle-wave" d="M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z" />
          </defs>
          <g class="parallaxx">
          <use xlink:href="#gentle-wave" x="148" y="0" fill="rgba(255,255,255,0.7" />
          <use xlink:href="#gentle-wave" x="100" y="3" fill="rgba(255,255,255,0.5)" />
          <use xlink:href="#gentle-wave" x="70" y="5" fill="rgba(255,255,255,0.3)" />
          <use xlink:href="#gentle-wave" x="48" y="7" fill="#fff" />
          </g>
          </svg>
        </div>
        <!--Waves end-->
    </section>
    <!-- End Page Title -->








	
<!-- Gallery One -->
<section class="gallery-one">
	<div class="auto-container">
		<div class="sec-title style-three centered">
			<div class="sec-title_title">Our Video Gallery</div>
			<h2 class="sec-title_heading">Moments at  <br> <span>Oriental International</span></h2>
		</div>
        <div class="mixitup-gallery">
            <div class="row clearfix">
            	<?php
               $query = $conn->prepare("SELECT * FROM video_gallery order by id desc");
          $query->execute();
          $video_result = $query->fetchAll();
          $video_row = count($video_result); 
          if($video_row>0) {
            foreach ($video_result as $value) {
                  ?>
				<div class="gallery-one_block all col-lg-4 col-md-6 col-sm-6">
					<iframe width="100%" height="220" src="<?php echo $value['youtube_link'] ?>" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
				</div>
				<?php
                      }
                   }else{
                      echo "<h2 class='text-center'>No data available...</h2>";
                   }
               ?>

				
				
			</div>
			
		</div>
	</div>
</section>
<!-- End Gallery One -->






<?php
include 'footer.php';
?>



