custom/plugins/ChespackTheme/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">
  5.         {% block layout_footer_top %}
  6.             <div class="footer-top bg-cl-gray-300">
  7.                 {# Newsletter form #}
  8.                 {% block layout_footer_navigation_newsletter_content %}
  9.                     <div class="footer-column-content container">
  10.                         {% block layout_footer_newsletter %}
  11.                             <div class="cms-block cms-block-newsletter">
  12.                                 <div class="cms-element-form form-newsletter row">
  13.                                     <div class="col-12 col-md-6 col-lg-4">
  14.                                         <h3 class="cl-gray-dark pt-2">{{ 'chespackTheme.newsletter.title'|trans|sw_sanitize }}</h3>
  15.                                         <p class="cl-gray m-0 col-md-10 p-0">{{ 'chespackTheme.newsletter.label'|trans|sw_sanitize }}</p>
  16.                                     </div>
  17.                                     <form action="{{ path('frontend.form.newsletter.register.handle') }}"
  18.                                           method="post"
  19.                                           data-form-csrf-handler="true"
  20.                                           data-form-validation="true"
  21.                                           class="newsletter-form col-12 col-md-6 col-lg-8">
  22.                                         {% block cms_form_newsletter_hidden_fields %}
  23.                                             <div class="form-hidden-fields">
  24.                                                 {% block cms_form_newsletter_csrf %}
  25.                                                     {{ sw_csrf('frontend.form.newsletter.register.handle') }}
  26.                                                 {% endblock %}
  27.                                                 {% set formViolations = app.request.get('errors') %}
  28.                                                 {#based on a POST req. to: Controller/NewsletterController.php#}
  29.                                                 <input type="hidden" name="option" value="subscribe"/>
  30.                                                 <input type="submit" class="submit--hidden d-none" />
  31.                                             </div>
  32.                                         {% endblock %}
  33.                                         <div class="form-row m-0">
  34.                                             <div class="form-group mb-0 w-100">
  35.                                                 <label class="form-label hidden" for="footerNewsletterMail"></label>
  36.                                                 <div class="input-group nowrap">
  37.                                                     <input type="email"
  38.                                                            class="form-control{% if formViolations.getViolations('/email') %} is-invalid{% endif %}"
  39.                                                            id="footerNewsletterMail"
  40.                                                            placeholder="{{ 'chespackTheme.newsletter.placeholder'|trans|sw_sanitize }}"
  41.                                                            name="email"
  42.                                                            required="required"
  43.                                                            value="{{ data.get('email') }}">
  44.                                                     <div class="newsletter-submit input-group-append">
  45.                                                         <button type="submit" class="btn btn-primary btn-newsletter">
  46.                                                             <span class="btn-newsletter-title">{{ 'chespackTheme.newsletter.btn'|trans|sw_sanitize }}</span>
  47.                                                             {% sw_icon 'arrow-head-right' %}
  48.                                                         </button>
  49.                                                     </div>
  50.                                                 </div>
  51.                                                 {% if formViolations.getViolations( '/email' ) is not empty %}
  52.                                                     {% sw_include '@Storefront/storefront/utilities/form-violation.html.twig' with {
  53.                                                         violationPath: ('/email')
  54.                                                     } %}
  55.                                                 {% endif %}
  56.                                             </div>
  57.                                         </div>
  58.                                         {% block swag_cms_extensions_form_content_captcha %}
  59.                                             {% sw_include '@Storefront/storefront/component/captcha/base.html.twig' with {
  60.                                                 'additionalClass' : 'col-md-12',
  61.                                                 'formId': form.id
  62.                                             } %}
  63.                                         {% endblock %}
  64.                                     </form>
  65.                                 </div>
  66.                             </div>
  67.                         {% endblock %}
  68.                     </div>
  69.                 {% endblock %}
  70.             </div>
  71.         {% endblock %}
  72.         <div class="footer-middle">
  73.             {% block layout_footer_waves %}
  74.                 <div class="footer-waves"></div>
  75.             {% endblock %}
  76.             <div class="container">
  77.                 {% block layout_footer_navigation %}
  78.                     <div id="footerColumns"
  79.                          class="row footer-columns"
  80.                          data-collapse-footer="true">
  81.                         {% block layout_footer_navigation_hotline %}
  82.                             <div class="col-12 col-lg-3 footer-column">
  83.                                 <div class="footer-logo">
  84.                                     {% block layout_footerr_logo_image %}
  85.                                         <picture class="footer-logo-picture">
  86.                                             <img src="{{ asset('assets/logo/Chespack-logo_white.svg', '@ChespackTheme') |sw_encode_url }}"
  87.                                                  alt="{{ "header.logoLink"|trans|striptags }}"
  88.                                                  class="img-fluid footer-logo-main-img">
  89.                                         </picture>
  90.                                     {% endblock %}
  91.                                 </div>
  92.                                 {% block layout_footer_navigation_hotline_content %}
  93.                                     <div class="d-none footer-column-headline footer-headline"
  94.                                          id="collapseFooterHotlineTitle">
  95.                                         {{ 'footer.serviceHotlineHeadline'|trans|sw_sanitize }}
  96.                                     </div>
  97.                                     <div id="collapseFooterHotline"
  98.                                          class="footer-column-content footer-contact">
  99.                                         <div class="footer-column-content-inner pt-4">
  100.                                             <p class="footer-contact-hotline">
  101.                                                 {{ 'footer.serviceHotline'|trans|sw_sanitize }}
  102.                                             </p>
  103.                                         </div>
  104.                                     </div>
  105.                                 {% endblock %}
  106.                             </div>
  107.                         {% endblock %}
  108.                         {% block layout_footer_navigation_columns %}
  109.                             {% for root in page.footer.navigation.tree %}
  110.                                 {% block layout_footer_navigation_column %}
  111.                                     <div class="{% if loop.index == 3 %}col-12{% else %}col-sm-6{% endif %} col-lg-3 footer-column">
  112.                                         {% block layout_footer_navigation_information_headline %}
  113.                                             <div class="footer-column-headline footer-headline">
  114.                                                 {{ root.category.translated.name }}
  115.                                             </div>
  116.                                         {% endblock %}
  117.                                         {% block layout_footer_navigation_information_content %}
  118.                                             <div id="collapseFooter{{ loop.index }}"
  119.                                                  class="footer-column-content">
  120.                                                 <div class="footer-column-content-inner">
  121.                                                     {% block layout_footer_navigation_information_links %}
  122.                                                         <ul class="list-unstyled">
  123.                                                             {% for treeItem in root.children %}
  124.                                                                 {% set category = treeItem.category %}
  125.                                                                 {% set name = category.translated.name %}
  126.                                                                 {# @deprecated tag:v6.5.0 - Use "category.translated.externalLink" directly or category_url function instead. #}
  127.                                                                 {% set externalLink = category.translated.externalLink %}
  128.                                                                 {% block layout_footer_navigation_information_link_item %}
  129.                                                                     <li class="footer-link-item">
  130.                                                                         {% block layout_footer_navigation_information_link %}
  131.                                                                             {% if category.type == 'folder' %}
  132.                                                                                 <div>{{ name }}</div>
  133.                                                                             {% else %}
  134.                                                                                 <a class="footer-link"
  135.                                                                                    href="{{ category_url(category) }}"
  136.                                                                                    {% if category_linknewtab(category) %}target="_blank"{% endif %}
  137.                                                                                    title="{{ name }}">
  138.                                                                                     {{ name }}
  139.                                                                                 </a>
  140.                                                                             {% endif %}
  141.                                                                         {% endblock %}
  142.                                                                     </li>
  143.                                                                 {% endblock %}
  144.                                                             {% endfor %}
  145.                                                         </ul>
  146.                                                     {% endblock %}
  147.                                                     {% if loop.index == 2 %}
  148.                                                         <picture class="footer-logo is-certificate">
  149.                                                             <img src="{{ asset('assets/images/ISO-9001.png', '@ChespackTheme') |sw_encode_url }}"
  150.                                                                  class="img-fluid">
  151.                                                         </picture>
  152.                                                         <picture class="footer-logo is-certificate">
  153.                                                             <img src="{{ asset('assets/images/ISO-14001.png', '@ChespackTheme') |sw_encode_url }}"
  154.                                                                  class="img-fluid">
  155.                                                         </picture>
  156.                                                     {% endif %}
  157.                                                     {% if loop.index == 3 %}
  158.                                                         <div class="footer-contacts">
  159.                                                             {{ "chespackTheme.footer.contacts"|trans|sw_sanitize }}
  160.                                                         </div>
  161.                                                     {% endif %}
  162.                                                 </div>
  163.                                             </div>
  164.                                         {% endblock %}
  165.                                     </div>
  166.                                 {% endblock %}
  167.                             {% endfor %}
  168.                         {% endblock %}
  169.                     </div>
  170.                 {% endblock %}
  171.                 {# Copyright and payment #}
  172.                 {% block layout_footer_copy %}
  173.                     <div class="d-flex justify-content-between align-items-center footer-copyright-wrapper flex-column flex-md-row">
  174.                         {% block layout_footer_copyright %}
  175.                             <div class="footer-copyright">
  176.                                 {{ "footer.copyrightInfo"|trans|sw_sanitize }}
  177.                             </div>
  178.                         {% endblock %}
  179.                         {% block layout_footer_social %}
  180.                             <div class="footer-social order-3 order-md-2">
  181.                                 {% if 'chespackTheme.social.facebook'|trans|sw_sanitize != '' %}
  182.                                     <a href="{{ 'chespackTheme.social.facebook'|trans|sw_sanitize }}" class="btn btn-icon" title="Facebook" target="_blank">
  183.                                         {% sw_icon 'facebook' style {
  184.                                             'namespace': 'ChespackTheme'
  185.                                         } %}
  186.                                     </a>
  187.                                 {% endif %}
  188.                                 {% if 'chespackTheme.social.twitter'|trans|sw_sanitize != '' %}
  189.                                     <a href="{{ 'chespackTheme.social.twitter'|trans|sw_sanitize }}" class="btn btn-icon" title="Twitter" target="_blank">
  190.                                         {% sw_icon 'twitter' style {
  191.                                             'namespace': 'ChespackTheme'
  192.                                         } %}
  193.                                     </a>
  194.                                 {% endif %}
  195.                                 {% if 'chespackTheme.social.linkedin'|trans|sw_sanitize != '' %}
  196.                                     <a href="{{ 'chespackTheme.social.linkedin'|trans|sw_sanitize }}" class="btn btn-icon" title="Linkedin" target="_blank">
  197.                                         {% sw_icon 'linkedin' style {
  198.                                             'namespace': 'ChespackTheme'
  199.                                         } %}
  200.                                     </a>
  201.                                 {% endif %}
  202.                                 {% if 'chespackTheme.social.google'|trans|sw_sanitize != '' %}
  203.                                     <a href="{{ 'chespackTheme.social.google'|trans|sw_sanitize }}" class="btn btn-icon" title="Google+" target="_blank">
  204.                                         {% sw_icon 'google-plus' style {
  205.                                             'namespace': 'ChespackTheme'
  206.                                         } %}
  207.                                     </a>
  208.                                 {% endif %}
  209.                                 {% if 'chespackTheme.social.youtube'|trans|sw_sanitize != '' %}
  210.                                     <a href="{{ 'chespackTheme.social.youtube'|trans|sw_sanitize }}" class="btn btn-icon" title="Youtube" target="_blank">
  211.                                         {% sw_icon 'youtube' style {
  212.                                             'namespace': 'ChespackTheme'
  213.                                         } %}
  214.                                     </a>
  215.                                 {% endif %}
  216.                                 {% if 'chespackTheme.social.instagram'|trans|sw_sanitize != '' %}
  217.                                     <a href="{{ 'chespackTheme.social.instagram'|trans|sw_sanitize }}" class="btn btn-icon" title="Instagram" target="_blank">
  218.                                         {% sw_icon 'instagram' style {
  219.                                             'namespace': 'ChespackTheme'
  220.                                         } %}
  221.                                     </a>
  222.                                 {% endif %}
  223.                             </div>
  224.                         {% endblock %}
  225.                         {% block layout_footer_payments %}
  226.                             <div class="footer-payment-logos order-2 order-md-3">
  227.                                 <picture class="footer-logo is-payment">
  228.                                     <img src="{{ asset('assets/images/payments.png', '@ChespackTheme') |sw_encode_url }}"
  229.                                          class="img-fluid">
  230.                                 </picture>
  231.                             </div>
  232.                         {% endblock %}
  233.                     </div>
  234.                 {% endblock %}
  235.             </div>
  236.         </div><!-- footer-middle -->
  237.     </div><!-- footer-wrapper -->
  238.     {# Footer service menu and creeator link #}
  239.     {% block layout_footer_bottom %}
  240.         <div class="footer-bottom">
  241.             <div class="container d-flex justify-content-between align-items-center flex-column flex-md-row">
  242.                 {% block layout_footer_service_menu %}
  243.                     {% apply spaceless %}
  244.                         <ul class="footer-service-menu-list list-unstyled">
  245.                             {% for serviceMenuItem in page.header.serviceMenu %}
  246.                                 {% block layout_footer_service_menu_item %}
  247.                                     <li class="footer-service-menu-item">
  248.                                         <a class="footer-service-menu-link"
  249.                                            href="{{ category_url(serviceMenuItem) }}"
  250.                                            {% if category_linknewtab(serviceMenuItem) %}target="_blank"{% endif %}
  251.                                            title="{{ serviceMenuItem.translated.name }}">
  252.                                             {{ serviceMenuItem.translated.name }}
  253.                                         </a>
  254.                                     </li>
  255.                                 {% endblock %}
  256.                             {% endfor %}
  257.                         </ul>
  258.                     {% endapply %}
  259.                 {% endblock %}
  260.                 {% block layout_footer_creator %}
  261.                     <p>{{ "chespackTheme.footer.creator"|trans|sw_sanitize }}</p>
  262.                 {% endblock %}
  263.             </div>
  264.         </div>
  265.     {% endblock %}
  266.     {# Added chat widget code #}
  267.     {% if config('ChespackTheme.config.activateChatWidget') and config('ChespackTheme.config.chatWidgetKey') != '' %}
  268.         {% block layout_footer_chat_widget %}
  269.             <a href="javascript:void(Tawk_API.toggle())" class="chat-widget-button">
  270.                 <img src="{{ asset('assets/images/chat-to-charlie-sm.png', '@ChespackTheme') |sw_encode_url }}"
  271.                      alt="{{ "header.logoLink"|trans|striptags }}">
  272.             </a>
  273.         {% endblock %}
  274.     {% endif %}
  275. {% endblock %}