<?php
include "includes/main-action.php";
$obj=new admin_main();
$sel_cs=$obj->select_all("menu","where status='Active' order by menu_id");
//for mobile category
$sel_cs_mobile=$obj->select_all("menu","where status='Active' order by menu_id");
//for categorywise products
$sel_catwise_product=$obj->select_all("menu","where status='Active' order by menu_id");

$sel_banner_top1=$obj->select_all("adv_tbl1","where status='Active' and menu_id='2' order by adv_id desc");
$sel_banner_top2=$obj->select_all("adv_tbl1","where status='Active' and menu_id='1' order by adv_id desc");

$sel_banner_right=$obj->select_all("adv_tbl3","where status='Active' order by adv_id desc limit 3");
$sel_slider=$obj->select_all("adv_tbl2","where status='Active' order by adv_id");
$sel_subcat=$obj->select_all("subcategory","where home_view='yes' order by subcat_id");
//home txt
$homeTxt=$obj->select_all("movingtxt","");
$marData = mysqli_fetch_array($homeTxt);
//bottom banner
$bottombanner=$obj->select_all("adv_tbl0","where status='Active'");
$bbannerData = mysqli_fetch_array($bottombanner);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title><?php include('title.php')?> Home</title>
<meta charset="utf-8">
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="author" content="">
<meta name="robots" content="index, follow" />
<!-- Mobile specific metas
    ============================================ -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="shortcut icon" type="image/png" href="<?php echo $url?>image/icon/favicon.png"/>
<!-- Libs CSS
    ============================================ -->
<link rel="stylesheet" href="<?php echo $url?>css/bootstrap/css/bootstrap.min.css">
<link href="<?php echo $url?>css/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="<?php echo $url?><?php echo $url?>js/datetimepicker/bootstrap-datetimepicker.min.css" rel="stylesheet">
<link href="<?php echo $url?>js/owl-carousel/owl.carousel.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/lib.css" rel="stylesheet">
<link href="<?php echo $url?>js/jquery-ui/jquery-ui.min.css" rel="stylesheet">
<link href="<?php echo $url?>js/minicolors/miniColors.css" rel="stylesheet">
<script src="https://use.fontawesome.com/b6bf0fe64e.js"></script>
<!-- Theme CSS
    ============================================ -->
<link href="<?php echo $url?>css/themecss/so_searchpro.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/so_megamenu.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/so-categories.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/so-listing-tabs.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/so-category-slider.css" rel="stylesheet">
<link href="<?php echo $url?>css/themecss/so-newletter-popup.css" rel="stylesheet">
<link href="<?php echo $url?>css/footer/footer2.css" rel="stylesheet">
<link href="<?php echo $url?>css/header/header2.css" rel="stylesheet">
<link id="color_scheme" href="<?php echo $url?>css/home2.css" rel="stylesheet">
<link href="<?php echo $url?>css/responsive.css" rel="stylesheet">
<!-- Google web fonts
    ============================================ -->
<link href='https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap" rel="stylesheet">	
<style type="text/css">
  body{font-family:'Poppins', sans-serif}
  .left-content-product .content-product-right .box-info-product .quantity .quantity-control {
    float:none; margin-top:20px;
	}
.products-list.grid .product-layout .product-item-container:hover .right-block .hide-cont, .products-list .product-grid .product-item-container:hover .right-block .hide-cont{
	    visibility: visible;
	}
.price {
    line-height: 0px;
	}
 .panel-title{
    border-bottom: 2px solid #ebebeb;
    display: inline-block;
    width: 100%;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 40px;
    color: #B9B53A;
    font-weight: 600;
    text-transform: capitalize;
    line-height: 35px;
    font-family: "sofia"; 
 }	
</style>
	
</head>
<body class="common-home res layout-2">
<div id="wrapper" class="wrapper-fluid banners-effect-7">
<!-- Header Container  -->
<?php include "includes/topbar.php";?>
<!-- //Header Top -->
<!-- Header center -->
<?php include "includes/searchbar.php";?>
<!-- //Header center -->
<!-- Header Bottom -->
<?php include "includes/navbar.php";?>
	<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-QW943Z8JE6"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-QW943Z8JE6');
</script>
</header>
<meta name="google-site-verification" content="NcYFoGmxGbKqW74Np2wgwS4IK77Hvzm5uUaSsAQJqK0" />
<!-- //Header Container  -->
<!-- Main Container  -->
<div class="main-container">
 <div class="row box-content1">
  <!-- Start HEAD section -->
  <link rel="stylesheet" type="text/css" href="engine1/style.css" />
  <script type="text/javascript" src="engine1/jquery.js"></script>
  <!-- End HEAD section -->
  <!-- Start BODY section -->
  <div id="wowslider-container1">
	<div class="ws_images">
	  <ul>
		<?php $b=1;
	  while($result4=mysqli_fetch_array($sel_slider)){?>
		<li><a href="<?php echo $url?>"><img src="<?php echo $url?>image/banner_top/<?php echo $result4['img']?>" alt="18" title="" id="wows1_<?php echo $b?>"/></a></li>
		<?php $b++;
	  } ?>
	  </ul>
	</div>
	<div class="ws_shadow"></div>
  </div>
  
  <script type="text/javascript" src="engine1/wowslider.js"></script>
  <script type="text/javascript" src="engine1/script.js"></script>
  <!-- End BODY section -->
 </div>
 
  <div id="content">
   <div class="container">  
	<div class="row">
      <div class="block-policy1">
        <div id="product">
          <div class="related titleLine products-list grid module ">
            <h3 class="modtitle" align="center" style="border-bottom:0px">Kamal Art Gallery</h3>
            <?php  while($mobile_cat=mysqli_fetch_array($sel_banner_top1)){ ?>
            <div class="item col-md-4 col-xs-6">
              <div>
                <div class="item-inner product-layout transition product-grid" style="-webkit-box-shadow: 0px 0px 5px 6px #4f4c4c3d;-moz-box-shadow: 0px 0px 5px 6px #4f4c4c3d; box-shadow: 0px 0px 5px 6px #4f4c4c3d; margin: 0 0 15px 0;">
                 <div class="product-item-container" style="margin:0px;">
                    <div class="left-block left-b">
                      <div class="">
						<a href="details.php?pid=<?php echo $mobile_cat['adv_id']?>">
                        <center>
                          <img src="<?php echo $url?>image/banner_top/<?php echo $mobile_cat['img'] ?>" class="img-1 img-responsive" alt="image1" style="height: 300px;border: 1px solid #fff;">
                        </center>
                        </a> 
					  </div>
                    </div>
                    <div class="right-block">
                      <h4><a href="details.php?pid=<?php echo $mobile_cat['adv_id']?>">
                          <?php echo substr($mobile_cat['Adv'],0,170)."..."?>
                        </a>
					  </h4>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <?php } ?>
          </div>
        </div>
      </div>
	 </div> 
	   
	   
	  <div class="row">
      <div class="block-policy1">
        <div id="product">
          <div class="related titleLine products-list grid module ">
            <h3 class="modtitle" align="center" style="border-bottom:0px">Kamal Art Gallery News</h3>
            <?php  while($mobile_cat=mysqli_fetch_array($sel_banner_top2)){ ?>
            <div class="item col-md-4 col-xs-6">
              <div>
                <div class="item-inner product-layout transition product-grid" style="-webkit-box-shadow: 0px 0px 5px 6px #4f4c4c3d;-moz-box-shadow: 0px 0px 5px 6px #4f4c4c3d; box-shadow: 0px 0px 5px 6px #4f4c4c3d; margin: 0 0 15px 0;">
                 <div class="product-item-container" style="margin:0px;">
                    <div class="left-block left-b">
                      <div class="">
						<a href="details.php?pid=<?php echo $mobile_cat['adv_id']?>">
                        <center>
                          <img src="<?php echo $url?>image/banner_top/<?php echo $mobile_cat['img'] ?>" class="img-1 img-responsive" alt="image1" style="height: 300px;border: 1px solid #fff;">
                        </center>
                        </a> 
					  </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <?php } ?>
          </div>
        </div>
      </div>
	 </div>  
    
      <!--begining of the product slider -->
      
    <?php if(mysqli_num_rows($sel_banner_right)>0){
	@extract($reso=mysqli_fetch_array($sel_banner_right));
	echo '<div class="banners bannersb">';
	if(file_exists("image/banner_top/".$img) && !empty($img)){ ?>
      <div class="banner" style="margin-top: -20px;"> <a href="<?php echo $url?>"><img src="<?php echo $url?>image/banner_top/<?php echo $img ?>" height="" width="100%" alt="image"></a> </div>
      <?php }
	echo "</div>";
	}?>

	  <div style="margin-bottom:55px"></div>
    </div>
  </div>
</div>
<!-- //Main Container -->
<!-- Footer Container -->
<?php include "includes/footer.php" ?>
<script type="text/javascript" src="<?php echo $url?>js/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/bootstrap.min.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/owl-carousel/owl.carousel.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/slick-slider/slick.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/themejs/libs.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/unveil/jquery.unveil.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/countdown/jquery.countdown.min.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/dcjqaccordion/jquery.dcjqaccordion.2.8.min.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/datetimepicker/moment.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/jquery-ui/jquery-ui.min.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/modernizr/modernizr-2.6.2.min.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/minicolors/jquery.miniColors.min.js"></script>
<!-- Theme files
============================================ -->
<script type="text/javascript" src="<?php echo $url?>js/themejs/application.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/themejs/homepage.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/themejs/toppanel.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/themejs/so_megamenu.js"></script>
<script type="text/javascript" src="<?php echo $url?>js/themejs/addtocart.js"></script>	

<!-- Service Worker
===========================================-->
<script src="js/main.js"></script>
</body>
</html>