<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* @theme/news/embedNewsOverview.html.twig */
class __TwigTemplate_16da15d052006fddd2fffbaff1d052cd extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $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 = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/news/embedNewsOverview.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/news/embedNewsOverview.html.twig"));
// line 1
yield "<section class=\"news-overview\">
";
// line 2
if ((($tmp = (isset($context["featuredArticle"]) || array_key_exists("featuredArticle", $context) ? $context["featuredArticle"] : (function () { throw new RuntimeError('Variable "featuredArticle" does not exist.', 2, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 3
yield " ";
yield $this->env->getRuntime('Symfony\UX\TwigComponent\Twig\ComponentRuntime')->render("FeaturedNewsArticle", ["article" => (isset($context["featuredArticle"]) || array_key_exists("featuredArticle", $context) ? $context["featuredArticle"] : (function () { throw new RuntimeError('Variable "featuredArticle" does not exist.', 3, $this->source); })())]);
yield "
";
}
// line 5
yield " <div class=\"container\">
";
// line 6
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 6, $this->source); })()));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
// line 7
yield " ";
yield $this->env->getRuntime('Symfony\UX\TwigComponent\Twig\ComponentRuntime')->render("NewsThumbnail", ["article" => $context["article"]]);
yield "
";
$context['_iterated'] = true;
}
// line 8
if (!$context['_iterated']) {
// line 9
yield " <div>No News Found</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['article'], $context['_parent'], $context['_iterated']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 11
yield " </div>
</section>
<div class=\"conatiner text-center\">
";
// line 14
yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 14, $this->source); })()));
yield "
</div>
";
// line 16
yield $this->env->getRuntime('Symfony\UX\TwigComponent\Twig\ComponentRuntime')->render("WhatsAppBlock", ["alt" => "true"]);
yield "
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@theme/news/embedNewsOverview.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 93 => 16, 88 => 14, 83 => 11, 76 => 9, 74 => 8, 67 => 7, 62 => 6, 59 => 5, 53 => 3, 51 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<section class=\"news-overview\">
{% if featuredArticle %}
{{ component('FeaturedNewsArticle', { article: featuredArticle }) }}
{% endif %}
<div class=\"container\">
{% for article in articles %}
{{ component('NewsThumbnail', { article: article }) }}
{% else %}
<div>No News Found</div>
{% endfor %}
</div>
</section>
<div class=\"conatiner text-center\">
{{ knp_pagination_render(articles) }}
</div>
{{ component('WhatsAppBlock', { alt: 'true' }) }}
", "@theme/news/embedNewsOverview.html.twig", "/var/www/html/t/taurushr/templates/themes/base/news/embedNewsOverview.html.twig");
}
}