template-engine: force carbasa footer shell for mandelstudio
This commit is contained in:
@@ -64,3 +64,10 @@ ACTIVE_VERTICAL = "agency"
|
||||
# Wagtail content internationalization in admin
|
||||
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"],
|
||||
},
|
||||
}
|
||||
|
||||
24
mandelstudio/templates/mandelstudio/carbasa_footer.html
Normal file
24
mandelstudio/templates/mandelstudio/carbasa_footer.html
Normal 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>
|
||||
Reference in New Issue
Block a user