<!DOCTYPE html>
<html lang="en">
  <head>
<meta charset="utf-8">    
<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
    <?php
    header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
    header("Cache-Control: post-check=0, pre-check=0", false);
    header("Pragma: no-cache");
    $meta_rec = $this->meta_info;
	
	//echo '<pre>'; print_r($meta_rec);
    //trace($meta_rec);
    $uri_parts = explode('?', $_SERVER['REQUEST_URI'], 2);
    $actual_link2=(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http")."://$_SERVER[HTTP_HOST]$uri_parts[0]";

    //trace($meta_rec);
    if (is_array($meta_rec) && !empty($meta_rec)) {
      ?>
  <title><?php echo $meta_rec['meta_title']; ?></title>
      <meta name="description" content="<?php echo $meta_rec['meta_description']; ?>" />
      <meta name="keywords" content="<?php echo $meta_rec['meta_keyword']; ?>" />
      <meta name="document-type" content="Public" />
      <meta name="document-rating" content="Safe for Kids" />
      <meta name="Expires" content="never" />
      <meta name="HandheldFriendly" content="True" />
      <meta name="YahooSeeker" content="Index,Follow" />
      <meta name="geo.region" content="IN" />
      <meta name="address" content=""/>
      <meta name="copyright" content="Copyright <?php echo Date('Y');?> <?php echo SITENAME;?>" /> 
      <meta name="distribution" content="global" />
      <meta name="language" content="english" /> 
      <meta name="rating" content="general" />
      <meta name="subject" content="<?php echo $meta_rec['meta_title']; ?>" /> 
      <meta name="robots" content="ALL" /> 
      <meta name="revisit-after" content="2 days" />
      <meta name="generator" content="<?php echo SITENAME;?>" />
      <meta property="title" content="<?php echo $meta_rec['meta_title']; ?>" />
      <meta property="description" content="<?php echo $meta_rec['meta_description']; ?>" />
      <meta name="author" content="<?php echo SITENAME;?>" />
      <meta name="publisher" content="<?php echo SITENAME;?>"/>
      <?php //echo $this->router->fetch_class()." ".$this->router->fetch_method();
      if ($this->router->fetch_class() == 'products' && $this->router->fetch_method() == 'detail') {
      $this->load->model('products/product_model');
      $productId = (int) $this->meta_info['entity_id'];
      $where = "wlp.products_id = '" . $productId . "'";
      $option = array('fields' => "SQL_CALC_FOUND_ROWS wlp.*,wlc.first_name,wlc.user_name,wlc.mobile_number,wlcat.category_id", 'where' => $where);
      $res = $this->product_model->get_products('1', '', $option);
      $res = $res[0]; 
      ?>
      <meta name="og:type" content="article" />
      <meta name="og:title" content="<?php echo $res['product_name']; ?>" />
      <meta name="og:description" content="<?php echo html_escape($res['products_description']);  ?>"/>
      <meta property="og:image:width" content="250"/>
      <meta property="og:image:height" content="250"/>
      <meta name="og:site_name" content="<?php echo SITENAME;?>"/>
      <meta property="og:url" content="<?php echo $actual_link2; ?>">
      <meta name="og:image" content="<?php echo get_image('products', $res['media'], '250', '250', 'R'); ?>" />
      <meta property="og:image:url" content="<?php echo get_image('products', $res['media'], '250', '250', 'R'); ?>" />
      <meta name="twitter:card" content="summary"/>
      <meta name="twitter:desc" content="<?php  echo html_escape($res['products_description']);  ?>"/>
      <meta name="twitter:title" content="<?php echo $res['product_name']; ?>"/>
      <meta name="twitter:image" content="<?php echo get_image('products', $res['media'], '250', '250', 'R'); ?>">
      <meta property="twitter:url" content="<?php echo $actual_link2; ?>">
      <meta name="abstract" content="<?php echo $res['product_name']; ?>"/>
      <meta name="Classification" content="<?php  echo html_escape($res['products_description']);  ?>"/>
      <meta name="dc.source" content="<?php echo SITENAME;?>" />
      <meta name="dc.title" content="<?php echo $res['product_name']; ?>" />
      <meta name="dc.keywords" content="<?php echo $meta_rec['meta_keyword']; ?>" />
      <meta name="dc.subject" content="<?php echo SITENAME;?>" />
      <meta name="dc.description" content="<?php  echo html_escape($res['products_description']);  ?>" />
      <link rel="canonical" href="<?php echo $actual_link2; ?>">
      <link rel="image_src" href="<?php echo get_image('products', $res['media'], '250', '250', 'R'); ?>" />
       <?php } else{ ?>

      <link rel="image_src" href="<?php echo theme_url(); ?>images/logo.png" />
      <meta name="og:type" content="article" />
      <meta name="og:title" content="<?php echo $meta_rec['meta_title']; ?>" />
      <meta name="og:description" content="<?php echo $meta_rec['meta_description']; ?>"/>
      <meta property="og:image:width" content="250"/>
      <meta property="og:image:height" content="250"/>
      <meta name="og:site_name" content="<?php echo SITENAME;?>"/>
      <meta property="og:url" content="<?php echo $actual_link2; ?>">
      <meta name="og:image" content="<?php echo theme_url(); ?>images/logo.png" />
      <meta property="og:image:url" content="<?php echo theme_url(); ?>images/logo.png" />
      <meta name="twitter:card" content="summary"/>
      <meta name="twitter:desc" content="<?php echo $meta_rec['meta_description']; ?>"/>
      <meta name="twitter:title" content="<?php echo $meta_rec['meta_title']; ?>"/>
      <meta name="twitter:image" content="<?php echo theme_url(); ?>images/logo.png">
      <meta property="twitter:url" content="<?php echo $actual_link2; ?>">
      <meta name="abstract" content="<?php echo $meta_rec['meta_title']; ?>"/>
      <meta name="Classification" content="<?php echo $meta_rec['meta_description']; ?>"/>
      <meta name="dc.source" content="<?php echo site_url();?>" />
      <meta name="dc.title" content="<?php echo $meta_rec['meta_title']; ?>" />
      <meta name="dc.keywords" content="<?php echo $meta_rec['meta_keyword']; ?>" />
      <meta name="dc.subject" content="<?php echo SITENAME;?>" />
      <meta name="dc.description" content="<?php echo $meta_rec['meta_description']; ?>" />
      <link rel="canonical" href="<?php echo $actual_link2; ?>">
      <?php } ?>
  
      <?php } ?>    
   
<link rel="icon" href="<?php echo theme_url();?>images/favicon.png" type="image/png">
 <link href="<?php echo theme_url();?>css/bootstrap.min.css" rel="stylesheet">
<link href="<?php echo theme_url();?>css/font-awesome.min.css" rel="stylesheet">
<link href="<?php echo theme_url();?>css/animate.min.css" rel="stylesheet">
<link href="<?php echo theme_url();?>css/slick.css" rel="stylesheet">
<link href="<?php echo theme_url();?>css/style.css" rel="stylesheet">
<link href="<?php echo theme_url();?>css/responsive.css" rel="stylesheet">
<meta name="google-site-verification" content="tvIBRcP3H4-MMIYQfeUBmmArzE6yQsYwpbGpgEcMZb0" />

    <script> var site_url = '<?php echo site_url(); ?>';</script>
    <script> var theme_url = '<?php echo theme_url(); ?>';</script>
    <script> var resource_url = '<?php echo resource_url(); ?>';</script> 
 
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-5RW8DHMKFG"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-5RW8DHMKFG');
</script>
    
  </head>
<body>
<?php $this->load->view('header'); ?>