custom/plugins/EmzPlatformShippingPaymentIcons/src/Resources/views/storefront/base.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {% block base_footer %}
  3.     {% set footerIcons = page.footer.extensions.emzShippingPaymentIcons.get('wrapper') %}
  4.     {% if footerIcons %}
  5.         <style>
  6.             .emz-spi--wrapper {
  7.                 border-top: 1px solid #d4e2e2;
  8.             }
  9.             .emz-spi--wrapper .footer-column-content:after {
  10.                 height: auto;
  11.             }
  12.             .emz-spi--image-wrapper {
  13.                 display: flex;
  14.                 margin-top: 12px;
  15.                 justify-content: space-evenly;
  16.                 flex-wrap: wrap;
  17.             }
  18.             .emz-spi--image-wrapper .emz-spi--image-outer {
  19.                 margin-bottom: 20px;
  20.                 margin-left: 10px;
  21.                 margin-right: 10px;
  22.             }
  23.             .emz-spi--img {
  24.                 max-height: 30px;
  25.             }
  26.             .emz-spi--image-wrapper .emz-spi--image-outer .emz-spi--image{
  27.                 max-height: 100%;
  28.                 max-width: 100%;
  29.             }
  30.             @media screen and (min-width: 768px) {
  31.                 .emz-spi--image-wrapper {
  32.                     margin-top: 20px;
  33.                 }
  34.                 .emz-spi--wrapper .footer-column-content {
  35.                     height: auto;
  36.                 }
  37.                 .emz-spi--wrapper .footer-column-headline {
  38.                     display: none;
  39.                 }
  40.             }
  41.         </style>
  42.         <div class="emz-spi--wrapper">
  43.             <div class="container" data-collapse-footer="true">
  44.                 <div class="row">
  45.                     <div class="col js-footer-column">
  46.                         <div class="footer-column-headline js-footer-column-headline js-collapse-footer-column-trigger"
  47.                             data-target="#collapseEmzSPI"
  48.                             aria-controls="collapseEmzSPI">
  49.                             {{ "emz-shipping-payment-icons.footer.headline"|trans }}
  50.                             <div class="footer-column-toggle">
  51.                                 <span class="footer-plus-icon">
  52.                                     {% sw_icon 'plus' %}
  53.                                 </span>
  54.                                 <span class="footer-minus-icon">
  55.                                     {% sw_icon 'minus' %}
  56.                                 </span>
  57.                             </div>
  58.                         </div>
  59.                         <div id="collapseEmzSPI"
  60.                             class="footer-column-content js-footer-column-content collapse"
  61.                             aria-labelledby="headingEmzSPI">
  62.                             <div class="emz-spi--image-wrapper">
  63.                                 {# output of icons #}
  64.                                 {% for icon in footerIcons %}
  65.                                     {% if icon.src %}
  66.                                         <div class="emz-spi--image-outer">
  67.                                             {% sw_thumbnails 'emz-spi--image' with {
  68.                                                 media: icon.src,
  69.                                                 sizes: {
  70.                                                     'default': '100px'
  71.                                                 },
  72.                                                 attributes: {
  73.                                                     'alt': icon.alt|u.truncate(125),
  74.                                                     'title': icon.title|u.truncate(125),
  75.                                                     'class': 'emz-spi--img'
  76.                                                 }
  77.                                             } %}
  78.                                         </div>
  79.                                     {% endif %}
  80.                                 {% endfor %}
  81.                             </div>
  82.                         </div>
  83.                     </div>
  84.                 </div>
  85.             </div>
  86.         </div>
  87.     {% endif %}
  88.     {{ parent() }}
  89. {% endblock %}