Subversion Repositories SmartDukaan

Rev

Rev 11159 | Rev 11337 | 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
 
11159 lgm 27
    <script  data-pace-options='{ "startOnPageLoad": false }' src='<?=base_url()?>assets/js/pace.js' type="text/javascript"></script>
10582 lgm 28
    <?php } ?>
10591 lgm 29
        <script>
10582 lgm 30
      //less.refresh();
31
      var base_url="<?php echo base_url();?>";
10953 lgm 32
      var _gaq = _gaq || [];
10998 lgm 33
      _gaq.push(['_setAccount', 'UA-50253280-1']);
10953 lgm 34
      _gaq.push(['_setDomainName', 'saholic.com']);
35
      _gaq.push(['_trackPageview']);
36
 
37
      (function() {
38
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
39
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
40
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
41
      })();
10582 lgm 42
    </script>
43
  </head>
44
  <body>
45
 
46
    <header class="clearfix">
47
      <div class="menu" onclick="toggleOverlay(event)"></div>
11334 lgm 48
        <h1><a href="<?php echo base_url();?>"><img src="<?=base_url()?>assets/images/saholic-beta.PNG" alt="saholic logo"/></a></h1>
10582 lgm 49
        <?php if($stylesheet != 'authorize.css'){?>
50
        <a class="cart" href="<?php echo base_url().'cart'?>">
51
          <span>
52
          <?php $authorized=$this->session->userdata('authorized');
53
        if(isset($authorized) && !empty($authorized)){
54
          $cartCount = $authorized['totalItems'];
55
        }else{
56
          $cartCount = 0;
57
        }echo $cartCount;?>
58
        </span>
59
        </a> <?php } ?>
60
        <?php $authorized = $this->session->userdata('authorized');
61
          if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
62
        <div class="profile selected-pr" onclick="toggleOverlay(event)"></div>
63
        <?php } else {?>
64
        <div class="profile" onclick="toggleOverlay(event)"></div>
65
        <?php } ?>
66
      </header>
67
 
68
 
69
<?php
70
       if($stylesheet != 'authorize.css'){
71
      $data = $response['header'];
72
      if(isset($data) and !empty($data))
73
      {
74
      foreach($data as $headkey=>$value)
75
      {
76
        if(isset($value['render']) and !empty($value['render']))
77
        {
78
          unset($value['render']);
79
          if(isset($value) and !empty($value))
80
          $this->load->view($this->layoutName.$headkey,array($headkey=>$value));
81
        else
82
          $this->load->view($this->layoutName.$headkey);
83
        }
84
        else
85
          { 
86
            if(isset($value) and !empty($value) and count($value)>1)
87
              { echo 'data list here';}
88
          }
89
 
90
 
91
      }
92
 
93
      }
94
    }
95
?>
96
<div class="profile-overlay" style="display:none">
11089 lgm 97
  <?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){?>
10582 lgm 98
  <div>Account</div>
11089 lgm 99
   <?php } else { ?>
100
   <div>Account</div>
101
  <?php }?>
10582 lgm 102
  <?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
103
  <a href="<?php echo base_url().'my-orders';?>">My Orders</a>
11124 lgm 104
  <a href="<?php echo base_url().'my-recharges';?>">My Recharges</a>
105
  <a href="<?php echo base_url().'my-wallet';?>">My Wallet</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
}
10582 lgm 128
 ?>