Subversion Repositories SmartDukaan

Rev

Rev 12524 | Rev 12767 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12524 Rev 12727
Line 24... Line 24...
24
    <?php if(isset($stylesheet) && !empty($stylesheet)){?>
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">
25
    <link rel="stylesheet" href="<?php echo base_url();?>assets/css/<?php echo $stylesheet.'?version='.$this->config->item('cdn_version');?>" type="text/css">
26
 
26
 
27
    <?php } ?>
27
    <?php } ?>
28
          <?php $authorized=$this->session->userdata('authorized');?>
28
          <?php $authorized=$this->session->userdata('authorized');?>
29
 
-
 
-
 
29
<?php print_r($authorized);?>
30
<script>
30
<script>
31
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
31
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
32
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
32
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
33
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
33
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
34
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
34
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
Line 36... Line 36...
36
  ga('create', '<?php echo $this->config->item('ga_id');?>', 'auto');
36
  ga('create', '<?php echo $this->config->item('ga_id');?>', 'auto');
37
  ga('send', 'pageview');
37
  ga('send', 'pageview');
38
  ga('require', 'ecommerce');   // Load the ecommerce plug-in.
38
  ga('require', 'ecommerce');   // Load the ecommerce plug-in.
39
      //less.refresh();
39
      //less.refresh();
40
      var base_url="<?php echo base_url();?>";
40
      var base_url="<?php echo base_url();?>";
41
/*
-
 
42
      var _gaq = _gaq || [];
-
 
43
      _gaq.push(['_setAccount', '<?php echo $this->config->item('ga_id');?>']);
-
 
44
      _gaq.push(['_setDomainName', '<?php echo $this->config->item('ga_domain');?>']);
-
 
45
      _gaq.push(['_trackPageview']);
-
 
46
 
-
 
47
      (function() {
-
 
48
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
-
 
49
        //ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
-
 
50
	ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
-
 
51
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
-
 
52
      })();
-
 
53
*/
-
 
54
<?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
41
<?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
55
	var dimensionValue = 'PrivateDeal';
42
	var dimensionValue = 'PrivateDeal';
56
	ga('set', 'dimension1', dimensionValue);
43
	ga('set', 'dimension1', dimensionValue);
57
/*
-
 
58
_gaq.push(['_setCustomVar',
-
 
59
      1,             // This custom var is set to slot #1.  Required parameter.
-
 
60
      'typeofuser',   // The name of the custom variable.  Required parameter.
-
 
61
      'PrivateDeal',      // Sets the value of "User Type" to "Member" or "Visitor" depending on status.  Required parameter.
-
 
62
      1             // Sets the scope to session-level.  Optional parameter.
-
 
63
]);
-
 
64
*/
-
 
65
<?php endif;?>
44
<?php endif;?>
66
    </script>
45
    </script>
67
  </head>
46
  </head>
68
  <body>
47
  <body>
69
    <header class="clearfix">
48
    <header class="clearfix">
70
      <div class="menu" onclick="toggleOverlay(event)"></div>
49
      <div class="menu" onclick="toggleOverlay(event)"></div>
71
        <h1><a href="<?php echo base_url();?>"><img src="<?=base_url()?>assets/images/logo.PNG" alt="saholic logo"/></a></h1>
50
        <h1><a href="<?php echo base_url();?>"><img src="<?=base_url()?>assets/images/logo.PNG" alt="saholic logo"/></a></h1>        
72
        <?php if($stylesheet != 'authorize.css'){?>
51
        <?php if($stylesheet != 'authorize.css'){?>
73
        <a class="cart" href="<?php echo base_url().'cart'?>">
52
        <a class="cart" href="<?php echo base_url().'cart'?>">
74
          <span>
53
          <span>
75
	<?php
54
	<?php
76
        if(isset($authorized) && !empty($authorized)){
55
        if(isset($authorized) && !empty($authorized)){
Line 84... Line 63...
84
          if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
63
          if(isset($authorized['isLoggedIn']) && !empty($authorized['isLoggedIn'])){ ?>
85
        <div class="profile selected-pr" onclick="toggleOverlay(event)"></div>
64
        <div class="profile selected-pr" onclick="toggleOverlay(event)"></div>
86
        <?php } else {?>
65
        <?php } else {?>
87
        <div class="profile" onclick="toggleOverlay(event)"></div>
66
        <div class="profile" onclick="toggleOverlay(event)"></div>
88
        <?php } ?>
67
        <?php } ?>
-
 
68
        <?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
-
 
69
        <a class="hpdl" href="<?php echo base_url().'private-deals/1';?>">Deals</a>
-
 
70
        <?php endif;?>
89
      </header>
71
      </header>
90
      
72
      
91
    
73
    
92
<?php
74
<?php
93
       if($stylesheet != 'authorize.css'){
75
       if($stylesheet != 'authorize.css'){