<?php 
include('root/config.php');
$imageUrl = "upload/blog/";
$qry = "SELECT * FROM ".DB_PREFIX."blog WHERE title_slug='".$_REQUEST['slug']."'";
$row = $ai_db->aiGetQueryObj($qry);
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title><?php echo $row[0]->meta_title ?></title>
	<meta name="keywords" content="<?php echo $row[0]->meta_keywords ?>">
	<meta name="description" content="<?php echo $row[0]->meta_description ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="icon" href="<?php echo SITE_URL; ?>img/favicon.jpg">
	<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700,900" rel="stylesheet">
	<link rel="stylesheet" href="<?php echo SITE_URL; ?>css/core.css">
	<link rel="stylesheet" href="<?php echo SITE_URL; ?>css/theme.css">
</head>
<body class="sticky-header sticky-footer">

	<!-- Preloader -->
	<div id="preloader"></div>
	
	<!-- Header -->
	<header id="header">

		<!-- Logo -->
		<a href="<?php echo SITE_URL; ?>Home" class="logo">
			<img src="<?php echo SITE_URL; ?>logo.png" class="logo-light" alt="">
			<img src="<?php echo SITE_URL; ?>logo.png" class="logo-dark" alt="">
		</a>

		<!-- Mobile Menu Icon -->
		<a href="#" class="mob-menu">
			<span></span><span></span><span></span>
		</a>

		<!-- Navigation -->
		<?php
		include('menu.php');
		?>
		<!-- /Navigation -->

	</header>
	<!-- /Header -->

	<!-- Main Content -->
	<main id="main">
		
		<!-- Hero -->
		<section class="flex-center background-parallax bg-dark py-14" data-background="<?php echo SITE_URL; ?>img/gallery/85.jpg" data-overlay="black; .8">
			<div class="page-title-wrapper text-light">
				<h1 class="page-title"><?php echo $row[0]->title ?></h1>
				<p class="page-subtitle">
					<span><?php echo date('F d, Y',strtotime($row[0]->created_at)); ?></span>
				</p>
			</div>
		</section>
		<!-- /Hero -->

		<!-- Blog Post Section -->
		<section class="bg-light pb-6">
			<div class="container py-8">
				<div class="row">
					
					<!-- Blog Post Column -->
					<div class="col-lg-12">
						
						<h4 class="uppercase bold"><?php echo $row[0]->title ?></h4>
						<hr class="separator-left">
						<img src="<?php echo SITE_URL; ?><?php echo $imageUrl.$row[0]->image; ?>" alt="">
						<p style="margin-top:20px;"><?php echo $row[0]->description; ?></p>

						


					</div>
					<!-- /Blog Post Column -->

					<!-- Sidebar Column -->
					
					<!-- /Sidebar Column -->

				</div>
			</div>
		</section>
		<!-- /Blog Post Section -->

	</main>
	<!-- /Main Content -->

	<!-- Footer -->
	<?php include('footer.php'); ?>
	<!-- /Footer -->

	<!-- JS -->
	<script src="<?php echo SITE_URL; ?>js/core.js"></script>
	<script src="<?php echo SITE_URL; ?>js/theme.js"></script>
</body>
</html>