Subversion Repositories SmartDukaan

Rev

Rev 16269 | 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 } ?>
16269 amit.gupta 21
    <link rel="shortcut icon" href="/assets/images/favicon.ico" type="image/x-icon">
10582 lgm 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>
16996 anikendra 45
	<meta name="OMG-Verify-V1" content="796881-0c8ca8b9-601a-4c0f-b9e8-4c2cabe788f7" />
10582 lgm 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>
13008 anikendra 67
        <?php } ?>       
10582 lgm 68
      </header>
69
 
70
 
71
<?php
72
       if($stylesheet != 'authorize.css'){
73
      $data = $response['header'];
74
      if(isset($data) and !empty($data))
75
      {
76
      foreach($data as $headkey=>$value)
77
      {
78
        if(isset($value['render']) and !empty($value['render']))
79
        {
80
          unset($value['render']);
81
          if(isset($value) and !empty($value))
82
          $this->load->view($this->layoutName.$headkey,array($headkey=>$value));
83
        else
84
          $this->load->view($this->layoutName.$headkey);
85
        }
86
        else
87
          { 
88
            if(isset($value) and !empty($value) and count($value)>1)
14012 anikendra 89
              { //echo 'data list here';
10582 lgm 90
          }
14012 anikendra 91
          }
10582 lgm 92
 
93
 
94
      }
95
 
96
      }
97
    }
98
?>
99
<div class="profile-overlay" style="display:none">
11089 lgm 100
  <?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){?>
10582 lgm 101
  <div>Account</div>
11089 lgm 102
   <?php } else { ?>
103
   <div>Account</div>
104
  <?php }?>
10582 lgm 105
  <?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
11885 anikendra 106
  <?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
107
  <a href="<?php echo base_url().'private-deals/1';?>">My Deals</a>
108
  <?php endif;?>
10582 lgm 109
  <a href="<?php echo base_url().'my-orders';?>">My Orders</a>
11124 lgm 110
  <a href="<?php echo base_url().'my-recharges';?>">My Recharges</a>
111
  <a href="<?php echo base_url().'my-wallet';?>">My Wallet</a>
11678 lgm 112
  <a href="<?php echo base_url().'login-details';?>">Change Password</a>
11089 lgm 113
  <a href="<?php echo base_url().'logout';?>">Logout<span><?php print_r($authorized['email']);?></span></a>
10626 lgm 114
  <!-- <a href="#">My Account</a> --> 
10582 lgm 115
  <?php } else {?>
116
  <a href="<?php echo base_url().'login';?>">Sign In</a>
117
  <a href="<?php echo base_url().'register';?>">Register</a>  
118
  <?php } ?>
119
</div><!--profile-overlay-->
120
 
121
</header>
122
<?php
10694 lgm 123
$msg = $this->session->flashdata('msg');
124
if(isset($msg) && $msg == 'Registered Successfully'){
125
$authorized = $this->session->userdata('authorized');
126
$email = $authorized['email'];?>
127
<script type="text/javascript">
10953 lgm 128
if(typeof _gaq != "undefined" && _gaq != null)  {
11023 lgm 129
  _gaq.push(['_trackEvent', 'Account', 'New user Registration','<?php if(isset($email)){echo $email;}?>']);
10953 lgm 130
}
10694 lgm 131
</script>
132
<?php 
10803 lgm 133
echo "<div class='sucess-reg'>".$this->session->flashdata('msg'). "</div>";
10694 lgm 134
}
16996 anikendra 135
 ?>