<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* projects-detail.html.twig */
class __TwigTemplate_3a9da41a5001674263e7cd9c069b6ece extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "projects-detail.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "projects-detail.html.twig"));
$this->parent = $this->loadTemplate("layout.html.twig", "projects-detail.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
echo "
<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>";
// line 10
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 10, $this->source); })()), "title", [], "any", false, false, true, 10), 10, $this->source), "html", null, true);
echo " <br> ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 10, $this->source); })()), "location", [], "any", false, false, true, 10), 10, $this->source), "html", null, true);
echo "</h1>
</section>
</div>
</div><!--/ .row -->
<div class=\"card__project\">
";
// line 16
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 16, $this->source); })()), "photos", [], "any", false, false, true, 16)) > 1)) {
// line 17
echo " <div class=\"swiper swiper--project-detail\" id=\"project-detail-slider\">
<div class=\"swiper-wrapper\">
";
// line 19
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 19, $this->source); })()), "photos", [], "any", false, false, true, 19), "items", [], "any", false, false, true, 19));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
// line 20
echo " <div class=\"swiper-slide\">
<div class=\"img-wrapper\">
";
// line 22
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["photo"], "getThumbnail", ["ProjectDetailSliderThumbnail"], "method", false, false, true, 22), "html", [["imgAttributes" => ["loading" => (((twig_get_attribute($this->env, $this->source, // line 24
$context["loop"], "index", [], "any", false, false, true, 24) != 1)) ? ("lazy") : ("eager"))]]], "method", false, false, true, 22), 22, $this->source);
// line 26
echo "
</div>
<p class=\"slide-title\">";
// line 29
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 29, $this->source); })()), "title", [], "any", false, false, true, 29), 29, $this->source), "html", null, true);
echo " — ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 29, $this->source); })()), "location", [], "any", false, false, true, 29), 29, $this->source), "html", null, true);
echo "</p>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photo'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 32
echo " </div>
<div class=\"swiper-button-prev\"></div>
<div class=\"swiper-button-next\"></div>
</div>
";
} elseif ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, // line 37
(isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 37, $this->source); })()), "photos", [], "any", false, false, true, 37), "items", [], "any", false, false, true, 37)) == 1)) {
// line 38
echo " <div class=\"row\">
<div class=\"col-lg-10 offset-lg-1 px-md-0\">
<div class=\"img-wrapper\">
";
// line 41
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 41, $this->source); })()), "photos", [], "any", false, false, true, 41), "items", [], "any", false, false, true, 41), 0, [], "array", false, false, true, 41), "getThumbnail", ["ProjectDetailSliderThumbnail"], "method", false, false, true, 41), "html", [["imgAttributes" => ["loading" => "eager"]]], "method", false, false, true, 41), 41, $this->source);
// line 45
echo "
<p class=\"slide-title\">";
// line 47
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 47, $this->source); })()), "title", [], "any", false, false, true, 47), 47, $this->source), "html", null, true);
echo " — ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 47, $this->source); })()), "location", [], "any", false, false, true, 47), 47, $this->source), "html", null, true);
echo "</p>
</div>
</div>
</div><!--/ .row -->
";
}
// line 52
echo " </div>
<div class=\"row\">
<div class=\"col-lg-10 offset-lg-1\">
<div class=\"row section__padding\">
<div class=\"project-detail-intro\">
";
// line 58
echo twig_nl2br(twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 58, $this->source); })()), "description", [], "any", false, false, true, 58), 58, $this->source), "html", null, true));
echo "
</div>
</div>
";
// line 62
if (twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 62, $this->source); })()), "link", [], "any", false, false, true, 62)) {
// line 63
echo " <div class=\"row btn__appointment\">
<div class=\"d-flex justify-content-center\">
<a href=\"";
// line 65
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 65, $this->source); })()), "link", [], "any", false, false, true, 65), "getHref", [], "method", false, false, true, 65), 65, $this->source), "html", null, true);
echo "\" class=\"btn btn-dark\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 65, $this->source); })()), "link", [], "any", false, false, true, 65), "getText", [], "method", false, false, true, 65), 65, $this->source), "html", null, true);
echo "</a>
</div>
</div>
";
}
// line 69
echo " </div>
</div><!--/ .row -->
</div><!--/ .container -->
<section class=\"section--richcontent\">
";
// line 74
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 74, $this->source); })()), "contentBlocks", [], "any", false, false, true, 74));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["contentBlock"]) {
// line 75
echo " ";
$this->loadTemplate((("content/" . twig_get_attribute($this->env, $this->source, $context["contentBlock"], "type", [], "any", false, false, true, 75)) . ".html.twig"), "projects-detail.html.twig", 75)->display(twig_array_merge($context, ["contentBlock" => $context["contentBlock"]]));
// line 76
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['contentBlock'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 77
echo " </section>
<section class=\"container-fluid section--filter\">
<div class=\"row\">
<div class=\"col-lg-10 offset-lg-1\">
<div class=\"section--head\">
<h2>";
// line 83
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Bekijk onze andere projecten"), "html", null, true);
echo "</h2>
<p>";
// line 85
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Intro voor bekijk onze andere projecten"), "html", null, true);
echo "</p>
</div>
<div class=\"row gx-xl-5\">
";
// line 90
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["quotes"] ?? null), 0, [], "array", true, true, true, 90)) {
// line 91
echo " <div class=\"col-sm-6 col-lg-4\">
<blockquote class=\"quote-item\">
<p>";
// line 93
echo twig_nl2br(twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["quotes"]) || array_key_exists("quotes", $context) ? $context["quotes"] : (function () { throw new RuntimeError('Variable "quotes" does not exist.', 93, $this->source); })()), 0, [], "array", false, false, true, 93), "text", [], "any", false, false, true, 93), 93, $this->source), "html", null, true));
echo "</p>
<p class=\"quote-item__author\">";
// line 95
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["quotes"]) || array_key_exists("quotes", $context) ? $context["quotes"] : (function () { throw new RuntimeError('Variable "quotes" does not exist.', 95, $this->source); })()), 0, [], "array", false, false, true, 95), "author", [], "any", false, false, true, 95), 95, $this->source), "html", null, true);
echo "</p>
</blockquote>
</div>
";
}
// line 99
echo "
";
// line 100
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["project"], "relatedProjects", [], "any", false, false, true, 100));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["project"]) {
// line 101
echo " ";
$context["url"] = $this->extensions['App\Twig\Extension\ProjectExtension']->generateLink($this->sandbox->ensureToStringAllowed($context["project"], 101, $this->source));
// line 102
echo "
<div class=\"col-sm-6 col-lg-4\">
<a class=\"project-item\" href=\"";
// line 104
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["url"]) || array_key_exists("url", $context) ? $context["url"] : (function () { throw new RuntimeError('Variable "url" does not exist.', 104, $this->source); })()), 104, $this->source), "html", null, true);
echo "\">
<div class=\"project-item__img\">
";
// line 106
if (twig_get_attribute($this->env, $this->source, $context["project"], "photoIndex", [], "any", false, false, true, 106)) {
// line 107
echo " <div class=\"img-wrapper\">";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["project"], "photoIndex", [], "any", false, false, true, 107), "thumbnail", ["ProjectIndexThumbnail"], "method", false, false, true, 107), "html", [], "any", false, false, true, 107), 107, $this->source);
echo "</div>
";
} else {
// line 109
echo " <img src=\"https://via.placeholder.com/609x404/ccc\" alt=\"\" class=\"img-fluid\">
";
}
// line 111
echo " </div>
<div class=\"project-item__title\">";
// line 113
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["project"], "getTitle", [], "method", false, false, true, 113), 113, $this->source), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["project"], "getLocation", [], "method", false, false, true, 113), 113, $this->source), "html", null, true);
echo " </div>
</a>
</div>
";
// line 118
echo " ";
if (twig_get_attribute($this->env, $this->source, ($context["quotes"] ?? null), twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 118), [], "array", true, true, true, 118)) {
// line 119
echo " <div class=\"col-sm-6 col-lg-4\">
<blockquote class=\"quote-item\">
<p>";
// line 121
echo twig_nl2br(twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["quotes"]) || array_key_exists("quotes", $context) ? $context["quotes"] : (function () { throw new RuntimeError('Variable "quotes" does not exist.', 121, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 121), [], "array", false, false, true, 121), "text", [], "any", false, false, true, 121), 121, $this->source), "html", null, true));
echo "</p>
<p class=\"quote-item__author\">";
// line 123
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["quotes"]) || array_key_exists("quotes", $context) ? $context["quotes"] : (function () { throw new RuntimeError('Variable "quotes" does not exist.', 123, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 123), [], "array", false, false, true, 123), "author", [], "any", false, false, true, 123), 123, $this->source), "html", null, true);
echo "</p>
</blockquote>
</div>
";
}
// line 127
echo " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['project'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 128
echo " </div>
</div>
</div>
</section>
<div class=\"white--space\"></div>
</main>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "projects-detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 373 => 128, 359 => 127, 352 => 123, 347 => 121, 343 => 119, 340 => 118, 331 => 113, 327 => 111, 323 => 109, 317 => 107, 315 => 106, 310 => 104, 306 => 102, 303 => 101, 286 => 100, 283 => 99, 276 => 95, 271 => 93, 267 => 91, 264 => 90, 257 => 85, 252 => 83, 244 => 77, 230 => 76, 227 => 75, 210 => 74, 203 => 69, 194 => 65, 190 => 63, 188 => 62, 181 => 58, 173 => 52, 163 => 47, 159 => 45, 157 => 41, 152 => 38, 150 => 37, 143 => 32, 124 => 29, 119 => 26, 117 => 24, 116 => 22, 112 => 20, 95 => 19, 91 => 17, 89 => 16, 78 => 10, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% 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 %}", "projects-detail.html.twig", "/data/sites/web/gc-architectenntrigapimbe/subsites/gc2025.dspdev.be/templates/projects-detail.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 16, "for" => 19, "include" => 75, "set" => 101);
static $filters = array("escape" => 10, "length" => 16, "raw" => 26, "nl2br" => 58, "trans" => 83);
static $functions = array("app_project_detaillink" => 101);
try {
$this->sandbox->checkSecurity(
['if', 'for', 'include', 'set'],
['escape', 'length', 'raw', 'nl2br', 'trans'],
['app_project_detaillink']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}