<!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="Plot No 78, Panchal Udyog Nagar, Bhimpore, Nani Daman, Gujarat ,India - 396210">
    <meta name="copyright" content="Copyright <?php echo Date('Y'); ?> life Optoelectronics">
    <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="life Optoelectronics">
    <meta name="title" content="<?php echo $meta_rec['meta_title']; ?>">
    <!-- <meta name="description" content="" > -->
    <meta name="author" content="life Optoelectronics">
    <meta name="publisher" content="life Optoelectronics">
    <?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="life Optoelectronics">
      <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="delhi-interior.in">
      <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="life Optoelectronics">
      <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="life Optoelectronics">
      <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="life Optoelectronics">
      <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="<?= theme_url(); ?>images/favicon.ico" type="image/png">
<link rel="preload" href="https://fonts.googleapis.com/css?family=Montserrat&display=swap" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat&display=swap"></noscript>
<link rel="icon" href="<?php echo theme_url(); ?>images/favicon.ico" type="image/png">
<link rel="preload" href="<?php echo theme_url(); ?>css/bootstrap.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="<?php echo theme_url(); ?>css/bootstrap.css"></noscript>
<link rel="preload" href="<?php echo theme_url(); ?>css/font-awesome.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="<?php echo theme_url(); ?>css/font-awesome.min.css"></noscript>
<link rel="preload" href="<?php echo theme_url(); ?>css/animate.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="<?php echo theme_url(); ?>css/animate.css"></noscript>
<link href="<?php echo theme_url(); ?>css/owl.carousel.css" rel="stylesheet" type="text/css">
<!-- <link rel="preload" href="<?php echo theme_url(); ?>css/jquery.typeahead.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="<?php echo theme_url(); ?>css/jquery.typeahead.css"></noscript> -->
<link rel="preload" href="<?php echo theme_url(); ?>css/jquery.fancybox.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="<?php echo theme_url(); ?>css/jquery.fancybox.min.css"></noscript>
<link href="<?php echo theme_url(); ?>css/themes.css" rel="stylesheet" type="text/css">
<link rel="preload" href="<?php echo theme_url(); ?>css/responsive.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="<?php echo theme_url(); ?>css/responsive.css"></noscript>
  <script src="<?php echo theme_url(); ?>js/jquery.min.js"></script>
  <script>
	jQuery.event.special.touchstart = {
		setup: function(_, ns, handle) {
			this.addEventListener("touchstart", handle, {
				passive: !ns.includes("noPreventDefault")
			});
		}
	};
	jQuery.event.special.touchmove = {
		setup: function(_, ns, handle) {
			this.addEventListener("touchmove", handle, {
				passive: !ns.includes("noPreventDefault")
			});
		}
	};
	jQuery.event.special.wheel = {
		setup: function(_, ns, handle) {
			this.addEventListener("wheel", handle, {
				passive: true
			});
		}
	};
	jQuery.event.special.mousewheel = {
		setup: function(_, ns, handle) {
			this.addEventListener("mousewheel", handle, {
				passive: true
			});
		}
	};

	document.addEventListener('touchstart', function(e) {
		var Ypos = e.screenY;
		console.log(Ypos);
	});
</script>
  <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>
  <style>
    .red,
    .error,
    .required {
      color: red;
    }

    .success,
    .green {
      color: green;
    }
  </style>
  <meta name="google-site-verification" content="mLbWuggqVqYD2RtMCU36P9Ca9iUOY7wz8RgppQjn74w">
 <!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-5ZL6VFXXRJ"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());


  gtag('config', 'G-5ZL6VFXXRJ');
</script>

</head>

<body>
  <?php
  //$this->load->view('header');
  $this->load->view('header');
  ?>