CMXX - Updated Products page

This commit is contained in:
“VeLiTi”
2025-02-04 12:59:28 +01:00
parent 68a16e5419
commit fa09268cd8
9 changed files with 375 additions and 237 deletions

View File

@@ -42,8 +42,8 @@ if (isset($_POST['banner_move'])){
// Define all the routes for all pages
$url = routes([
'/' => 'home.php',
'/about' => '/custom/pages/about.php',
'/about_morval' => '/custom/pages/about_morval.php',
'/about' => 'custom/pages/about.php',
'/about_morval' => 'custom/pages/about_morval.php',
'/product/{id}' => 'product.php',
'/product/{id}/{option_id}' => 'product.php',
'/products' => 'products.php',
@@ -60,14 +60,14 @@ $url = routes([
'/placeorder/{order_id}' => 'placeorder.php',
'/search/{query}' => 'search.php',
'/logout' => 'logout.php',
'/termsandconditions'=> '/custom/pages/termsandconditions.php',
'/termsandconditions/{download}'=> '/custom/pages/termsandconditions.php',
'/faq'=> '/custom/pages/faq.php',
'/privacy'=> '/custom/pages/privacy.php',
'/privacy/{download}'=> '/custom/pages/privacy.php',
'/instructions-for-use' => '/custom/pages/faq.php',
'/test' => 'test.php'
'/termsandconditions'=> 'custom/pages/termsandconditions.php',
'/termsandconditions/{download}'=> 'custom/pages/termsandconditions.php',
'/faq'=> 'custom/pages/faq.php',
'/privacy'=> 'custom/pages/privacy.php',
'/privacy/{download}'=> 'custom/pages/privacy.php',
'/instructions-for-use' => 'custom/pages/faq.php'
]);
// Check if route exists
if ($url) {
include $url;