var/cache/dev/twig/4a/4abf3947d83093344e23f6976c8c5c5b8ce828910e93ca4510bbabd4d07937fc.php line 33

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. /* PageParts/LatestNewsPagePart/view.html.twig */
  14. class __TwigTemplate_90f49b0f3f523670788f8e391473094a268879b31fb81dc0ca18502e1512b370 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""PageParts/LatestNewsPagePart/view.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""PageParts/LatestNewsPagePart/view.html.twig"));
  33.         // line 1
  34.         echo "<section class=\"latest-news\">
  35.     <div class=\"content\">
  36.         ";
  37.         // line 4
  38.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragmentStrategy("esi"Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\NewsArticleController:lastNews", ["limit" => twig_get_attribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'4$this->source); })()), "newsToShow", [], "any"falsefalsefalse4), "node" => (((isset($context["node"]) || array_key_exists("node"$context))) ? (twig_get_attribute($this->env$this->source, (isset($context["node"]) || array_key_exists("node"$context) ? $context["node"] : (function () { throw new RuntimeError('Variable "node" does not exist.'4$this->source); })()), "internalName", [], "any"falsefalsefalse4)) : (null))]));
  39.         echo "
  40.         <div class=\"text--right\">
  41.             <a href=\"";
  42.         // line 6
  43.         echo twig_escape_filter($this->env$this->extensions['Kunstmaan\NodeBundle\Twig\NodeTwigExtension']->getUrlByInternalName("news"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "locale", [], "any"falsefalsefalse6)), "html"nulltrue);
  44.         echo "\" class=\"btn btn--blue\">";
  45.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("news.latest_news.button"), "html"nulltrue);
  46.         echo "</a>
  47.         </div>
  48.     </div>
  49. </section>
  50. ";
  51.         
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  53.         
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  55.     }
  56.     public function getTemplateName()
  57.     {
  58.         return "PageParts/LatestNewsPagePart/view.html.twig";
  59.     }
  60.     public function isTraitable()
  61.     {
  62.         return false;
  63.     }
  64.     public function getDebugInfo()
  65.     {
  66.         return array (  53 => 6,  48 => 4,  43 => 1,);
  67.     }
  68.     public function getSourceContext()
  69.     {
  70.         return new Source("<section class=\"latest-news\">
  71.     <div class=\"content\">
  72.         {{ render_esi(controller('App\\\\Controller\\\\NewsArticleController:lastNews', { 'limit' :  resource.newsToShow, 'node' : (node is defined ? node.internalName : null)  } )) }}
  73.         <div class=\"text--right\">
  74.             <a href=\"{{ get_url_by_internal_name('news', app.request.locale) }}\" class=\"btn btn--blue\">{{ 'news.latest_news.button' | trans }}</a>
  75.         </div>
  76.     </div>
  77. </section>
  78. ""PageParts/LatestNewsPagePart/view.html.twig""/var/www/gcs/html/dev/templates/PageParts/LatestNewsPagePart/view.html.twig");
  79.     }
  80. }