Subversion Repositories SmartDukaan

Rev

Rev 10803 | Rev 10953 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10582 lgm 1
<!DOCTYPE html>
2
<html lang="en">
3
  <head>
4
    <meta charset="utf-8">
5
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
10908 lgm 6
    <?php if(isset($title) && !empty($title)){?>
7
      <title><?php echo $title;?></title>
8
    <?php } else{?>
10582 lgm 9
    <title>Mobile Phone Reviews and Best Deals in India | saholic.com</title>
10908 lgm 10
    <?php }?>
11
    <?php if(isset($metaDescription) && !empty($metaDescription)){?>
12
      <meta name="Description" content="<?php echo $metaDescription;?>"</>
13
    <?php }?>
10582 lgm 14
    <link rel="shortcut icon" href="assets/img/favicon.ico" type="image/x-icon">
15
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
16
    <!-- <link rel="stylesheet/less" href="<?php //echo base_url();?>assets/css/common.less" type="text/css"> -->
17
    <?php if(isset($stylesheet) && !empty($stylesheet)){?>
18
    <link rel="stylesheet" href="<?php echo base_url();?>assets/css/<?php echo $stylesheet.'?version='.$this->config->item('cdn_version');?>" type="text/css">
19
    <script src='<?=base_url()?>assets/js/pace.js' type="text/javascript"></script>
20
    <?php } ?>
10591 lgm 21
        <script>
10582 lgm 22
      //less.refresh();
23
      var base_url="<?php echo base_url();?>";
10591 lgm 24
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
25
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
26
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
27
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
28
      ga('create', 'UA-50134262-1', 'shop2020.com');
29
      ga('send', 'pageview');
10582 lgm 30
    </script>
31
  </head>
32
  <body>
33
 
34
    <header class="clearfix">
35
      <div class="menu" onclick="toggleOverlay(event)"></div>
36
        <h1><a href="<?php echo base_url();?>"><img src="<?=base_url()?>assets/images/logo.PNG" alt="saholic logo"/></a></h1>
37
        <?php if($stylesheet != 'authorize.css'){?>
38
        <a class="cart" href="<?php echo base_url().'cart'?>">
39
          <span>
40
          <?php $authorized=$this->session->userdata('authorized');
41
        if(isset($authorized) && !empty($authorized)){
42
          $cartCount = $authorized['totalItems'];
43
        }else{
44
          $cartCount = 0;
45
        }echo $cartCount;?>
46
        </span>
47
        </a> <?php } ?>
48
        <?php $authorized = $this->session->userdata('authorized');
49
          if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
50
        <div class="profile selected-pr" onclick="toggleOverlay(event)"></div>
51
        <?php } else {?>
52
        <div class="profile" onclick="toggleOverlay(event)"></div>
53
        <?php } ?>
54
      </header>
55
 
56
 
57
<?php
58
       if($stylesheet != 'authorize.css'){
59
      $data = $response['header'];
60
      if(isset($data) and !empty($data))
61
      {
62
      foreach($data as $headkey=>$value)
63
      {
64
        if(isset($value['render']) and !empty($value['render']))
65
        {
66
          unset($value['render']);
67
          if(isset($value) and !empty($value))
68
          $this->load->view($this->layoutName.$headkey,array($headkey=>$value));
69
        else
70
          $this->load->view($this->layoutName.$headkey);
71
        }
72
        else
73
          { 
74
            if(isset($value) and !empty($value) and count($value)>1)
75
              { echo 'data list here';}
76
          }
77
 
78
 
79
      }
80
 
81
      }
82
    }
83
?>
84
<div class="profile-overlay" style="display:none">
85
  <div>Account</div>
86
  <?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
87
  <a href="<?php echo base_url().'logout';?>">Logout</a>
88
  <a href="<?php echo base_url().'my-orders';?>">My Orders</a>
10626 lgm 89
  <!-- <a href="#">My Account</a> --> 
10582 lgm 90
  <?php } else {?>
91
  <a href="<?php echo base_url().'login';?>">Sign In</a>
92
  <a href="<?php echo base_url().'register';?>">Register</a>  
93
  <?php } ?>
94
</div><!--profile-overlay-->
95
 
96
</header>
97
<?php
10694 lgm 98
$msg = $this->session->flashdata('msg');
99
if(isset($msg) && $msg == 'Registered Successfully'){
100
$authorized = $this->session->userdata('authorized');
101
$email = $authorized['email'];?>
102
<script type="text/javascript">
103
ga('send', 'event', 'Account', 'New user Registration',<?php if(isset($email)){echo $email;}?>);
104
</script>
105
<?php 
10803 lgm 106
echo "<div class='sucess-reg'>".$this->session->flashdata('msg'). "</div>";
10694 lgm 107
}
10582 lgm 108
 ?>