templates/front/includes/footer.twig line 1

Open in your IDE?
  1. {% set settings = get_settings_data() %}
  2. {% set citiesMenu = get_footer_cities_menu(app.request.locale) %}
  3. {% set footerMenu = get_footer_menu(app.request.locale) %}
  4. <footer class="pb-90 parent-container">
  5.     <div class="container-xxl main-footer pb-90">
  6.         <div class="row">
  7.             <div class="logo py-4">
  8.                 <a href="#"><img src="{{ (asset('assets/img/logo.png'))|imagine_filter('full') }}" alt=""></a>
  9.             </div>
  10.             <div class="col-12 col-lg-3 contact f-34 ">
  11.                 <p class="f-34">Skontaktuj się z nami</p>
  12.                 <div class="row">
  13.                     <div class="col-auto d-flex align-items-center">
  14.                         <a href="tel:{{ settings.phone|default('42 307 02 01') }}" class="icon"><img src="{{ asset('assets/img/phone.svg') }}" alt="" class=""></a>
  15.                     </div>
  16.                     <div class="col-auto">
  17.                         <a href="tel:{{ settings.phone|default('42 307 02 01') }}">{{ settings.phone|default('42 307 02 01') }}</a>
  18.                     </div>
  19.                 </div>
  20.                 <div class="row">
  21.                     <div class="col-auto d-flex align-items-center">
  22.                         <a href="mailto:{{ settings.email|default('biuro@hfood.pl') }}" class="icon">
  23.                             <img src="{{ asset('assets/img/mail.svg') }}" alt="" class="icon"></a>
  24.                     </div>
  25.                     <div class="col-auto">
  26.                         <a href="mailto:{{ settings.email|default('biuro@hfood.pl') }}">{{ settings.email|default('biuro@hfood.pl') }}</a>
  27.                     </div>
  28.                 </div>
  29.                 <div class="pt-4">
  30.                     <p>Biuro Obsługi Klienta:</p>
  31.                     <p>pn - pt, {{ settings.pnPt|default('7:00 - 17:00') }}</p>
  32.                     <p>nd, {{ settings.nd|default('8:00 - 14:00') }}</p>
  33.                 </div>
  34.                 <div class="f-13 text-grey footer-star pt-60 mx-auto mx-lg-0 mt-3">
  35.                     {{ settings.text.bottom.first|default('*Nr decyzji PAŃSTWOWEGO INSPEKTORATU SANITARNEGO odbioru sanitarnego dla zakładu Cateringu Dietetycznego Healthy Food') }}
  36.                     <p class="f-13 mt-4">{{ settings.text.bottom.second|default('ZNS.........') }}</p>
  37.                 </div>
  38.             </div>
  39.             {% for footerMenuBlock in footerMenu %}
  40.                 {% if loop.index >= 4 %}
  41.                 {% else %}
  42.                     <div class="col-12 col-sm-4 col-lg-3">
  43.                         <ul>
  44.                             {% for footerMenuElement in footerMenuBlock %}
  45.                                 {% set anchorUrl = footerMenuElement.url is not empty ? footerMenuElement.url : footerMenuElement.customUrl %}
  46.                                 <li><a href="{{ anchorUrl|default('#') }}">{{ footerMenuElement.title|default('') }}</a></li>
  47.                             {% endfor %}
  48.                         </ul>
  49.                     </div>
  50.                 {% endif %}
  51.             {% endfor %}
  52.             <div class="row justify-content-between pt-70">
  53.                 <div class="col-12 col-md-6 mb-4 mb-md-0">
  54.                     {% if settings is not null %}
  55.                         {% if
  56.                             settings.appStore is not empty or
  57.                             settings.googlePlay is not empty
  58.                         %}
  59.                             <div class="mb-3">
  60.                                 <span href="#" class="f-30 fw-bold text-primary">Pobierz aplikację</span>
  61.                             </div>
  62.                         {% endif %}
  63.                         <div class="app-icons">
  64.                             {% if settings.appStore is not empty %}
  65.                                 <a href="{{ settings.appStore|default('#') }}" target="blank">
  66.                                     <img src="{{ (asset('assets/img/app-store-icon.png'))|imagine_filter('full') }}" alt="" class="img-fluid">
  67.                                 </a>
  68.                             {% endif %}
  69.                             {% if settings.googlePlay is not empty %}
  70.                                 <a href="{{ settings.googlePlay|default('#') }}" target="blank">
  71.                                     <img src="{{ (asset('assets/img/google-play-icon.png'))|imagine_filter('full') }}" alt="" class="img-fluid">
  72.                                 </a>
  73.                             {% endif %}
  74.                         </div>
  75.                     {% endif %}
  76.                 </div>
  77.                 <div class="col-12 col-md-6">
  78.                     {% if settings is not null %}
  79.                         {% if
  80.                                 settings.facebook is not empty or
  81.                                 settings.instagram is not empty or
  82.                                 settings.linkedin is not empty or
  83.                                 settings.youTube is not empty or
  84.                                 settings.pinterest is not empty
  85.                         %}
  86.                             <div class="d-flex mb-3 justify-content-md-end">
  87.                                 <span href="#" class="ms-lg-auto f-25 fw-light text-primary">Obserwuj nas w social media</span>
  88.                             </div>
  89.                         {% endif %}
  90.                         <div class="social-icons d-flex justify-content-md-end">
  91.                             {% if settings.facebook is not empty %}
  92.                                 <a href="{{ settings.facebook|default('#') }}" class="ms-lg-auto" target="blank">
  93.                                     <img src="{{ asset('assets/img/fb.svg') }}" alt="" class="img-fluid mx-2">
  94.                                 </a>
  95.                             {% endif %}
  96.                             {% if settings.instagram is not empty %}
  97.                                 <a href="{{ settings.instagram|default('#') }}" target="blank">
  98.                                     <img src="{{ asset('assets/img/ig.svg') }}" alt="" class="img-fluid mx-2">
  99.                                 </a>
  100.                             {% endif %}
  101.                             {% if settings.linkedin is not empty %}
  102.                                 <a href="{{ settings.linkedin|default('#') }}" target="blank">
  103.                                     <img src="{{ asset('assets/img/linkedin.svg') }}" alt="" class="img-fluid mx-2">
  104.                                 </a>
  105.                             {% endif %}
  106.                             {% if settings.youTube is not empty %}
  107.                                 <a href="{{ settings.youTube|default('#') }}" target="blank">
  108.                                     <img src="{{ asset('assets/img/yt.svg') }}" alt="" class="img-fluid mx-2">
  109.                                 </a>
  110.                             {% endif %}
  111.                             {% if settings.pinterest is not empty %}
  112.                                 <a href="{{ settings.pinterest|default('#') }}" target="blank">
  113.                                     <img src="{{ asset('assets/img/pinterest.svg') }}" alt="" class="img-fluid mx-2">
  114.                                 </a>
  115.                             {% endif %}
  116.                             {% if settings.tiktok is not empty %}
  117.                                 <a href="{{ settings.tiktok|default('#') }}" target="blank">
  118.                                     <img src="{{ asset('assets/img/tiktok.png') }}" alt="" class="img-fluid mx-2">
  119.                                 </a>
  120.                             {% endif %}
  121.                         </div>
  122.                     {% endif %}
  123.                 </div>
  124.                 <div class="col-12">
  125.                     <p class="fw-bolder mt-4 f-13 text-center w-100">
  126.                         © 2022 HFOOD | <a href="https://jelly.solutions/" target="blank">BY JELLY SOLUTIONS</a>
  127.                     </p>
  128.                 </div>
  129.             </div>
  130.         </div>
  131.     </div>
  132.     <section class="parent-container pt-3 pt-xxl-5 pb-90">
  133.         <div class="container-fluid pb-90">
  134.             <div class="row justify-content-center pb-5">
  135.                 {% for index, cityMenuBlocks in citiesMenu %}
  136.                     {% if index == 0 %}
  137.                         {% for cityMenuBlock in cityMenuBlocks %}
  138.                             {% set lastElement = cityMenuBlocks|last %}
  139.                             {% if cityMenuBlock == lastElement %}
  140.                                 {% set lastElementTab = get_last_element_tab_menu(lastElement) %}
  141.                                 <div class="col-md-2 col-10">
  142.                                     <ul class="ps-md-0 text-center row-mobile">
  143.                                         <div class="col-6-mobile">
  144.                                             {% for index, cityMenuElement in lastElementTab.first|default([]) %}
  145.                                                 <li>
  146.                                                     <a href="{{ cityMenuElement.url|default('#') }}">{{ cityMenuElement.title }}</a>
  147.                                                 </li>
  148.                                             {% endfor %}
  149.                                         </div>
  150.                                         <div class="col-6-mobile">
  151.                                             {% for index, cityMenuElement in lastElementTab.second|default([]) %}
  152.                                                 <li>
  153.                                                     <a href="{{ cityMenuElement.url|default('#') }}">{{ cityMenuElement.title }}</a>
  154.                                                 </li>
  155.                                             {% endfor %}
  156.                                         </div>
  157.                                     </ul>
  158.                                 </div>
  159.                             {% else %}
  160.                                 <div class="col-md-2 col-5">
  161.                                     <ul class="ps-md-0 text-center">
  162.                                         {% for cityMenuElement in cityMenuBlock %}
  163.                                             <li>
  164.                                                 <a href="{{ cityMenuElement.url|default('#') }}">{{ cityMenuElement.title }}</a>
  165.                                             </li>
  166.                                         {% endfor %}
  167.                                     </ul>
  168.                                 </div>
  169.                             {% endif %}
  170.                         {% endfor %}
  171.                     {% endif %}
  172.                     {% if index == 1 %}
  173.                         <div class="row justify-content-center d-none more-cities" data-wow-offset="-5000">
  174.                             {% for cityMenuBlock in cityMenuBlocks %}
  175.                                 {% set lastElement = cityMenuBlocks|last %}
  176.                                 {% if cityMenuBlock == lastElement %}
  177.                                     <div class="col-md-2 col-10">
  178.                                         <ul class="ps-md-0 text-center row-mobile">
  179.                                             <div class="col-6-mobile">
  180.                                                 {% for index, cityMenuElement in lastElement %}
  181.                                                     {% if index == 0 or index == 1 %}
  182.                                                         <li>
  183.                                                             <a href="{{ cityMenuElement.url|default('#') }}">{{ cityMenuElement.title }}</a>
  184.                                                         </li>
  185.                                                     {% endif %}
  186.                                                 {% endfor %}
  187.                                             </div>
  188.                                             <div class="col-6-mobile">
  189.                                                 {% for index, cityMenuElement in lastElement %}
  190.                                                     {% if index == 2 or index == 3 %}
  191.                                                         <li>
  192.                                                             <a href="{{ cityMenuElement.url|default('#') }}">{{ cityMenuElement.title }}</a>
  193.                                                         </li>
  194.                                                     {% endif %}
  195.                                                 {% endfor %}
  196.                                             </div>
  197.                                         </ul>
  198.                                     </div>
  199.                                 {% else %}
  200.                                     <div class="col-md-2 col-5">
  201.                                         <ul class="ps-0 text-center uncomplete-mobile">
  202.                                             {% for cityMenuElement in cityMenuBlock %}
  203.                                                 {% if cityMenuElement.published == 'true' %}
  204.                                                     <li>
  205.                                                         <a href="{{ cityMenuElement.url|default('#') }}">{{ cityMenuElement.title }}</a>
  206.                                                     </li>
  207.                                                 {% endif %}
  208.                                             {% endfor %}
  209.                                         </ul>
  210.                                     </div>
  211.                                 {% endif %}
  212.                             {% endfor %}
  213.                         </div>
  214.                         <div class="text-center pt-4"><button class="btn btn-dark btn-grey show-all">pokaż wszystko</button></div>
  215.                     {% endif %}
  216.                 {% endfor %}
  217.             </div>
  218.         </div>
  219.     </section>
  220. </footer>