Subversion Repositories SmartDukaan

Rev

Rev 10908 | Rev 10987 | 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 }?>
10953 lgm 14
    <?php if(isset($metaKeywords) && !empty($metaKeywords)){?>
15
      <meta name="keywords" content="<?php echo $metaKeywords;?>"</>
16
    <?php }?>
10582 lgm 17
    <link rel="shortcut icon" href="assets/img/favicon.ico" type="image/x-icon">
18
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
19
    <!-- <link rel="stylesheet/less" href="<?php //echo base_url();?>assets/css/common.less" type="text/css"> -->
20
    <?php if(isset($stylesheet) && !empty($stylesheet)){?>
21
    <link rel="stylesheet" href="<?php echo base_url();?>assets/css/<?php echo $stylesheet.'?version='.$this->config->item('cdn_version');?>" type="text/css">
22
    <script src='<?=base_url()?>assets/js/pace.js' type="text/javascript"></script>
23
    <?php } ?>
10591 lgm 24
        <script>
10582 lgm 25
      //less.refresh();
26
      var base_url="<?php echo base_url();?>";
10953 lgm 27
      var _gaq = _gaq || [];
28
      _gaq.push(['_setAccount', 'UA-50134262-1']);
29
      _gaq.push(['_setDomainName', 'saholic.com']);
30
      _gaq.push(['_trackPageview']);
31
 
32
      (function() {
33
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
34
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
35
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
36
      })();
10582 lgm 37
    </script>
38
  </head>
39
  <body>
40
 
41
    <header class="clearfix">
42
      <div class="menu" onclick="toggleOverlay(event)"></div>
43
        <h1><a href="<?php echo base_url();?>"><img src="<?=base_url()?>assets/images/logo.PNG" alt="saholic logo"/></a></h1>
44
        <?php if($stylesheet != 'authorize.css'){?>
45
        <a class="cart" href="<?php echo base_url().'cart'?>">
46
          <span>
47
          <?php $authorized=$this->session->userdata('authorized');
48
        if(isset($authorized) && !empty($authorized)){
49
          $cartCount = $authorized['totalItems'];
50
        }else{
51
          $cartCount = 0;
52
        }echo $cartCount;?>
53
        </span>
54
        </a> <?php } ?>
55
        <?php $authorized = $this->session->userdata('authorized');
56
          if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
57
        <div class="profile selected-pr" onclick="toggleOverlay(event)"></div>
58
        <?php } else {?>
59
        <div class="profile" onclick="toggleOverlay(event)"></div>
60
        <?php } ?>
61
      </header>
62
 
63
 
64
<?php
65
       if($stylesheet != 'authorize.css'){
66
      $data = $response['header'];
67
      if(isset($data) and !empty($data))
68
      {
69
      foreach($data as $headkey=>$value)
70
      {
71
        if(isset($value['render']) and !empty($value['render']))
72
        {
73
          unset($value['render']);
74
          if(isset($value) and !empty($value))
75
          $this->load->view($this->layoutName.$headkey,array($headkey=>$value));
76
        else
77
          $this->load->view($this->layoutName.$headkey);
78
        }
79
        else
80
          { 
81
            if(isset($value) and !empty($value) and count($value)>1)
82
              { echo 'data list here';}
83
          }
84
 
85
 
86
      }
87
 
88
      }
89
    }
90
?>
91
<div class="profile-overlay" style="display:none">
92
  <div>Account</div>
93
  <?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
94
  <a href="<?php echo base_url().'logout';?>">Logout</a>
95
  <a href="<?php echo base_url().'my-orders';?>">My Orders</a>
10626 lgm 96
  <!-- <a href="#">My Account</a> --> 
10582 lgm 97
  <?php } else {?>
98
  <a href="<?php echo base_url().'login';?>">Sign In</a>
99
  <a href="<?php echo base_url().'register';?>">Register</a>  
100
  <?php } ?>
101
</div><!--profile-overlay-->
102
 
103
</header>
104
<?php
10694 lgm 105
$msg = $this->session->flashdata('msg');
106
if(isset($msg) && $msg == 'Registered Successfully'){
107
$authorized = $this->session->userdata('authorized');
108
$email = $authorized['email'];?>
109
<script type="text/javascript">
10953 lgm 110
if(typeof _gaq != "undefined" && _gaq != null)  {
111
  _gaq.push(['_trackEvent', 'Account', 'New user Registration',<?php if(isset($email)){echo $email;}?>]);
112
}
10694 lgm 113
</script>
114
<?php 
10803 lgm 115
echo "<div class='sucess-reg'>".$this->session->flashdata('msg'). "</div>";
10694 lgm 116
}
10582 lgm 117
 ?>