Show footer if sidebar is disabled

This commit is contained in:
pikim 2023-01-20 15:49:44 +01:00
parent 018bb4c1b6
commit 4101523496
2 changed files with 12 additions and 0 deletions

View file

@ -52,6 +52,12 @@
{% if show_pagination and config.plugins.pagination.enabled and collection.params.pagination %}
{% include 'partials/pagination.html.twig' with {base_url: page.url, pagination: collection.params.pagination} %}
{% endif %}
{% if theme_config.sidebar == false %}
<section id="footer" class="align-center">
{% include 'partials/footer.html.twig' %}
</section>
{% endif %}
{% endblock %}
{% block sidebar %}

View file

@ -32,6 +32,12 @@
{% include 'partials/simplesearch_item.html.twig' with {'page':page} %}
{% endfor %}
</article>
{% if theme_config.sidebar == false %}
<section id="footer" class="align-center">
{% include 'partials/footer.html.twig' %}
</section>
{% endif %}
{% endblock %}
{% block sidebar %}