templates/geo/parts/countries-list.html.twig line 1

Open in your IDE?
  1. {% if countries|length > 0 %}
  2.     <div class="container__header">
  3.         <h2 class="container__header-title">
  4.                 {{ 'Похожие страны'|trans }}
  5.         </h2>
  6.     </div>
  7.     <div class="resort-list__slider-wrapper">
  8.         <div class="resort-list__slider swiper-container">
  9.             <div class="resort-list__container swiper-wrapper">
  10.                 {% for country in countries %}
  11.                     <a class="resort-list__item swiper-slide" href="{{ path('app_country_search', { country: country.slug }) }}" title="{{ country.name }}">
  12.                     <span class="resort-list__item-photo"
  13.                           style="background-image: url('{{ country.image }}');">
  14.                         <span class="resort-list__item-photo-row">
  15.                             <span class="resort-list__item-photo-name">{{ country.name }}</span>
  16.                         </span>
  17.                     </span>
  18.                     <span class="resort-list__item-info">
  19.                         {% if country.description is not null %}
  20.                             <p>
  21.                                 {{ country.description.text|raw }}
  22.                             </p>
  23.                         {% endif  %}
  24.                         {% if country.price is not null %}
  25.                             <span class="resort-list__item-price">
  26.                                 {{ 'Туры от'|trans }} <span>{{ country.price|round|number_format(0, '', ' ') }} {{ market.currency.name }}</span>
  27.                             </span>
  28.                         {% endif %}
  29.                     </span>
  30.                     </a>
  31.                 {% endfor %}
  32.             </div>
  33.         </div>
  34.         <div class="swiper-button swiper-button-prev"></div>
  35.         <div class="swiper-button swiper-button-next"></div>
  36.     </div>
  37. {% endif %}