custom/plugins/WynTheme/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. {# Can be overridden in WynCustomerTheme: #}
  3. {% set headerTag = 'div' %}
  4. {% set headerClass = 'footer__cell-header' %}
  5. {% block layout_footer_inner_container %}
  6.   <div class="footer-container">
  7.     {% block layout_footer_navigation %}
  8.       {% block wyn_footer_navigation_logo %}
  9.         <div class="footer__logo">
  10.           {% sw_include '@Storefront/storefront/layout/header/logo.html.twig' %}
  11.         </div>
  12.       {% endblock %}
  13.       {% block wyn_footer_navigation_payment_methods %}
  14.         <div class="footer__payment">
  15.           {% sw_include '@WynTheme/storefront/layout/footer/footer-header.html.twig' with {
  16.             tag: headerTag, class: headerClass,
  17.             id: 'footer-payment-header',
  18.             title: 'wyn-theme.footer.headlines.payment'|trans|sw_sanitize
  19.           } %}
  20.           <div
  21.             class="footer__cell-content footer__payment-icons"
  22.             aria-labelledby="footer-payment-header"
  23.           >
  24.             {% for paymentMethodMedia in page.footer.extensions.footerMedia.payment %}
  25.               {% sw_thumbnails 'footer-media-payment' with {
  26.                 media: paymentMethodMedia.originalEntity,
  27.                 sizes: {
  28.                   'xs': ' 501px',
  29.                   'sm': ' 315px',
  30.                   'md': ' 427px',
  31.                   'lg': ' 333px',
  32.                   'xl': ' 284px'
  33.                 },
  34.                 attributes: {
  35.                   'alt': paymentMethodMedia.originalEntity.alt,
  36.                   'title': paymentMethodMedia.originalEntity.title,
  37.                   'class': 'footer__payment-icon'
  38.                 }
  39.               } %}
  40.             {% endfor %}
  41.           </div>
  42.         </div>
  43.       {% endblock %}
  44.       {% block wyn_footer_navigation_shipping_methods %}
  45.         <div class="footer__shipping">
  46.           {% sw_include '@WynTheme/storefront/layout/footer/footer-header.html.twig' with {
  47.             tag: headerTag, class: headerClass,
  48.             id: 'footer-shipping-header',
  49.             title: 'wyn-theme.footer.headlines.shipping'|trans|sw_sanitize
  50.           } %}
  51.           <div
  52.             class="footer__cell-content"
  53.             aria-labelledby="footer-shipping-header"
  54.           >
  55.             {% for shippingMethodMedia in page.footer.extensions.footerMedia.shipping %}
  56.               {% sw_thumbnails 'footer-media-shipping' with {
  57.                 media: shippingMethodMedia.originalEntity,
  58.                 sizes: {
  59.                   'xs': ' 501px',
  60.                   'sm': ' 315px',
  61.                   'md': ' 427px',
  62.                   'lg': ' 333px',
  63.                   'xl': ' 284px'
  64.                 },
  65.                 attributes: {
  66.                   'alt': shippingMethodMedia.originalEntity.alt,
  67.                   'title': shippingMethodMedia.originalEntity.title,
  68.                   'width': '140px'
  69.                 }
  70.               } %}
  71.             {% endfor %}
  72.           </div>
  73.         </div>
  74.       {% endblock %}
  75.       {% block wyn_footer_navigation_newsletter %}
  76.         <div class="footer__newsletter">
  77.           {% sw_include '@WynTheme/storefront/layout/footer/footer-header.html.twig' with {
  78.             tag: headerTag, class: headerClass,
  79.             id: 'footer-newsletter-header',
  80.             title: 'wyn-theme.footer.headlines.newsletter'|trans|sw_sanitize
  81.           } %}
  82.           {% block wyn_layout_footer_navigation_newsletter_content %}
  83.             <div
  84.               class="footer__cell-content"
  85.               aria-labelledby="footer-newsletter-header"
  86.             >
  87.               {% block wyn_layout_footer_navigation_newsletter_content_include %}
  88.                 {% sw_include '@Storefront/storefront/element/cms-element-form/form-types/wyn-newsletter-form.html.twig' with {
  89.                   action: 'frontend.form.newsletter.register.handle',
  90.                   submitText: 'newsletter.formSubmit'
  91.                 } %}
  92.               {% endblock %}
  93.               {% block wyn_layout_footer_navigation_newsletter_content_social_media_inside %}
  94.                 <div class="footer__social-media-inside-newsletter">
  95.                   {% sw_include '@WynTheme/storefront/layout/footer/footer-header.html.twig' with {
  96.                     tag: headerTag, class: headerClass,
  97.                     id: 'footer-social-media-header',
  98.                     title: 'wyn-theme.footer.headlines.socialMedia'|trans|sw_sanitize
  99.                   } %}
  100.                   <div class="footer__social-media-icon-container">
  101.                     {% sw_include '@Storefront/storefront/layout/footer/footer-social-media.html.twig' %}
  102.                   </div>
  103.                 </div>
  104.               {% endblock %}
  105.             </div>
  106.           {% endblock %}
  107.         </div>
  108.       {% endblock %}
  109.       {% block layout_footer_navigation_hotline %}
  110.         <div class="footer__contact">
  111.           {% block layout_footer_navigation_hotline_headline %}
  112.             {% sw_include '@WynTheme/storefront/layout/footer/footer-header.html.twig' with {
  113.               tag: headerTag, class: headerClass,
  114.               id: 'footer-contact-header',
  115.               title: 'footer.serviceHotlineHeadline'|trans|sw_sanitize
  116.             } %}
  117.           {% endblock %}
  118.           {% block layout_footer_navigation_hotline_content %}
  119.             <div
  120.               class="footer__cell-content"
  121.               aria-labelledby="footer-contact-header"
  122.             >
  123.               {{ 'footer.serviceHotline'|trans|sw_sanitize }}
  124.               {{ 'footer.serviceContactLink'|trans({
  125.                 '%url%': path('frontend.cms.page', { id: config('core.basicInformation.contactPage') })
  126.               })|raw }}
  127.             </div>
  128.           {% endblock %}
  129.         </div>
  130.       {% endblock %}
  131.       {% block layout_footer_navigation_columns %}
  132.         {% for root in page.footer.navigation.tree %}
  133.           {% block layout_footer_navigation_column %}
  134.             <div class="footer__other footer__other-{{ loop.index }}">
  135.               {% block layout_footer_navigation_information_headline %}
  136.                 <{{ headerTag }}
  137.                   id="footer-other-{{ loop.index }}-header"
  138.                   class="{{ headerClass }}"
  139.                 >
  140.                   {% if root.category.type == 'folder' %}
  141.                     {{ root.category.translated.name }}
  142.                   {% else %}
  143.                     <a
  144.                       href="{{ category_url(root.category) }}"
  145.                       {% if category_linknewtab(root.category) %}target="_blank"{% endif %}
  146.                       title="{{ root.category.translated.name }}"
  147.                     >
  148.                       {{ root.category.translated.name }}
  149.                     </a>
  150.                   {% endif %}
  151.                 </{{ headerTag }}>
  152.               {% endblock %}
  153.               {% block layout_footer_navigation_information_content %}
  154.                 <div
  155.                   class="footer__cell-content"
  156.                   aria-labelledby="footer-other-{{ loop.index }}-header"
  157.                 >
  158.                   {% block layout_footer_navigation_information_links %}
  159.                     <ul class="footer__link-list">
  160.                       {% for treeItem in root.children %}
  161.                         {% set category = treeItem.category %}
  162.                         {% set name = category.translated.name %}
  163.                         {# @deprecated tag:v6.5.0 - Use "category.translated.externalLink" directly or category_url function instead. #}
  164.                         {% set externalLink = category.translated.externalLink %}
  165.                         {% block layout_footer_navigation_information_link_item %}
  166.                           <li class="footer__link-item">
  167.                             {% block layout_footer_navigation_information_link %}
  168.                               {% if category.type == 'folder' %}
  169.                                 <div>{{ name }}</div>
  170.                               {% else %}
  171.                                 <a
  172.                                   class="footer__link"
  173.                                   href="{{ category_url(category) }}"
  174.                                   {% if category_linknewtab(category) %}target="_blank"{% endif %}
  175.                                   title="{{ name }}"
  176.                                 >
  177.                                   {{ name }}
  178.                                 </a>
  179.                               {% endif %}
  180.                             {% endblock %}
  181.                           </li>
  182.                         {% endblock %}
  183.                       {% endfor %}
  184.                     </ul>
  185.                   {% endblock %}
  186.                 </div>
  187.               {% endblock %}
  188.             </div>
  189.           {% endblock %}
  190.         {% endfor %}
  191.       {% endblock %}
  192.       {% block wyn_footer_navigation_socialmedia %}
  193.         <div class="footer__social-media">
  194.           {% sw_include '@WynTheme/storefront/layout/footer/footer-header.html.twig' with {
  195.             tag: headerTag, class: headerClass,
  196.             id: 'footer-social-media-header',
  197.             title: 'wyn-theme.footer.headlines.socialMedia'|trans|sw_sanitize
  198.           } %}
  199.           <div
  200.             class="footer__cell-content footer__social-media-icon-container"
  201.             aria-labelledby="footer-social-media-header"
  202.           >
  203.             {% sw_include '@Storefront/storefront/layout/footer/footer-social-media.html.twig' %}
  204.           </div>
  205.         </div>
  206.       {% endblock %}
  207.     {% endblock %}
  208.   </div>
  209.   {% block layout_footer_bottom %}
  210.     <div class="footer-bottom">
  211.       {% block layout_footer_service_menu %}
  212.       {% endblock %}
  213.       {% block layout_footer_vat %}
  214.         {{ parent() }}
  215.       {% endblock %}
  216.       {# no "realized with shopware" text, should be "realized despite shopware" :D #}
  217.       {% block layout_footer_copyright %}
  218.       {% endblock %}
  219.     </div>
  220.   {% endblock %}
  221. {% endblock %}