templates/front/blocks/block-search-city.twig line 1

Open in your IDE?
  1. {% set searchCityMenu = get_search_city_menu(app.request.locale) %}
  2. <section class="container my-5">
  3.     <div class="row justify-content-center blog-search alternative-loupe">
  4.         <div class="col-sm-3 col-8 d-flex search-wrapper">
  5.             <input type="search" placeholder="wpisz swoje miasto" class="ps-0 border-bottom text-center" id="searchCitySecond">
  6.             <input type="hidden" id="typeSecond" value="second">
  7.             <button type="submit" class="loupe bg-grey relative-loupe searchCityBtnSecond"><img src="{{ asset('assets/img/lupa-icon.svg') }}" alt=""></button>
  8.         </div>
  9.     </div>
  10. </section>
  11. <section id="search-city-section"></section>
  12. <section class="parent-container pt-3 pt-xxl-5 pb-90 text-secondary f-22 fw-thin not-dot cities">
  13.     <div class="container-fluid pb-90">
  14.         <div class="row justify-content-center">
  15.             {% for cityMenuBlock in searchCityMenu %}
  16.                 {% set lastElement = searchCityMenu|last %}
  17.                 {% if cityMenuBlock == lastElement %}
  18.                     {% set lastElementTab = get_last_element_tab_menu(lastElement) %}
  19.                     <div class="col-md-2 col-10">
  20.                         <ul class="ps-md-0 text-center row-mobile spaces">
  21.                             <div class="col-6-mobile">
  22.                                 {% for index, cityMenuElement in lastElementTab.first|default([]) %}
  23.                                     <li>
  24.                                         <a href="{{ cityMenuElement.url|default('#') }}">{{ cityMenuElement.title }}</a>
  25.                                     </li>
  26.                                 {% endfor %}
  27.                             </div>
  28.                             <div class="col-6-mobile">
  29.                                 {% for index, cityMenuElement in lastElementTab.second|default([]) %}
  30.                                     <li>
  31.                                         <a href="{{ cityMenuElement.url|default('#') }}">{{ cityMenuElement.title }}</a>
  32.                                     </li>
  33.                                 {% endfor %}
  34.                             </div>
  35.                         </ul>
  36.                     </div>
  37.                 {% else %}
  38.                     <div class="col-md-2 col-5">
  39.                         <ul class="ps-md-0 text-center spaces">
  40.                             {% for cityMenuElement in cityMenuBlock %}
  41.                                 <li>
  42.                                     <a href="{{ cityMenuElement.url|default('#') }}">{{ cityMenuElement.title }}</a>
  43.                                 </li>
  44.                             {% endfor %}
  45.                         </ul>
  46.                     </div>
  47.                 {% endif %}
  48.             {% endfor %}
  49.         </div>
  50.     </div>
  51. </section>