var/cache/dev/twig/8f/8faec760b4b3f59d4cc8ee0b79c0892d.php line 54

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/page.html.twig */
  16. class __TwigTemplate_29b69b4ef7b1522327fbe2461120c109 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/page.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/page.html.twig"));
  44.         $this->parent $this->loadTemplate("base.html.twig""default/page.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 "post";
  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. ";
  83.         // line 7
  84.         if ( !Twig\Extension\CoreExtension::testEmpty(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.'7$this->source); })()), "text", [], "any"falsefalsefalse7))) {
  85.             // line 8
  86.             yield "
  87. <div class=\"postPage\">
  88. <div class=\"container\">
  89.     <div class=\"w70 w-xl-75 w-lg-80 w-md-80 w-sm-90 w-xs-100 margin-auto\">
  90.         <nav aria-label=\"breadcrumb\">
  91.             <ol class=\"breadcrumb\">
  92.                 <li class=\"breadcrumb-item\">
  93.                     <a href=\"";
  94.             // line 17
  95.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
  96.             yield "\">Home</a>
  97.                 </li>
  98.                 ";
  99.             // line 19
  100.             $context['_parent'] = $context;
  101.             $context['_seq'] = CoreExtension::ensureTraversable(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.'19$this->source); })()), "getBreadcrumbTrail", [], "method"falsefalsefalse19));
  102.             $context['loop'] = [
  103.               'parent' => $context['_parent'],
  104.               'index0' => 0,
  105.               'index'  => 1,
  106.               'first'  => true,
  107.             ];
  108.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  109.                 $length count($context['_seq']);
  110.                 $context['loop']['revindex0'] = $length 1;
  111.                 $context['loop']['revindex'] = $length;
  112.                 $context['loop']['length'] = $length;
  113.                 $context['loop']['last'] = === $length;
  114.             }
  115.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  116.                 // line 20
  117.                 yield "                    ";
  118.                 if (CoreExtension::getAttribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse20)) {
  119.                     // line 21
  120.                     yield "                        <li class=\"breadcrumb-item active\" aria-current=\"page\">";
  121.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["item"], "title", [], "any"falsefalsefalse21), "html"nulltrue);
  122.                     yield "</li>
  123.                     ";
  124.                 } else {
  125.                     // line 23
  126.                     yield "                        <li class=\"breadcrumb-item\">
  127.                             <a href=\"";
  128.                     // line 24
  129.                     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["item"], "slug", [], "any"falsefalsefalse24)]), "html"nulltrue);
  130.                     yield "\">";
  131.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["item"], "title", [], "any"falsefalsefalse24), "html"nulltrue);
  132.                     yield "</a>
  133.                         </li>
  134.                     ";
  135.                 }
  136.                 // line 27
  137.                 yield "                ";
  138.                 ++$context['loop']['index0'];
  139.                 ++$context['loop']['index'];
  140.                 $context['loop']['first'] = false;
  141.                 if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  142.                     --$context['loop']['revindex0'];
  143.                     --$context['loop']['revindex'];
  144.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  145.                 }
  146.             }
  147.             $_parent $context['_parent'];
  148.             unset($context['_seq'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  149.             $context array_intersect_key($context$_parent) + $_parent;
  150.             // line 28
  151.             yield "            </ol>
  152.         </nav>
  153.         <div class=\" h2 bold\">";
  154.             // line 33
  155.             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.'33$this->source); })()), "title", [], "any"falsefalsefalse33), "html"nulltrue);
  156.             yield "</div>
  157.         <div class=\" h4\">
  158.         ";
  159.             // line 35
  160.             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.'35$this->source); })()), "short", [], "any"falsefalsefalse35);
  161.             yield "
  162.         </div>
  163.         ";
  164.             // line 39
  165.             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.'39$this->source); })()), "text", [], "any"falsefalsefalse39);
  166.             yield "
  167.     </div>
  168. </div>
  169. </div>
  170. ";
  171.         }
  172.         // line 44
  173.         yield "
  174. ";
  175.         
  176.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  177.         
  178.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  179.         yield from [];
  180.     }
  181.     /**
  182.      * @codeCoverageIgnore
  183.      */
  184.     public function getTemplateName(): string
  185.     {
  186.         return "default/page.html.twig";
  187.     }
  188.     /**
  189.      * @codeCoverageIgnore
  190.      */
  191.     public function isTraitable(): bool
  192.     {
  193.         return false;
  194.     }
  195.     /**
  196.      * @codeCoverageIgnore
  197.      */
  198.     public function getDebugInfo(): array
  199.     {
  200.         return array (  199 => 44,  191 => 39,  184 => 35,  179 => 33,  172 => 28,  158 => 27,  150 => 24,  147 => 23,  141 => 21,  138 => 20,  121 => 19,  116 => 17,  105 => 8,  103 => 7,  100 => 6,  87 => 5,  64 => 3,  41 => 1,);
  201.     }
  202.     public function getSourceContext(): Source
  203.     {
  204.         return new Source("{% extends 'base.html.twig' %}
  205. {% block body_id 'post' %}
  206. {% block body %}
  207. {% if page.text is not empty %}
  208. <div class=\"postPage\">
  209. <div class=\"container\">
  210.     <div class=\"w70 w-xl-75 w-lg-80 w-md-80 w-sm-90 w-xs-100 margin-auto\">
  211.         <nav aria-label=\"breadcrumb\">
  212.             <ol class=\"breadcrumb\">
  213.                 <li class=\"breadcrumb-item\">
  214.                     <a href=\"{{ path('homepage') }}\">Home</a>
  215.                 </li>
  216.                 {% for item in page.getBreadcrumbTrail() %}
  217.                     {% if loop.last %}
  218.                         <li class=\"breadcrumb-item active\" aria-current=\"page\">{{ item.title }}</li>
  219.                     {% else %}
  220.                         <li class=\"breadcrumb-item\">
  221.                             <a href=\"{{ path('page_show', {slug: item.slug}) }}\">{{ item.title }}</a>
  222.                         </li>
  223.                     {% endif %}
  224.                 {% endfor %}
  225.             </ol>
  226.         </nav>
  227.         <div class=\" h2 bold\">{{ page.title }}</div>
  228.         <div class=\" h4\">
  229.         {{ page.short|raw }}
  230.         </div>
  231.         {{ page.text|raw }}
  232.     </div>
  233. </div>
  234. </div>
  235. {% endif %}
  236. {% endblock %}
  237. ""default/page.html.twig""/home/aperove.com/templates/default/page.html.twig");
  238.     }
  239. }