Skip to content

Commit

Permalink
new maintenance page; update 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldpdl committed Nov 23, 2016
1 parent aaed00d commit 76e25af
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 3 deletions.
24 changes: 21 additions & 3 deletions catalog/includes/error_documents/404.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,26 @@
http_response_code(404);
?>

<h1>Error - Page Not Found (404)</h1>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Error - Page Not Found</title>
<link href="<?= OSCOM::link('Shop/ext/bootstrap/css/bootstrap.min.css', null, false); ?>" rel="stylesheet">
<link href="<?= OSCOM::link('Shop/ext/font-awesome/4.7.0/css/font-awesome.min.css', null, false); ?>" rel="stylesheet">
<script src="<?= OSCOM::link('Shop/ext/jquery/jquery-3.1.1.min.js', null, false); ?>"></script>
</head>
<body>
<div class="container">
<div class="jumbotron" style="margin-top: 40px;">
<h1>This Page is Missing</h1>

<div>
<?php echo HTML::button('Continue', 'glyphicon glyphicon-chevron-right', OSCOM::link('index.php')); ?>
<p>It looks like this page is missing. Please continue back to our website and try again.</p>

<p style="margin-top: 40px;"><?= HTML::button('Return to website', 'fa fa-chevron-right', OSCOM::link('index.php'), null, 'btn-primary'); ?></p>
</div>
</div>
<script src="<?= OSCOM::link('Shop/ext/bootstrap/js/bootstrap.min.js', null, false); ?>"></script>
</body>
</html>
38 changes: 38 additions & 0 deletions catalog/includes/error_documents/maintenance.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php
/**
* osCommerce Online Merchant
*
* @copyright (c) 2016 osCommerce; https://www.oscommerce.com
* @license MIT; https://www.oscommerce.com/license/mit.txt
*/

use OSC\OM\HTML;
use OSC\OM\OSCOM;

http_response_code(503);
header('Retry-After: 300');
?>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Maintenance</title>
<link href="<?= OSCOM::link('Shop/ext/bootstrap/css/bootstrap.min.css', null, false); ?>" rel="stylesheet">
<link href="<?= OSCOM::link('Shop/ext/font-awesome/4.7.0/css/font-awesome.min.css', null, false); ?>" rel="stylesheet">
<script src="<?= OSCOM::link('Shop/ext/jquery/jquery-3.1.1.min.js', null, false); ?>"></script>
</head>
<body>
<div class="container">
<div class="jumbotron" style="margin-top: 40px;">
<h1>We'll be back soon!</h1>

<p>We're currently working on and improving our website. We'll be back in a few moments..</p>

<p style="margin-top: 40px;"><?= HTML::button('Return to website', 'fa fa-refresh', OSCOM::link('index.php'), null, 'btn-primary'); ?></p>
</div>
</div>
<script src="<?= OSCOM::link('Shop/ext/bootstrap/js/bootstrap.min.js', null, false); ?>"></script>
</body>
</html>

0 comments on commit 76e25af

Please sign in to comment.