From c04cd4a35f3ce869ce423a50bcb849d153f849d0 Mon Sep 17 00:00:00 2001 From: Mandel Olaiya Date: Tue, 17 Mar 2026 17:09:06 +0100 Subject: [PATCH] template-engine: use carbasa-native footer flow via engine page template overrides --- mandelstudio/settings/base.py | 6 -- .../engine/pages/base_home_page.html | 50 ++++++++++++++ .../engine/pages/base_standard_page.html | 53 +++++++++++++++ .../mandelstudio/carbasa_footer.html | 66 ------------------- 4 files changed, 103 insertions(+), 72 deletions(-) create mode 100644 mandelstudio/templates/engine/pages/base_home_page.html create mode 100644 mandelstudio/templates/engine/pages/base_standard_page.html delete mode 100644 mandelstudio/templates/mandelstudio/carbasa_footer.html diff --git a/mandelstudio/settings/base.py b/mandelstudio/settings/base.py index cb93a21..8538568 100644 --- a/mandelstudio/settings/base.py +++ b/mandelstudio/settings/base.py @@ -65,9 +65,3 @@ ACTIVE_VERTICAL = "agency" WAGTAIL_I18N_ENABLED = True WAGTAIL_CONTENT_LANGUAGES = LANGUAGES -# Force Template Engine shell to use Carbasa footer in this project -TEMPLATE_ENGINE_SHELL_CANDIDATES = { - "carbasa": { - "footer": ["mandelstudio/carbasa_footer.html"], - }, -} diff --git a/mandelstudio/templates/engine/pages/base_home_page.html b/mandelstudio/templates/engine/pages/base_home_page.html new file mode 100644 index 0000000..2bf63bb --- /dev/null +++ b/mandelstudio/templates/engine/pages/base_home_page.html @@ -0,0 +1,50 @@ +{% extends "layout.html" %} +{% load wagtailcore_tags oxyan static string_filters %} + +{% block extrahead %} + {{ block.super }} + + + + {% include "engine/partials/gym_theme_overrides.html" %} + {% include "engine/partials/hotel_theme_overrides.html" %} + {% include "engine/partials/auto_theme_overrides.html" %} + {% include "engine/partials/bank_theme_overrides.html" %} + {% include "engine/partials/pharmacy_theme_overrides.html" %} + {% include "engine/partials/realty_theme_overrides.html" %} + {% include "engine/partials/tech_theme_overrides.html" %} + {% include "engine/partials/travel_theme_overrides.html" %} + {% include "engine/partials/saas_theme_overrides.html" %} +{% endblock %} + +{% block layout %} + + Ga naar inhoud + + {% include_header header_template|default:"engine/partials/header.html" %} +
+
+
+ {% for block in self.body %} + {% with scope_class=block.block_type|split:"_"|join:"-" %} +
+ {% include_block block %} +
+ {% endwith %} + {% endfor %} +
+
+
+ + {# Use Carbasa-native footer rendering so visual shell matches carbasa sites #} + {% if not self.footer %} + + {% endif %} + {% include "oxyan/partials/footer.html" %} +{% endblock %} diff --git a/mandelstudio/templates/engine/pages/base_standard_page.html b/mandelstudio/templates/engine/pages/base_standard_page.html new file mode 100644 index 0000000..ed0410d --- /dev/null +++ b/mandelstudio/templates/engine/pages/base_standard_page.html @@ -0,0 +1,53 @@ +{% extends "layout.html" %} +{% load wagtailcore_tags oxyan static string_filters %} + +{% block extrahead %} + {{ block.super }} + + + + {% include "engine/partials/gym_theme_overrides.html" %} + {% include "engine/partials/hotel_theme_overrides.html" %} + {% include "engine/partials/auto_theme_overrides.html" %} + {% include "engine/partials/bank_theme_overrides.html" %} + {% include "engine/partials/pharmacy_theme_overrides.html" %} + {% include "engine/partials/realty_theme_overrides.html" %} + {% include "engine/partials/tech_theme_overrides.html" %} + {% include "engine/partials/travel_theme_overrides.html" %} + {% include "engine/partials/saas_theme_overrides.html" %} +{% endblock %} + +{% block layout %} + + Ga naar inhoud + + {% include_header header_template|default:"engine/partials/header.html" %} +
+
+
+
+

{{ self.title }}

+ {% for block in self.body %} + {% with scope_class=block.block_type|split:"_"|join:"-" %} +
+ {% include_block block %} +
+ {% endwith %} + {% endfor %} +
+
+
+
+ + {# Use Carbasa-native footer rendering so visual shell matches carbasa sites #} + {% if not self.footer %} + + {% endif %} + {% include "oxyan/partials/footer.html" %} +{% endblock %} diff --git a/mandelstudio/templates/mandelstudio/carbasa_footer.html b/mandelstudio/templates/mandelstudio/carbasa_footer.html deleted file mode 100644 index 7d1b64c..0000000 --- a/mandelstudio/templates/mandelstudio/carbasa_footer.html +++ /dev/null @@ -1,66 +0,0 @@ -{% load wagtailcore_tags wagtailsettings_tags %} -{% get_settings %} - - - -