From fd7db187cdadad5968a3fa88bb60c9766379ece0 Mon Sep 17 00:00:00 2001 From: Mandel Olaiya Date: Tue, 17 Mar 2026 17:26:16 +0100 Subject: [PATCH] Revert "template-engine: use carbasa-native footer flow via engine page template overrides" This reverts commit c04cd4a35f3ce869ce423a50bcb849d153f849d0. --- 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, 72 insertions(+), 103 deletions(-) delete mode 100644 mandelstudio/templates/engine/pages/base_home_page.html delete mode 100644 mandelstudio/templates/engine/pages/base_standard_page.html create mode 100644 mandelstudio/templates/mandelstudio/carbasa_footer.html diff --git a/mandelstudio/settings/base.py b/mandelstudio/settings/base.py index 8538568..cb93a21 100644 --- a/mandelstudio/settings/base.py +++ b/mandelstudio/settings/base.py @@ -65,3 +65,9 @@ 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 deleted file mode 100644 index 2bf63bb..0000000 --- a/mandelstudio/templates/engine/pages/base_home_page.html +++ /dev/null @@ -1,50 +0,0 @@ -{% 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 deleted file mode 100644 index ed0410d..0000000 --- a/mandelstudio/templates/engine/pages/base_standard_page.html +++ /dev/null @@ -1,53 +0,0 @@ -{% 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 new file mode 100644 index 0000000..7d1b64c --- /dev/null +++ b/mandelstudio/templates/mandelstudio/carbasa_footer.html @@ -0,0 +1,66 @@ +{% load wagtailcore_tags wagtailsettings_tags %} +{% get_settings %} + + + +