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