From 968d4b3d0c09ec0636c925560ef4b0c9fd8fc2d6 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 16 Jan 2024 14:58:38 +0100 Subject: [PATCH] introducing brochures components --- includes/rooting.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/includes/rooting.php b/includes/rooting.php index 8a479f6..e307fc6 100644 --- a/includes/rooting.php +++ b/includes/rooting.php @@ -32,6 +32,20 @@ function redirect_to_demo_components_page() include(dirname(__DIR__, 1) . '/sitemap-progress.php'); exit(); } + if ($_SERVER['REQUEST_URI'] == '/brochures-map') { + global $wp_query; + $wp_query->is_404 = false; + status_header(200); + include(dirname(__DIR__, 1) . '/brochures-map.php'); + exit(); + } + if ($_SERVER['REQUEST_URI'] == '/nl/brochures-map') { + global $wp_query; + $wp_query->is_404 = false; + status_header(200); + include(dirname(__DIR__, 1) . '/brochures-map.php'); + exit(); + } }