<?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/category.html.twig */
class __TwigTemplate_a4c69d60790ecd04ed00b73e5115963f 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/category.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/category.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "default/category.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>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['data'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 18
yield "
";
// line 19
$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.', 19, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["value"]) {
// line 20
yield " <div class=\"onmedia-items\">
<div class=\"onmedia-item-out\">
<div class=\"onmedia-item\">
<div class=\"onmedia-item-text\">
<h3>
";
// line 27
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["value"], "title", [], "any", false, false, false, 27), "html", null, true);
yield "
</h3>
";
// line 30
yield CoreExtension::getAttribute($this->env, $this->source, $context["value"], "short", [], "any", false, false, false, 30);
yield "
</div>
</div>
<div class=\"onmedia-footer\">
<a class=\"onmedia-footer-button\" href=\"";
// line 37
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, 37)]), "html", null, true);
yield "\">Continue Reading</a>
<div class=\"onmedia-footer-logo\">
<img src=\"";
// line 40
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["value"], "icon", [], "any", false, false, false, 40), "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 48
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/category.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 177 => 48, 163 => 40, 157 => 37, 147 => 30, 141 => 27, 132 => 20, 128 => 19, 125 => 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>
{% 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>
<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/category.html.twig", "/home/aperove.com/templates/default/category.html.twig");
}
}