custom/plugins/ChespackTwoTheme/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. {# Rebuild footer layout and structure #}
  3. {% block layout_footer_inner_container %}
  4.     <div class="footer-wrapper does-it-deploy">
  5.         <div class="footer-middle">
  6.             <div class="container">
  7.                 {% block layout_footer_navigation %}
  8.                     <div id="footerColumns"
  9.                          class="row footer-columns"
  10.                          data-collapse-footer="true">
  11.                         {% block layout_footer_navigation_hotline %}
  12.                             <div class="col-12 col-sm-6 col-lg-3 footer-column">
  13.                                 <div class="footer-logo">
  14.                                     {% block layout_footerr_logo_image %}
  15.                                         <picture class="footer-logo-picture">
  16.                                             <img src="{{ asset('assets/logo/Chespack-logo_white.svg', '@ChespackTheme') |sw_encode_url }}"
  17.                                                  alt="{{ "header.logoLink"|trans|striptags }}"
  18.                                                  class="img-fluid footer-logo-main-img">
  19.                                         </picture>
  20.                                     {% endblock %}
  21.                                 </div>
  22.                                 <div class="footer-contacts">
  23.                                     <div class="footer-column-headline footer-headline footer-contacts-title">
  24.                                         {{ "chespackTwoTheme.footer.contactsTitle"|trans|sw_sanitize }}
  25.                                     </div>
  26.                                     {{ "chespackTheme.footer.contacts"|trans|sw_sanitize }}
  27.                                 </div>
  28.                                 {% block layout_footer_social %}
  29.                                     <div class="footer-social order-3 order-md-2">
  30.                                         {% if 'chespackTheme.social.facebook'|trans|sw_sanitize != '' %}
  31.                                             <a href="{{ 'chespackTheme.social.facebook'|trans|sw_sanitize }}" class="btn btn-icon" title="Facebook" target="_blank">
  32.                                                 {% sw_icon 'facebook' style {
  33.                                                     'namespace': 'ChespackTwoTheme'
  34.                                                 } %}
  35.                                             </a>
  36.                                         {% endif %}
  37. {#                                        OK#}
  38.                                         {% if 'chespackTheme.social.twitter'|trans|sw_sanitize != '' %}
  39.                                             <a href="{{ 'chespackTheme.social.twitter'|trans|sw_sanitize }}" class="btn btn-icon" title="Twitter" target="_blank">
  40.                                                 {% sw_icon 'twitter' style {
  41.                                                     'namespace': 'ChespackTwoTheme'
  42.                                                 } %}
  43.                                             </a>
  44.                                         {% endif %}
  45. {#                                        OK#}
  46.                                         {% if 'chespackTheme.social.linkedin'|trans|sw_sanitize != '' %}
  47.                                             <a href="{{ 'chespackTheme.social.linkedin'|trans|sw_sanitize }}" class="btn btn-icon" title="Linkedin" target="_blank">
  48.                                                 {% sw_icon 'linkedin' style {
  49.                                                     'namespace': 'ChespackTwoTheme'
  50.                                                 } %}
  51.                                             </a>
  52.                                         {% endif %}
  53.                                         {% if 'chespackTheme.social.google'|trans|sw_sanitize != '' %}
  54.                                             <a href="{{ 'chespackTheme.social.google'|trans|sw_sanitize }}" class="btn btn-icon" title="Google+" target="_blank">
  55.                                                 {% sw_icon 'google' style {
  56.                                                     'namespace': 'ChespackTwoTheme'
  57.                                                 } %}
  58.                                             </a>
  59.                                         {% endif %}
  60. {#                                        OK#}
  61.                                         {% if 'chespackTheme.social.youtube'|trans|sw_sanitize != '' %}
  62.                                             <a href="{{ 'chespackTheme.social.youtube'|trans|sw_sanitize }}" class="btn btn-icon" title="Youtube" target="_blank">
  63.                                                 {% sw_icon 'youtube' style {
  64.                                                     'namespace': 'ChespackTwoTheme'
  65.                                                 } %}
  66.                                             </a>
  67.                                         {% endif %}
  68. {#                                        OK#}
  69.                                         {% if 'chespackTheme.social.instagram'|trans|sw_sanitize != '' %}
  70.                                             <a href="{{ 'chespackTheme.social.instagram'|trans|sw_sanitize }}" class="btn btn-icon" title="Instagram" target="_blank">
  71.                                                 {% sw_icon 'instagram' style {
  72.                                                     'namespace': 'ChespackTwoTheme'
  73.                                                 } %}
  74.                                             </a>
  75.                                         {% endif %}
  76.                                     </div>
  77.                                 {% endblock %}
  78.                             </div>
  79.                         {% endblock %}
  80.                         {% block layout_footer_navigation_columns %}
  81.                             {% for root in page.footer.navigation.tree %}
  82.                                 {% block layout_footer_navigation_column %}
  83.                                     <div class="col-sm-6{% if loop.index == 2 %} col-lg-5 offset-lg-1{% else %} col-lg-3{% endif %} footer-column position-relative">
  84.                                         {% block layout_footer_navigation_information_headline %}
  85.                                             {% if loop.index == 1 %}
  86.                                                 {# Chat CTA #}
  87.                                                 <div class="footer-column__chat-cta">
  88.                                                     <a class="btn btn-secondary align-content-center pl-2 pr-2" href="{{ 'chespackTheme.chatWidget.cta-action'|trans|sw_sanitize }}">
  89.                                                         <span>{{ 'chespackTheme.chatWidget.cta-text'|trans|sw_sanitize }}</span>
  90.                                                     </a>
  91.                                                 </div>
  92.                                                 <div class="footer-column-headline footer-headline">
  93.                                                     {{ root.category.translated.name }}
  94.                                                 </div>
  95.                                             {% endif %}
  96.                                         {% endblock %}
  97.                                         {% block layout_footer_navigation_information_content %}
  98.                                             <div id="collapseFooter{{ loop.index }}"
  99.                                                  class="footer-column-content">
  100.                                                 <div class="footer-column-content-inner">
  101.                                                     {% if loop.index == 2 %}
  102.                                                         {# Newsletter form #}
  103.                                                         {% block layout_footer_navigation_newsletter_content %}
  104.                                                             {% sw_include '@Storefront/storefront/layout/footer/footer-newsletter.html.twig' %}
  105.                                                         {% endblock %}
  106.                                                     {% endif %}
  107.                                                     {% block layout_footer_navigation_information_links %}
  108.                                                         {% if loop.index == 1 %}
  109.                                                             <ul class="list-unstyled">
  110.                                                                 {% for treeItem in root.children %}
  111.                                                                     {% set category = treeItem.category %}
  112.                                                                     {% set name = category.translated.name %}
  113.                                                                     {# @deprecated tag:v6.5.0 - Use "category.translated.externalLink" directly or category_url function instead. #}
  114.                                                                     {% set externalLink = category.translated.externalLink %}
  115.                                                                     {% block layout_footer_navigation_information_link_item %}
  116.                                                                         <li class="footer-link-item">
  117.                                                                             {% block layout_footer_navigation_information_link %}
  118.                                                                                 {% if category.type == 'folder' %}
  119.                                                                                     <div>{{ name }}</div>
  120.                                                                                 {% else %}
  121.                                                                                     <a class="footer-link"
  122.                                                                                        href="{{ category_url(category) }}"
  123.                                                                                        {% if category_linknewtab(category) %}target="_blank"{% endif %}
  124.                                                                                        title="{{ name }}">
  125.                                                                                         {{ name }}
  126.                                                                                     </a>
  127.                                                                                 {% endif %}
  128.                                                                             {% endblock %}
  129.                                                                         </li>
  130.                                                                     {% endblock %}
  131.                                                                 {% endfor %}
  132.                                                             </ul>
  133.                                                         {% endif %}
  134.                                                     {% endblock %}
  135.                                                 </div>
  136.                                             </div>
  137.                                         {% endblock %}
  138.                                     </div>
  139.                                 {% endblock %}
  140.                             {% endfor %}
  141.                         {% endblock %}
  142.                         <div class="col-12 footer-column d-flex justify-content-end">
  143.                             <picture class="footer-logo is-certificate">
  144.                                 <img src="{{ asset('assets/images/ISO-9001.png', '@ChespackTheme') |sw_encode_url }}"
  145.                                      class="img-fluid"
  146.                                      alt="ISO-9001">
  147.                             </picture>
  148.                             <picture class="footer-logo is-certificate">
  149.                                 <img src="{{ asset('assets/images/ISO-14001.png', '@ChespackTheme') |sw_encode_url }}"
  150.                                      class="img-fluid"
  151.                                      alt="ISO-14001">
  152.                             </picture>
  153.                         </div>
  154.                     </div>
  155.                 {% endblock %}
  156.             </div>
  157.             {# Footer service menu and creeator link #}
  158.             {% block layout_footer_bottom %}
  159.                 <div class="footer-bottom">
  160.                     <div class="container d-flex justify-content-between align-items-center flex-column flex-md-row">
  161.                         {# Copyright and payment #}
  162.                         {% block layout_footer_copy %}
  163.                             <div class="d-flex justify-content-between align-items-center footer-copyright-wrapper flex-column flex-md-row">
  164.                                 {% block layout_footer_copyright %}
  165.                                     <div class="footer-copyright">
  166.                                         {{ "footer.copyrightInfo"|trans|sw_sanitize }}
  167.                                     </div>
  168.                                 {% endblock %}
  169.                             </div>
  170.                         {% endblock %}
  171.                         {% block layout_footer_service_menu %}
  172.                             {% apply spaceless %}
  173.                                 <ul class="footer-service-menu-list list-unstyled">
  174.                                     {% for serviceMenuItem in page.header.serviceMenu %}
  175.                                         {% block layout_footer_service_menu_item %}
  176.                                             <li class="footer-service-menu-item">
  177.                                                 <a class="footer-service-menu-link"
  178.                                                    href="{{ category_url(serviceMenuItem) }}"
  179.                                                    {% if category_linknewtab(serviceMenuItem) %}target="_blank"{% endif %}
  180.                                                    title="{{ serviceMenuItem.translated.name }}">
  181.                                                     {{ serviceMenuItem.translated.name }}
  182.                                                 </a>
  183.                                             </li>
  184.                                         {% endblock %}
  185.                                     {% endfor %}
  186.                                 </ul>
  187.                             {% endapply %}
  188.                         {% endblock %}
  189.                         {% block layout_footer_creator %}
  190.                             <p>{{ "chespackTheme.footer.creator"|trans|sw_sanitize }}</p>
  191.                         {% endblock %}
  192.                     </div>
  193.                 </div>
  194.             {% endblock %}
  195.         </div><!-- footer-middle -->
  196.     </div><!-- footer-wrapper -->
  197.     {# Added chat widget code #}
  198.     {% if config('ChespackTheme.config.activateChatWidget') and config('ChespackTheme.config.chatWidgetKey') != '' %}
  199.         {% block layout_footer_chat_widget %}
  200.             <a href="javascript:void(Tawk_API.toggle())" class="chat-widget-button">
  201.                 <img src="{{ asset('assets/images/chat-to-charlie-sm.png', '@ChespackTheme') |sw_encode_url }}"
  202.                      alt="{{ "header.logoLink"|trans|striptags }}">
  203.             </a>
  204.         {% endblock %}
  205.     {% endif %}
  206. {% endblock %}
  207. {% block layout_footer_js %}
  208.     {# Include Masonry library from CDN #}
  209.     <script src="https://cdnjs.cloudflare.com/ajax/libs/masonry/4.2.2/masonry.pkgd.min.js"></script>
  210. {% endblock %}