Subversion Repositories SmartDukaan

Rev

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