templates/geo/parts/description.html.twig line 1

Open in your IDE?
  1. {% if page.description|length > 0 or page.descriptionNew|length > 0 %}
  2.     <div class="container">
  3.         <div class="container__header">
  4.             <div id="description-anchor" style="position: absolute; left: 0; top: -80px; visibility: hidden;"></div>
  5.             <h3 class="container__header-title">
  6. {#                {{ 'Туры'|trans }} в {{ page.info.nameVn }}#}
  7.                 {{ seo.h1 }}
  8.             </h3>
  9.         </div>
  10.         <div class="article__short-description">
  11.             {% if route in ['app_country_search', 'app_city_search'] %}
  12.                 {% if page.descriptionNew|length > 0 %}
  13.                     {{ page.descriptionNew.text|raw }}
  14.                 {% elseif page.description|length > 0 %}
  15.                     {% for description in page.description %}
  16.                         {% if description.lang == 'rus' and app.request.locale == 'ru' %}
  17.                             {{ description.text|raw }}
  18.                         {% endif %}
  19.                         {% if description.lang == 'ukr' and app.request.locale == 'ua' %}
  20.                             {{ description.text|raw }}
  21.                         {% endif %}
  22.                     {% endfor %}
  23.                 {% endif %}
  24.             {% else %}
  25.                 {% if page.descriptionNew|length > 0 %}
  26.                     {{ page.descriptionNew.text|raw }}
  27.                 {% endif %}
  28.             {% endif %}
  29.         </div>
  30.     </div>
  31. {% endif %}