bootstrap_italia-8.x-0.x-dev/templates/layout/footer/_partial.footer.html.twig
templates/layout/footer/_partial.footer.html.twig
{#
/**
* @file
* Template for footer component.
* Docs: https://italia.github.io/bootstrap-italia/docs/menu-di-navigazione/footer/
* Latest revision: v2.7.1
*
* Available variables:
*
* @see template_preprocess_page()
* @see page.html.twig
*
* @ingroup themeable
*
*/
#}
{% apply spaceless %}
<footer id="footer" class="it-footer d-print-none" role="contentinfo">
<div class="it-footer-main">
<div class="{{ footer_container_type ?: 'container' }}">
{% block footerBrand %}
{% if page.brand %}
<section aria-label="{{ 'Logo and branding section'|t }}">
<div class="row clearfix">
<div class="col-sm-12 footer-items-wrapper logo-wrapper">
{{ page.brand }}
</div>
</div>
</section>
{% endif %}
{% endblock %}
{% block footerMenu %}
{% if page.footer_menu %}
<section aria-label="{{ 'Footer menu section'|t }}">
{{ page.footer_menu }}
</section>
{% endif %}
{% endblock %}
{% block footerBlocks %}
{% if page.footer_first or page.footer_second or page.footer_third or page.footer_fourth %}
{% set count_footer_blocks = 0 %}
{% if page.footer_first %}
{% set count_footer_blocks = count_footer_blocks + 1 %}
{% endif %}
{% if page.footer_second %}
{% set count_footer_blocks = count_footer_blocks + 1 %}
{% endif %}
{% if page.footer_third %}
{% set count_footer_blocks = count_footer_blocks + 1 %}
{% endif %}
{% if page.footer_fourth %}
{% set count_footer_blocks = count_footer_blocks + 1 %}
{% endif %}
{% set footer_blocks_classes = [
count_footer_blocks == 4 ? 'col-md-6 col-lg-3',
count_footer_blocks == 3 ? 'col-md-4',
count_footer_blocks == 2 ? 'col-md-6',
count_footer_blocks == 1 ? 'col',
'pb-2',
'footer-items-wrapper'
] %}
<section class="py-4{{ page.footer_menu ? ' border-white border-top' }}" aria-label="{{ 'Footer blocks section' }}">
<div class="row">
{% if page.footer_first %}
<div class="{{ footer_blocks_classes|join(' ') }}">
{{ page.footer_first }}
</div>
{% endif %}
{% if page.footer_second %}
<div class="{{ footer_blocks_classes|join(' ') }}">
{{ page.footer_second }}
</div>
{% endif %}
{% if page.footer_third %}
<div class="{{ footer_blocks_classes|join(' ') }}">
{{ page.footer_third }}
</div>
{% endif %}
{% if page.footer_fourth %}
<div class="{{ footer_blocks_classes|join(' ') }}">
{{ page.footer_fourth }}
</div>
{% endif %}
</div>
</section>
{% endif %}
{% endblock %}
</div>{# End container. #}
</div>{# End it-footer-main. #}
{% block footerSmallPrints %}
{% if page.footer_small_prints or page.footer_credits %}
{% set footer_small_prints_classes = page.footer_small_prints and page.footer_credits ? 'col-md-7 col-lg-9' : 'col' %}
{% set footer_credits_classes = page.footer_small_prints and page.footer_credits ? 'col-md-5 col-lg-3 pt-4' : 'col pt-4' %}
<div class="it-footer-small-prints clearfix">
<div class="{{ footer_container_type ?: 'container' }}">
<div class="row">
{% if page.footer_small_prints %}
<div class="{{ footer_small_prints_classes }}">
{{ page.footer_small_prints }}
</div>
{% endif %}
{% if page.footer_credits %}
<div class="text-light text-align-right {{ footer_credits_classes }}">
{{ page.footer_credits }}
</div>
{% endif %}
</div>
</div>
</div>
{% endif %}
{% endblock %}
{% block footerEnd %}{% endblock %}
</footer>
{% endapply %}
