<?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;
/* blogs-detail.html.twig */
class __TwigTemplate_cbbfdf57cabc6bc9000cbed4ea371edf 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", "blogs-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", "blogs-detail.html.twig"));
$this->parent = $this->loadTemplate("layout.html.twig", "blogs-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\">
<div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-lg-10 offset-lg-1\">
<section class=\"section-intro\">
<div class=\"row\">
<div class=\"col-lg-8 col-xl-6\">
<h1>";
// line 12
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 12, $this->source); })()), "title", [], "any", false, false, true, 12), 12, $this->source), "html", null, true);
echo "</h1>
</div>
</div><!--/ .row -->
<div class=\"row\">
<div class=\"col-md-8\">
<p class=\"lead\">
";
// line 19
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 19, $this->source); })()), "intro", [], "any", false, false, true, 19), 19, $this->source), "html", null, true);
echo "
</p>
</div>
</div><!--/ .row -->
</section>
<div class=\"row\">
";
// line 26
if (((twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 26, $this->source); })()), "intro2", [], "any", false, false, true, 26) != "") || (twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 26, $this->source); })()), "introLink", [], "any", false, false, true, 26) != ""))) {
// line 27
echo " <div class=\"col-md-5\">
";
// line 28
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 28, $this->source); })()), "intro2", [], "any", false, false, true, 28), 28, $this->source), "html", null, true);
echo "
";
// line 30
if (twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 30, $this->source); })()), "introLink", [], "any", false, false, true, 30)) {
// line 31
echo " <p class=\"mt-5\">
<a class=\"caps-link\" href=\"";
// line 32
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["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 32, $this->source); })()), "introLink", [], "any", false, false, true, 32), "getHref", [], "method", false, false, true, 32), 32, $this->source), "html", null, true);
echo "\">";
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["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 32, $this->source); })()), "introLink", [], "any", false, false, true, 32), "getText", [], "method", false, false, true, 32), 32, $this->source), "html", null, true);
echo "</a>
</p>
";
}
// line 35
echo " </div>
";
}
// line 37
echo "
";
// line 38
$context["project"] = twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 38, $this->source); })()), "relatedProject", [], "any", false, false, true, 38);
// line 39
echo "
";
// line 40
if ((isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 40, $this->source); })())) {
// line 41
echo " <div class=\"col-md-6 offset-md-1 pb-5 pb-md-0\">
";
// line 42
$context["projectDocument"] = twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 42, $this->source); })()), "getProperty", ["project_default_document"], "method", false, false, true, 42);
// line 43
echo " ";
$context["url"] = $this->extensions['App\Twig\Extension\ProjectExtension']->generateLink($this->sandbox->ensureToStringAllowed((isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 43, $this->source); })()), 43, $this->source));
// line 44
echo " <a class=\"project-renderlet\" href=\"";
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.', 44, $this->source); })()), 44, $this->source), "html", null, true);
echo "\">
<div class=\"img-wrapper\">
";
// line 46
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.', 46, $this->source); })()), "photoIndexLarge", [], "any", false, false, true, 46)) {
// line 47
echo " ";
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, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 47, $this->source); })()), "photoIndexLarge", [], "any", false, false, true, 47), "thumbnail", ["ProjectRenderletThumbnail", ["class" => "img-fluid"]], "method", false, false, true, 47), "html", [], "any", false, false, true, 47), 47, $this->source);
echo "
";
}
// line 49
echo " </div>
<p class=\"project-renderlet-title\">";
// line 51
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.', 51, $this->source); })()), "title", [], "any", false, false, true, 51), 51, $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.', 51, $this->source); })()), "location", [], "any", false, false, true, 51), 51, $this->source), "html", null, true);
echo "</p>
</a>
</div><!--/ .row -->
";
}
// line 55
echo " </div>
</div>
</div><!--/ .row -->
</div><!--/ .container-fluid -->
<section class=\"section--richcontent pt-5\">
";
// line 61
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["blog"]) || array_key_exists("blog", $context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.', 61, $this->source); })()), "contentBlocks", [], "any", false, false, true, 61));
$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 62
echo " ";
$this->loadTemplate((("content/" . twig_get_attribute($this->env, $this->source, $context["contentBlock"], "type", [], "any", false, false, true, 62)) . ".html.twig"), "blogs-detail.html.twig", 62)->display(twig_array_merge($context, ["contentBlock" => $context["contentBlock"]]));
// line 63
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 64
echo " </section>
</main>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "blogs-detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 214 => 64, 200 => 63, 197 => 62, 180 => 61, 172 => 55, 163 => 51, 159 => 49, 153 => 47, 151 => 46, 145 => 44, 142 => 43, 140 => 42, 137 => 41, 135 => 40, 132 => 39, 130 => 38, 127 => 37, 123 => 35, 115 => 32, 112 => 31, 110 => 30, 105 => 28, 102 => 27, 100 => 26, 90 => 19, 80 => 12, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout.html.twig' %}
{% block content %}
<main class=\"main\">
<div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-lg-10 offset-lg-1\">
<section class=\"section-intro\">
<div class=\"row\">
<div class=\"col-lg-8 col-xl-6\">
<h1>{{ blog.title }}</h1>
</div>
</div><!--/ .row -->
<div class=\"row\">
<div class=\"col-md-8\">
<p class=\"lead\">
{{ blog.intro }}
</p>
</div>
</div><!--/ .row -->
</section>
<div class=\"row\">
{% if blog.intro2 != \"\" or blog.introLink != \"\" %}
<div class=\"col-md-5\">
{{ blog.intro2 }}
{% if blog.introLink %}
<p class=\"mt-5\">
<a class=\"caps-link\" href=\"{{ blog.introLink.getHref() }}\">{{ blog.introLink.getText() }}</a>
</p>
{% endif %}
</div>
{% endif %}
{% set project = blog.relatedProject %}
{% if (project) %}
<div class=\"col-md-6 offset-md-1 pb-5 pb-md-0\">
{% set projectDocument = document.getProperty('project_default_document') %}
{% set url = app_project_detaillink(project) %}
<a class=\"project-renderlet\" href=\"{{ url }}\">
<div class=\"img-wrapper\">
{% if project.photoIndexLarge %}
{{ project.photoIndexLarge.thumbnail('ProjectRenderletThumbnail', {class: 'img-fluid'}).html|raw }}
{% endif %}
</div>
<p class=\"project-renderlet-title\">{{ project.title }} - {{ project.location }}</p>
</a>
</div><!--/ .row -->
{% endif %}
</div>
</div>
</div><!--/ .row -->
</div><!--/ .container-fluid -->
<section class=\"section--richcontent pt-5\">
{% for contentBlock in blog.contentBlocks %}
{% include 'content/' ~ contentBlock.type ~ '.html.twig' with {'contentBlock': contentBlock} %}
{% endfor %}
</section>
</main>
{% endblock %}", "blogs-detail.html.twig", "/data/sites/web/gc-architectenntrigapimbe/subsites/gc2025.dspdev.be/templates/blogs-detail.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 26, "set" => 38, "for" => 61, "include" => 62);
static $filters = array("escape" => 12, "raw" => 47);
static $functions = array("app_project_detaillink" => 43);
try {
$this->sandbox->checkSecurity(
['if', 'set', 'for', 'include'],
['escape', 'raw'],
['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;
}
}
}