custom/plugins/EmzPlatformShippingPaymentIcons/src/Resources/views/storefront/page/product-detail/buy-widget.html.twig line 1

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