Subversion Repositories SmartDukaan

Rev

Rev 11733 | Rev 11743 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
11346 lgm 1
<?php $saholicUrl = $this->session->userdata('errorurl');
2
//echo 'hello'.$saholicUrl;
3
if(isset($saholicUrl) && !empty($saholicUrl)){
4
	$this->session->unset_userdata('errorurl');
11356 lgm 5
}elseif(isset($errorurl) && !empty($errorurl)){
6
	$saholicUrl = $errorurl;
11346 lgm 7
}?>
10737 lgm 8
<!DOCTYPE html>
9
<html lang="en">
10
<head>
11346 lgm 11
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
10737 lgm 12
<title>404 Page Not Found</title>
11734 anikendra 13
<script>
14
      var _gaq = _gaq || [];
15
      _gaq.push(['_setAccount', '<?php echo $this->config->item('ga_id');?>']);
16
      _gaq.push(['_setDomainName', '<?php echo $this->config->item('ga_domain');?>']);
17
      _gaq.push(['_trackPageview']);
18
 
19
      (function() {
20
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
21
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
22
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
23
      })();
24
</script>
10737 lgm 25
<style type="text/css">
26
 
27
::selection{ background-color: #E13300; color: white; }
28
::moz-selection{ background-color: #E13300; color: white; }
29
::webkit-selection{ background-color: #E13300; color: white; }
30
 
31
body {
32
	background-color: #fff;
33
	margin: 0px;
34
	padding:0px;
35
	font: 13px/20px normal Helvetica, Arial, sans-serif;
36
	color: #4F5155;
37
}
38
 
39
a {
40
	color: #003399;
41
	background-color: transparent;
42
	font-weight: normal;
43
}
44
 
45
h1 {
46
	color: #444;
47
	background-color: transparent;
48
	border-bottom: 1px solid #D0D0D0;
49
	font-size: 19px;
50
	font-weight: normal;
51
	margin: 0 0 14px 0;
52
	padding: 14px 15px 10px 15px;
53
}
54
 
55
code {
56
	font-family: Consolas, Monaco, Courier New, Courier, monospace;
57
	font-size: 12px;
58
	background-color: #f9f9f9;
59
	border: 1px solid #D0D0D0;
60
	color: #002166;
61
	display: block;
62
	margin: 14px 0 14px 0;
63
	padding: 12px 10px 12px 10px;
64
}
65
 
66
#container {
67
	/*margin: 10px;
68
	border: 1px solid #D0D0D0;
69
	-webkit-box-shadow: 0 0 8px #D0D0D0;*/
70
}
71
 
72
#error-msg{
73
	float:left;
74
	width:100%;
75
	display:block;
11346 lgm 76
	background:url("<?php echo base_url();?>assets/images/error_page.jpg")no-repeat center center;background-size:100% 100%;
10737 lgm 77
	text-decoration:none;
11346 lgm 78
	text-align:center;
10737 lgm 79
}
80
 
81
p {
82
	margin: 12px 15px 12px 15px;
83
}
84
.errorblock{
11346 lgm 85
  margin: 4% auto 0;
86
  text-align: center;
87
  width: 100%;
88
  color: rgb(9, 8, 8);
89
  background: #efefef;
90
  font-weight: bold;
91
  padding: 5px 0;
10737 lgm 92
}
93
.errorblock h1{
11346 lgm 94
  margin:0;
10737 lgm 95
}
11346 lgm 96
#error-msg a{
97
  display:inline-block;
98
  font-size:18px;
99
  margin-bottom:10px;
100
  color:#000000; 
101
}
102
#error-msg a:nth-of-type(1){
103
  //margin-top:255px;
104
}
105
 
10737 lgm 106
</style>
107
 
108
</head>
109
<body>
110
	<div id="container">
11346 lgm 111
		<div  id="error-msg">
112
			<a id="error-anchor" href="<?php echo base_url();?>">Back To Home</a><br>
113
			<?php if(isset($saholicUrl) && !empty($saholicUrl)){?>
11733 anikendra 114
        <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>
11346 lgm 115
      <?php } ?>
116
		</div>
10737 lgm 117
 
118
	</div>
119
	<script>
11346 lgm 120
 
121
	var pheight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
122
   	document.getElementById('error-msg').style.minHeight = pheight+'px';  
123
   	document.getElementById('error-anchor').style.marginTop = ((pheight/2)-5)+'px';
124
 
11733 anikendra 125
        _gaq.push(['_trackEvent', 'ErrorPage', '404 Page Loaded', '<?php echo $saholicUrl;?>']);
10737 lgm 126
</script>
127
</body>
11494 anikendra 128
</html>