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