custom/plugins/zenitPlatformSphere/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_information_icons %}
  3.     <div class="footer-column-toggle">
  4.         <span class="footer-plus-icon">
  5.             {% if theme_config('zen-footer-col-headline-icon') is same as ('plusminus') %}{% sw_icon 'plus' %}{% else %}{% sw_icon 'arrow-head-down' style {'size': 'sm'} %}{% endif %}
  6.         </span>
  7.         <span class="footer-minus-icon">
  8.             {% if theme_config('zen-footer-col-headline-icon') is same as ('plusminus') %}{% sw_icon 'minus' %}{% else %}{% sw_icon 'arrow-head-up' style {'size': 'sm'} %}{% endif %}
  9.         </span>
  10.     </div>
  11. {% endblock %}
  12. {% block layout_footer_inner_container %}
  13.     {% if theme_config('zen-footer-logo-position') is same as ('newsletter') %}
  14.         {% set newsletterHiddenClass = 'd-md-none' %}
  15.         {% set newsletterFooterLogoClass = 'newsletter-footer-logo' %}
  16.     {% endif %}
  17.     {% block zen_layout_footer_newsletter %}
  18.         {% if theme_config('zen-footer-newsletter-position') is same as ('prepend') %}
  19.             <div class="footer-newsletter newsletter-fullwidth {{ newsletterFooterLogoClass }}">
  20.                 <div class="container">
  21.                     {% block zen_layout_footer_newsletter_logo %}
  22.                         {# footer logo #}
  23.                         {% if theme_config('zen-footer-logo-position') is same as ('newsletter') %}
  24.                             <div class="footer-logo">
  25.                                 {% sw_include '@Storefront/storefront/component/footer/zen-footer-logo.html.twig' %}
  26.                             </div>
  27.                         {% endif %}
  28.                     {% endblock %}
  29.                     {% sw_include '@Storefront/storefront/component/footer/zen-footer-newsletter.html.twig' with {
  30.                         action: 'frontend.form.newsletter.register.handle',
  31.                         submitText: 'newsletter.formSubmit'
  32.                     } %}
  33.                 </div>
  34.             </div>
  35.         {% endif %}
  36.     {% endblock %}
  37.     {% block layout_footer_navigation %}
  38.         <div class="container">
  39.             <div id="footerColumns"
  40.                  class="row footer-columns{% if theme_config('zen-footer-col-headline-font-align') is same as ('center') and theme_config('zen-footer-col-font-align') is same as ('center') %} justify-content-center{% endif %}"
  41.                  data-collapse-footer="true"
  42.                  role="list">
  43.                 {% block zen_layout_footer_navigation_logo %}
  44.                     {% if theme_config('zen-footer-logo-position') is same as ('column') %}
  45.                         <div class="{{ theme_config('zen-footer-logo-col') }} {{ theme_config('zen-footer-logo-col-xl') }} order-{{ theme_config('zen-footer-logo-order') }} footer-column footer-logo-column">
  46.                             <div class="footer-logo-column-inner">
  47.                                 {% sw_include '@Storefront/storefront/component/footer/zen-footer-logo.html.twig' %}
  48.                             </div>
  49.                         </div>
  50.                     {% endif %}
  51.                 {% endblock %}
  52.                 {% block zen_layout_footer_navigation_newsletter %}
  53.                     {% if theme_config('zen-footer-newsletter-position') is same as ('column') %}
  54.                         <div class="{{ theme_config('zen-footer-newsletter-col') }} {{ theme_config('zen-footer-newsletter-col-xl') }} order-{{ theme_config('zen-footer-newsletter-order') }} footer-column js-footer-column footer-newsletter-column footer-newsletter {{ newsletterFooterLogoClass }}">
  55.                             {% block zen_layout_footer_navigation_newsletter_headline_logo %}
  56.                                 {# footer logo #}
  57.                                 {% if theme_config('zen-footer-logo-position') is same as ('newsletter') %}
  58.                                     <div class="footer-column-headline footer-headline footer-logo">
  59.                                         {% sw_include '@Storefront/storefront/component/footer/zen-footer-logo.html.twig' %}
  60.                                     </div>
  61.                                 {% endif %}
  62.                             {% endblock %}
  63.                             {# showClass #}
  64.                             {% if theme_config('zen-footer-newsletter-collapse-state') %}
  65.                                 {% set newsletterShowClass = 'show' %}
  66.                             {% endif %}
  67.                             {% block zen_layout_footer_navigation_newsletter_headline %}
  68.                                 <div class="{{ newsletterHiddenClass }} footer-column-headline footer-headline js-footer-column-headline js-collapse-footer-column-trigger {{ newsletterShowClass }}"
  69.                                      id="collapseFooterNewsletterTitle"
  70.                                      data-target="#collapseFooterNewsletter"
  71.                                      aria-expanded="true"
  72.                                      aria-controls="collapseFooterNewsletter"
  73.                                      role="listitem">
  74.                                     {{ 'zentheme.footer.newsletterHeadline'|trans|sw_sanitize }}
  75.                                     {% block zen_layout_footer_navigation_newsletter_icons %}
  76.                                         <div class="footer-column-toggle">
  77.                                             <span class="footer-plus-icon">
  78.                                                 {% if theme_config('zen-footer-col-headline-icon') is same as ('plusminus') %}{% sw_icon 'plus' %}{% else %}{% sw_icon 'arrow-head-down' style {'size': 'sm'} %}{% endif %}
  79.                                             </span>
  80.                                             <span class="footer-minus-icon">
  81.                                                 {% if theme_config('zen-footer-col-headline-icon') is same as ('plusminus') %}{% sw_icon 'minus' %}{% else %}{% sw_icon 'arrow-head-up' style {'size': 'sm'} %}{% endif %}
  82.                                             </span>
  83.                                         </div>
  84.                                     {% endblock %}
  85.                                 </div>
  86.                             {% endblock %}
  87.                             {% block zen_layout_footer_navigation_newsletter_content %}
  88.                                 <div id="collapseFooterNewsletter"
  89.                                      class="footer-column-content collapse js-footer-column-content {{ newsletterShowClass }}"
  90.                                      aria-labelledby="collapseFooterNewsletterTitle">
  91.                                     <div class="footer-column-content-inner">
  92.                                         {% sw_include '@Storefront/storefront/component/footer/zen-footer-newsletter.html.twig' with {
  93.                                             action: 'frontend.form.newsletter.register.handle',
  94.                                             submitText: 'newsletter.formSubmit'
  95.                                         }%}
  96.                                     </div>
  97.                                 </div>
  98.                             {% endblock %}
  99.                         </div>
  100.                     {% endif %}
  101.                 {% endblock %}
  102.                 {% block zen_layout_footer_navigation_social %}
  103.                     {% if theme_config('zen-footer-social-position') is same as ('column') %}
  104.                         <div class="{{ theme_config('zen-footer-social-col') }} {{ theme_config('zen-footer-social-col-xl') }} order-{{ theme_config('zen-footer-social-order') }} footer-column js-footer-column footer-social-column">
  105.                             {# footer logo #}
  106.                             {% if theme_config('zen-footer-logo-position') is same as ('social') %}
  107.                                 {% set socialHiddenClass = 'd-md-none' %}
  108.                             {% endif %}
  109.                             {% block zen_layout_footer_navigation_social_headline_logo %}
  110.                                 {# footer logo #}
  111.                                 {% if theme_config('zen-footer-logo-position') is same as ('social') %}
  112.                                     <div class="footer-column-headline footer-headline footer-logo">
  113.                                         {% sw_include '@Storefront/storefront/component/footer/zen-footer-logo.html.twig' %}
  114.                                     </div>
  115.                                 {% endif %}
  116.                             {% endblock %}
  117.                             {# showClass #}
  118.                             {% if theme_config('zen-footer-social-collapse-state') %}
  119.                                 {% set socialShowClass = 'show' %}
  120.                             {% endif %}
  121.                             {% block zen_layout_footer_navigation_social_headline %}
  122.                                 <div class="{{ socialHiddenClass }} footer-column-headline footer-headline js-footer-column-headline js-collapse-footer-column-trigger {{ socialShowClass }}"
  123.                                      id="collapseFooterSocialTitle"
  124.                                      data-target="#collapseFooterSocial"
  125.                                      aria-expanded="true"
  126.                                      aria-controls="collapseFooterSocial"
  127.                                      role="listitem">
  128.                                     {{ 'zentheme.footer.socialMediaHeadline'|trans|sw_sanitize }}
  129.                                     {% block zen_layout_footer_navigation_social_icons %}
  130.                                         <div class="footer-column-toggle">
  131.                                         <span class="footer-plus-icon">
  132.                                             {% if theme_config('zen-footer-col-headline-icon') is same as ('plusminus') %}{% sw_icon 'plus' %}{% else %}{% sw_icon 'arrow-head-down' style {'size': 'sm'} %}{% endif %}
  133.                                         </span>
  134.                                             <span class="footer-minus-icon">
  135.                                             {% if theme_config('zen-footer-col-headline-icon') is same as ('plusminus') %}{% sw_icon 'minus' %}{% else %}{% sw_icon 'arrow-head-up' style {'size': 'sm'} %}{% endif %}
  136.                                         </span>
  137.                                         </div>
  138.                                     {% endblock %}
  139.                                 </div>
  140.                             {% endblock %}
  141.                             {% block zen_layout_footer_navigation_social_content %}
  142.                                 <div id="collapseFooterSocial"
  143.                                      class="footer-column-content collapse js-footer-column-content {{ socialShowClass }}"
  144.                                      aria-labelledby="collapseFooterSocialTitle">
  145.                                     <div class="footer-column-content-inner">
  146.                                         {% sw_include '@Storefront/storefront/component/footer/zen-footer-social.html.twig' %}
  147.                                     </div>
  148.                                 </div>
  149.                             {% endblock %}
  150.                         </div>
  151.                     {% endif %}
  152.                 {% endblock %}
  153.                 {% block zen_layout_footer_navigation_custom %}
  154.                     {% if config('zenitPlatformSphere.config.customColumnActive') and config('zenitPlatformSphere.config.customColumnTitle') and config('zenitPlatformSphere.config.customColumnText') %}
  155.                         {% set customColumn = {
  156.                             'translated': {
  157.                                 title: "zentheme.sphere.content.customColumnTitle"|trans({"%placeholder%": config('zenitPlatformSphere.config.customColumnTitle')}),
  158.                                 text: "zentheme.sphere.content.customColumnText"|trans({"%placeholder%": config('zenitPlatformSphere.config.customColumnText')})
  159.                             }
  160.                         } %}
  161.                         <div class="{{ theme_config('zen-footer-custom-col') }} {{ theme_config('zen-footer-custom-col-xl') }} order-{{ theme_config('zen-footer-custom-order') }} footer-column js-footer-column footer-custom-column">
  162.                             {# showClass #}
  163.                             {% if theme_config('zen-footer-custom-collapse-state') %}
  164.                                 {% set customShowClass = 'show' %}
  165.                             {% endif %}
  166.                             {% block zen_layout_footer_navigation_custom_headline %}
  167.                                 <div class="footer-column-headline footer-headline js-footer-column-headline js-collapse-footer-column-trigger {{ customShowClass }}"
  168.                                      id="collapseFooterCustomTitle"
  169.                                      data-target="#collapseFooterCustom"
  170.                                      aria-expanded="true"
  171.                                      aria-controls="collapseFooterCustom"
  172.                                      role="listitem">
  173.                                     {{ customColumn.translated.title }}
  174.                                     {% block zen_layout_footer_navigation_custom_icons %}
  175.                                         <div class="footer-column-toggle">
  176.                                         <span class="footer-plus-icon">
  177.                                             {% if theme_config('zen-footer-col-headline-icon') is same as ('plusminus') %}{% sw_icon 'plus' %}{% else %}{% sw_icon 'arrow-head-down' style {'size': 'sm'} %}{% endif %}
  178.                                         </span>
  179.                                             <span class="footer-minus-icon">
  180.                                             {% if theme_config('zen-footer-col-headline-icon') is same as ('plusminus') %}{% sw_icon 'minus' %}{% else %}{% sw_icon 'arrow-head-up' style {'size': 'sm'} %}{% endif %}
  181.                                         </span>
  182.                                         </div>
  183.                                     {% endblock %}
  184.                                 </div>
  185.                             {% endblock %}
  186.                             {% block zen_layout_footer_navigation_custom_content %}
  187.                                 <div id="collapseFooterCustom"
  188.                                      class="footer-column-content collapse js-footer-column-content {{ customShowClass }}"
  189.                                      aria-labelledby="collapseFooterCustomTitle">
  190.                                     <div class="footer-column-content-inner">
  191.                                         {{ customColumn.translated.text|raw }}
  192.                                     </div>
  193.                                 </div>
  194.                             {% endblock %}
  195.                         </div>
  196.                     {% endif %}
  197.                 {% endblock %}
  198.                 {% block zen_layout_footer_navigation_hotline %}
  199.                     {% if theme_config('zen-footer-hotline-position') is same as ('column') %}
  200.                         <div class="{{ theme_config('zen-footer-hotline-col') }} {{ theme_config('zen-footer-hotline-col-xl') }} order-{{ theme_config('zen-footer-hotline-order') }} footer-column js-footer-column footer-hotline-column">
  201.                             {# footer logo #}
  202.                             {% if theme_config('zen-footer-logo-position') is same as ('hotline') %}
  203.                                 {% set hotlineHiddenClass = 'd-md-none' %}
  204.                             {% endif %}
  205.                             {% block zen_layout_footer_navigation_hotline_headline_logo %}
  206.                                 {# footer logo #}
  207.                                 {% if theme_config('zen-footer-logo-position') is same as ('hotline') %}
  208.                                     <div class="footer-column-headline footer-headline footer-logo">
  209.                                         {% sw_include '@Storefront/storefront/component/footer/zen-footer-logo.html.twig' %}
  210.                                     </div>
  211.                                 {% endif %}
  212.                             {% endblock %}
  213.                             {# showClass #}
  214.                             {% if theme_config('zen-footer-hotline-collapse-state') %}
  215.                                 {% set hotlineShowClass = 'show' %}
  216.                             {% endif %}
  217.                             {% block zen_layout_footer_navigation_hotline_headline %}
  218.                                 <div class="{{ hotlineHiddenClass }} footer-column-headline footer-headline js-footer-column-headline js-collapse-footer-column-trigger {{ hotlineShowClass }}"
  219.                                      id="collapseFooterHotlineTitle"
  220.                                      data-target="#collapseFooterHotline"
  221.                                      aria-expanded="true"
  222.                                      aria-controls="collapseFooterHotline"
  223.                                      role="listitem">
  224.                                     {{ 'footer.serviceHotlineHeadline'|trans|sw_sanitize }}
  225.                                     {% block zen_layout_footer_navigation_hotline_icons %}
  226.                                         <div class="footer-column-toggle">
  227.                                             <span class="footer-plus-icon">
  228.                                                 {% if theme_config('zen-footer-col-headline-icon') is same as ('plusminus') %}{% sw_icon 'plus' %}{% else %}{% sw_icon 'arrow-head-down' style {'size': 'sm'} %}{% endif %}
  229.                                             </span>
  230.                                             <span class="footer-minus-icon">
  231.                                                 {% if theme_config('zen-footer-col-headline-icon') is same as ('plusminus') %}{% sw_icon 'minus' %}{% else %}{% sw_icon 'arrow-head-up' style {'size': 'sm'} %}{% endif %}
  232.                                             </span>
  233.                                         </div>
  234.                                     {% endblock %}
  235.                                 </div>
  236.                             {% endblock %}
  237.                             {% block zen_layout_footer_navigation_hotline_content %}
  238.                                 <div id="collapseFooterHotline"
  239.                                      class="footer-column-content collapse js-footer-column-content {{ hotlineShowClass }}"
  240.                                      aria-labelledby="collapseFooterHotlineTitle">
  241.                                     <div class="footer-column-content-inner">
  242.                                         <p class="footer-contact-hotline">
  243.                                             {{ 'footer.serviceHotline'|trans|sw_sanitize }}
  244.                                         </p>
  245.                                     </div>
  246.                                     <div class="footer-contact-form">
  247.                                         {{ 'footer.serviceContactLink'|trans({
  248.                                             '%url%': path('frontend.cms.page', { id: config('core.basicInformation.contactPage') })
  249.                                         })|raw }}
  250.                                     </div>
  251.                                 </div>
  252.                             {% endblock %}
  253.                         </div>
  254.                     {% endif %}
  255.                 {% endblock %}
  256.                 {% block layout_footer_navigation_columns %}
  257.                     {% for root in page.footer.navigation.tree %}
  258.                         {% block layout_footer_navigation_column %}
  259.                             <div class="{{ theme_config('zen-footer-navigation-col') }} {{ theme_config('zen-footer-navigation-col-xl') }} order-{{ theme_config('zen-footer-navigation-order') }} footer-column js-footer-column">
  260.                                 {# showClass #}
  261.                                 {% if theme_config('zen-footer-navigation-collapse-state') %}
  262.                                     {% set navigationShowClass = 'show' %}
  263.                                 {% endif %}
  264.                                 {% block layout_footer_navigation_information_headline %}
  265.                                     <div class="footer-column-headline footer-headline js-collapse-footer-column-trigger {{ navigationShowClass }}"
  266.                                          id="collapseFooterTitle{{ loop.index }}"
  267.                                          data-target="#collapseFooter{{ loop.index }}"
  268.                                          aria-expanded="true"
  269.                                          aria-controls="collapseFooter{{ loop.index }}"
  270.                                          role="listitem">
  271.                                         {{ root.category.translated.name }}
  272.                                         {{ block('layout_footer_navigation_information_icons') }}
  273.                                     </div>
  274.                                 {% endblock %}
  275.                                 {% block layout_footer_navigation_information_content %}
  276.                                     <div id="collapseFooter{{ loop.index }}"
  277.                                          class="footer-column-content collapse js-footer-column-content {{ navigationShowClass }}"
  278.                                          aria-labelledby="collapseFooterTitle{{ loop.index }}">
  279.                                         <div class="footer-column-content-inner">
  280.                                             {% block layout_footer_navigation_information_links %}
  281.                                                 <ul class="list-unstyled">
  282.                                                     {% for treeItem in root.children %}
  283.                                                         {% set category = treeItem.category %}
  284.                                                         {% set name = category.translated.name %}
  285.                                                         {{ block('layout_footer_navigation_information_link_item') }}
  286.                                                     {% endfor %}
  287.                                                 </ul>
  288.                                             {% endblock %}
  289.                                         </div>
  290.                                     </div>
  291.                                 {% endblock %}
  292.                             </div>
  293.                         {% endblock %}
  294.                     {% endfor %}
  295.                 {% endblock %}
  296.             </div>
  297.         </div>
  298.     {% endblock %}
  299.     {% block layout_footer_bottom %}
  300.         <div class="footer-bottom">
  301.             <div class="container">
  302.                 {% block layout_footer_payment_shipping_logos %}
  303.                     <div class="footer-logos">
  304.                         {% block layout_footer_payment_logos %}
  305.                             {% for paymentMethod in page.salesChannelPaymentMethods %}
  306.                                 {% block layout_footer_payment_logo %}
  307.                                     {% if paymentMethod.media %}
  308.                                         <div class="footer-logo is-payment">
  309.                                             {% set attributes = {
  310.                                                 'class': 'img-fluid footer-logo-image',
  311.                                                 'alt': (paymentMethod.media.translated.alt ?: paymentMethod.translated.name),
  312.                                                 'title': (paymentMethod.media.translated.title ?: paymentMethod.translated.name)
  313.                                             } %}
  314.                                             {# ... enables lazy loading for images #}
  315.                                             {% if config('zenitPlatformSphere.config.lazyloading') %}
  316.                                                 {% set attributes = attributes|merge({ 'loading': 'lazy' }) %}
  317.                                             {% endif %}
  318.                                             {% sw_thumbnails 'footer-payment-image-thumbnails' with {
  319.                                                 media: paymentMethod.media,
  320.                                                 sizes: {
  321.                                                     'default': '100px'
  322.                                                 }
  323.                                             } %}
  324.                                         </div>
  325.                                     {% endif %}
  326.                                 {% endblock %}
  327.                             {% endfor %}
  328.                         {% endblock %}
  329.                         {% block layout_footer_shipping_logos %}
  330.                             {% for shippingMethod in page.salesChannelShippingMethods %}
  331.                                 {% block layout_footer_shipping_logo %}
  332.                                     {% if shippingMethod.media %}
  333.                                         <div class="footer-logo is-shipping">
  334.                                             {% set attributes = {
  335.                                                 'class': 'img-fluid footer-logo-image',
  336.                                                 'alt': (shippingMethod.media.translated.alt ?: shippingMethod.translated.name),
  337.                                                 'title': (shippingMethod.media.translated.title ?: shippingMethod.translated.name)
  338.                                             } %}
  339.                                             {# ... enables lazy loading for images #}
  340.                                             {% if config('zenitPlatformSphere.config.lazyloading') %}
  341.                                                 {% set attributes = attributes|merge({ 'loading': 'lazy' }) %}
  342.                                             {% endif %}
  343.                                             {% sw_thumbnails 'footer-shipping-image-thumbnails' with {
  344.                                                 media: shippingMethod.media,
  345.                                                 sizes: {
  346.                                                     'default': '100px'
  347.                                                 }
  348.                                             } %}
  349.                                         </div>
  350.                                     {% endif %}
  351.                                 {% endblock %}
  352.                             {% endfor %}
  353.                         {% endblock %}
  354.                     </div>
  355.                 {% endblock %}
  356.                 {# Social Media Icons #}
  357.                 {% block zen_layout_footer_social_media_logos %}
  358.                     {% if theme_config('zen-footer-social-position') is same as ('bottom') %}
  359.                         {% sw_include '@Storefront/storefront/component/footer/zen-footer-social.html.twig' %}
  360.                     {% endif %}
  361.                 {% endblock %}
  362.                 {% block zen_layout_footer_bottom_vat %}
  363.                     {% if theme_config('zen-footer-bottom-service-navigation') is not same as (false) %}
  364.                         {{ block('layout_footer_vat') }}
  365.                     {% endif %}
  366.                 {% endblock %}
  367.                 {% block zen_layout_footer_bottom_row %}
  368.                     <div class="footer-bottom-row row justify-content-between">
  369.                         {% block zen_layout_footer_bottom_left %}
  370.                             <div class="footer-bottom-left order-2 order-md-1 col-md-auto">
  371.                                 {% block layout_footer_copyright %}
  372.                                     <div class="footer-copyright">
  373.                                         {{ 'zentheme.general.copyright'|trans({
  374.                                             '%year%': 'now'|date('Y'),
  375.                                             '%shopname%': config('core.basicInformation.shopName'),
  376.                                             '%love%': '<span class="icon icon-heart icon-xs"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M16 29.104l-1.938-1.75c-6.875-6.25-11.375-10.313-11.375-15.375 0-4.125 3.188-7.313 7.313-7.313 2.313 0 4.563 1.125 6 2.813 1.438-1.688 3.688-2.813 6-2.813 4.125 0 7.313 3.188 7.313 7.313 0 5.063-4.5 9.188-11.375 15.438z"></path></svg></span>',
  377.                                             '%href%': 'https://themes.zenit.design',
  378.                                             '%title%': 'Made with love by Zenit Design',
  379.                                             '%name%': 'Zenit Design'
  380.                                         })|raw }}
  381.                                     </div>
  382.                                 {% endblock %}
  383.                             </div>
  384.                         {% endblock %}
  385.                         {% block zen_layout_footer_bottom_right %}
  386.                             <div class="footer-bottom-right order-1 order-md-2 col-md">
  387.                                 {% block layout_footer_service_menu %}
  388.                                     {% if theme_config('zen-footer-bottom-service-navigation') is not same as (false) %}
  389.                                         {{ block('layout_footer_service_menu_content') }}
  390.                                     {% else %}
  391.                                         {{ block('layout_footer_vat') }}
  392.                                     {% endif %}
  393.                                 {% endblock %}
  394.                             </div>
  395.                         {% endblock %}
  396.                     </div>
  397.                 {% endblock %}
  398.             </div>
  399.         </div>
  400.     {% endblock %}
  401. {% endblock %}