var/cache/dev/twig/c3/c35a188cf9761fd4fc60bdd974e8f53d.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/category.html.twig */
  16. class __TwigTemplate_a4c69d60790ecd04ed00b73e5115963f 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/category.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/category.html.twig"));
  44.         $this->parent $this->loadTemplate("base.html.twig""default/category.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.         ";
  98.         }
  99.         $_parent $context['_parent'];
  100.         unset($context['_seq'], $context['_key'], $context['data'], $context['_parent']);
  101.         $context array_intersect_key($context$_parent) + $_parent;
  102.         // line 18
  103.         yield "
  104. ";
  105.         // line 19
  106.         $context['_parent'] = $context;
  107.         $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); })()));
  108.         foreach ($context['_seq'] as $context["_key"] => $context["value"]) {
  109.             // line 20
  110.             yield "    <div class=\"onmedia-items\">
  111.         <div class=\"onmedia-item-out\">
  112.             <div class=\"onmedia-item\">
  113.                 <div class=\"onmedia-item-text\">
  114.                     <h3>
  115.                     ";
  116.             // line 27
  117.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["value"], "title", [], "any"falsefalsefalse27), "html"nulltrue);
  118.             yield "
  119.                     </h3>
  120.                     ";
  121.             // line 30
  122.             yield CoreExtension::getAttribute($this->env$this->source$context["value"], "short", [], "any"falsefalsefalse30);
  123.             yield "
  124.                     
  125.                 </div>
  126.             </div>
  127.             <div class=\"onmedia-footer\">
  128.                 <a class=\"onmedia-footer-button\" href=\"";
  129.             // line 37
  130.             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"falsefalsefalse37)]), "html"nulltrue);
  131.             yield "\">Continue Reading</a> 
  132.                 <div class=\"onmedia-footer-logo\">
  133.                     <img src=\"";
  134.             // line 40
  135.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["value"], "icon", [], "any"falsefalsefalse40), "html"nulltrue);
  136.             yield "\" />
  137.                 </div>
  138.             
  139.             </div>
  140.         </div>
  141. </div>
  142. ";
  143.         }
  144.         $_parent $context['_parent'];
  145.         unset($context['_seq'], $context['_key'], $context['value'], $context['_parent']);
  146.         $context array_intersect_key($context$_parent) + $_parent;
  147.         // line 48
  148.         yield "
  149. </div></div></div>
  150. ";
  151.         
  152.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  153.         
  154.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  155.         yield from [];
  156.     }
  157.     /**
  158.      * @codeCoverageIgnore
  159.      */
  160.     public function getTemplateName(): string
  161.     {
  162.         return "default/category.html.twig";
  163.     }
  164.     /**
  165.      * @codeCoverageIgnore
  166.      */
  167.     public function isTraitable(): bool
  168.     {
  169.         return false;
  170.     }
  171.     /**
  172.      * @codeCoverageIgnore
  173.      */
  174.     public function getDebugInfo(): array
  175.     {
  176.         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,);
  177.     }
  178.     public function getSourceContext(): Source
  179.     {
  180.         return new Source("{% extends 'base.html.twig' %}
  181. {% block body_id 'archive' %}
  182. {% block body %}
  183. <div id=\"onmedia\" class=\"onmedia\">
  184.     <div class=\"container\">
  185.     <div class=\" w70 w-xl-90 w-lg-100 w-md-100  w-sm-90 w-xs-100 margin-auto\">
  186.         {% for data in homeArchive %}
  187.         <h1 class=\"w100 text-center marginBottom\">
  188.         {{ page.title }}
  189.         </h1>
  190.         {% endfor %}
  191. {% for value in pageChilds %}
  192.     <div class=\"onmedia-items\">
  193.         <div class=\"onmedia-item-out\">
  194.             <div class=\"onmedia-item\">
  195.                 <div class=\"onmedia-item-text\">
  196.                     <h3>
  197.                     {{ value.title }}
  198.                     </h3>
  199.                     {{ value.short|raw }}
  200.                     
  201.                 </div>
  202.             </div>
  203.             <div class=\"onmedia-footer\">
  204.                 <a class=\"onmedia-footer-button\" href=\"{{ path('page_show', {slug: value.slug}) }}\">Continue Reading</a> 
  205.                 <div class=\"onmedia-footer-logo\">
  206.                     <img src=\"{{ value.icon }}\" />
  207.                 </div>
  208.             
  209.             </div>
  210.         </div>
  211. </div>
  212. {% endfor %}
  213. </div></div></div>
  214. {% endblock %}
  215. ""default/category.html.twig""/home/aperove.com/templates/default/category.html.twig");
  216.     }
  217. }