var/cache/dev/twig/5b/5b66d17e07a7cb573e6c0655de4a4b60219392df8c5be62dabef9ac0ef079d7d.php line 52

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. /* @VisualMediaNews/NewsLayout/view.html.twig */
  14. class __TwigTemplate_17e96fbfe89000911a8d6321c619869e998e5179565c347c7309a3aa760a7ab1 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.             'main' => [$this'block_main'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "Layout/base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@VisualMediaNews/NewsLayout/view.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@VisualMediaNews/NewsLayout/view.html.twig"));
  38.         // line 3
  39.         $context["breadcrumbs"] = [=> ["title" => "Nieuws""path" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("news")], => ["title" => twig_get_attribute($this->env$this->source,         // line 5
  40. (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'5$this->source); })()), "title", [], "any"falsefalsefalse5)]];
  41.         // line 1
  42.         $this->parent $this->loadTemplate("Layout/base.html.twig""@VisualMediaNews/NewsLayout/view.html.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 8
  50.     public function block_main($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  57.         // line 9
  58.         echo "
  59.     ";
  60.         // line 10
  61.         $this->loadTemplate("@VisualMediaVisual/Visual/newsvisual.html.twig""@VisualMediaNews/NewsLayout/view.html.twig"10)->display(twig_array_merge($context, ["visuals" => twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'10$this->source); })()), "upload", [], "any"falsefalsefalse10)]));
  62.         // line 11
  63.         echo "
  64.     <div class=\"news-wrapper\">
  65.         <div class=\"page-stripes\"></div>
  66.         <div class=\"breadcrumb\">
  67.             <div class=\"container\">
  68.                 <div class=\"row\">
  69.                     <div class=\"col-12\">
  70.                         ";
  71.         // line 18
  72.         $this->loadTemplate("@VisualMediaBreadcrumb/Breadcrumb/breadcrumb_static.html.twig""@VisualMediaNews/NewsLayout/view.html.twig"18)->display(twig_array_merge($context, ["breadcrumbs" => (isset($context["breadcrumbs"]) || array_key_exists("breadcrumbs"$context) ? $context["breadcrumbs"] : (function () { throw new RuntimeError('Variable "breadcrumbs" does not exist.'18$this->source); })())]));
  73.         // line 19
  74.         echo "                    </div>
  75.                 </div>
  76.             </div>
  77.         </div>
  78.         <section class=\"news-detail\">
  79.         
  80.             <div class=\"container\">
  81.                 <div class=\"row\">
  82.                     <div class=\"col-12 col-lg-8\">
  83.                         <div class=\"news-detail_content\">
  84.                             ";
  85.         // line 32
  86.         echo twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'32$this->source); })()), "htmlContent", [], "any"falsefalsefalse32);
  87.         echo "
  88.                             <div class=\"news-detail_meta\">
  89.                                 ";
  90.         // line 34
  91.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'34$this->source); })()), "source", [], "any"falsefalsefalse34))) {
  92.             // line 35
  93.             echo "                                    <span class=\"source\"><i class=\"fas fa-book\"></i>";
  94.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'35$this->source); })()), "source", [], "any"falsefalsefalse35), "html"nulltrue);
  95.             echo "</span>
  96.                                 ";
  97.         } else {
  98.             // line 37
  99.             echo "                                ";
  100.         }
  101.         // line 38
  102.         echo "                                ";
  103.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'38$this->source); })()), "author", [], "any"falsefalsefalse38))) {
  104.             // line 39
  105.             echo "                                    <span class=\"author\"><i class=\"fas fa-user-edit\"></i>";
  106.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'39$this->source); })()), "author", [], "any"falsefalsefalse39), "html"nulltrue);
  107.             echo "</span>
  108.                                 ";
  109.         } else {
  110.             // line 41
  111.             echo "                                ";
  112.         }
  113.         // line 42
  114.         echo "                            </div>
  115.                             ";
  116.         // line 43
  117.         if ( !(null === twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'43$this->source); })()), "employee", [], "any"falsefalsefalse43))) {
  118.             // line 44
  119.             echo "                                ";
  120.             $this->loadTemplate("Employee/view.html.twig""@VisualMediaNews/NewsLayout/view.html.twig"44)->display(twig_array_merge($context, ["employee" => twig_get_attribute($this->env$this->source, (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'44$this->source); })()), "employee", [], "any"falsefalsefalse44)]));
  121.             // line 45
  122.             echo "                            ";
  123.         }
  124.         // line 46
  125.         echo "                        </div>
  126.                     </div>
  127.                     <div class=\"col-12 col-lg-4\">
  128.                         <div class=\"news-sidebar\">
  129.                             <h2>Meer nieuws</h2>
  130.                             ";
  131.         // line 51
  132.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("VisualMedia\\NewsBundle\\Controller\\NewsController::ssiAction", ["count" => 3"currentNews" => (isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'51$this->source); })())]));
  133.         echo "
  134.                         </div>
  135.                     </div>
  136.                 </div>
  137.             </div>
  138.         </section>
  139.     </div>
  140. ";
  141.         
  142.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  143.         
  144.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  145.     }
  146.     public function getTemplateName()
  147.     {
  148.         return "@VisualMediaNews/NewsLayout/view.html.twig";
  149.     }
  150.     public function isTraitable()
  151.     {
  152.         return false;
  153.     }
  154.     public function getDebugInfo()
  155.     {
  156.         return array (  149 => 51,  142 => 46,  139 => 45,  136 => 44,  134 => 43,  131 => 42,  128 => 41,  122 => 39,  119 => 38,  116 => 37,  110 => 35,  108 => 34,  103 => 32,  88 => 19,  86 => 18,  77 => 11,  75 => 10,  72 => 9,  62 => 8,  51 => 1,  49 => 5,  48 => 3,  35 => 1,);
  157.     }
  158.     public function getSourceContext()
  159.     {
  160.         return new Source("{% extends 'Layout/base.html.twig' %}
  161. {% set breadcrumbs = [
  162.     { title: 'Nieuws', path: path('news') },
  163.     { title: news.title },
  164. ] %}
  165. {% block main %}
  166.     {% include '@VisualMediaVisual/Visual/newsvisual.html.twig' with { visuals: news.upload } %}
  167.     <div class=\"news-wrapper\">
  168.         <div class=\"page-stripes\"></div>
  169.         <div class=\"breadcrumb\">
  170.             <div class=\"container\">
  171.                 <div class=\"row\">
  172.                     <div class=\"col-12\">
  173.                         {% include '@VisualMediaBreadcrumb/Breadcrumb/breadcrumb_static.html.twig' with { 'breadcrumbs': breadcrumbs } %}
  174.                     </div>
  175.                 </div>
  176.             </div>
  177.         </div>
  178.         <section class=\"news-detail\">
  179.         
  180.             <div class=\"container\">
  181.                 <div class=\"row\">
  182.                     <div class=\"col-12 col-lg-8\">
  183.                         <div class=\"news-detail_content\">
  184.                             {{ news.htmlContent|raw }}
  185.                             <div class=\"news-detail_meta\">
  186.                                 {% if news.source is not empty %}
  187.                                     <span class=\"source\"><i class=\"fas fa-book\"></i>{{ news.source }}</span>
  188.                                 {% else %}
  189.                                 {% endif %}
  190.                                 {% if news.author is not empty %}
  191.                                     <span class=\"author\"><i class=\"fas fa-user-edit\"></i>{{ news.author }}</span>
  192.                                 {% else %}
  193.                                 {% endif %}
  194.                             </div>
  195.                             {% if news.employee is not null %}
  196.                                 {% include 'Employee/view.html.twig' with { 'employee': news.employee } %}
  197.                             {% endif %}
  198.                         </div>
  199.                     </div>
  200.                     <div class=\"col-12 col-lg-4\">
  201.                         <div class=\"news-sidebar\">
  202.                             <h2>Meer nieuws</h2>
  203.                             {{ render(controller('VisualMedia\\\\NewsBundle\\\\Controller\\\\NewsController::ssiAction', { 'count': 3, 'currentNews': news} )) }}
  204.                         </div>
  205.                     </div>
  206.                 </div>
  207.             </div>
  208.         </section>
  209.     </div>
  210. {% endblock %}
  211. ""@VisualMediaNews/NewsLayout/view.html.twig""/var/www/vhosts/localhost/html/templates/VisualMediaNewsBundle/views/NewsLayout/view.html.twig");
  212.     }
  213. }