Subversion Repositories SmartDukaan

Rev

Rev 10591 | Go to most recent revision | Details | 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">
6
    <title>Mobile Phone Reviews and Best Deals in India | saholic.com</title>
7
    <link rel="shortcut icon" href="assets/img/favicon.ico" type="image/x-icon">
8
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
9
    <!-- <link rel="stylesheet/less" href="<?php //echo base_url();?>assets/css/common.less" type="text/css"> -->
10
    <?php if(isset($stylesheet) && !empty($stylesheet)){?>
11
    <link rel="stylesheet" href="<?php echo base_url();?>assets/css/<?php echo $stylesheet.'?version='.$this->config->item('cdn_version');?>" type="text/css">
12
    <script src='<?=base_url()?>assets/js/pace.js' type="text/javascript"></script>
13
    <?php } ?>
14
    <script>
15
      //less.refresh();
16
      var base_url="<?php echo base_url();?>";
17
      var _gaq = _gaq || [];
18
      _gaq.push(['_setAccount', 'UA-50076180-1']);
19
      _gaq.push(['_setDomainName', 'saholic.com']);
20
      _gaq.push(['_trackPageview']);
21
      (function() {
22
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
23
        ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
24
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
25
      })();
26
    </script>
27
  </head>
28
  <body>
29
 
30
    <header class="clearfix">
31
      <div class="menu" onclick="toggleOverlay(event)"></div>
32
        <h1><a href="<?php echo base_url();?>"><img src="<?=base_url()?>assets/images/logo.PNG" alt="saholic logo"/></a></h1>
33
        <?php if($stylesheet != 'authorize.css'){?>
34
        <a class="cart" href="<?php echo base_url().'cart'?>">
35
          <span>
36
          <?php $authorized=$this->session->userdata('authorized');
37
        if(isset($authorized) && !empty($authorized)){
38
          $cartCount = $authorized['totalItems'];
39
        }else{
40
          $cartCount = 0;
41
        }echo $cartCount;?>
42
        </span>
43
        </a> <?php } ?>
44
        <?php $authorized = $this->session->userdata('authorized');
45
          if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
46
        <div class="profile selected-pr" onclick="toggleOverlay(event)"></div>
47
        <?php } else {?>
48
        <div class="profile" onclick="toggleOverlay(event)"></div>
49
        <?php } ?>
50
      </header>
51
 
52
 
53
<?php
54
       if($stylesheet != 'authorize.css'){
55
      $data = $response['header'];
56
      if(isset($data) and !empty($data))
57
      {
58
      foreach($data as $headkey=>$value)
59
      {
60
        if(isset($value['render']) and !empty($value['render']))
61
        {
62
          unset($value['render']);
63
          if(isset($value) and !empty($value))
64
          $this->load->view($this->layoutName.$headkey,array($headkey=>$value));
65
        else
66
          $this->load->view($this->layoutName.$headkey);
67
        }
68
        else
69
          { 
70
            if(isset($value) and !empty($value) and count($value)>1)
71
              { echo 'data list here';}
72
          }
73
 
74
 
75
      }
76
 
77
      }
78
    }
79
?>
80
<div class="profile-overlay" style="display:none">
81
  <div>Account</div>
82
  <?php if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
83
  <a href="<?php echo base_url().'logout';?>">Logout</a>
84
  <a href="<?php echo base_url().'my-orders';?>">My Orders</a>
85
  <a href="#">My Account</a> 
86
  <?php } else {?>
87
  <a href="<?php echo base_url().'login';?>">Sign In</a>
88
  <a href="<?php echo base_url().'register';?>">Register</a>  
89
  <?php } ?>
90
</div><!--profile-overlay-->
91
 
92
</header>
93
<?php
94
echo $this->session->flashdata('msg');
95
 
96
 ?>