<?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;
/* default/archive.html.twig */
class __TwigTemplate_2b31d9e28cc2db544eb3db4d6d8da731 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 = [
'body_id' => [$this, 'block_body_id'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "base.html.twig";
}
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", "default/archive.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/archive.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "default/archive.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body_id(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(), "block", "body_id"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_id"));
yield "archive";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(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(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 6
yield "
<div id=\"onmedia\" class=\"onmedia\">
<div class=\"container\">
<div class=\" w70 w-xl-90 w-lg-100 w-md-100 w-sm-90 w-xs-100 margin-auto\">
";
// line 12
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["homeArchive"]) || array_key_exists("homeArchive", $context) ? $context["homeArchive"] : (function () { throw new RuntimeError('Variable "homeArchive" does not exist.', 12, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["data"]) {
// line 13
yield " <h1 class=\"w100 text-center marginBottom\">
";
// line 14
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 14, $this->source); })()), "title", [], "any", false, false, false, 14), "html", null, true);
yield "
</h1>
<div class=\"title-info w50 w-md-80 w-sm-90 w-xs-100 margin-auto paddingBottomBigger text-center\">
";
// line 18
yield CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 18, $this->source); })()), "short", [], "any", false, false, false, 18);
yield "
<a class=\"button cta-follow\" href=\"https://x.com/ape_rove\" target=\"_blank\"><span class=\"button-icon\"><img src=\"uploads/admin/icons/icon-x-green.svg\" alt=\"X Icon\" /></span> Follow ApeRove</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['data'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 23
yield "
";
// line 24
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["pageChilds"]) || array_key_exists("pageChilds", $context) ? $context["pageChilds"] : (function () { throw new RuntimeError('Variable "pageChilds" does not exist.', 24, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["value"]) {
// line 25
yield " <div class=\"onmedia-items\">
<div class=\"onmedia-item-out\">
<div class=\"onmedia-item\">
<div class=\"onmedia-item-text\">
<h3>
";
// line 32
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["value"], "title", [], "any", false, false, false, 32), "html", null, true);
yield "
</h3>
";
// line 35
yield CoreExtension::getAttribute($this->env, $this->source, $context["value"], "short", [], "any", false, false, false, 35);
yield "
</div>
<div class=\"onmedia-item-image\">
<img src=\"";
// line 39
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(CoreExtension::getAttribute($this->env, $this->source, $context["value"], "thumb", [], "any", false, false, false, 39)), "html", null, true);
yield "\" class=\"w100\" />
</div>
</div>
<div class=\"onmedia-footer\">
<a class=\"onmedia-footer-button\" href=\"";
// line 45
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("page_show", ["slug" => CoreExtension::getAttribute($this->env, $this->source, $context["value"], "slug", [], "any", false, false, false, 45)]), "html", null, true);
yield "\">Continue Reading</a>
<div class=\"onmedia-footer-logo\">
<img src=\"";
// line 48
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["value"], "icon", [], "any", false, false, false, 48), "html", null, true);
yield "\" />
</div>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['value'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 56
yield "
</div></div></div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "default/archive.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 191 => 56, 177 => 48, 171 => 45, 162 => 39, 155 => 35, 149 => 32, 140 => 25, 136 => 24, 133 => 23, 122 => 18, 115 => 14, 112 => 13, 108 => 12, 100 => 6, 87 => 5, 64 => 3, 41 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'base.html.twig' %}
{% block body_id 'archive' %}
{% block body %}
<div id=\"onmedia\" class=\"onmedia\">
<div class=\"container\">
<div class=\" w70 w-xl-90 w-lg-100 w-md-100 w-sm-90 w-xs-100 margin-auto\">
{% for data in homeArchive %}
<h1 class=\"w100 text-center marginBottom\">
{{ page.title }}
</h1>
<div class=\"title-info w50 w-md-80 w-sm-90 w-xs-100 margin-auto paddingBottomBigger text-center\">
{{ page.short|raw }}
<a class=\"button cta-follow\" href=\"https://x.com/ape_rove\" target=\"_blank\"><span class=\"button-icon\"><img src=\"uploads/admin/icons/icon-x-green.svg\" alt=\"X Icon\" /></span> Follow ApeRove</a>
</div>
{% endfor %}
{% for value in pageChilds %}
<div class=\"onmedia-items\">
<div class=\"onmedia-item-out\">
<div class=\"onmedia-item\">
<div class=\"onmedia-item-text\">
<h3>
{{ value.title }}
</h3>
{{ value.short|raw }}
</div>
<div class=\"onmedia-item-image\">
<img src=\"{{ asset(value.thumb) }}\" class=\"w100\" />
</div>
</div>
<div class=\"onmedia-footer\">
<a class=\"onmedia-footer-button\" href=\"{{ path('page_show', {slug: value.slug}) }}\">Continue Reading</a>
<div class=\"onmedia-footer-logo\">
<img src=\"{{ value.icon }}\" />
</div>
</div>
</div>
</div>
{% endfor %}
</div></div></div>
{% endblock %}
", "default/archive.html.twig", "/home/aperove.com/templates/default/archive.html.twig");
}
}