templates/geo/parts/hots-block.html.twig line 1

Open in your IDE?
  1. <div class="hots_container">
  2.     <div class="container">
  3.         <div class="container__header">
  4.             <h2 class="container__header-title">
  5.                 {{ title }} {% if statusHot is defined and route in ['app_country_search_departure_city', 'app_city_search_departure_city'] %}{{ 'из'|trans }} {{ departureCity.nameRd }}{% endif %}
  6.             </h2>
  7.         </div>
  8.         {% set dataCount = 0 %}
  9.         {% if dataBudget %}
  10.             {% set dataCount = dataCount + 1 %}
  11.         {% endif %}
  12.         {% if dataOptimal %}
  13.             {% set dataCount = dataCount + 1 %}
  14.         {% endif %}
  15.         {% if dataLux %}
  16.             {% set dataCount = dataCount + 1 %}
  17.         {% endif %}
  18.         {% if dataCount > 1 %}
  19.             <div class="hots_controls">
  20.                 <div class="hots_tabs">
  21.                     {% if dataBudget %}
  22.                         <div class="hots_tab {% if not dataOptimal %}active{% endif %}" data-hottab="">{{ 'Бюджетные'|trans }}</div>
  23.                     {% endif %}
  24.                     {% if dataOptimal %}
  25.                         <div class="hots_tab active" data-hottab="">{{ 'Оптимальные'|trans }}</div>
  26.                     {% endif %}
  27.                     {% if dataLux %}
  28.                         <div class="hots_tab" data-hottab="">{{ 'Люксовые'|trans }}</div>
  29.                     {% endif %}
  30.                 </div>
  31.             </div>
  32.         {% endif %}
  33.         <div class="hots_contents">
  34.             {% if dataBudget %}
  35.                 <div class="hots_content {% if not dataOptimal %}active{% endif %}" data-hotcontent="">
  36.                     {% include 'geo/parts/tour.html.twig' with {'items': dataBudget} %}
  37.                 </div>
  38.             {% endif %}
  39.             {% if dataOptimal %}
  40.                 <div class="hots_content active" data-hotcontent="">
  41.                     {% include 'geo/parts/tour.html.twig' with {'items': dataOptimal} %}
  42.                 </div>
  43.             {% endif %}
  44.             {% if dataLux %}
  45.                 <div class="hots_content" data-hotcontent="">
  46.                     {% include 'geo/parts/tour.html.twig' with {'items': dataLux} %}
  47.                 </div>
  48.             {% endif %}
  49.         </div>
  50.     </div>
  51. </div>