custom/plugins/DecomTheme/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_inner_container %}
  3.     <div class="container">
  4.         {% set basicConfig = config('core.basicInformation') %}
  5.         {% block layout_footer_navigation %}
  6.             <div id="footerColumns"
  7.                  class="row footer-columns"
  8.                  data-collapse-footer="true">
  9.                 {% block layout_footer_navigation_hotline %}
  10.                     <div class="col footer-column js-footer-column">
  11.                         {% block layout_footer_navigation_hotline_headline %}
  12.                             <div class="footer-column-headline footer-headline js-footer-column-headline js-collapse-footer-column-trigger"
  13.                                  id="collapseFooterHotlineTitle"
  14.                                  data-target="#collapseFooterHotline"
  15.                                  aria-expanded="true"
  16.                                  aria-controls="collapseFooterHotline">
  17.                                 {{ context.salesChannel.name }}
  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.                                     {% if basicConfig.address %}
  36.                                         <p class="footer-contact-address">
  37.                                             {{ basicConfig.address | raw }}
  38.                                         </p>
  39.                                     {% endif %}
  40.                                     <p class="footer-contact-hotline">
  41.                                         {{ 'footer.serviceHotline'|trans|sw_sanitize }}
  42.                                     </p>
  43.                                 </div>
  44.                                 <div class="footer-contact-form">
  45.                                     {{ 'footer.serviceContactLink'|trans({
  46.                                         '%url%': path('frontend.cms.page', { id: config('core.basicInformation.contactPage') })
  47.                                     })|raw }}
  48.                                 </div>
  49.                             </div>
  50.                         {% endblock %}
  51.                     </div>
  52.                 {% endblock %}
  53.                 {% block layout_footer_navigation_columns %}
  54.                     {% for root in page.footer.navigation.tree %}
  55.                         {% block layout_footer_navigation_column %}
  56.                             <div class="col footer-column js-footer-column">
  57.                                 {% block layout_footer_navigation_information_headline %}
  58.                                     <div class="footer-column-headline footer-headline js-collapse-footer-column-trigger"
  59.                                          data-target="#collapseFooterTitle{{ loop.index }}"
  60.                                          aria-expanded="true"
  61.                                          aria-controls="collapseFooter{{ loop.index }}">
  62.                                         {% if root.category.type == 'folder' %}
  63.                                             {{ root.category.translated.name }}
  64.                                         {% else %}
  65.                                             <a href="{{ category_url(root.category) }}"
  66.                                                {% if category_linknewtab(root.category) %}target="_blank"{% endif %}
  67.                                                title="{{ root.category.translated.name }}">
  68.                                                 {{ root.category.translated.name }}
  69.                                             </a>
  70.                                         {% endif %}
  71.                                         {% block layout_footer_navigation_information_icons %}
  72.                                             <div class="footer-column-toggle">
  73.                                                 <span class="footer-plus-icon">
  74.                                                     {% sw_icon 'plus' %}
  75.                                                 </span>
  76.                                                 <span class="footer-minus-icon">
  77.                                                     {% sw_icon 'minus' %}
  78.                                                 </span>
  79.                                             </div>
  80.                                         {% endblock %}
  81.                                     </div>
  82.                                 {% endblock %}
  83.                                 {% block layout_footer_navigation_information_content %}
  84.                                     <div id="collapseFooter{{ loop.index }}"
  85.                                          class="footer-column-content collapse js-footer-column-content"
  86.                                          aria-labelledby="collapseFooterTitle{{ loop.index }}">
  87.                                         <div class="footer-column-content-inner">
  88.                                             {% block layout_footer_navigation_information_links %}
  89.                                                 <ul class="list-unstyled">
  90.                                                     {% for treeItem in root.children %}
  91.                                                         {% set category = treeItem.category %}
  92.                                                         {% set name = category.translated.name %}
  93.                                                         {# @deprecated tag:v6.5.0 - Use "category.translated.externalLink" directly or category_url function instead. #}
  94.                                                         {% set externalLink = category.translated.externalLink %}
  95.                                                         {% block layout_footer_navigation_information_link_item %}
  96.                                                             <li class="footer-link-item">
  97.                                                                 {% block layout_footer_navigation_information_link %}
  98.                                                                     {% if category.type == 'folder' %}
  99.                                                                         <div>{{ name }}</div>
  100.                                                                     {% else %}
  101.                                                                         <a class="footer-link"
  102.                                                                            href="{{ category_url(category) }}"
  103.                                                                            {% if category_linknewtab(category) %}target="_blank"{% endif %}
  104.                                                                            title="{{ name }}">
  105.                                                                             {{ name }}
  106.                                                                         </a>
  107.                                                                     {% endif %}
  108.                                                                 {% endblock %}
  109.                                                             </li>
  110.                                                         {% endblock %}
  111.                                                     {% endfor %}
  112.                                                 </ul>
  113.                                             {% endblock %}
  114.                                         </div>
  115.                                     </div>
  116.                                 {% endblock %}
  117.                             </div>
  118.                         {% endblock %}
  119.                     {% endfor %}
  120.                     {% block layout_footer_payment_shipping_logos %}
  121.                         <div class="col footer-column js-footer-column footer-payshiplogos">
  122.                             {% block layout_footer_payment_logos %}
  123.                                 {% block layout_footer_navigation_logos_headline %}
  124.                                     <div class="footer-column-headline footer-headline js-collapse-footer-column-trigger show"
  125.                                         data-target="#collapseFooterTitle{{ loop.index }}"
  126.                                         aria-expanded="true"
  127.                                         aria-controls="collapseFooter{{ loop.index }}">
  128.                                                             
  129.                                         {{ 'account.paymentTitle'|trans|sw_sanitize|replace({'methods': ""}) }} &amp; {{ 'checkout.addressHeader'|trans|sw_sanitize|replace({'information': ""}) }}
  130.                                         {% block layout_footer_navigation_logos_icons %}
  131.                                             <div class="footer-column-toggle">
  132.                                                 <span class="footer-plus-icon">
  133.                                                     {% sw_icon 'plus' %}
  134.                                                 </span>
  135.                                                 <span class="footer-minus-icon">
  136.                                                     {% sw_icon 'minus' %}
  137.                                                 </span>
  138.                                             </div>
  139.                                         {% endblock %}     
  140.                                     </div>
  141.                                 {% endblock %}
  142.                                 <div id="collapseFooter{{ loop.index }}"
  143.                                     class="footer-column-content collapse show js-footer-column-content"
  144.                                     aria-labelledby="collapseFooterTitle{{ loop.index }}">
  145.                                     <div class="footer-column-content-inner">
  146.                                         {% for paymentMethod in page.salesChannelPaymentMethods %}
  147.                                             {% block layout_footer_payment_logo %}
  148.                                                 {% if paymentMethod.media %}
  149.                                                     <div class="footer-logo is-payment">
  150.                                                         {% sw_thumbnails 'footer-payment-image-thumbnails' with {
  151.                                                             media: paymentMethod.media,
  152.                                                             sizes: {
  153.                                                                 'default': '100px'
  154.                                                             },
  155.                                                             attributes: {
  156.                                                                 'class': 'img-fluid footer-logo-image',
  157.                                                                 'alt': (paymentMethod.media.translated.alt ?: paymentMethod.translated.name),
  158.                                                                 'title': (paymentMethod.media.translated.title ?: paymentMethod.translated.name)
  159.                                                             }
  160.                                                         } %}
  161.                                                     </div>
  162.                                                 {% endif %}
  163.                                             {% endblock %}
  164.                                         {% endfor %}
  165.                                         {% for shippingMethod in page.salesChannelShippingMethods %}
  166.                                             {% block layout_footer_shipping_logo %}
  167.                                                 {% if shippingMethod.media %}
  168.                                                     <div class="footer-logo is-shipping">
  169.                                                         {% sw_thumbnails 'footer-shipping-image-thumbnails' with {
  170.                                                             media: shippingMethod.media,
  171.                                                             sizes: {
  172.                                                                 'default': '100px'
  173.                                                             },
  174.                                                             attributes: {
  175.                                                                 'class': 'img-fluid footer-logo-image',
  176.                                                                 'alt': (shippingMethod.media.translated.alt ?: shippingMethod.translated.name),
  177.                                                                 'title': (shippingMethod.media.translated.title ?: shippingMethod.translated.name)
  178.                                                             }
  179.                                                         } %}
  180.                                                     </div>
  181.                                                 {% endif %}
  182.                                             {% endblock %}
  183.                                         {% endfor %}
  184.                                     </div>
  185.                                 </div>
  186.                             {% endblock %}
  187.                         </div>
  188.                     {% endblock %}
  189.                     {% block layout_footer_socials %}
  190.                         <div class="col footer-column footer-socials js-footer-column">
  191.                             {% block layout_footer_social_links %}
  192.                                 {% block layout_footer_navigation_socials_headline %}
  193.                                     <div class="footer-column-headline footer-headline js-collapse-footer-column-trigger show"
  194.                                         data-target="#collapseFooterTitle{{ loop.index }}"
  195.                                         aria-expanded="true"
  196.                                         aria-controls="collapseFooter{{ loop.index }}">
  197.                                                             
  198.                                         {{ 'footer.socialsHeading'|trans|sw_sanitize }}
  199.                                         {% block layout_footer_navigation_socials_icons %}
  200.                                             <div class="footer-column-toggle">
  201.                                                 <span class="footer-plus-icon">
  202.                                                     {% sw_icon 'plus' %}
  203.                                                 </span>
  204.                                                 <span class="footer-minus-icon">
  205.                                                     {% sw_icon 'minus' %}
  206.                                                 </span>
  207.                                             </div>
  208.                                         {% endblock %} 
  209.                                                             
  210.                                     </div>
  211.                                 {% endblock %}
  212.                                 <div id="collapseFooter{{ loop.index }}"
  213.                                     class="footer-column-content collapse show js-footer-column-content"
  214.                                     aria-labelledby="collapseFooterTitle{{ loop.index }}">
  215.                                     <div class="footer-column-content-inner">
  216.                                         {% block layout_footer_social_link_facebook %}
  217.                                             {% if theme_config('sw-socials-facebook-link') %}
  218.                                                 <div class="social-item">
  219.                                                     <a href="{{ theme_config('sw-socials-facebook-link') }}" target="_blank" rel="nofollow">
  220.                                                         {% sw_icon 'facebook-icon' style {'namespace': 'DecomTheme' } %}
  221.                                                         <span>Facebook</span>
  222.                                                     </a>
  223.                                                 </div>
  224.                                             {% endif %}
  225.                                         {% endblock %}
  226.                                         {% block layout_footer_social_link_instagram %}
  227.                                             {% if theme_config('sw-socials-instagram-link') %}
  228.                                                 <div class="social-item">
  229.                                                     <a href="{{ theme_config('sw-socials-instagram-link') }}" target="_blank" rel="nofollow">
  230.                                                         {% sw_icon 'instagram-icon' style {'namespace': 'DecomTheme' } %}
  231.                                                         <span>Instagram</span>
  232.                                                     </a>
  233.                                                 </div>
  234.                                             {% endif %}
  235.                                         {% endblock %} 
  236.                                         {% block layout_footer_social_link_youtube %}
  237.                                             {% if theme_config('sw-socials-youtube-link') %}
  238.                                                 <div class="social-item">
  239.                                                     <a href="{{ theme_config('sw-socials-youtube-link') }}" target="_blank" rel="nofollow">
  240.                                                         {% sw_icon 'youtube-icon' style {'namespace': 'DecomTheme', 'color': '#FF5E17' } %}
  241.                                                         <span>Youtube</span>
  242.                                                     </a>
  243.                                                 </div>
  244.                                             {% endif %}
  245.                                         {% endblock %} 
  246.                                     </div>
  247.                                 </div>
  248.                             {% endblock %}
  249.                         </div>
  250.                     {% endblock %}
  251.                     
  252.                 {% endblock %}
  253.             </div>
  254.         {% endblock %}
  255.         
  256.     </div>
  257.     {% block layout_footer_bottom %}
  258.         <div class="footer-bottom">
  259.             {% block layout_footer_service_menu %}
  260.                 <div class="container">
  261.                     {% block layout_footer_service_menu_content %}
  262.                         {% apply spaceless %}
  263.                             <ul class="footer-service-menu-list list-unstyled">
  264.                                 {% for serviceMenuItem in page.header.serviceMenu %}
  265.                                     {% block layout_footer_service_menu_item %}
  266.                                         <li class="footer-service-menu-item">
  267.                                             <a class="footer-service-menu-link"
  268.                                                href="{{ category_url(serviceMenuItem) }}"
  269.                                                {% if category_linknewtab(serviceMenuItem) %}target="_blank"{% endif %}
  270.                                                title="{{ serviceMenuItem.translated.name }}">
  271.                                                 {{ serviceMenuItem.translated.name }}
  272.                                             </a>
  273.                                         </li>
  274.                                     {% endblock %}
  275.                                 {% endfor %}
  276.                             </ul>
  277.                         {% endapply %}
  278.                     {% endblock %}
  279.                 </div>
  280.             {% endblock %}
  281.             {% block layout_footer_vat %}
  282.                 <div class="footer-vat">
  283.                     <p>
  284.                         &copy; 
  285.                         {{ 'now' | date('Y') }}
  286.                         {% if basicConfig.shopName %}
  287.                             {{ basicConfig.shopName }}
  288.                         {% endif %}
  289.                         {% if context.taxState == "gross" %}                        
  290.                             {{ "footer.includeVat"|trans({
  291.                                 '%url%': path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') })
  292.                             })|raw }}                        
  293.                         {% else %}
  294.                             {{ "footer.excludeVat"|trans({
  295.                                 '%url%': path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') })
  296.                             })|raw }}                        
  297.                         {% endif %}
  298.                     </p>
  299.                 </div>
  300.             {% endblock %}
  301.         </div>
  302.     {% endblock %}
  303. {% endblock %}