<?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;
/* about-us/archive.html.twig */
class __TwigTemplate_168dc6808441af4212d188fc0d4b315f21870d7277279607f6ad423901e81fbf 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 = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "app/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "about-us/archive.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "about-us/archive.html.twig"));
$this->parent = $this->loadTemplate("app/layout.html.twig", "about-us/archive.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 2
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 3
yield "
";
// line 4
yield from $this->loadTemplate("app/partials/navigation/_breadcrumbs.html.twig", "about-us/archive.html.twig", 4)->unwrap()->yield($context);
// line 5
yield "
";
// line 6
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "hero-regular", ["type" => "hero-regular-brick", "params" => ["hero-regular-brick" => []]]);
// line 12
yield "
<div class=\"bg-blue-200\">
<div class=\"container\">
";
// line 16
$context["navigation"] = [];
// line 17
yield " ";
$context['_parent'] = $context;
$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", false, false, true, 17));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 18
yield "
";
// line 19
$context["navigation_content_example"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
// line 20
yield " ";
yield from $this->loadTemplate("about-us/partials/_card.html.twig", "about-us/archive.html.twig", 20)->unwrap()->yield($context);
// line 21
yield " ";
yield from [];
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 22
yield "
";
// line 23
$context["tab"] = ["icon" => "", "title" => ((CoreExtension::getAttribute($this->env, $this->source, // line 25
$context["child"], "getProperty", ["navigation_name"], "method", false, false, true, 25)) ? (CoreExtension::getAttribute($this->env, $this->source, $context["child"], "getProperty", ["navigation_name"], "method", false, false, true, 25)) : (CoreExtension::getAttribute($this->env, $this->source, $context["child"], "title", [], "any", false, false, true, 25))), "content" => // line 26
(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); })())];
// line 28
yield "
";
// line 29
$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)]);
// line 30
yield "
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 32
yield "
";
// line 33
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
(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"]));
// line 41
yield " </div>
</div>
";
// line 44
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "contact-side-widget", ["type" => "contact-side-widget-brick"]);
// line 46
yield "
";
// line 48
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "afterContentAreaBlock", ["group" => ( // line 51
$context["brickGroups"] ?? []), "params" => ( // line 52
$context["areaBrickParams"] ?? [])]);
// line 54
yield "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "about-us/archive.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'app/layout.html.twig' %}
{% block content %}
{% include \"app/partials/navigation/_breadcrumbs.html.twig\" %}
{{ pimcore_area('hero-regular', {
'type':'hero-regular-brick',
'params': {
'hero-regular-brick' : {
}
}
}) }}
<div class=\"bg-blue-200\">
<div class=\"container\">
{% set navigation = [] %}
{% for child in document.getChildren() %}
{% set navigation_content_example %}
{% include 'about-us/partials/_card.html.twig' %}
{% endset %}
{% set tab = {
'icon': '',
'title': child.getProperty('navigation_name') ?: child.title,
'content': navigation_content_example
} %}
{% set navigation = navigation|merge([tab]) %}
{% endfor %}
{% include 'app/partials/navigation/_sub-navigation.html.twig' with {
name: 'product-category-archive',
tabs: navigation,
tabParentPadding: '',
tabListPadding: 'pt-10 lg:pt-20',
tabsPadding: '',
tabPadding: 'py-10 lg:py-20 block',
} %}
</div>
</div>
{{ pimcore_area('contact-side-widget', {
type: 'contact-side-widget-brick'
}) }}
{{ pimcore_areablock(
'afterContentAreaBlock',
{
\"group\" : brickGroups ?? [],
'params': areaBrickParams ?? []
}
) }}
{% endblock %}
", "about-us/archive.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/about-us/archive.html.twig");
}
public function checkSecurity()
{
static $tags = ["extends" => 1, "include" => 4, "set" => 16, "for" => 17];
static $filters = ["merge" => 29];
static $functions = ["pimcore_area" => 6, "pimcore_areablock" => 48];
try {
$this->sandbox->checkSecurity(
['extends', 'include', 'set', 'for'],
['merge'],
['pimcore_area', 'pimcore_areablock'],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}