templates/_parts/index/_plannings.html.twig line 1

Open in your IDE?
  1. {% set title = title|default('') %}
  2. {% set settings = realty_settings() %}
  3. {% if not settings.planningsIsHidden %}
  4.     <div class="index-page__block">
  5.         {% if settings.realtyViewType == 10 %}
  6.             {% set viewType = '_filter-top' %}
  7.         {% elseif settings.realtyViewType == 20 %}
  8.             {% set viewType = '_filter-side' %}
  9.         {% elseif settings.realtyViewType == 30 %}
  10.             {% set viewType = '_filter-side-alt' %}
  11.         {% elseif settings.realtyViewType == 40 %}
  12.             {% set viewType = '_plannings-card' %}
  13.         {% endif %}
  14.         <div class="container container_spacer">
  15.             <div class="plannings {{ viewType }}">
  16.                 {% if settings.realtyViewType != 40 %}
  17.                     <div class="plannings__title h1 text__black-text">{{ title }}</div>
  18.                 {% endif %}
  19.                 <script
  20.                     data-filter-metadata
  21.                     data-filter-key="{{ realtyFilter.key }}"
  22.                     type="application/json">
  23.                     {{ realtyFilter|json_encode|raw }}
  24.                 </script>
  25.                 <div
  26.                     class="plannings__view-type {{ viewType }}
  27.                     {% if settings.realtyViewType != 40 %}
  28.                     grid-block
  29.                     {% endif %}"
  30.                 >
  31.                     {% if settings.realtyViewType != 40 %}
  32.                         <div class="plannings__filter-wrap">
  33.                             {% include '_parts/plannings/_plannings-filter.html.twig' %}
  34.                         </div>
  35.                         <div class="plannings__plannings-list-wrap">
  36.                             {% include '_parts/plannings/_plannings-list.html.twig' %}
  37.                         </div>
  38.                     {% else %}
  39.                         {% include '_parts/plannings/_plannings-card.html.twig' %}
  40.                     {% endif %}
  41.                 </div>
  42.             </div>
  43.         </div>
  44.     </div>
  45. {% endif %}