{% sw_extends '@Storefront/storefront/base.html.twig' %}
{% block base_footer %}
{% set footerIcons = page.footer.extensions.emzShippingPaymentIcons.get('wrapper') %}
{% if footerIcons %}
<style>
.emz-spi--wrapper {
border-top: 1px solid #d4e2e2;
}
.emz-spi--wrapper .footer-column-content:after {
height: auto;
}
.emz-spi--image-wrapper {
display: flex;
margin-top: 12px;
justify-content: space-evenly;
flex-wrap: wrap;
}
.emz-spi--image-wrapper .emz-spi--image-outer {
margin-bottom: 20px;
margin-left: 10px;
margin-right: 10px;
}
.emz-spi--img {
max-height: 30px;
}
.emz-spi--image-wrapper .emz-spi--image-outer .emz-spi--image{
max-height: 100%;
max-width: 100%;
}
@media screen and (min-width: 768px) {
.emz-spi--image-wrapper {
margin-top: 20px;
}
.emz-spi--wrapper .footer-column-content {
height: auto;
}
.emz-spi--wrapper .footer-column-headline {
display: none;
}
}
</style>
<div class="emz-spi--wrapper">
<div class="container" data-collapse-footer="true">
<div class="row">
<div class="col js-footer-column">
<div class="footer-column-headline js-footer-column-headline js-collapse-footer-column-trigger"
data-target="#collapseEmzSPI"
aria-controls="collapseEmzSPI">
{{ "emz-shipping-payment-icons.footer.headline"|trans }}
<div class="footer-column-toggle">
<span class="footer-plus-icon">
{% sw_icon 'plus' %}
</span>
<span class="footer-minus-icon">
{% sw_icon 'minus' %}
</span>
</div>
</div>
<div id="collapseEmzSPI"
class="footer-column-content js-footer-column-content collapse"
aria-labelledby="headingEmzSPI">
<div class="emz-spi--image-wrapper">
{# output of icons #}
{% for icon in footerIcons %}
{% if icon.src %}
<div class="emz-spi--image-outer">
{% sw_thumbnails 'emz-spi--image' with {
media: icon.src,
sizes: {
'default': '100px'
},
attributes: {
'alt': icon.alt|u.truncate(125),
'title': icon.title|u.truncate(125),
'class': 'emz-spi--img'
}
} %}
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>
{% endif %}
{{ parent() }}
{% endblock %}