<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <?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]";


    //echo $actual_link2;
    //trace($meta_rec);
    if (is_array($meta_rec) && !empty($meta_rec)) {
      ?>
      <title><?php echo ucwords($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 name="Title" content="<?php echo $meta_rec['meta_title']; ?>" >
      <meta name="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 ucwords($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:SITENAME" 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 property="og:type" content="Article" >
        <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 ucwords($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:SITENAME" 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 } ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"> -->
<!-- <meta http-equiv="X-UA-Compatible" content="IE=edge"> -->
<link rel="icon" href="<?=theme_url();?>img/logo/favicon.ico" type="image/png">

<link rel="preload" href="https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap"></noscript>

<!-- <link href="<?=theme_url();?>css/bootstrap.min.css" rel="stylesheet" > -->
<link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css"></noscript>

<!-- <link href="<?=theme_url();?>css/owl.carousel.min.css" rel="stylesheet" > -->
<link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css"></noscript>

<link rel="preload" href="<?=theme_url();?>css/magiczoomplus.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="<?=theme_url();?>css/magiczoomplus.css"></noscript>

<link href="<?=theme_url();?>css/magiczoomplus.css" rel="stylesheet">
<!-- <link href="<?=theme_url();?>css/owl.theme.default.min.css" rel="stylesheet" > -->

<!-- <link href="<?=theme_url();?>css/animate.css" rel="stylesheet" > -->
<link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.1/animate.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.1/animate.min.css"></noscript>

<!-- <link href="<?=theme_url();?>css/jquery.fancybox.min.css" rel="stylesheet" media="screen"> -->
<link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.1.20/jquery.fancybox.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.1.20/jquery.fancybox.min.css"></noscript>

<!-- <link href="<?=theme_url();?>css/jquery-ui.css" rel="stylesheet"> -->
<link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css"></noscript>

<link href="<?=theme_url();?>css/theme.css" rel="stylesheet">
<link href="<?=theme_url();?>css/responsive.css" rel="stylesheet">

<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>
<meta name="google-site-verification" content="wWYl1HpeYa67lF2IOBlKcWf1edF6tYZ5P-itKbLZhuk">

<!-- Google tag (gtag.js) -->
<script>
      setTimeout(function() { $.getScript("https://www.googletagmanager.com/gtag/js?id=G-CP1YGW9ZZQ");}, 8000);
      setTimeout(function() { $.getScript("https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js");}, 6000);
</script> 

<script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-CP1YGW9ZZQ'); </script>
</head>

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