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

Open in your IDE?
  1. <div class="top-countries-list__container">
  2.     <div class="top-countries-list__list">
  3.         <div class="wrapper__large-items">
  4.             {% for countryBig in countries|slice(0, 2) %}
  5.                 <a class="top-countries-list__item" href="{{ path('app_country_search', { country: countryBig.country.getNameTr }) }}">
  6.                 <span class="top-countries-list__item-photo large-item" style="background-image: url('{{ asset(countryBig.getLinkImage) }}');">
  7.                     <span class="top-countries-list__item-country-large">{{ attribute(countryBig.country, 'name'~locale) }}</span>
  8.                     <span class="top-countries-list__item-price-large">{% if countryBig.price is not null and countryBig.price is defined %}{{ 'от'|trans }} {{ countryBig.price|round|number_format(0, '', ' ') }} {{ market.currency.name }}{% endif %}</span>
  9.                 </span>
  10.                 </a>
  11.             {% endfor %}
  12.         </div>
  13.         <div class="wrapper__small-items">
  14.             {% for countrySmall in countries|slice(2, 4) %}
  15.                 <a class="top-countries-list__item" href="{{ path('app_country_search', { country: countrySmall.country.getNameTr }) }}">
  16.                 <span class="top-countries-list__item-photo small-item" style="background-image: url('{{ asset(countrySmall.getLinkImage) }}');">
  17.                     <span class="top-countries-list__item-country-small">{{ attribute(countrySmall.country, 'name'~locale) }}</span>
  18.                     <span class="top-countries-list__item-price-small">{% if countrySmall.price is not null and countrySmall.price is defined %}{{ 'от'|trans }} {{ countrySmall.price|round|number_format(0, '', ' ') }} {{ market.currency.name }}{% endif %}</span>
  19.                 </span>
  20.                 </a>
  21.             {% endfor %}
  22.         </div>
  23.     </div>
  24. </div>