custom/plugins/KsAttachments/src/Resources/views/storefront/layout/footer/footer.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/footer/footer.html.twig' %}
  2. {% block layout_footer_navigation_hotline %}
  3.     {{ parent() }}
  4.     <div class="col-md-4 footer-column ks-attachment">
  5.         {% block layout_footer_ks_attachments %}
  6.             {% if config('KsAttachments.config.enableField') %}
  7.                 {% set attachments = page.product.KsAttachments.attachments %}
  8.                 {% set displayValue = "1" %}
  9.                 {% set attachmentsDisplay = [] %}
  10.                 {% for attachment in attachments %}
  11.                     {% if attachment.display !== null %}
  12.                         {% set displayAttachment = attachment.display|split(',') %}
  13.                         {% for key, value in displayAttachment %}
  14.                             {% if displayValue == value %}
  15.                                 {% set attachmentsDisplay = attachmentsDisplay|merge([attachment]) %}
  16.                             {% endif %}
  17.                         {% endfor %}
  18.                     {% endif %}
  19.                 {% endfor %}
  20.                 {% if attachmentsDisplay|length %}
  21.                     {% sw_include '@Storefront/storefront/component/ks-attachments-list.html.twig' with {
  22.                         attachmentsDisplay: attachmentsDisplay,
  23.                         displayOn: displayValue,
  24.                         containerClass: "ks-attachments-display-footer",
  25.                     } %}
  26.                 {% endif %}
  27.             {% endif %}
  28.         {% endblock %}
  29.     </div>    
  30. {% endblock %}