src/Storefront/Resources/views/storefront/layout/footer/footer.html.twig line 1

  1. {% block layout_footer_inner_container %}
  2.     <div class="container">
  3.         {% block layout_footer_navigation %}
  4.             <div id="footerColumns"
  5.                  class="row footer-columns"
  6.                  data-collapse-footer="true"
  7.                  role="list">
  8.                 {% block layout_footer_navigation_hotline %}
  9.                     <div class="col-md-4 footer-column js-footer-column">
  10.                         {% block layout_footer_navigation_hotline_headline %}
  11.                             <div class="footer-column-headline footer-headline js-footer-column-headline js-collapse-footer-column-trigger"
  12.                                  id="collapseFooterHotlineTitle"
  13.                                  data-bs-target="#collapseFooterHotline"
  14.                                  aria-expanded="true"
  15.                                  aria-controls="collapseFooterHotline"
  16.                                  role="listitem">
  17.                                 {{ 'footer.serviceHotlineHeadline'|trans|sw_sanitize }}
  18.                                 {% block layout_footer_navigation_hotline_icons %}
  19.                                     <div class="footer-column-toggle">
  20.                                         <span class="footer-plus-icon">
  21.                                             {% sw_icon 'plus' %}
  22.                                         </span>
  23.                                         <span class="footer-minus-icon">
  24.                                             {% sw_icon 'minus' %}
  25.                                         </span>
  26.                                     </div>
  27.                                 {% endblock %}
  28.                             </div>
  29.                         {% endblock %}
  30.                         {% block layout_footer_navigation_hotline_content %}
  31.                             <div id="collapseFooterHotline"
  32.                                  class="footer-column-content collapse js-footer-column-content footer-contact"
  33.                                  aria-labelledby="collapseFooterHotlineTitle">
  34.                                 <div class="footer-column-content-inner">
  35.                                     <p class="footer-contact-hotline">
  36.                                         {{ 'footer.serviceHotline'|trans|sw_sanitize }}
  37.                                     </p>
  38.                                 </div>
  39.                                 <div class="footer-contact-form">
  40.                                     {{ 'footer.serviceContactText'|trans({
  41.                                         '%url%': path('frontend.cms.page', { id: config('core.basicInformation.contactPage') })
  42.                                     })|raw }}
  43.                                 </div>
  44.                             </div>
  45.                         {% endblock %}
  46.                     </div>
  47.                 {% endblock %}
  48.                 {% block layout_footer_navigation_columns %}
  49.                     {% for root in page.footer.navigation.tree %}
  50.                         {% block layout_footer_navigation_column %}
  51.                             <div class="col-md-4 footer-column js-footer-column">
  52.                                 {% block layout_footer_navigation_information_headline %}
  53.                                     <div class="footer-column-headline footer-headline js-collapse-footer-column-trigger"
  54.                                          data-bs-target="#collapseFooterTitle{{ loop.index }}"
  55.                                          aria-expanded="true"
  56.                                          aria-controls="collapseFooter{{ loop.index }}">
  57.                                         {% if root.category.type == 'folder' %}
  58.                                             {{ root.category.translated.name }}
  59.                                         {% else %}
  60.                                             <a href="{{ category_url(root.category) }}"
  61.                                                {% if category_linknewtab(root.category) %}target="_blank"{% endif %}
  62.                                                title="{{ root.category.translated.name }}">
  63.                                                 {{ root.category.translated.name }}
  64.                                             </a>
  65.                                         {% endif %}
  66.                                         {% block layout_footer_navigation_information_icons %}
  67.                                             <div class="footer-column-toggle">
  68.                                                 <span class="footer-plus-icon">
  69.                                                     {% sw_icon 'plus' %}
  70.                                                 </span>
  71.                                                 <span class="footer-minus-icon">
  72.                                                     {% sw_icon 'minus' %}
  73.                                                 </span>
  74.                                             </div>
  75.                                         {% endblock %}
  76.                                     </div>
  77.                                 {% endblock %}
  78.                                 {% block layout_footer_navigation_information_content %}
  79.                                     <div id="collapseFooter{{ loop.index }}"
  80.                                          class="footer-column-content collapse js-footer-column-content"
  81.                                          aria-labelledby="collapseFooterTitle{{ loop.index }}">
  82.                                         <div class="footer-column-content-inner">
  83.                                             {% block layout_footer_navigation_information_links %}
  84.                                                 <ul class="list-unstyled">
  85.                                                     {% for treeItem in root.children %}
  86.                                                         {% set category = treeItem.category %}
  87.                                                         {% set name = category.translated.name %}
  88.                                                         {% block layout_footer_navigation_information_link_item %}
  89.                                                             <li class="footer-link-item">
  90.                                                                 {% block layout_footer_navigation_information_link %}
  91.                                                                     {% if category.type == 'folder' %}
  92.                                                                         <div>{{ name }}</div>
  93.                                                                     {% else %}
  94.                                                                         <a class="footer-link"
  95.                                                                            href="{{ category_url(category) }}"
  96.                                                                            {% if category_linknewtab(category) %}target="_blank"{% endif %}
  97.                                                                            title="{{ name }}">
  98.                                                                             {{ name }}
  99.                                                                         </a>
  100.                                                                     {% endif %}
  101.                                                                 {% endblock %}
  102.                                                             </li>
  103.                                                         {% endblock %}
  104.                                                     {% endfor %}
  105.                                                 </ul>
  106.                                             {% endblock %}
  107.                                         </div>
  108.                                     </div>
  109.                                 {% endblock %}
  110.                             </div>
  111.                         {% endblock %}
  112.                     {% endfor %}
  113.                 {% endblock %}
  114.             </div>
  115.         {% endblock %}
  116.         {% block layout_footer_payment_shipping_logos %}
  117.             <div class="footer-logos">
  118.                 {% block layout_footer_payment_logos %}
  119.                     {% for paymentMethod in page.salesChannelPaymentMethods %}
  120.                         {% block layout_footer_payment_logo %}
  121.                             {% if paymentMethod.media %}
  122.                                 <div class="footer-logo is-payment">
  123.                                     {% sw_thumbnails 'footer-payment-image-thumbnails' with {
  124.                                         media: paymentMethod.media,
  125.                                         sizes: {
  126.                                             'default': '100px'
  127.                                         },
  128.                                         attributes: {
  129.                                             'class': 'img-fluid footer-logo-image',
  130.                                             'alt': (paymentMethod.media.translated.alt ?: paymentMethod.translated.name),
  131.                                             'title': (paymentMethod.media.translated.title ?: paymentMethod.translated.name)
  132.                                         }
  133.                                     } %}
  134.                                 </div>
  135.                             {% endif %}
  136.                         {% endblock %}
  137.                     {% endfor %}
  138.                 {% endblock %}
  139.                 {% block layout_footer_shipping_logos %}
  140.                     {% for shippingMethod in page.salesChannelShippingMethods %}
  141.                         {% block layout_footer_shipping_logo %}
  142.                             {% if shippingMethod.media %}
  143.                                 <div class="footer-logo is-shipping">
  144.                                     {% sw_thumbnails 'footer-shipping-image-thumbnails' with {
  145.                                         media: shippingMethod.media,
  146.                                         sizes: {
  147.                                             'default': '100px'
  148.                                         },
  149.                                         attributes: {
  150.                                             'class': 'img-fluid footer-logo-image',
  151.                                             'alt': (shippingMethod.media.translated.alt ?: shippingMethod.translated.name),
  152.                                             'title': (shippingMethod.media.translated.title ?: shippingMethod.translated.name)
  153.                                         }
  154.                                     } %}
  155.                                 </div>
  156.                             {% endif %}
  157.                         {% endblock %}
  158.                     {% endfor %}
  159.                 {% endblock %}
  160.             </div>
  161.         {% endblock %}
  162.     </div>
  163.     {% block layout_footer_bottom %}
  164.         <div class="footer-bottom">
  165.             {% block layout_footer_service_menu %}
  166.                 <div class="container">
  167.                     {% block layout_footer_service_menu_content %}
  168.                         {% apply spaceless %}
  169.                             <ul class="footer-service-menu-list list-unstyled">
  170.                                 {% for serviceMenuItem in page.header.serviceMenu %}
  171.                                     {% block layout_footer_service_menu_item %}
  172.                                         <li class="footer-service-menu-item">
  173.                                             <a class="footer-service-menu-link"
  174.                                                href="{{ category_url(serviceMenuItem) }}"
  175.                                                {% if category_linknewtab(serviceMenuItem) %}target="_blank"{% endif %}
  176.                                                title="{{ serviceMenuItem.translated.name }}">
  177.                                                 {{ serviceMenuItem.translated.name }}
  178.                                             </a>
  179.                                         </li>
  180.                                     {% endblock %}
  181.                                 {% endfor %}
  182.                             </ul>
  183.                         {% endapply %}
  184.                     {% endblock %}
  185.                 </div>
  186.             {% endblock %}
  187.             {% block layout_footer_vat %}
  188.                 <div class="footer-vat">
  189.                     {% if context.taxState == "gross" %}
  190.                         <p>
  191.                             {{ "footer.includeVatText"|trans({
  192.                                 '%url%': path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') })
  193.                             })|raw }}
  194.                         </p>
  195.                     {% else %}
  196.                         <p>
  197.                             {{ "footer.excludeVatText"|trans({
  198.                                 '%url%': path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') })
  199.                             })|raw }}
  200.                         </p>
  201.                     {% endif %}
  202.                 </div>
  203.             {% endblock %}
  204.             {% block layout_footer_copyright %}
  205.                 <div class="footer-copyright">
  206.                     {% sw_icon 'shopware' style {'size':'xs'} %}
  207.                     {{ "footer.copyrightInfo"|trans|sw_sanitize }}
  208.                 </div>
  209.             {% endblock %}
  210.         </div>
  211.     {% endblock %}
  212. {% endblock %}