Subversion Repositories SmartDukaan

Rev

Rev 11743 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11743 Rev 12524
Line 12... Line 12...
12
<html lang="en">
12
<html lang="en">
13
<head>
13
<head>
14
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
14
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
15
<title>404 Page Not Found</title>
15
<title>404 Page Not Found</title>
16
<script>
16
<script>
-
 
17
/*
17
      var _gaq = _gaq || [];
18
      var _gaq = _gaq || [];
18
      _gaq.push(['_setAccount', '<?php echo $this->config->item('ga_id');?>']);
19
      _gaq.push(['_setAccount', '<?php echo $this->config->item('ga_id');?>']);
19
      _gaq.push(['_setDomainName', '<?php echo $this->config->item('ga_domain');?>']);
20
      _gaq.push(['_setDomainName', '<?php echo $this->config->item('ga_domain');?>']);
20
      _gaq.push(['_trackPageview']);
21
      _gaq.push(['_trackPageview']);
21
 
22
 
22
      (function() {
23
      (function() {
23
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
24
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
24
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
25
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
25
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
26
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
26
      })();
27
      })();
-
 
28
*/
-
 
29
	(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-
 
30
	(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
-
 
31
	m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-
 
32
	})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-
 
33
 
-
 
34
	ga('create', '<?php echo $this->config->item('ga_id');?>', 'auto');
-
 
35
	ga('send', 'pageview');
-
 
36
	ga('require', 'ecommerce');   // Load the ecommerce plug-in.
27
</script>
37
</script>
28
<style type="text/css">
38
<style type="text/css">
29
 
39
 
30
::selection{ background-color: #E13300; color: white; }
40
::selection{ background-color: #E13300; color: white; }
31
::moz-selection{ background-color: #E13300; color: white; }
41
::moz-selection{ background-color: #E13300; color: white; }
Line 112... Line 122...
112
<body>
122
<body>
113
	<div id="container">
123
	<div id="container">
114
		<div  id="error-msg">
124
		<div  id="error-msg">
115
			<a id="error-anchor" href="<?php echo base_url();?>">Back To Home</a><br>
125
			<a id="error-anchor" href="<?php echo base_url();?>">Back To Home</a><br>
116
			<?php if(isset($saholicUrl) && !empty($saholicUrl)){?>
126
			<?php if(isset($saholicUrl) && !empty($saholicUrl)){?>
117
        <a onClick="_gaq.push(['_trackEvent', 'ErrorPage', 'Desktop Link Clicked', '<?php echo $saholicUrl;?>']);" href="<?php echo $saholicUrl;?>/?fullbrowser=true&utm_source=mobile_404_page">Try finding the page on our desktop site</a>
127
        <!--<a onClick="_gaq.push(['_trackEvent', 'ErrorPage', 'Desktop Link Clicked', '<?php echo $saholicUrl;?>']);" href="<?php echo $saholicUrl;?>/?fullbrowser=true&utm_source=mobile_404_page">Try finding the page on our desktop site</a>-->
-
 
128
        <a onClick="ga('send', 'event', 'ErrorPage', 'Desktop Link Clicked', '<?php echo $saholicUrl;?>');" href="<?php echo $saholicUrl;?>/?fullbrowser=true&utm_source=mobile_404_page">Try finding the page on our desktop site</a>
118
      <?php } ?>
129
      <?php } ?>
119
		</div>
130
		</div>
120
			
131
			
121
	</div>
132
	</div>
122
	<script>
133
	<script>
123
 
134
 
124
	var pheight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
135
	var pheight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
125
   	document.getElementById('error-msg').style.minHeight = pheight+'px';  
136
   	document.getElementById('error-msg').style.minHeight = pheight+'px';  
126
   	document.getElementById('error-anchor').style.marginTop = ((pheight/2)-5)+'px';
137
   	document.getElementById('error-anchor').style.marginTop = ((pheight/2)-5)+'px';
127
 
138
 
128
        _gaq.push(['_trackEvent', 'ErrorPage', '404 Page Loaded', '<?php echo $saholicUrl;?>']);
139
        //_gaq.push(['_trackEvent', 'ErrorPage', '404 Page Loaded', '<?php echo $saholicUrl;?>']);
-
 
140
	ga('send', 'event', 'ErrorPage', '404 Page Loaded', '<?php echo $saholicUrl;?>');
129
</script>
141
</script>
130
</body>
142
</body>
131
</html>
143
</html>