Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<?php $saholicUrl = $this->session->userdata('errorurl');
//echo 'hello'.$saholicUrl;
if(isset($saholicUrl) && !empty($saholicUrl)){
        $this->session->unset_userdata('errorurl');
}elseif(isset($errorurl) && !empty($errorurl)){
        $saholicUrl = $errorurl;
}else{
    $url = 'http://www.saholic.com/'.uri_string();
    $saholicUrl = $url;
}?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>404 Page Not Found</title>
<script>
/*
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', '<?php echo $this->config->item('ga_id');?>']);
      _gaq.push(['_setDomainName', '<?php echo $this->config->item('ga_domain');?>']);
      _gaq.push(['_trackPageview']);

      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
*/
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

        ga('create', '<?php echo $this->config->item('ga_id');?>', 'auto');
        ga('send', 'pageview');
        ga('require', 'ecommerce');   // Load the ecommerce plug-in.
</script>
<style type="text/css">

::selection{ background-color: #E13300; color: white; }
::moz-selection{ background-color: #E13300; color: white; }
::webkit-selection{ background-color: #E13300; color: white; }

body {
        background-color: #fff;
        margin: 0px;
        padding:0px;
        font: 13px/20px normal Helvetica, Arial, sans-serif;
        color: #4F5155;
}

a {
        color: #003399;
        background-color: transparent;
        font-weight: normal;
}

h1 {
        color: #444;
        background-color: transparent;
        border-bottom: 1px solid #D0D0D0;
        font-size: 19px;
        font-weight: normal;
        margin: 0 0 14px 0;
        padding: 14px 15px 10px 15px;
}

code {
        font-family: Consolas, Monaco, Courier New, Courier, monospace;
        font-size: 12px;
        background-color: #f9f9f9;
        border: 1px solid #D0D0D0;
        color: #002166;
        display: block;
        margin: 14px 0 14px 0;
        padding: 12px 10px 12px 10px;
}

#container {
        /*margin: 10px;
        border: 1px solid #D0D0D0;
        -webkit-box-shadow: 0 0 8px #D0D0D0;*/
}

#error-msg{
        float:left;
        width:100%;
        display:block;
        background:url("<?php echo base_url();?>assets/images/error_page.jpg")no-repeat center center;background-size:100% 100%;
        text-decoration:none;
        text-align:center;
}

p {
        margin: 12px 15px 12px 15px;
}
.errorblock{
  margin: 4% auto 0;
  text-align: center;
  width: 100%;
  color: rgb(9, 8, 8);
  background: #efefef;
  font-weight: bold;
  padding: 5px 0;
}
.errorblock h1{
  margin:0;
}
#error-msg a{
  display:inline-block;
  font-size:18px;
  margin-bottom:10px;
  color:#000000; 
}
#error-msg a:nth-of-type(1){
  //margin-top:255px;
}

</style>

</head>
<body>
        <div id="container">
                <div  id="error-msg">
                        <a id="error-anchor" href="<?php echo base_url();?>">Back To Home</a><br>
                        <?php if(isset($saholicUrl) && !empty($saholicUrl)){?>
        <!--<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>-->
        <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>
      <?php } ?>
                </div>
                        
        </div>
        <script>

        var pheight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
        document.getElementById('error-msg').style.minHeight = pheight+'px';  
        document.getElementById('error-anchor').style.marginTop = ((pheight/2)-5)+'px';

        //_gaq.push(['_trackEvent', 'ErrorPage', '404 Page Loaded', '<?php echo $saholicUrl;?>']);
        ga('send', 'event', 'ErrorPage', '404 Page Loaded', '<?php echo $saholicUrl;?>');
</script>
</body>
</html>