<?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;
/* project/archive.html.twig */
class __TwigTemplate_898219b91a76b76447fefce3c1c45c3275a6833a149ee467cb55338209a27fb4 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", "project/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", "project/archive.html.twig"));
$this->parent = $this->loadTemplate("app/layout.html.twig", "project/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", "project/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" => ["headLineEnabled" => true]]]);
// line 13
yield "
";
// line 15
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 15, $this->source); })())) {
// line 16
yield " <h3>Product filter slugs (edit mode only)</h3>
";
// line 17
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["productCategoryFilter"]) || array_key_exists("productCategoryFilter", $context) ? $context["productCategoryFilter"] : (function () { throw new RuntimeError('Variable "productCategoryFilter" does not exist.', 17, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 18
yield " ";
$context["name"] = ($this->sandbox->ensureToStringAllowed($context["item"], 18, $this->source) . "-product-filter");
// line 19
yield " <p>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::lower($this->env->getCharset(), $this->extensions['Twig\Extra\String\StringExtension']->createSlug($this->sandbox->ensureToStringAllowed((isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 19, $this->source); })()), 19, $this->source))), "html", null, true);
yield "</p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 21
yield "
<h3>Branch filter slugs</h3>
";
// line 23
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["branchFilter"]) || array_key_exists("branchFilter", $context) ? $context["branchFilter"] : (function () { throw new RuntimeError('Variable "branchFilter" does not exist.', 23, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 24
yield " ";
$context["name"] = ($this->sandbox->ensureToStringAllowed($context["item"], 24, $this->source) . "-branch-filter");
// line 25
yield " <p>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::lower($this->env->getCharset(), $this->extensions['Twig\Extra\String\StringExtension']->createSlug($this->sandbox->ensureToStringAllowed((isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 25, $this->source); })()), 25, $this->source))), "html", null, true);
yield "</p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 27
yield " ";
}
// line 28
yield "
";
// line 29
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "hero-projects-big-and-small", ["type" => "hero-projects-big-and-small-brick", "params" => ["hero-projects-big-and-small-brick" => ["projectObjects" => $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, // line 33
(isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 33, $this->source); })()), "items", [], "any", false, false, true, 33), 33, $this->source), "pagination" => $this->sandbox->ensureToStringAllowed( // line 34
(isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 34, $this->source); })()), 34, $this->source), "paginationVariables" => $this->sandbox->ensureToStringAllowed( // line 35
(isset($context["paginationVariables"]) || array_key_exists("paginationVariables", $context) ? $context["paginationVariables"] : (function () { throw new RuntimeError('Variable "paginationVariables" does not exist.', 35, $this->source); })()), 35, $this->source), "productCategoryFilter" => $this->sandbox->ensureToStringAllowed( // line 36
(isset($context["productCategoryFilter"]) || array_key_exists("productCategoryFilter", $context) ? $context["productCategoryFilter"] : (function () { throw new RuntimeError('Variable "productCategoryFilter" does not exist.', 36, $this->source); })()), 36, $this->source), "branchFilter" => $this->sandbox->ensureToStringAllowed( // line 37
(isset($context["branchFilter"]) || array_key_exists("branchFilter", $context) ? $context["branchFilter"] : (function () { throw new RuntimeError('Variable "branchFilter" does not exist.', 37, $this->source); })()), 37, $this->source)]]]);
// line 40
yield "
";
// line 42
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "content-brick-1", ["type" => "content-brick", "params" => ["content-brick" => ["defaultLayout" => "text-image", "defaultBackgroundColor" => "bg-white", "defaultInverted" => false, "defaultPrimaryLink" => ["title" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Direct contact"), "link" => "#", "target" => ""], "containerClasses" => "py-10 md:py-20"]]]);
// line 57
yield "
";
// line 59
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "project-overview-faq", ["type" => "faq-brick", "params" => ["faq-brick" => ["showContact" => "false", "containerSize" => "md:max-w-[1100px] container", "containerClass" => "mx-auto"]]]);
// line 68
yield "
";
// line 70
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", "contact-side-widget", ["type" => "contact-side-widget-brick"]);
// line 72
yield "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "project/archive.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 164 => 72, 162 => 70, 158 => 68, 156 => 59, 152 => 57, 150 => 42, 146 => 40, 144 => 37, 143 => 36, 142 => 35, 141 => 34, 140 => 33, 139 => 29, 136 => 28, 133 => 27, 124 => 25, 121 => 24, 117 => 23, 113 => 21, 104 => 19, 101 => 18, 97 => 17, 94 => 16, 92 => 15, 88 => 13, 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' : {
\"headLineEnabled\" : true
}
}
}) }}
{% if editmode %}
<h3>Product filter slugs (edit mode only)</h3>
{% for item in productCategoryFilter %}
{% set name = item ~ '-product-filter' %}
<p>{{ name | slug | lower }}</p>
{% endfor %}
<h3>Branch filter slugs</h3>
{% for item in branchFilter %}
{% set name = item ~ '-branch-filter' %}
<p>{{ name | slug | lower }}</p>
{% endfor %}
{% endif %}
{{ pimcore_area('hero-projects-big-and-small', {
type: 'hero-projects-big-and-small-brick',
params : {
'hero-projects-big-and-small-brick': {
projectObjects: pagination.items,
pagination: pagination,
paginationVariables: paginationVariables,
productCategoryFilter: productCategoryFilter,
branchFilter: branchFilter,
}
}
}) }}
{{ pimcore_area('content-brick-1', {
'type':'content-brick',
'params':{
'content-brick': {
'defaultLayout': 'text-image',
'defaultBackgroundColor':'bg-white',
'defaultInverted': false,
'defaultPrimaryLink' : {
'title' : \"Direct contact\"|trans,
'link': '#',
'target': \"\",
},
'containerClasses': 'py-10 md:py-20',
}
}
}) }}
{{ pimcore_area('project-overview-faq', {
type: 'faq-brick',
params: {
'faq-brick': {
showContact: 'false',
containerSize: 'md:max-w-[1100px] container',
containerClass: 'mx-auto'
}
}
}) }}
{{ pimcore_area('contact-side-widget', {
type: 'contact-side-widget-brick'
}) }}
{% endblock %}
", "project/archive.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/project/archive.html.twig");
}
public function checkSecurity()
{
static $tags = ["extends" => 1, "include" => 4, "if" => 15, "for" => 17, "set" => 18];
static $filters = ["escape" => 19, "lower" => 19, "slug" => 19, "trans" => 50];
static $functions = ["pimcore_area" => 6];
try {
$this->sandbox->checkSecurity(
['extends', 'include', 'if', 'for', 'set'],
['escape', 'lower', 'slug', 'trans'],
['pimcore_area'],
$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;
}
}
}