<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* PageParts/LatestNewsPagePart/view.html.twig */
class __TwigTemplate_90f49b0f3f523670788f8e391473094a268879b31fb81dc0ca18502e1512b370 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "PageParts/LatestNewsPagePart/view.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "PageParts/LatestNewsPagePart/view.html.twig"));
// line 1
echo "<section class=\"latest-news\">
<div class=\"content\">
";
// line 4
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", false, false, false, 4), "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", false, false, false, 4)) : (null))]));
echo "
<div class=\"text--right\">
<a href=\"";
// line 6
echo twig_escape_filter($this->env, $this->extensions['Kunstmaan\NodeBundle\Twig\NodeTwigExtension']->getUrlByInternalName("news", twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 6), "locale", [], "any", false, false, false, 6)), "html", null, true);
echo "\" class=\"btn btn--blue\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("news.latest_news.button"), "html", null, true);
echo "</a>
</div>
</div>
</section>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "PageParts/LatestNewsPagePart/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 53 => 6, 48 => 4, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<section class=\"latest-news\">
<div class=\"content\">
{{ render_esi(controller('App\\\\Controller\\\\NewsArticleController:lastNews', { 'limit' : resource.newsToShow, 'node' : (node is defined ? node.internalName : null) } )) }}
<div class=\"text--right\">
<a href=\"{{ get_url_by_internal_name('news', app.request.locale) }}\" class=\"btn btn--blue\">{{ 'news.latest_news.button' | trans }}</a>
</div>
</div>
</section>
", "PageParts/LatestNewsPagePart/view.html.twig", "/var/www/gcs/html/dev/templates/PageParts/LatestNewsPagePart/view.html.twig");
}
}