{% extends 'layout.html.twig' %}{% block content %} <main class="main container--padding--sidebars"> <div class="container-fluid"> <div class="row"> <div class="col-lg-10 offset-lg-1 px-md-0 pt-md-5"> <section class="section--projects section-intro"> <h1>{{ project.title }} <br> {{ project.location }}</h1> </section> </div> </div><!--/ .row --> <div class="card__project"> {% if project.photos|length > 1 %} <div class="swiper swiper--project-detail" id="project-detail-slider"> <div class="swiper-wrapper"> {% for photo in project.photos.items %} <div class="swiper-slide"> <div class="img-wrapper"> {{ photo.getThumbnail('ProjectDetailSliderThumbnail').html({ 'imgAttributes': { 'loading': loop.index != 1 ? 'lazy': 'eager' } })|raw }} </div> <p class="slide-title">{{ project.title }} — {{ project.location }}{# — {{ 'Architect:' | trans }} {{ project.architect }} #}</p> </div> {% endfor %} </div> <div class="swiper-button-prev"></div> <div class="swiper-button-next"></div> </div> {% elseif project.photos.items|length == 1 %} <div class="row"> <div class="col-lg-10 offset-lg-1 px-md-0"> <div class="img-wrapper"> {{ project.photos.items[0].getThumbnail('ProjectDetailSliderThumbnail').html({ 'imgAttributes': { 'loading': 'eager' } })|raw }} <p class="slide-title">{{ project.title }} — {{ project.location }}{# — {{ 'Architect:' | trans }} {{ project.architect }} #}</p> </div> </div> </div><!--/ .row --> {% endif %} </div> <div class="row"> <div class="col-lg-10 offset-lg-1"> <div class="row section__padding"> <div class="project-detail-intro"> {{ project.description|nl2br }} </div> </div> {% if project.link %} <div class="row btn__appointment"> <div class="d-flex justify-content-center"> <a href="{{ project.link.getHref() }}" class="btn btn-dark">{{ project.link.getText() }}</a> </div> </div> {% endif %} </div> </div><!--/ .row --> </div><!--/ .container --> <section class="section--richcontent"> {% for contentBlock in project.contentBlocks %} {% include 'content/' ~ contentBlock.type ~ '.html.twig' with {'contentBlock': contentBlock} %} {% endfor %} </section> <section class="container-fluid section--filter"> <div class="row"> <div class="col-lg-10 offset-lg-1"> <div class="section--head"> <h2>{{ 'Bekijk onze andere projecten' | trans }}</h2> <p>{{ 'Intro voor bekijk onze andere projecten' | trans }}</p> </div> <div class="row gx-xl-5"> {# Inject first position block if necessary #} {% if quotes[0] is defined %} <div class="col-sm-6 col-lg-4"> <blockquote class="quote-item"> <p>{{ quotes[0].text|nl2br }}</p> <p class="quote-item__author">{{ quotes[0].author }}</p> </blockquote> </div> {% endif %} {% for project in project.relatedProjects %} {% set url = app_project_detaillink(project) %} <div class="col-sm-6 col-lg-4"> <a class="project-item" href="{{ url }}"> <div class="project-item__img"> {% if project.photoIndex %} <div class="img-wrapper">{{ project.photoIndex.thumbnail('ProjectIndexThumbnail').html|raw }}</div> {% else %} <img src="https://via.placeholder.com/609x404/ccc" alt="" class="img-fluid"> {% endif %} </div> <div class="project-item__title">{{ project.getTitle() }} - {{ project.getLocation() }} </div> </a> </div> {# Inject quote block if necessary #} {% if quotes[loop.index] is defined %} <div class="col-sm-6 col-lg-4"> <blockquote class="quote-item"> <p>{{ quotes[loop.index].text|nl2br }}</p> <p class="quote-item__author">{{ quotes[loop.index].author }}</p> </blockquote> </div> {% endif %} {% endfor %} </div> </div> </div> </section> <div class="white--space"></div> </main>{% endblock %}