Subversion Repositories SmartDukaan

Rev

Rev 11885 | Rev 11920 | 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');?>
10591 lgm 29
        <script>
10582 lgm 30
      //less.refresh();
31
      var base_url="<?php echo base_url();?>";
10953 lgm 32
      var _gaq = _gaq || [];
11685 anikendra 33
      _gaq.push(['_setAccount', '<?php echo $this->config->item('ga_id');?>']);
34
      _gaq.push(['_setDomainName', '<?php echo $this->config->item('ga_domain');?>']);
10953 lgm 35
      _gaq.push(['_trackPageview']);
36
 
37
      (function() {
38
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
11831 anikendra 39
        //ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
40
	ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
10953 lgm 41
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
42
      })();
11885 anikendra 43
<?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
44
_gaq.push(['_setCustomVar',
45
      1,             // This custom var is set to slot #1.  Required parameter.
11913 anikendra 46
      'typeofuser',   // The name of the custom variable.  Required parameter.
11885 anikendra 47
      'PrivateDeal',      // Sets the value of "User Type" to "Member" or "Visitor" depending on status.  Required parameter.
48
       2             // Sets the scope to session-level.  Optional parameter.
49
]);
50
<?php endif;?>
10582 lgm 51
    </script>
52
  </head>
53
  <body>
54
 
55
    <header class="clearfix">
56
      <div class="menu" onclick="toggleOverlay(event)"></div>
11789 lgm 57
        <h1><a href="<?php echo base_url();?>"><img src="<?=base_url()?>assets/images/logo.PNG" alt="saholic logo"/></a></h1>
10582 lgm 58
        <?php if($stylesheet != 'authorize.css'){?>
59
        <a class="cart" href="<?php echo base_url().'cart'?>">
60
          <span>
11913 anikendra 61
	<?php
10582 lgm 62
        if(isset($authorized) && !empty($authorized)){
63
          $cartCount = $authorized['totalItems'];
64
        }else{
65
          $cartCount = 0;
66
        }echo $cartCount;?>
67
        </span>
68
        </a> <?php } ?>
69
        <?php $authorized = $this->session->userdata('authorized');
70
          if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
71
        <div class="profile selected-pr" onclick="toggleOverlay(event)"></div>
72
        <?php } else {?>
73
        <div class="profile" onclick="toggleOverlay(event)"></div>
74
        <?php } ?>
75
      </header>
76
 
77
 
78
<?php
79
       if($stylesheet != 'authorize.css'){
80
      $data = $response['header'];
81
      if(isset($data) and !empty($data))
82
      {
83
      foreach($data as $headkey=>$value)
84
      {
85
        if(isset($value['render']) and !empty($value['render']))
86
        {
87
          unset($value['render']);
88
          if(isset($value) and !empty($value))
89
          $this->load->view($this->layoutName.$headkey,array($headkey=>$value));
90
        else
91
          $this->load->view($this->layoutName.$headkey);
92
        }
93
        else
94
          { 
95
            if(isset($value) and !empty($value) and count($value)>1)
96
              { echo 'data list here';}
97
          }
98
 
99
 
100
      }
101
 
102
      }
103
    }
104
?>
105
<div class="profile-overlay" style="display:none">
11089 lgm 106
  <?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){?>
10582 lgm 107
  <div>Account</div>
11089 lgm 108
   <?php } else { ?>
109
   <div>Account</div>
110
  <?php }?>
10582 lgm 111
  <?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
11885 anikendra 112
  <?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
113
  <a href="<?php echo base_url().'private-deals/1';?>">My Deals</a>
114
  <?php endif;?>
10582 lgm 115
  <a href="<?php echo base_url().'my-orders';?>">My Orders</a>
11124 lgm 116
  <a href="<?php echo base_url().'my-recharges';?>">My Recharges</a>
117
  <a href="<?php echo base_url().'my-wallet';?>">My Wallet</a>
11678 lgm 118
  <a href="<?php echo base_url().'login-details';?>">Change Password</a>
11089 lgm 119
  <a href="<?php echo base_url().'logout';?>">Logout<span><?php print_r($authorized['email']);?></span></a>
10626 lgm 120
  <!-- <a href="#">My Account</a> --> 
10582 lgm 121
  <?php } else {?>
122
  <a href="<?php echo base_url().'login';?>">Sign In</a>
123
  <a href="<?php echo base_url().'register';?>">Register</a>  
124
  <?php } ?>
125
</div><!--profile-overlay-->
126
 
127
</header>
128
<?php
10694 lgm 129
$msg = $this->session->flashdata('msg');
130
if(isset($msg) && $msg == 'Registered Successfully'){
131
$authorized = $this->session->userdata('authorized');
132
$email = $authorized['email'];?>
133
<script type="text/javascript">
10953 lgm 134
if(typeof _gaq != "undefined" && _gaq != null)  {
11023 lgm 135
  _gaq.push(['_trackEvent', 'Account', 'New user Registration','<?php if(isset($email)){echo $email;}?>']);
10953 lgm 136
}
10694 lgm 137
</script>
138
<?php 
10803 lgm 139
echo "<div class='sucess-reg'>".$this->session->flashdata('msg'). "</div>";
10694 lgm 140
}
11685 anikendra 141
 ?>