template-engine: force carbasa footer shell for mandelstudio

This commit is contained in:
2026-03-17 16:49:23 +01:00
parent bc3b511ea1
commit d1455f0f3d
2 changed files with 31 additions and 0 deletions

View File

@@ -64,3 +64,10 @@ ACTIVE_VERTICAL = "agency"
# Wagtail content internationalization in admin # Wagtail content internationalization in admin
WAGTAIL_I18N_ENABLED = True WAGTAIL_I18N_ENABLED = True
WAGTAIL_CONTENT_LANGUAGES = LANGUAGES 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"],
},
}

View File

@@ -0,0 +1,24 @@
{% load wagtailcore_tags wagtailsettings_tags %}
{% get_settings %}
<footer class="footer">
<div class="container pt-5">
<div class="row">
{% with footer=settings.ocyan_plugin_wagtail.OcyanSettings.footer %}
{% for block in footer %}
<div class="{% if block.block_type == 'SubscriptionBlock' %}col-lg-6{% else %}col-lg-3{% endif %} col-md-6 col-sm-12 footer_column">
{% include_block block %}
</div>
{% endfor %}
{% endwith %}
</div>
<div class="container pt-5">
<hr class="mb-5">
<div class="row">
<div class="col-lg-12 copyright_block">
{% include_block settings.ocyan_plugin_wagtail.OcyanSettings.mini_footer %}
</div>
</div>
</div>
</div>
</footer>