Subversion Repositories SmartDukaan

Rev

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

Rev 11920 Rev 12524
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
        <script>
30
<script>
-
 
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),
-
 
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');
-
 
35
 
-
 
36
  ga('create', '<?php echo $this->config->item('ga_id');?>', 'auto');
-
 
37
  ga('send', 'pageview');
-
 
38
  ga('require', 'ecommerce');   // Load the ecommerce plug-in.
30
      //less.refresh();
39
      //less.refresh();
31
      var base_url="<?php echo base_url();?>";
40
      var base_url="<?php echo base_url();?>";
-
 
41
/*
32
      var _gaq = _gaq || [];
42
      var _gaq = _gaq || [];
33
      _gaq.push(['_setAccount', '<?php echo $this->config->item('ga_id');?>']);
43
      _gaq.push(['_setAccount', '<?php echo $this->config->item('ga_id');?>']);
34
      _gaq.push(['_setDomainName', '<?php echo $this->config->item('ga_domain');?>']);
44
      _gaq.push(['_setDomainName', '<?php echo $this->config->item('ga_domain');?>']);
35
      _gaq.push(['_trackPageview']);
45
      _gaq.push(['_trackPageview']);
36
 
46
 
Line 38... Line 48...
38
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
48
        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';
49
        //ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
40
	ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
50
	ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
41
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
51
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
42
      })();
52
      })();
-
 
53
*/
43
<?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
54
<?php if(isset($authorized['isPrivateDealUser']) && !empty($authorized['isPrivateDealUser'])) :?>
-
 
55
	var dimensionValue = 'PrivateDeal';
-
 
56
	ga('set', 'dimension1', dimensionValue);
-
 
57
/*
44
_gaq.push(['_setCustomVar',
58
_gaq.push(['_setCustomVar',
45
      1,             // This custom var is set to slot #1.  Required parameter.
59
      1,             // This custom var is set to slot #1.  Required parameter.
46
      'typeofuser',   // The name of the custom variable.  Required parameter.
60
      'typeofuser',   // The name of the custom variable.  Required parameter.
47
      'PrivateDeal',      // Sets the value of "User Type" to "Member" or "Visitor" depending on status.  Required parameter.
61
      'PrivateDeal',      // Sets the value of "User Type" to "Member" or "Visitor" depending on status.  Required parameter.
48
      1             // Sets the scope to session-level.  Optional parameter.
62
      1             // Sets the scope to session-level.  Optional parameter.
49
]);
63
]);
-
 
64
*/
50
<?php endif;?>
65
<?php endif;?>
51
    </script>
66
    </script>
52
  </head>
67
  </head>
53
  <body>
68
  <body>
54
    
-
 
55
    <header class="clearfix">
69
    <header class="clearfix">
56
      <div class="menu" onclick="toggleOverlay(event)"></div>
70
      <div class="menu" onclick="toggleOverlay(event)"></div>
57
        <h1><a href="<?php echo base_url();?>"><img src="<?=base_url()?>assets/images/logo.PNG" alt="saholic logo"/></a></h1>
71
        <h1><a href="<?php echo base_url();?>"><img src="<?=base_url()?>assets/images/logo.PNG" alt="saholic logo"/></a></h1>
58
        <?php if($stylesheet != 'authorize.css'){?>
72
        <?php if($stylesheet != 'authorize.css'){?>
59
        <a class="cart" href="<?php echo base_url().'cart'?>">
73
        <a class="cart" href="<?php echo base_url().'cart'?>">