Subversion Repositories SmartDukaan

Rev

Rev 12732 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12694 anikendra 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">
6
    <?php if(isset($title) && !empty($title)){?>
7
      <title><?php echo $title;?></title>
8
    <?php } elseif(isset($stylesheet) && $stylesheet == 'common.css'){?>
9
    <title>Mobile Phone Reviews and Best Deals in India | saholic.com</title>
10
    <?php }?>
11
    <?php if(isset($metaDescription) && !empty($metaDescription)){?>
12
      <meta name="Description" content="<?php echo $metaDescription;?>"/>
13
    <?php } elseif(isset($stylesheet) && $stylesheet == 'common.css'){?>
14
    <meta name="Description" content="Comprehensive reviews and Best Deals on mobile phones in India. Experience n' buy online. FREE Next Day delivery. Original product - Full manufacturer warranty."/>
15
    <?php }?>
16
    <?php if(isset($metaKeywords) && !empty($metaKeywords)){?>
17
      <meta name="keywords" content="<?php echo $metaKeywords;?>"/>
18
    <?php } elseif(isset($stylesheet) && $stylesheet == 'common.css'){?>
19
      <meta name="keywords" content="Mobile phones, mobile phone reviews, mobile phone, mobile accessories, latest mobile phones, mobile phone prices, mobile phones India, mobile phone comparison"/>
20
    <?php } ?>
21
    <link rel="shortcut icon" href="assets/img/favicon.ico" type="image/x-icon">
22
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
23
    <!-- <link rel="stylesheet/less" href="<?php //echo base_url();?>assets/css/common.less" type="text/css"> -->
24
    <?php if(isset($stylesheet) && !empty($stylesheet)){?>
25
    <link rel="stylesheet" href="<?php echo base_url();?>assets/css/<?php echo $stylesheet.'?version='.$this->config->item('cdn_version');?>" type="text/css">
26
 
27
    <?php } ?>
28
          <?php $authorized=$this->session->userdata('authorized');?>
29
 
30
<script>
31
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
32
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
33
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
34
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
35
 
36
  ga('create', '<?php echo $this->config->item('ga_id');?>', 'auto');
37
  ga('send', 'pageview');
38
  ga('require', 'ecommerce');   // Load the ecommerce plug-in.
39
      //less.refresh();
40
      var base_url="<?php echo base_url();?>";
41
/*
42
      var _gaq = _gaq || [];
43
      _gaq.push(['_setAccount', '<?php echo $this->config->item('ga_id');?>']);
44
      _gaq.push(['_setDomainName', '<?php echo $this->config->item('ga_domain');?>']);
45
      _gaq.push(['_trackPageview']);
46
 
47
      (function() {
48
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
49
        //ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
50
	ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
51
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
52
      })();
53
*/
54
<?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
55
	var dimensionValue = 'PrivateDeal';
56
	ga('set', 'dimension1', dimensionValue);
57
/*
58
_gaq.push(['_setCustomVar',
59
      1,             // This custom var is set to slot #1.  Required parameter.
60
      'typeofuser',   // The name of the custom variable.  Required parameter.
61
      'PrivateDeal',      // Sets the value of "User Type" to "Member" or "Visitor" depending on status.  Required parameter.
62
      1             // Sets the scope to session-level.  Optional parameter.
63
]);
64
*/
65
<?php endif;?>
66
    </script>
67
  </head>
68
  <body>
69
    <header class="clearfix">
70
      <div class="menu" onclick="toggleOverlay(event)"></div>
71
        <h1><a href="<?php echo base_url();?>"><img src="<?=base_url()?>assets/images/logo.PNG" alt="saholic logo"/></a></h1>
72
        <?php if($stylesheet != 'authorize.css'){?>
73
        <a class="cart" href="<?php echo base_url().'cart'?>">
74
          <span>
75
	<?php
76
        if(isset($authorized) && !empty($authorized)){
77
          $cartCount = $authorized['totalItems'];
78
        }else{
79
          $cartCount = 0;
80
        }echo $cartCount;?>
81
        </span>
82
        </a> <?php } ?>
83
        <?php $authorized = $this->session->userdata('authorized');
84
          if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
85
        <div class="profile selected-pr" onclick="toggleOverlay(event)"></div>
86
        <?php } else {?>
87
        <div class="profile" onclick="toggleOverlay(event)"></div>
88
        <?php } ?>
89
      </header>
90
 
91
 
92
<?php
93
       if($stylesheet != 'authorize.css'){
94
      $data = $response['header'];
95
      if(isset($data) and !empty($data))
96
      {
97
      foreach($data as $headkey=>$value)
98
      {
99
        if(isset($value['render']) and !empty($value['render']))
100
        {
101
          unset($value['render']);
102
          if(isset($value) and !empty($value))
103
          $this->load->view($this->layoutName.$headkey,array($headkey=>$value));
104
        else
105
          $this->load->view($this->layoutName.$headkey);
106
        }
107
        else
108
          { 
109
            if(isset($value) and !empty($value) and count($value)>1)
110
              { echo 'data list here';}
111
          }
112
 
113
 
114
      }
115
 
116
      }
117
    }
118
?>
119
<div class="profile-overlay" style="display:none">
120
  <?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){?>
121
  <div>Account</div>
122
   <?php } else { ?>
123
   <div>Account</div>
124
  <?php }?>
125
  <?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
126
  <?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
127
  <a href="<?php echo base_url().'private-deals/1';?>">My Deals</a>
128
  <?php endif;?>
129
  <a href="<?php echo base_url().'my-orders';?>">My Orders</a>
130
  <a href="<?php echo base_url().'my-recharges';?>">My Recharges</a>
131
  <a href="<?php echo base_url().'my-wallet';?>">My Wallet</a>
132
  <a href="<?php echo base_url().'login-details';?>">Change Password</a>
133
  <a href="<?php echo base_url().'logout';?>">Logout<span><?php print_r($authorized['email']);?></span></a>
134
  <!-- <a href="#">My Account</a> --> 
135
  <?php } else {?>
136
  <a href="<?php echo base_url().'login';?>">Sign In</a>
137
  <a href="<?php echo base_url().'register';?>">Register</a>  
138
  <?php } ?>
139
</div><!--profile-overlay-->
140
 
141
</header>
142
<?php
143
$msg = $this->session->flashdata('msg');
144
if(isset($msg) && $msg == 'Registered Successfully'){
145
$authorized = $this->session->userdata('authorized');
146
$email = $authorized['email'];?>
147
<script type="text/javascript">
148
if(typeof _gaq != "undefined" && _gaq != null)  {
149
  _gaq.push(['_trackEvent', 'Account', 'New user Registration','<?php if(isset($email)){echo $email;}?>']);
150
}
151
</script>
152
<?php 
153
echo "<div class='sucess-reg'>".$this->session->flashdata('msg'). "</div>";
154
}
155
 ?>