Subversion Repositories SmartDukaan

Rev

Rev 15787 | Rev 16269 | 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');?>
12524 anikendra 29
<script>
30
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
31
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
32
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
33
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
34
 
35
  ga('create', '<?php echo $this->config->item('ga_id');?>', 'auto');
36
  ga('send', 'pageview');
37
  ga('require', 'ecommerce');   // Load the ecommerce plug-in.
10582 lgm 38
      //less.refresh();
39
      var base_url="<?php echo base_url();?>";
11885 anikendra 40
<?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
12524 anikendra 41
	var dimensionValue = 'PrivateDeal';
42
	ga('set', 'dimension1', dimensionValue);
11885 anikendra 43
<?php endif;?>
10582 lgm 44
    </script>
45
  </head>
46
  <body>
47
    <header class="clearfix">
48
      <div class="menu" onclick="toggleOverlay(event)"></div>
12727 anikendra 49
        <h1><a href="<?php echo base_url();?>"><img src="<?=base_url()?>assets/images/logo.PNG" alt="saholic logo"/></a></h1>        
10582 lgm 50
        <?php if($stylesheet != 'authorize.css'){?>
51
        <a class="cart" href="<?php echo base_url().'cart'?>">
52
          <span>
11913 anikendra 53
	<?php
10582 lgm 54
        if(isset($authorized) && !empty($authorized)){
55
          $cartCount = $authorized['totalItems'];
56
        }else{
57
          $cartCount = 0;
58
        }echo $cartCount;?>
59
        </span>
60
        </a> <?php } ?>
61
        <?php $authorized = $this->session->userdata('authorized');
62
          if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
63
        <div class="profile selected-pr" onclick="toggleOverlay(event)"></div>
64
        <?php } else {?>
65
        <div class="profile" onclick="toggleOverlay(event)"></div>
13008 anikendra 66
        <?php } ?>       
10582 lgm 67
      </header>
68
 
69
 
70
<?php
71
       if($stylesheet != 'authorize.css'){
72
      $data = $response['header'];
73
      if(isset($data) and !empty($data))
74
      {
75
      foreach($data as $headkey=>$value)
76
      {
77
        if(isset($value['render']) and !empty($value['render']))
78
        {
79
          unset($value['render']);
80
          if(isset($value) and !empty($value))
81
          $this->load->view($this->layoutName.$headkey,array($headkey=>$value));
82
        else
83
          $this->load->view($this->layoutName.$headkey);
84
        }
85
        else
86
          { 
87
            if(isset($value) and !empty($value) and count($value)>1)
14012 anikendra 88
              { //echo 'data list here';
10582 lgm 89
          }
14012 anikendra 90
          }
10582 lgm 91
 
92
 
93
      }
94
 
95
      }
96
    }
97
?>
98
<div class="profile-overlay" style="display:none">
11089 lgm 99
  <?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){?>
10582 lgm 100
  <div>Account</div>
11089 lgm 101
   <?php } else { ?>
102
   <div>Account</div>
103
  <?php }?>
10582 lgm 104
  <?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
11885 anikendra 105
  <?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
106
  <a href="<?php echo base_url().'private-deals/1';?>">My Deals</a>
107
  <?php endif;?>
10582 lgm 108
  <a href="<?php echo base_url().'my-orders';?>">My Orders</a>
11124 lgm 109
  <a href="<?php echo base_url().'my-recharges';?>">My Recharges</a>
110
  <a href="<?php echo base_url().'my-wallet';?>">My Wallet</a>
11678 lgm 111
  <a href="<?php echo base_url().'login-details';?>">Change Password</a>
11089 lgm 112
  <a href="<?php echo base_url().'logout';?>">Logout<span><?php print_r($authorized['email']);?></span></a>
10626 lgm 113
  <!-- <a href="#">My Account</a> --> 
10582 lgm 114
  <?php } else {?>
115
  <a href="<?php echo base_url().'login';?>">Sign In</a>
116
  <a href="<?php echo base_url().'register';?>">Register</a>  
117
  <?php } ?>
118
</div><!--profile-overlay-->
119
 
120
</header>
121
<?php
10694 lgm 122
$msg = $this->session->flashdata('msg');
123
if(isset($msg) && $msg == 'Registered Successfully'){
124
$authorized = $this->session->userdata('authorized');
125
$email = $authorized['email'];?>
126
<script type="text/javascript">
10953 lgm 127
if(typeof _gaq != "undefined" && _gaq != null)  {
11023 lgm 128
  _gaq.push(['_trackEvent', 'Account', 'New user Registration','<?php if(isset($email)){echo $email;}?>']);
10953 lgm 129
}
10694 lgm 130
</script>
131
<?php 
10803 lgm 132
echo "<div class='sucess-reg'>".$this->session->flashdata('msg'). "</div>";
10694 lgm 133
}
15837 amit.gupta 134
 ?>