var/cache/dev/twig/61/61f239b823344a0feb5e9b50a33db27451dee20181bbea71c32e75329ce5c19c.php line 55

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. /* about-us/archive.html.twig */
  16. class __TwigTemplate_168dc6808441af4212d188fc0d4b315f21870d7277279607f6ad423901e81fbf 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.             'content' => [$this'block_content'],
  29.         ];
  30.         $this->sandbox $this->extensions[SandboxExtension::class];
  31.         $this->checkSecurity();
  32.     }
  33.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34.     {
  35.         // line 1
  36.         return "app/layout.html.twig";
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = []): iterable
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""about-us/archive.html.twig"));
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""about-us/archive.html.twig"));
  45.         $this->parent $this->loadTemplate("app/layout.html.twig""about-us/archive.html.twig"1);
  46.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 2
  53.     /**
  54.      * @return iterable<null|scalar|\Stringable>
  55.      */
  56.     public function block_content(array $context, array $blocks = []): iterable
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  63.         // line 3
  64.         yield "
  65.     ";
  66.         // line 4
  67.         yield from $this->loadTemplate("app/partials/navigation/_breadcrumbs.html.twig""about-us/archive.html.twig"4)->unwrap()->yield($context);
  68.         // line 5
  69.         yield "
  70.     ";
  71.         // line 6
  72.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""hero-regular", ["type" => "hero-regular-brick""params" => ["hero-regular-brick" => []]]);
  73.         // line 12
  74.         yield "
  75.     <div class=\"bg-blue-200\">
  76.         <div class=\"container\">
  77.             ";
  78.         // line 16
  79.         $context["navigation"] = [];
  80.         // line 17
  81.         yield "            ";
  82.         $context['_parent'] = $context;
  83.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'17$this->source); })()), "getChildren", [], "method"falsefalsetrue17));
  84.         $context['loop'] = [
  85.           'parent' => $context['_parent'],
  86.           'index0' => 0,
  87.           'index'  => 1,
  88.           'first'  => true,
  89.         ];
  90.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  91.             $length count($context['_seq']);
  92.             $context['loop']['revindex0'] = $length 1;
  93.             $context['loop']['revindex'] = $length;
  94.             $context['loop']['length'] = $length;
  95.             $context['loop']['last'] = === $length;
  96.         }
  97.         foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  98.             // line 18
  99.             yield "
  100.                 ";
  101.             // line 19
  102.             $context["navigation_content_example"] = ('' === $tmp \Twig\Extension\CoreExtension::captureOutput((function () use (&$context$macros$blocks) {
  103.                 // line 20
  104.                 yield "                    ";
  105.                 yield from $this->loadTemplate("about-us/partials/_card.html.twig""about-us/archive.html.twig"20)->unwrap()->yield($context);
  106.                 // line 21
  107.                 yield "                ";
  108.                 yield from [];
  109.             })())) ? '' : new Markup($tmp$this->env->getCharset());
  110.             // line 22
  111.             yield "
  112.                 ";
  113.             // line 23
  114.             $context["tab"] = ["icon" => """title" => ((CoreExtension::getAttribute($this->env$this->source,             // line 25
  115. $context["child"], "getProperty", ["navigation_name"], "method"falsefalsetrue25)) ? (CoreExtension::getAttribute($this->env$this->source$context["child"], "getProperty", ["navigation_name"], "method"falsefalsetrue25)) : (CoreExtension::getAttribute($this->env$this->source$context["child"], "title", [], "any"falsefalsetrue25))), "content" =>             // line 26
  116. (isset($context["navigation_content_example"]) || array_key_exists("navigation_content_example"$context) ? $context["navigation_content_example"] : (function () { throw new RuntimeError('Variable "navigation_content_example" does not exist.'26$this->source); })())];
  117.             // line 28
  118.             yield "
  119.                 ";
  120.             // line 29
  121.             $context["navigation"] = Twig\Extension\CoreExtension::merge($this->sandbox->ensureToStringAllowed((isset($context["navigation"]) || array_key_exists("navigation"$context) ? $context["navigation"] : (function () { throw new RuntimeError('Variable "navigation" does not exist.'29$this->source); })()), 29$this->source), [$this->sandbox->ensureToStringAllowed((isset($context["tab"]) || array_key_exists("tab"$context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.'29$this->source); })()), 29$this->source)]);
  122.             // line 30
  123.             yield "
  124.             ";
  125.             ++$context['loop']['index0'];
  126.             ++$context['loop']['index'];
  127.             $context['loop']['first'] = false;
  128.             if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  129.                 --$context['loop']['revindex0'];
  130.                 --$context['loop']['revindex'];
  131.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  132.             }
  133.         }
  134.         $_parent $context['_parent'];
  135.         unset($context['_seq'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  136.         $context array_intersect_key($context$_parent) + $_parent;
  137.         // line 32
  138.         yield "
  139.             ";
  140.         // line 33
  141.         yield from $this->loadTemplate("app/partials/navigation/_sub-navigation.html.twig""about-us/archive.html.twig"33)->unwrap()->yield(CoreExtension::merge($context, ["name" => "product-category-archive""tabs" =>         // line 35
  142. (isset($context["navigation"]) || array_key_exists("navigation"$context) ? $context["navigation"] : (function () { throw new RuntimeError('Variable "navigation" does not exist.'35$this->source); })()), "tabParentPadding" => """tabListPadding" => "pt-10 lg:pt-20""tabsPadding" => """tabPadding" => "py-10 lg:py-20 block"]));
  143.         // line 41
  144.         yield "        </div>
  145.     </div>
  146.     ";
  147.         // line 44
  148.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area""contact-side-widget", ["type" => "contact-side-widget-brick"]);
  149.         // line 46
  150.         yield "
  151.     ";
  152.         // line 48
  153.         yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""afterContentAreaBlock", ["group" => (        // line 51
  154. $context["brickGroups"] ?? []), "params" => (        // line 52
  155. $context["areaBrickParams"] ?? [])]);
  156.         // line 54
  157.         yield "
  158. ";
  159.         
  160.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  161.         
  162.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  163.         yield from [];
  164.     }
  165.     /**
  166.      * @codeCoverageIgnore
  167.      */
  168.     public function getTemplateName(): string
  169.     {
  170.         return "about-us/archive.html.twig";
  171.     }
  172.     /**
  173.      * @codeCoverageIgnore
  174.      */
  175.     public function isTraitable(): bool
  176.     {
  177.         return false;
  178.     }
  179.     /**
  180.      * @codeCoverageIgnore
  181.      */
  182.     public function getDebugInfo(): array
  183.     {
  184.         return array (  174 => 54,  172 => 52,  171 => 51,  170 => 48,  166 => 46,  164 => 44,  159 => 41,  157 => 35,  156 => 33,  153 => 32,  138 => 30,  136 => 29,  133 => 28,  131 => 26,  130 => 25,  129 => 23,  126 => 22,  122 => 21,  119 => 20,  117 => 19,  114 => 18,  96 => 17,  94 => 16,  88 => 12,  86 => 6,  83 => 5,  81 => 4,  78 => 3,  65 => 2,  42 => 1,);
  185.     }
  186.     public function getSourceContext(): Source
  187.     {
  188.         return new Source("{% extends 'app/layout.html.twig' %}
  189. {% block content %}
  190.     {% include \"app/partials/navigation/_breadcrumbs.html.twig\" %}
  191.     {{ pimcore_area('hero-regular', {
  192.         'type':'hero-regular-brick',
  193.         'params': {
  194.             'hero-regular-brick' : {
  195.             }
  196.         }
  197.     }) }}
  198.     <div class=\"bg-blue-200\">
  199.         <div class=\"container\">
  200.             {% set navigation = [] %}
  201.             {% for child in document.getChildren()  %}
  202.                 {% set navigation_content_example %}
  203.                     {% include 'about-us/partials/_card.html.twig' %}
  204.                 {% endset %}
  205.                 {% set tab = {
  206.                     'icon': '',
  207.                     'title': child.getProperty('navigation_name') ?: child.title,
  208.                     'content': navigation_content_example
  209.                 } %}
  210.                 {% set navigation = navigation|merge([tab]) %}
  211.             {% endfor %}
  212.             {% include 'app/partials/navigation/_sub-navigation.html.twig' with {
  213.                 name: 'product-category-archive',
  214.                 tabs: navigation,
  215.                 tabParentPadding: '',
  216.                 tabListPadding: 'pt-10 lg:pt-20',
  217.                 tabsPadding: '',
  218.                 tabPadding: 'py-10 lg:py-20 block',
  219.             } %}
  220.         </div>
  221.     </div>
  222.     {{ pimcore_area('contact-side-widget', {
  223.         type: 'contact-side-widget-brick'
  224.     }) }}
  225.     {{ pimcore_areablock(
  226.         'afterContentAreaBlock',
  227.         {
  228.             \"group\" : brickGroups ?? [],
  229.             'params': areaBrickParams ?? []
  230.         }
  231.     ) }}
  232. {% endblock %}
  233. ""about-us/archive.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/about-us/archive.html.twig");
  234.     }
  235.     
  236.     public function checkSecurity()
  237.     {
  238.         static $tags = ["extends" => 1"include" => 4"set" => 16"for" => 17];
  239.         static $filters = ["merge" => 29];
  240.         static $functions = ["pimcore_area" => 6"pimcore_areablock" => 48];
  241.         try {
  242.             $this->sandbox->checkSecurity(
  243.                 ['extends''include''set''for'],
  244.                 ['merge'],
  245.                 ['pimcore_area''pimcore_areablock'],
  246.                 $this->source
  247.             );
  248.         } catch (SecurityError $e) {
  249.             $e->setSourceContext($this->source);
  250.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  251.                 $e->setTemplateLine($tags[$e->getTagName()]);
  252.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  253.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  254.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  255.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  256.             }
  257.             throw $e;
  258.         }
  259.     }
  260. }