<?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;

/* frontend/evenements.html.twig */
class __TwigTemplate_17b21b4b2983a12f6e71ba056c0414b4 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->blocks = [
            'content' => [$this, 'block_content'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 1
        return "frontend/layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $this->parent = $this->load("frontend/layout.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 4
        yield "<div class=\"container single-template\">

  <div class=\"page-header\">
\t\t\t<h1 class=\"page-title\">
\t\t\t\tL'actualité de la DGCS-ODD
\t\t\t</h1>
\t\t</div>
    
    ";
        // line 12
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["evenements"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["events"]) {
            // line 13
            yield "    <section class=\"category-section\" style=\"margin-bottom: 30px;\">
      <div class=\"container aos-init aos-animate\" data-aos=\"fade-up\">
          <div class=\"row g-5\">
\t\t\t\t\t\t<div class=\"col-lg-6\">
\t\t\t\t\t\t\t<div class=\"post-entry-1 lg\">
\t\t\t\t\t\t\t\t<a href=\"";
            // line 18
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("evenement", ["id" => CoreExtension::getAttribute($this->env, $this->source, (($_v0 = $context["events"]) && is_array($_v0) || $_v0 instanceof ArrayAccess ? ($_v0[0] ?? null) : null), "id", [], "any", false, false, false, 18)]), "html", null, true);
            yield "\"><img src=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("dist/img/events/"), "html", null, true);
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (($_v1 = $context["events"]) && is_array($_v1) || $_v1 instanceof ArrayAccess ? ($_v1[0] ?? null) : null), "photo", [], "any", false, false, false, 18), "html", null, true);
            yield "\" alt=\"\" class=\"img-fluid\" style=\"max-width: auto;height: 370px;\"></a>
\t\t\t\t\t\t\t\t<div class=\"post-meta\">
\t\t\t\t\t\t\t\t\t<span class=\"date\">";
            // line 20
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (($_v2 = $context["events"]) && is_array($_v2) || $_v2 instanceof ArrayAccess ? ($_v2[0] ?? null) : null), "lieu", [], "any", false, false, false, 20), "html", null, true);
            yield "</span>
\t\t\t\t\t\t\t\t\t<span class=\"mx-1\">•</span>
\t\t\t\t\t\t\t\t\t<span>";
            // line 22
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (($_v3 = $context["events"]) && is_array($_v3) || $_v3 instanceof ArrayAccess ? ($_v3[0] ?? null) : null), "date", [], "any", false, false, false, 22), "d/m/Y"), "html", null, true);
            yield "</span>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<h2 style=\"font-size: 20px; padding: 0; margin: 0; color: #023b6d;\">
\t\t\t\t\t\t\t\t\t<a href=\"";
            // line 25
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("evenement", ["id" => CoreExtension::getAttribute($this->env, $this->source, (($_v4 = $context["events"]) && is_array($_v4) || $_v4 instanceof ArrayAccess ? ($_v4[0] ?? null) : null), "id", [], "any", false, false, false, 25)]), "html", null, true);
            yield "\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (($_v5 = $context["events"]) && is_array($_v5) || $_v5 instanceof ArrayAccess ? ($_v5[0] ?? null) : null), "title", [], "any", false, false, false, 25), "html", null, true);
            yield "</a>
\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>

\t\t\t\t\t\t<div class=\"col-lg-6\">
\t\t\t\t\t\t\t<div class=\"row g-5\">
\t\t\t\t\t\t\t\t";
            // line 32
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(range(1, 4));
            foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                // line 33
                yield "\t\t\t\t\t\t\t\t";
                if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), $context["events"]) > $context["i"])) {
                    // line 34
                    yield "\t\t\t\t\t\t\t\t<div class=\"col-lg-6 border-start custom-border\" style=\"margin-bottom: 15px;\">
\t\t\t\t\t\t\t\t\t<div class=\"post-entry-1\">
\t\t\t\t\t\t\t\t\t\t<a href=\"";
                    // line 36
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("evenement", ["id" => CoreExtension::getAttribute($this->env, $this->source, (($_v6 = $context["events"]) && is_array($_v6) || $_v6 instanceof ArrayAccess ? ($_v6[$context["i"]] ?? null) : null), "id", [], "any", false, false, false, 36)]), "html", null, true);
                    yield "\"><img src=\"";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("dist/img/events/"), "html", null, true);
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (($_v7 = $context["events"]) && is_array($_v7) || $_v7 instanceof ArrayAccess ? ($_v7[$context["i"]] ?? null) : null), "photo", [], "any", false, false, false, 36), "html", null, true);
                    yield "\" alt=\"\" class=\"img-fluid\" style=\"max-width: auto;height: 150px;\"></a>
\t\t\t\t\t\t\t\t\t\t<div class=\"post-meta\">
\t\t\t\t\t\t\t\t\t\t\t<span class=\"date\">";
                    // line 38
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (($_v8 = $context["events"]) && is_array($_v8) || $_v8 instanceof ArrayAccess ? ($_v8[$context["i"]] ?? null) : null), "lieu", [], "any", false, false, false, 38), "html", null, true);
                    yield "</span>
\t\t\t\t\t\t\t\t\t\t\t<span class=\"mx-1\">•</span>
\t\t\t\t\t\t\t\t\t\t\t<span>";
                    // line 40
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, (($_v9 = $context["events"]) && is_array($_v9) || $_v9 instanceof ArrayAccess ? ($_v9[$context["i"]] ?? null) : null), "date", [], "any", false, false, false, 40), "d/m/Y"), "html", null, true);
                    yield "</span>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t<h2 style=\"font-size: 14px; padding: 0; margin: 0; color: #023b6d;\">
\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
                    // line 43
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("evenement", ["id" => CoreExtension::getAttribute($this->env, $this->source, (($_v10 = $context["events"]) && is_array($_v10) || $_v10 instanceof ArrayAccess ? ($_v10[$context["i"]] ?? null) : null), "id", [], "any", false, false, false, 43)]), "html", null, true);
                    yield "\">";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (($_v11 = $context["events"]) && is_array($_v11) || $_v11 instanceof ArrayAccess ? ($_v11[$context["i"]] ?? null) : null), "title", [], "any", false, false, false, 43), "html", null, true);
                    yield "</a>
\t\t\t\t\t\t\t\t\t\t</h2>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t";
                }
                // line 48
                yield "\t\t\t\t\t\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['i'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 49
            yield "
\t\t\t\t\t\t\t</div>

\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
      </div>
    </section>
    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['events'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 57
        yield "
</div>
";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  169 => 57,  156 => 49,  150 => 48,  140 => 43,  134 => 40,  129 => 38,  121 => 36,  117 => 34,  114 => 33,  110 => 32,  98 => 25,  92 => 22,  87 => 20,  79 => 18,  72 => 13,  68 => 12,  58 => 4,  51 => 3,  40 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "frontend/evenements.html.twig", "/var/www/html/templates/frontend/evenements.html.twig");
    }
}
