<?php 
include('root/config.php');
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title><?php echo $ai_core->aiGetValue(DB_PREFIX."setting","description","id",'1');?></title>
	<meta name="keywords" content="<?php echo $ai_core->aiGetValue(DB_PREFIX."setting","description","id",'7');?>">
	<meta name="description" content="<?php echo $ai_core->aiGetValue(DB_PREFIX."setting","description","id",'13');?>">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="icon" href="img/favicon.jpg">
	<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700,900" rel="stylesheet">
	<link rel="stylesheet" href="css/core.css">
	<link rel="stylesheet" href="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="logo.png" class="logo-light" alt="">
			<img src="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" class="bg-lines">

		<!-- Hero -->
		<section class="hero hero-fullscreen" data-background="#000">

			<!-- Slider -->
			<div class="swiper" data-pagination="true">
				
<?php
$imageUrl = "upload/slider/";
$qry = "SELECT * FROM ".DB_PREFIX."slider WHERE status='active'";
$result = $ai_db->aiGetQueryObj($qry);
if (COUNT($result) > 0) {
foreach ($result as $row) {
?>
				<figure class="swiper-slide" 
				        data-background="<?php echo $imageUrl.$row->image; ?>"
				        data-overlay="black; 0.4">
				        
					<figcaption class="caption text-light">
						<div class="caption-inner">
							<h3><a href="#"><?php echo $row->name; ?></a></h3>
							
						</div>
					</figcaption>
				</figure>
<?php 
}
}
?>				

				

				
				
				

			</div>
			<!-- /Slider -->

		</section>
		<!-- /Hero -->

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

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

	<!-- JS -->
	<script src="js/core.js"></script>
	<script src="js/theme.js"></script>
	<!--<script>
	var mySwiper = new Swiper ('.swiper-container', 
	{
    autoplay: 
    {
      delay: 3000,
    },
    }); 
	</script> -->
</body>


</html>