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