Subversion Repositories SmartDukaan

Rev

Rev 11735 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11735 Rev 11739
Line 1... Line 1...
1
<?php 
1
<?php 
2
$ci =  get_instance(); // CI_Loader instance;
2
$ci =  get_instance(); // CI_Loader instance;
3
$ci->load->config('magento');
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
}
4
?>
12
?>
5
<!DOCTYPE html>
13
<!DOCTYPE html>
6
<html lang="en">
14
<html lang="en">
7
<head>
15
<head>
-
 
16
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
8
<title>404 Page Not Found</title>
17
<title>404 Page Not Found</title>
9
<script>
18
<script>
10
      var _gaq = _gaq || [];
19
      var _gaq = _gaq || [];
11
      _gaq.push(['_setAccount', '<?php echo $ci->config->item('ga_id');?>']);
20
      _gaq.push(['_setAccount', '<?php echo $ci->config->item('ga_id');?>']);
12
      _gaq.push(['_setDomainName', '<?php echo $ci->config->item('ga_domain');?>']);
21
      _gaq.push(['_setDomainName', '<?php echo $ci->config->item('ga_domain');?>']);
Line 23... Line 32...
23
::selection{ background-color: #E13300; color: white; }
32
::selection{ background-color: #E13300; color: white; }
24
::moz-selection{ background-color: #E13300; color: white; }
33
::moz-selection{ background-color: #E13300; color: white; }
25
::webkit-selection{ background-color: #E13300; color: white; }
34
::webkit-selection{ background-color: #E13300; color: white; }
26
 
35
 
27
body {
36
body {
28
        background-color: #fff;
37
    background-color: #fff;
29
        margin: 40px;
38
    margin: 0px;
-
 
39
    padding:0px;
30
        font: 13px/20px normal Helvetica, Arial, sans-serif;
40
    font: 13px/20px normal Helvetica, Arial, sans-serif;
31
        color: #4F5155;
41
    color: #4F5155;
32
}
42
}
33
 
43
 
34
a {
44
a {
35
        color: #003399;
45
    color: #003399;
36
        background-color: transparent;
46
    background-color: transparent;
37
        font-weight: normal;
47
    font-weight: normal;
38
}
48
}
39
 
49
 
40
h1 {
50
h1 {
41
        color: #444;
51
    color: #444;
42
        background-color: transparent;
52
    background-color: transparent;
43
        border-bottom: 1px solid #D0D0D0;
53
    border-bottom: 1px solid #D0D0D0;
44
        font-size: 19px;
54
    font-size: 19px;
45
        font-weight: normal;
55
    font-weight: normal;
46
        margin: 0 0 14px 0;
56
    margin: 0 0 14px 0;
47
        padding: 14px 15px 10px 15px;
57
    padding: 14px 15px 10px 15px;
48
}
58
}
49
 
59
 
50
code {
60
code {
51
        font-family: Consolas, Monaco, Courier New, Courier, monospace;
61
    font-family: Consolas, Monaco, Courier New, Courier, monospace;
52
        font-size: 12px;
62
    font-size: 12px;
53
        background-color: #f9f9f9;
63
    background-color: #f9f9f9;
54
        border: 1px solid #D0D0D0;
64
    border: 1px solid #D0D0D0;
55
        color: #002166;
65
    color: #002166;
56
        display: block;
66
    display: block;
57
        margin: 14px 0 14px 0;
67
    margin: 14px 0 14px 0;
58
        padding: 12px 10px 12px 10px;
68
    padding: 12px 10px 12px 10px;
59
}
69
}
60
 
70
 
61
#container {
71
#container {
62
        margin: 10px;
72
    /*margin: 10px;
63
        border: 1px solid #D0D0D0;
73
    border: 1px solid #D0D0D0;
64
        -webkit-box-shadow: 0 0 8px #D0D0D0;
74
    -webkit-box-shadow: 0 0 8px #D0D0D0;*/
-
 
75
}
-
 
76
 
-
 
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;
65
}
84
}
66
 
85
 
67
p {
86
p {
68
        margin: 12px 15px 12px 15px;
87
    margin: 12px 15px 12px 15px;
-
 
88
}
-
 
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;
69
}
109
}
-
 
110
 
70
</style>
111
</style>
-
 
112
 
71
</head>
113
</head>
72
<body>
114
<body>
73
        <div id="container">
115
    <div id="container">
-
 
116
        <div  id="error-msg">
74
                <h1><?php echo $heading; ?></h1>
117
            <a id="error-anchor" href="<?php echo base_url();?>">Back To Home</a><br>
75
                <?php echo $message; ?>
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 } ?>
76
        </div>
121
        </div>
-
 
122
            
-
 
123
    </div>
77
        <script>
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';
78
                _gaq.push(['_trackEvent', 'ErrorPage', 'Default 404 Page Loaded','<?php echo uri_string();?>']);
129
    _gaq.push(['_trackEvent', 'ErrorPage', 'Default 404 Page Loaded','<?php echo uri_string();?>']);
-
 
130
 
79
        </script>
131
</script>
80
</body>
132
</body>
81
</html>
133
</html>