var/cache/dev/twig/02/02fb7f3b30b7c5cda0010299b55bfe2996f7e17113aefa7c590bcd8fdf135d36.php line 39

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. /* @VisualMediaBlog/Blog/blog_post.html.twig */
  14. class __TwigTemplate_f86ac2fa35608b616e958b365c151fafc9d8190dd3157bf22cf0004b5b4e09a1 extends \Twig\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.             'head_javascript' => [$this'block_head_javascript'],
  24.             'main' => [$this'block_main'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "Layout/base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@VisualMediaBlog/Blog/blog_post.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@VisualMediaBlog/Blog/blog_post.html.twig"));
  39.         $this->parent $this->loadTemplate("Layout/base.html.twig""@VisualMediaBlog/Blog/blog_post.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_head_javascript($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head_javascript"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head_javascript"));
  54.         // line 4
  55.         echo "    ";
  56.         $this->loadTemplate("@VisualMediaBlog/Blog/json_ld.html.twig""@VisualMediaBlog/Blog/blog_post.html.twig"4)->display($context);
  57.         
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  59.         
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  61.     }
  62.     // line 7
  63.     public function block_main($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  70.         // line 8
  71.         echo "    ";
  72.         $this->loadTemplate("@VisualMediaVisual/Visual/visual.html.twig""@VisualMediaBlog/Blog/blog_post.html.twig"8)->display(twig_array_merge($context, ["visuals" => [=> (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'8$this->source); })())]]));
  73.         // line 9
  74.         echo "
  75.     <div id=\"blog_category\" class=\"container\">
  76.         ";
  77.         // line 11
  78.         $this->loadTemplate("@VisualMediaBreadcrumb/Breadcrumb/breadcrumb_static.html.twig""@VisualMediaBlog/Blog/blog_post.html.twig"11)->display(twig_to_array(["breadcrumbs" => [=> ["title" => twig_get_attribute($this->env$this->source,         // line 12
  79. (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'12$this->source); })()), "title", [], "any"falsefalsefalse12), "path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_index")], => ["title" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 13
  80. (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'13$this->source); })()), "mainCategory", [], "any"falsefalsefalse13), "title", [], "any"falsefalsefalse13), "path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_category", ["categorySlug" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'13$this->source); })()), "mainCategory", [], "any"falsefalsefalse13), "slug", [], "any"falsefalsefalse13)])], => ["title" => twig_get_attribute($this->env$this->source,         // line 14
  81. (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'14$this->source); })()), "title", [], "any"falsefalsefalse14)]]]));
  82.         // line 16
  83.         echo "
  84.         <h1>";
  85.         // line 17
  86.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'17$this->source); })()), "title", [], "any"falsefalsefalse17), "html"nulltrue);
  87.         echo "</h1>
  88.         <span>Gepubliceerd op: ";
  89.         // line 19
  90.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'19$this->source); })()), "publicationDate", [], "any"falsefalsefalse19), "Y-m-d"), "html"nulltrue);
  91.         echo "</span><br>
  92.         <span>Categorie: <a href=\"";
  93.         // line 20
  94.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_category", ["categorySlug" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'20$this->source); })()), "mainCategory", [], "any"falsefalsefalse20), "slug", [], "any"falsefalsefalse20)]), "html"nulltrue);
  95.         echo "\">";
  96.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'20$this->source); })()), "mainCategory", [], "any"falsefalsefalse20), "title", [], "any"falsefalsefalse20), "html"nulltrue);
  97.         echo "</a></span><br>
  98.         ";
  99.         // line 22
  100.         echo twig_escape_filter($this->env$this->extensions['VisualMedia\LisaBundle\Twig\TwigContentScan']->scan(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'22$this->source); })()), "htmlContent", [], "any"falsefalsefalse22)), "html"nulltrue);
  101.         echo "
  102.         ";
  103.         // line 24
  104.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'24$this->source); })()), "author", [], "any"falsefalsefalse24))) {
  105.             // line 25
  106.             echo "            <span>Auteur: <i>";
  107.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'25$this->source); })()), "author", [], "any"falsefalsefalse25), "html"nulltrue);
  108.             echo "</i></span><br>
  109.         ";
  110.         }
  111.         // line 27
  112.         echo "
  113.         ";
  114.         // line 28
  115.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'28$this->source); })()), "source", [], "any"falsefalsefalse28))) {
  116.             // line 29
  117.             echo "            <span>Bron: <i>";
  118.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'29$this->source); })()), "source", [], "any"falsefalsefalse29), "html"nulltrue);
  119.             echo "</i></span>
  120.         ";
  121.         }
  122.         // line 31
  123.         echo "    </div>
  124. ";
  125.         
  126.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  127.         
  128.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  129.     }
  130.     public function getTemplateName()
  131.     {
  132.         return "@VisualMediaBlog/Blog/blog_post.html.twig";
  133.     }
  134.     public function isTraitable()
  135.     {
  136.         return false;
  137.     }
  138.     public function getDebugInfo()
  139.     {
  140.         return array (  145 => 31,  139 => 29,  137 => 28,  134 => 27,  128 => 25,  126 => 24,  121 => 22,  114 => 20,  110 => 19,  105 => 17,  102 => 16,  100 => 14,  99 => 13,  98 => 12,  97 => 11,  93 => 9,  90 => 8,  80 => 7,  69 => 4,  59 => 3,  36 => 1,);
  141.     }
  142.     public function getSourceContext()
  143.     {
  144.         return new Source("{% extends 'Layout/base.html.twig' %}
  145. {% block head_javascript %}
  146.     {% include '@VisualMediaBlog/Blog/json_ld.html.twig' %}
  147. {% endblock %}
  148. {% block main %}
  149.     {% include '@VisualMediaVisual/Visual/visual.html.twig' with { visuals: [ post ] } %}
  150.     <div id=\"blog_category\" class=\"container\">
  151.         {% include '@VisualMediaBreadcrumb/Breadcrumb/breadcrumb_static.html.twig' with { breadcrumbs: [
  152.             { title: page.title, path: path('blog_index') },
  153.             { title: post.mainCategory.title, path: path('blog_category', { categorySlug: post.mainCategory.slug }) },
  154.             { title: post.title },
  155.         ] } only %}
  156.         <h1>{{ post.title }}</h1>
  157.         <span>Gepubliceerd op: {{ post.publicationDate|date('Y-m-d') }}</span><br>
  158.         <span>Categorie: <a href=\"{{ path('blog_category', { categorySlug: post.mainCategory.slug }) }}\">{{ post.mainCategory.title }}</a></span><br>
  159.         {{ post.htmlContent|scan }}
  160.         {% if post.author is not empty %}
  161.             <span>Auteur: <i>{{ post.author }}</i></span><br>
  162.         {% endif %}
  163.         {% if post.source is not empty %}
  164.             <span>Bron: <i>{{ post.source }}</i></span>
  165.         {% endif %}
  166.     </div>
  167. {% endblock %}
  168. ""@VisualMediaBlog/Blog/blog_post.html.twig""/home/components/public_html/templates/VisualMediaBlogBundle/views/Blog/blog_post.html.twig");
  169.     }
  170. }