var/cache/dev/twig/c2/c2383760513cf6a8fe7dcea950254804.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* blogs-detail.html.twig */
  14. class __TwigTemplate_cbbfdf57cabc6bc9000cbed4ea371edf extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "layout.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blogs-detail.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blogs-detail.html.twig"));
  40.         $this->parent $this->loadTemplate("layout.html.twig""blogs-detail.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         // line 4
  56.         echo "
  57.     <main class=\"main\">
  58.         <div class=\"container-fluid\">
  59.             <div class=\"row\">
  60.                 <div class=\"col-lg-10 offset-lg-1\">
  61.                     <section class=\"section-intro\">
  62.                         <div class=\"row\">
  63.                             <div class=\"col-lg-8 col-xl-6\">
  64.                                 <h1>";
  65.         // line 12
  66.         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"falsefalsetrue12), 12$this->source), "html"nulltrue);
  67.         echo "</h1>
  68.                             </div>
  69.                         </div><!--/ .row -->
  70.                         
  71.                         <div class=\"row\">
  72.                             <div class=\"col-md-8\">
  73.                                 <p class=\"lead\">
  74.                                     ";
  75.         // line 19
  76.         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"falsefalsetrue19), 19$this->source), "html"nulltrue);
  77.         echo "
  78.                                 </p>
  79.                             </div>
  80.                         </div><!--/ .row -->
  81.                     </section>
  82.                     <div class=\"row\">
  83.                         ";
  84.         // line 26
  85.         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"falsefalsetrue26) != "") || (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"falsefalsetrue26) != ""))) {
  86.             // line 27
  87.             echo "                            <div class=\"col-md-5\">
  88.                                 ";
  89.             // line 28
  90.             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"falsefalsetrue28), 28$this->source), "html"nulltrue);
  91.             echo "
  92.                                 ";
  93.             // line 30
  94.             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"falsefalsetrue30)) {
  95.                 // line 31
  96.                 echo "                                    <p class=\"mt-5\">
  97.                                         <a class=\"caps-link\" href=\"";
  98.                 // line 32
  99.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue32), "getHref", [], "method"falsefalsetrue32), 32$this->source), "html"nulltrue);
  100.                 echo "\">";
  101.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue32), "getText", [], "method"falsefalsetrue32), 32$this->source), "html"nulltrue);
  102.                 echo "</a>
  103.                                     </p>
  104.                                 ";
  105.             }
  106.             // line 35
  107.             echo "                            </div>
  108.                         ";
  109.         }
  110.         // line 37
  111.         echo "
  112.                         ";
  113.         // line 38
  114.         $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"falsefalsetrue38);
  115.         // line 39
  116.         echo "
  117.                         ";
  118.         // line 40
  119.         if ((isset($context["project"]) || array_key_exists("project"$context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.'40$this->source); })())) {
  120.             // line 41
  121.             echo "                            <div class=\"col-md-6 offset-md-1 pb-5 pb-md-0\">
  122.                                 ";
  123.             // line 42
  124.             $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"falsefalsetrue42);
  125.             // line 43
  126.             echo "                                ";
  127.             $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));
  128.             // line 44
  129.             echo "                                <a class=\"project-renderlet\" href=\"";
  130.             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"nulltrue);
  131.             echo "\">
  132.                                     <div class=\"img-wrapper\">
  133.                                     ";
  134.             // line 46
  135.             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"falsefalsetrue46)) {
  136.                 // line 47
  137.                 echo "                                        ";
  138.                 echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue47), "thumbnail", ["ProjectRenderletThumbnail", ["class" => "img-fluid"]], "method"falsefalsetrue47), "html", [], "any"falsefalsetrue47), 47$this->source);
  139.                 echo "
  140.                                     ";
  141.             }
  142.             // line 49
  143.             echo "                                    </div>
  144.                                     <p class=\"project-renderlet-title\">";
  145.             // line 51
  146.             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"falsefalsetrue51), 51$this->source), "html"nulltrue);
  147.             echo " - ";
  148.             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"falsefalsetrue51), 51$this->source), "html"nulltrue);
  149.             echo "</p>
  150.                                 </a>
  151.                             </div><!--/ .row -->
  152.                         ";
  153.         }
  154.         // line 55
  155.         echo "                    </div>
  156.                 </div>
  157.             </div><!--/ .row -->
  158.         </div><!--/ .container-fluid -->
  159.         <section class=\"section--richcontent pt-5\">
  160.         ";
  161.         // line 61
  162.         $context['_parent'] = $context;
  163.         $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"falsefalsetrue61));
  164.         $context['loop'] = [
  165.           'parent' => $context['_parent'],
  166.           'index0' => 0,
  167.           'index'  => 1,
  168.           'first'  => true,
  169.         ];
  170.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  171.             $length count($context['_seq']);
  172.             $context['loop']['revindex0'] = $length 1;
  173.             $context['loop']['revindex'] = $length;
  174.             $context['loop']['length'] = $length;
  175.             $context['loop']['last'] = === $length;
  176.         }
  177.         foreach ($context['_seq'] as $context["_key"] => $context["contentBlock"]) {
  178.             // line 62
  179.             echo "            ";
  180.             $this->loadTemplate((("content/" twig_get_attribute($this->env$this->source$context["contentBlock"], "type", [], "any"falsefalsetrue62)) . ".html.twig"), "blogs-detail.html.twig"62)->display(twig_array_merge($context, ["contentBlock" => $context["contentBlock"]]));
  181.             // line 63
  182.             echo "        ";
  183.             ++$context['loop']['index0'];
  184.             ++$context['loop']['index'];
  185.             $context['loop']['first'] = false;
  186.             if (isset($context['loop']['length'])) {
  187.                 --$context['loop']['revindex0'];
  188.                 --$context['loop']['revindex'];
  189.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  190.             }
  191.         }
  192.         $_parent $context['_parent'];
  193.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['contentBlock'], $context['_parent'], $context['loop']);
  194.         $context array_intersect_key($context$_parent) + $_parent;
  195.         // line 64
  196.         echo "        </section>
  197.     </main>
  198. ";
  199.         
  200.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  201.         
  202.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  203.     }
  204.     public function getTemplateName()
  205.     {
  206.         return "blogs-detail.html.twig";
  207.     }
  208.     public function isTraitable()
  209.     {
  210.         return false;
  211.     }
  212.     public function getDebugInfo()
  213.     {
  214.         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,);
  215.     }
  216.     public function getSourceContext()
  217.     {
  218.         return new Source("{% extends 'layout.html.twig' %}
  219. {% block content %}
  220.     <main class=\"main\">
  221.         <div class=\"container-fluid\">
  222.             <div class=\"row\">
  223.                 <div class=\"col-lg-10 offset-lg-1\">
  224.                     <section class=\"section-intro\">
  225.                         <div class=\"row\">
  226.                             <div class=\"col-lg-8 col-xl-6\">
  227.                                 <h1>{{ blog.title }}</h1>
  228.                             </div>
  229.                         </div><!--/ .row -->
  230.                         
  231.                         <div class=\"row\">
  232.                             <div class=\"col-md-8\">
  233.                                 <p class=\"lead\">
  234.                                     {{ blog.intro }}
  235.                                 </p>
  236.                             </div>
  237.                         </div><!--/ .row -->
  238.                     </section>
  239.                     <div class=\"row\">
  240.                         {% if blog.intro2 != \"\" or blog.introLink != \"\" %}
  241.                             <div class=\"col-md-5\">
  242.                                 {{ blog.intro2 }}
  243.                                 {% if blog.introLink %}
  244.                                     <p class=\"mt-5\">
  245.                                         <a class=\"caps-link\" href=\"{{ blog.introLink.getHref() }}\">{{ blog.introLink.getText() }}</a>
  246.                                     </p>
  247.                                 {% endif %}
  248.                             </div>
  249.                         {% endif %}
  250.                         {% set project = blog.relatedProject %}
  251.                         {% if (project) %}
  252.                             <div class=\"col-md-6 offset-md-1 pb-5 pb-md-0\">
  253.                                 {% set projectDocument = document.getProperty('project_default_document') %}
  254.                                 {% set url = app_project_detaillink(project)  %}
  255.                                 <a class=\"project-renderlet\" href=\"{{ url }}\">
  256.                                     <div class=\"img-wrapper\">
  257.                                     {% if project.photoIndexLarge %}
  258.                                         {{ project.photoIndexLarge.thumbnail('ProjectRenderletThumbnail', {class: 'img-fluid'}).html|raw }}
  259.                                     {% endif %}
  260.                                     </div>
  261.                                     <p class=\"project-renderlet-title\">{{ project.title }} - {{ project.location }}</p>
  262.                                 </a>
  263.                             </div><!--/ .row -->
  264.                         {% endif %}
  265.                     </div>
  266.                 </div>
  267.             </div><!--/ .row -->
  268.         </div><!--/ .container-fluid -->
  269.         <section class=\"section--richcontent pt-5\">
  270.         {% for contentBlock in blog.contentBlocks %}
  271.             {% include 'content/' ~ contentBlock.type ~ '.html.twig' with {'contentBlock': contentBlock} %}
  272.         {% endfor %}
  273.         </section>
  274.     </main>
  275. {% endblock %}""blogs-detail.html.twig""/data/sites/web/gc-architectenntrigapimbe/subsites/gc2025.dspdev.be/templates/blogs-detail.html.twig");
  276.     }
  277.     
  278.     public function checkSecurity()
  279.     {
  280.         static $tags = array("if" => 26"set" => 38"for" => 61"include" => 62);
  281.         static $filters = array("escape" => 12"raw" => 47);
  282.         static $functions = array("app_project_detaillink" => 43);
  283.         try {
  284.             $this->sandbox->checkSecurity(
  285.                 ['if''set''for''include'],
  286.                 ['escape''raw'],
  287.                 ['app_project_detaillink']
  288.             );
  289.         } catch (SecurityError $e) {
  290.             $e->setSourceContext($this->source);
  291.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  292.                 $e->setTemplateLine($tags[$e->getTagName()]);
  293.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  294.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  295.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  296.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  297.             }
  298.             throw $e;
  299.         }
  300.     }
  301. }