Subversion Repositories SmartDukaan

Rev

Rev 12524 | Rev 12767 | 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>
10987 lgm 8
    <?php } elseif(isset($stylesheet) && $stylesheet == 'common.css'){?>
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)){?>
10987 lgm 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."/>
10908 lgm 15
    <?php }?>
10953 lgm 16
    <?php if(isset($metaKeywords) && !empty($metaKeywords)){?>
10987 lgm 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 } ?>
10582 lgm 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">
11143 lgm 26
 
10582 lgm 27
    <?php } ?>
11913 anikendra 28
          <?php $authorized=$this->session->userdata('authorized');?>
12727 anikendra 29
<?php print_r($authorized);?>
12524 anikendra 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.
10582 lgm 39
      //less.refresh();
40
      var base_url="<?php echo base_url();?>";
11885 anikendra 41
<?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
12524 anikendra 42
	var dimensionValue = 'PrivateDeal';
43
	ga('set', 'dimension1', dimensionValue);
11885 anikendra 44
<?php endif;?>
10582 lgm 45
    </script>
46
  </head>
47
  <body>
48
    <header class="clearfix">
49
      <div class="menu" onclick="toggleOverlay(event)"></div>
12727 anikendra 50
        <h1><a href="<?php echo base_url();?>"><img src="<?=base_url()?>assets/images/logo.PNG" alt="saholic logo"/></a></h1>        
10582 lgm 51
        <?php if($stylesheet != 'authorize.css'){?>
52
        <a class="cart" href="<?php echo base_url().'cart'?>">
53
          <span>
11913 anikendra 54
	<?php
10582 lgm 55
        if(isset($authorized) && !empty($authorized)){
56
          $cartCount = $authorized['totalItems'];
57
        }else{
58
          $cartCount = 0;
59
        }echo $cartCount;?>
60
        </span>
61
        </a> <?php } ?>
62
        <?php $authorized = $this->session->userdata('authorized');
63
          if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
64
        <div class="profile selected-pr" onclick="toggleOverlay(event)"></div>
65
        <?php } else {?>
66
        <div class="profile" onclick="toggleOverlay(event)"></div>
67
        <?php } ?>
12727 anikendra 68
        <?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
69
        <a class="hpdl" href="<?php echo base_url().'private-deals/1';?>">Deals</a>
70
        <?php endif;?>
10582 lgm 71
      </header>
72
 
73
 
74
<?php
75
       if($stylesheet != 'authorize.css'){
76
      $data = $response['header'];
77
      if(isset($data) and !empty($data))
78
      {
79
      foreach($data as $headkey=>$value)
80
      {
81
        if(isset($value['render']) and !empty($value['render']))
82
        {
83
          unset($value['render']);
84
          if(isset($value) and !empty($value))
85
          $this->load->view($this->layoutName.$headkey,array($headkey=>$value));
86
        else
87
          $this->load->view($this->layoutName.$headkey);
88
        }
89
        else
90
          { 
91
            if(isset($value) and !empty($value) and count($value)>1)
92
              { echo 'data list here';}
93
          }
94
 
95
 
96
      }
97
 
98
      }
99
    }
100
?>
101
<div class="profile-overlay" style="display:none">
11089 lgm 102
  <?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){?>
10582 lgm 103
  <div>Account</div>
11089 lgm 104
   <?php } else { ?>
105
   <div>Account</div>
106
  <?php }?>
10582 lgm 107
  <?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
11885 anikendra 108
  <?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
109
  <a href="<?php echo base_url().'private-deals/1';?>">My Deals</a>
110
  <?php endif;?>
10582 lgm 111
  <a href="<?php echo base_url().'my-orders';?>">My Orders</a>
11124 lgm 112
  <a href="<?php echo base_url().'my-recharges';?>">My Recharges</a>
113
  <a href="<?php echo base_url().'my-wallet';?>">My Wallet</a>
11678 lgm 114
  <a href="<?php echo base_url().'login-details';?>">Change Password</a>
11089 lgm 115
  <a href="<?php echo base_url().'logout';?>">Logout<span><?php print_r($authorized['email']);?></span></a>
10626 lgm 116
  <!-- <a href="#">My Account</a> --> 
10582 lgm 117
  <?php } else {?>
118
  <a href="<?php echo base_url().'login';?>">Sign In</a>
119
  <a href="<?php echo base_url().'register';?>">Register</a>  
120
  <?php } ?>
121
</div><!--profile-overlay-->
122
 
123
</header>
124
<?php
10694 lgm 125
$msg = $this->session->flashdata('msg');
126
if(isset($msg) && $msg == 'Registered Successfully'){
127
$authorized = $this->session->userdata('authorized');
128
$email = $authorized['email'];?>
129
<script type="text/javascript">
10953 lgm 130
if(typeof _gaq != "undefined" && _gaq != null)  {
11023 lgm 131
  _gaq.push(['_trackEvent', 'Account', 'New user Registration','<?php if(isset($email)){echo $email;}?>']);
10953 lgm 132
}
10694 lgm 133
</script>
134
<?php 
10803 lgm 135
echo "<div class='sucess-reg'>".$this->session->flashdata('msg'). "</div>";
10694 lgm 136
}
11685 anikendra 137
 ?>