-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
479 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,16 @@ | |
*/ | ||
|
||
use ClicShopping\OM\HTTP; | ||
use ClicShopping\OM\CLICSHOPPING; | ||
|
||
define('CLICSHOPPING_BASE_DIR', realpath(__DIR__ . '/../includes/ClicShopping/') . '/'); | ||
|
||
require_once(CLICSHOPPING_BASE_DIR . 'OM/CLICSHOPPING.php'); | ||
spl_autoload_register('ClicShopping\OM\CLICSHOPPING::autoload'); | ||
|
||
CLICSHOPPING::initialize(); | ||
|
||
CLICSHOPPING::loadSite('Shop'); | ||
|
||
http_response_code(404); | ||
?> | ||
|
@@ -22,9 +32,8 @@ | |
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin> | ||
<!-- CSS only --> | ||
<!-- CSS only --> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> | ||
|
||
<script src="https://kit.fontawesome.com/89fdf54890.js" crossorigin="anonymous"></script> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"> | ||
</head> | ||
<body> | ||
<div class="text-center" style="padding-top:150px;"> | ||
|
@@ -41,14 +50,12 @@ | |
<h1>This Page is Missing</h1> | ||
<p>It looks like this page is missing. Please continue back to our website and try again.</p> | ||
<p style="margin-top: 40px;"> | ||
<php echo HTML::button( | ||
'Return to website', null, CLICSHOPPING::link(), null, 'primary'); ?> | ||
<?php echo HTML::button('Return to website', null, CLICSHOPPING::link(), null, 'primary'); ?> | ||
</p> | ||
|
||
</div> | ||
<div class="error-actions"> | ||
<br/><br/> | ||
<i class="fas fa-home"></i> <span style="text-decoration:none;"><a | ||
<i class="bi bi-house"></i><span style="text-decoration:none;"><a | ||
href="<?php echo HTTP::redirect(HTTP::getShopUrlDomain() . 'index.php'); ?>">Go to the web store</a></span> | ||
</div> | ||
</div> | ||
|
@@ -58,5 +65,9 @@ | |
</div> | ||
<!-- JavaScript Bundle with Popper --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script> | ||
<?php | ||
exit; | ||
?> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
* | ||
*/ | ||
?> | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
|
@@ -19,22 +18,16 @@ | |
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin> | ||
<!-- CSS only --> | ||
<!-- CSS only --> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> | ||
|
||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> | ||
<base href="<?php echo $_SERVER['HTTP_HOST']; ?>"> | ||
|
||
<script src="https://kit.fontawesome.com/89fdf54890.js" crossorigin="anonymous"></script> | ||
<title>Template problem !</title> | ||
</head> | ||
<body> | ||
<div style="padding-top:100px;"></div> | ||
<div class="alert alert-warning" role="alert"> | ||
<div class="text-center">Le nom de ce template n'existe pas ou plus. Veuillez changer le nom du template.</div> | ||
<div class="text-center" style="padding-top:10px">This template name does'nt exist. Please change your template | ||
name. | ||
</div> | ||
<div class="text-center" style="padding-top:50px;"><a href="<?php echo $_SERVER['HTTP_HOST']; ?>"><img | ||
src="images/logo_clicshopping.webp" alt="ClicShopping"></a></div> | ||
<div class="text-center" style="padding-top:10px">This template name does'nt exist. Please change your template name.</div> | ||
<div class="text-center" style="padding-top:50px;"><a href="<?php echo $_SERVER['HTTP_HOST']; ?>"><img src="images/logo_clicshopping.webp" alt="ClicShopping"></a></div> | ||
</div> | ||
</body> | ||
<!-- JavaScript Bundle with Popper --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,11 +23,7 @@ | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<title>Maintenance</title> | ||
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin> | ||
<!-- CSS only --> | ||
<!-- CSS only --> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> | ||
|
||
<script src="https://kit.fontawesome.com/89fdf54890.js" crossorigin="anonymous"></script> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> | ||
</head> | ||
<body> | ||
<div class="text-center" style="padding-top:150px;"> | ||
|
@@ -37,8 +33,7 @@ | |
<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;"><?php echo HTML::button('Return to website', null, CLICSHOPPING::link(), 'primary', null, 'sm'); ?></p> | ||
<p style="margin-top: 40px;"><?php echo HTML::button('Return to website', null, CLICSHOPPING::link(), 'primary', null, 'sm'); ?></p> | ||
</div> | ||
</div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.