{% extends 'layout.html.twig' %}
{% block content %}
<main class="main">
<div class="container-fluid">
<div class="row">
<div class="col-lg-10 offset-lg-1 px-md-0">
<section class="section-intro">
<h1>{{ pimcore_textarea('introTitle', {'placeholder': 'Titel...', 'nl2br': true}) }}</h1>
<div class="row mb-0 align-items-center">
{% if pimcore_textarea("intro") != "" %}
<div class="col-lg-8">
<p class="lead">{{ pimcore_textarea("intro", {"nl2br": true, 'placeholder': 'Intro...'}).render()|raw }}</p>
</div>
{% endif %}
{% if pimcore_link('introLink') != "" %}
<div class="col-lg-4 text-lg-end">
{{ pimcore_link('introLink', {'class': 'btn btn-dark text-uppercase', "placeholder": "Knop..."}) }}
</div>
{% endif %}
</div><!--/ .row -->
<div class="row">
{% if pimcore_textarea("intro2") != "" or pimcore_link('introLink') != "" %}
<div class="col-lg-5 mb-5">
<p class="">{{ pimcore_textarea("intro2", {"nl2br": true, "placeholder": "Intro tekst..."}).render()|raw }}</p>
{{ pimcore_link('introLink2', {'class': 'intro__link', "placeholder": "Knop..."}) }}
</div>
{% endif %}
<div class="col-lg-6 {% if pimcore_textarea("intro2") != "" or pimcore_link('introLink') != "" %} offset-lg-1 {% endif %} pt-5 pt-lg-0">
{% if editmode %}
{{ pimcore_select("selectIntroImage", {
"store": [
["Image", "Afbeelding"],
["Project", "Project"],
],
"defaultValue" : "Image",
"reload": true
}) }}
{% endif %}
{% if pimcore_select("selectIntroImage").getData() == "Project" %}
{{
pimcore_renderlet('project', {
"title": 'Gerelateerd project...',
"controller": "App\\Controller\\ProjectController::projectRenderletAction",
"editmode": editmode,
}) }}
{% else %}
<div class="img-wrapper">
{{ pimcore_image("introImage", {
'thumbnail': 'ProjectIndexThumbnail',
'class': 'img-fluid',
'title': 'Foto...',
}) }}
</div>
{% endif %}
</div>
</div>
</section>
</div>
</div>
</div><!--/ .container -->
<div class="container-fluid px-0">
<section class="">
{{ pimcore_areablock("contentAreaBlock") }}
</section>
</div><!--/ .container -->
</main>
{% endblock %}