Subversion Repositories SmartDukaan

Rev

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

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