<?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\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;

/* @RssFeed/items.html.twig */
class __TwigTemplate_47580d9906892f0df80229c0a0acae39 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_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@RssFeed/items.html.twig"));

        // line 2
        yield "<ul class=\"rss-items\">
    ";
        // line 3
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["items"]) || array_key_exists("items", $context) ? $context["items"] : (function () { throw new RuntimeError('Variable "items" does not exist.', 3, $this->source); })()));
        $context['_iterated'] = false;
        foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
            // line 4
            yield "        <li class=\"rss-item\">
            <a href=\"";
            // line 5
            yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "url", [], "any", false, false, false, 5), "html", null, true);
            yield "\">";
            yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "title", [], "any", false, false, false, 5), "html", null, true);
            yield "</a>
            <div class=\"rss-date\">";
            // line 6
            yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "published", [], "any", false, false, false, 6), "Y-m-d H:i"), "html", null, true);
            yield "</div>
            <div class=\"rss-content\">";
            // line 7
            yield (string) CoreExtension::getAttribute($this->env, $this->source, $context["item"], "content", [], "any", false, false, false, 7);
            yield "</div>
        </li>
    ";
            $context['_iterated'] = true;
        }
        // line 9
        if (!$context['_iterated']) {
            // line 10
            yield "        <li>No items</li>
    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['item'], $context['_parent'], $context['_iterated']);
        $context = array_intersect_key($context, $_parent);
        $context += $_parent;
        // line 12
        yield "</ul>
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "@RssFeed/items.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable(): bool
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  84 => 12,  76 => 10,  74 => 9,  67 => 7,  63 => 6,  57 => 5,  54 => 4,  49 => 3,  46 => 2,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{# Simple rendering of items list #}
<ul class=\"rss-items\">
    {% for item in items %}
        <li class=\"rss-item\">
            <a href=\"{{ item.url }}\">{{ item.title }}</a>
            <div class=\"rss-date\">{{ item.published|date(\x27Y-m-d H:i\x27) }}</div>
            <div class=\"rss-content\">{{ item.content|raw }}</div>
        </li>
    {% else %}
        <li>No items</li>
    {% endfor %}
</ul>
", "@RssFeed/items.html.twig", "/home/runner/work/phplist3/phplist3/public_html/lists/base/vendor/tatevikgr/rss-feed/src/Resources/views/items.html.twig");
    }
}
