Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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