src/Trinity/ProjectssitesBundle/Resources/views/frontend/realestate/realestate_options_carousel.html.twig line 1

Open in your IDE?
  1. {% if realEstateOptions|length > 0 %}
  2.     {% if realEstateOptionsCarousel is not defined %} {% set realEstateOptionsCarousel = realEstateOptions %}{% endif %}
  3.     {% if realEstateOptionsCarousel|length > 0 %}
  4.         <div class="realEstates-carousel">
  5.             <div class="swiper-content">
  6.                 <div class="swiper-container carousel">
  7.                     <div class="swiper-wrapper">
  8.                         {% for realEstateOption in realEstateOptionEntity.shuffleItems(realEstateOptionsCarousel)|slice(0, 6) %}
  9.                         <div class="swiper-slide">
  10.                             {% include '@TrinityProjectssites/frontend/realestate/card_option.html.twig' with {'realEstateOption': realEstateOption} %}
  11.                             </div>
  12.                         {% endfor %}
  13.                     </div>
  14.                     <div class="swiper-pagination"></div>
  15.                     {# <div class="swiper-button-prev"></div>
  16.                     <div class="swiper-button-next"></div> #}
  17.                 </div>
  18.             </div>
  19.             {% if realEstateOptionsCarousel|length > 6 %}
  20.             <div class="text-center">
  21.                 <a class="btn btn-gradient" href="{{path(config.overviewpage.slugkey)}}">{{'Bekijk alle kavels'|trans}} <i class="fa fa-arrow-right"></i></a>
  22.             </div>
  23.             {% endif %}
  24.         </div>
  25.     {% endif %}
  26. {% endif %}