var/cache/dev/twig/73/73887c7df4bdd029b708b1db0bce88ed.php line 44

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* default/archive.html.twig */
  16. class __TwigTemplate_2b31d9e28cc2db544eb3db4d6d8da731 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'body_id' => [$this'block_body_id'],
  29.             'body' => [$this'block_body'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "base.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/archive.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/archive.html.twig"));
  44.         $this->parent $this->loadTemplate("base.html.twig""default/archive.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_body_id(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_id"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_id"));
  62.         yield "archive";
  63.         
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  65.         
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67.         yield from [];
  68.     }
  69.     // line 5
  70.     /**
  71.      * @return iterable<null|scalar|\Stringable>
  72.      */
  73.     public function block_body(array $context, array $blocks = []): iterable
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  80.         // line 6
  81.         yield "
  82. <div id=\"onmedia\" class=\"onmedia\">
  83.     <div class=\"container\">
  84.     <div class=\" w70 w-xl-90 w-lg-100 w-md-100  w-sm-90 w-xs-100 margin-auto\">
  85.         ";
  86.         // line 12
  87.         $context['_parent'] = $context;
  88.         $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); })()));
  89.         foreach ($context['_seq'] as $context["_key"] => $context["data"]) {
  90.             // line 13
  91.             yield "        <h1 class=\"w100 text-center marginBottom\">
  92.         ";
  93.             // line 14
  94.             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"falsefalsefalse14), "html"nulltrue);
  95.             yield "
  96.         </h1>
  97.         <div class=\"title-info w50 w-md-80 w-sm-90 w-xs-100 margin-auto paddingBottomBigger text-center\">
  98.             ";
  99.             // line 18
  100.             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"falsefalsefalse18);
  101.             yield "
  102.             <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>
  103.         </div>
  104.         ";
  105.         }
  106.         $_parent $context['_parent'];
  107.         unset($context['_seq'], $context['_key'], $context['data'], $context['_parent']);
  108.         $context array_intersect_key($context$_parent) + $_parent;
  109.         // line 23
  110.         yield "
  111. ";
  112.         // line 24
  113.         $context['_parent'] = $context;
  114.         $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); })()));
  115.         foreach ($context['_seq'] as $context["_key"] => $context["value"]) {
  116.             // line 25
  117.             yield "    <div class=\"onmedia-items\">
  118.         <div class=\"onmedia-item-out\">
  119.             <div class=\"onmedia-item\">
  120.                 <div class=\"onmedia-item-text\">
  121.                     <h3>
  122.                     ";
  123.             // line 32
  124.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["value"], "title", [], "any"falsefalsefalse32), "html"nulltrue);
  125.             yield "
  126.                     </h3>
  127.                     ";
  128.             // line 35
  129.             yield CoreExtension::getAttribute($this->env$this->source$context["value"], "short", [], "any"falsefalsefalse35);
  130.             yield "
  131.                     
  132.                 </div>
  133.                 <div class=\"onmedia-item-image\">
  134.                     <img src=\"";
  135.             // line 39
  136.             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"falsefalsefalse39)), "html"nulltrue);
  137.             yield "\" class=\"w100\" />
  138.                 </div>
  139.             </div>
  140.             <div class=\"onmedia-footer\">
  141.                 <a class=\"onmedia-footer-button\" href=\"";
  142.             // line 45
  143.             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"falsefalsefalse45)]), "html"nulltrue);
  144.             yield "\">Continue Reading</a> 
  145.                 <div class=\"onmedia-footer-logo\">
  146.                     <img src=\"";
  147.             // line 48
  148.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["value"], "icon", [], "any"falsefalsefalse48), "html"nulltrue);
  149.             yield "\" />
  150.                 </div>
  151.             
  152.             </div>
  153.         </div>
  154. </div>
  155. ";
  156.         }
  157.         $_parent $context['_parent'];
  158.         unset($context['_seq'], $context['_key'], $context['value'], $context['_parent']);
  159.         $context array_intersect_key($context$_parent) + $_parent;
  160.         // line 56
  161.         yield "
  162. </div></div></div>
  163. ";
  164.         
  165.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  166.         
  167.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  168.         yield from [];
  169.     }
  170.     /**
  171.      * @codeCoverageIgnore
  172.      */
  173.     public function getTemplateName(): string
  174.     {
  175.         return "default/archive.html.twig";
  176.     }
  177.     /**
  178.      * @codeCoverageIgnore
  179.      */
  180.     public function isTraitable(): bool
  181.     {
  182.         return false;
  183.     }
  184.     /**
  185.      * @codeCoverageIgnore
  186.      */
  187.     public function getDebugInfo(): array
  188.     {
  189.         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,);
  190.     }
  191.     public function getSourceContext(): Source
  192.     {
  193.         return new Source("{% extends 'base.html.twig' %}
  194. {% block body_id 'archive' %}
  195. {% block body %}
  196. <div id=\"onmedia\" class=\"onmedia\">
  197.     <div class=\"container\">
  198.     <div class=\" w70 w-xl-90 w-lg-100 w-md-100  w-sm-90 w-xs-100 margin-auto\">
  199.         {% for data in homeArchive %}
  200.         <h1 class=\"w100 text-center marginBottom\">
  201.         {{ page.title }}
  202.         </h1>
  203.         <div class=\"title-info w50 w-md-80 w-sm-90 w-xs-100 margin-auto paddingBottomBigger text-center\">
  204.             {{ page.short|raw }}
  205.             <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>
  206.         </div>
  207.         {% endfor %}
  208. {% for value in pageChilds %}
  209.     <div class=\"onmedia-items\">
  210.         <div class=\"onmedia-item-out\">
  211.             <div class=\"onmedia-item\">
  212.                 <div class=\"onmedia-item-text\">
  213.                     <h3>
  214.                     {{ value.title }}
  215.                     </h3>
  216.                     {{ value.short|raw }}
  217.                     
  218.                 </div>
  219.                 <div class=\"onmedia-item-image\">
  220.                     <img src=\"{{ asset(value.thumb) }}\" class=\"w100\" />
  221.                 </div>
  222.             </div>
  223.             <div class=\"onmedia-footer\">
  224.                 <a class=\"onmedia-footer-button\" href=\"{{ path('page_show', {slug: value.slug}) }}\">Continue Reading</a> 
  225.                 <div class=\"onmedia-footer-logo\">
  226.                     <img src=\"{{ value.icon }}\" />
  227.                 </div>
  228.             
  229.             </div>
  230.         </div>
  231. </div>
  232. {% endfor %}
  233. </div></div></div>
  234. {% endblock %}
  235. ""default/archive.html.twig""/home/aperove.com/templates/default/archive.html.twig");
  236.     }
  237. }