Subversion Repositories SmartDukaan

Rev

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