<?php 
include ('inc/head.php');
$metakey=$db->prepare("SELECT * from meta where meta_id=7");
$metakey->execute();
$metakeyprint=$metakey->fetch(PDO::FETCH_ASSOC);
?>
<title><?php echo $metakeyprint['meta_title'] ?></title>
<meta name="description" content="<?php echo $metakeyprint['meta_descr'] ?>">
<meta name="keywords" content="<?php echo $metakeyprint['meta_keyword'] ?>">
<?php
include ('inc/menu.php');
?>
<div class="page-title-section" style="background-image: url(csi/<?php echo $settingsprint['ayar_resimyorum']; ?>);">
	<div class="container">
		<h1>Video Galerisi</h1>
	</div>
</div>
<div class="section-block">
	<div class="container">
		<div class="row">
			<?php 
			$vidsor=$db->prepare("SELECT * from videogaleri order by video_id DESC");
			$vidsor->execute(); 
			while ($vidprint=$vidsor->fetch(PDO::FETCH_ASSOC)) { ?>
				<div class="col-md-6 col-12">
					<iframe width="100%" height="315" src="https://www.youtube.com/embed/<?php echo $vidprint['video_link']; ?>" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
				</div>
			<?php } ?>
		</div>
	</div>
</div>
<?php include ('inc/footer.php'); ?>
