<?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;
/* areas/content-brick/view.html.twig */
class __TwigTemplate_c557f62fb8534a3394fb93c4b6c7db898fae17b88ef8e0ebb2fbd357546a8cfd 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->parent = false;
$this->blocks = [
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
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", "areas/content-brick/view.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/content-brick/view.html.twig"));
// line 1
yield from $this->loadTemplate("areas/content-brick/view.html.twig", "areas/content-brick/view.html.twig", 1, "276613162")->unwrap()->yield($context);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/content-brick/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
{% set brickLayout = layout ?? pimcore_select(\"layout\").getData() %}
{% if editmode or pimcore_input(\"title\").data is not empty or pimcore_input(\"headline\").data is not empty or pimcore_wysiwyg(\"wysiwyg\").data is not empty or defaultTitle is defined %}
<section class=\"
{% if containerClasses is defined and containerClasses %}
{{ containerClasses }}
{% else %}
{{ 'py-10 lg:py-20' }}
{% endif %}
{{ defaultBackgroundColor ?? '' }}
\">
{% if brickLayout == \"text-image\" %}
{% include 'areas/content-brick/layouts/text-image.html.twig' with {
product: product ?? null,
productCategory: productCategory ?? null
} %}
{% elseif brickLayout == \"text-video\" %}
{% include 'areas/content-brick/layouts/text-video.html.twig' with {
product: product ?? null,
productCategory: productCategory ?? null
} %}
{% elseif brickLayout == \"text-gallery\" %}
{% include 'areas/content-brick/layouts/text-gallery.html.twig' with {
product: product ?? null,
productCategory: productCategory ?? null
} %}
{% elseif brickLayout == \"text-below-text\" %}
{% include 'areas/content-brick/layouts/text-below-text.html.twig' %}
{% elseif brickLayout == \"text-usps\" %}
{% include 'areas/content-brick/layouts/text-usps.html.twig' %}
{% else %}{# DEFAULT #}
{% include 'areas/content-brick/layouts/text-image.html.twig' %}
{% endif %}
{% if showFloatingBanner is defined and showFloatingBanner %}
{% include 'areas/content-brick/partials/_floating_banner.html.twig' %}
{% endif %}
</section>
{% endif %}
{% include 'areas/content-brick/partials/editmode/styling.html.twig' %}
{% endblock %}
{% endembed %}
", "areas/content-brick/view.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/content-brick/view.html.twig");
}
public function checkSecurity()
{
static $tags = ["embed" => 1];
static $filters = [];
static $functions = [];
try {
$this->sandbox->checkSecurity(
['embed'],
[],
[],
$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;
}
}
}
/* areas/content-brick/view.html.twig */
class __TwigTemplate_c557f62fb8534a3394fb93c4b6c7db898fae17b88ef8e0ebb2fbd357546a8cfd___276613162 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
{
return "app/area-brick-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", "areas/content-brick/view.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/content-brick/view.html.twig"));
$this->parent = $this->loadTemplate("app/area-brick-layout.html.twig", "areas/content-brick/view.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 3
/**
* @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 4
yield "
";
// line 5
$context["brickLayout"] = ($context["layout"] ?? CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "layout"), "getData", [], "method", false, false, true, 5));
// line 6
yield "
";
// line 7
if ((((((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 7, $this->source); })()) || !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title"), "data", [], "any", false, false, true, 7))) || !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headline"), "data", [], "any", false, false, true, 7))) || !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "wysiwyg"), "data", [], "any", false, false, true, 7))) || array_key_exists("defaultTitle", $context))) {
// line 8
yield " <section class=\"
";
// line 9
if ((array_key_exists("containerClasses", $context) && (isset($context["containerClasses"]) || array_key_exists("containerClasses", $context) ? $context["containerClasses"] : (function () { throw new RuntimeError('Variable "containerClasses" does not exist.', 9, $this->source); })()))) {
// line 10
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["containerClasses"]) || array_key_exists("containerClasses", $context) ? $context["containerClasses"] : (function () { throw new RuntimeError('Variable "containerClasses" does not exist.', 10, $this->source); })()), 10, $this->source), "html", null, true);
yield "
";
} else {
// line 12
yield " ";
yield "py-10 lg:py-20";
yield "
";
}
// line 14
yield " ";
yield ($context["defaultBackgroundColor"] ?? "");
yield "
\">
";
// line 17
if (((isset($context["brickLayout"]) || array_key_exists("brickLayout", $context) ? $context["brickLayout"] : (function () { throw new RuntimeError('Variable "brickLayout" does not exist.', 17, $this->source); })()) == "text-image")) {
// line 18
yield " ";
yield from $this->loadTemplate("areas/content-brick/layouts/text-image.html.twig", "areas/content-brick/view.html.twig", 18)->unwrap()->yield(CoreExtension::merge($context, ["product" => ( // line 19
$context["product"] ?? null), "productCategory" => ( // line 20
$context["productCategory"] ?? null)]));
// line 22
yield "
";
} elseif (( // line 23
(isset($context["brickLayout"]) || array_key_exists("brickLayout", $context) ? $context["brickLayout"] : (function () { throw new RuntimeError('Variable "brickLayout" does not exist.', 23, $this->source); })()) == "text-video")) {
// line 24
yield " ";
yield from $this->loadTemplate("areas/content-brick/layouts/text-video.html.twig", "areas/content-brick/view.html.twig", 24)->unwrap()->yield(CoreExtension::merge($context, ["product" => ( // line 25
$context["product"] ?? null), "productCategory" => ( // line 26
$context["productCategory"] ?? null)]));
// line 28
yield "
";
} elseif (( // line 29
(isset($context["brickLayout"]) || array_key_exists("brickLayout", $context) ? $context["brickLayout"] : (function () { throw new RuntimeError('Variable "brickLayout" does not exist.', 29, $this->source); })()) == "text-gallery")) {
// line 30
yield " ";
yield from $this->loadTemplate("areas/content-brick/layouts/text-gallery.html.twig", "areas/content-brick/view.html.twig", 30)->unwrap()->yield(CoreExtension::merge($context, ["product" => ( // line 31
$context["product"] ?? null), "productCategory" => ( // line 32
$context["productCategory"] ?? null)]));
// line 34
yield "
";
} elseif (( // line 35
(isset($context["brickLayout"]) || array_key_exists("brickLayout", $context) ? $context["brickLayout"] : (function () { throw new RuntimeError('Variable "brickLayout" does not exist.', 35, $this->source); })()) == "text-below-text")) {
// line 36
yield " ";
yield from $this->loadTemplate("areas/content-brick/layouts/text-below-text.html.twig", "areas/content-brick/view.html.twig", 36)->unwrap()->yield($context);
// line 37
yield "
";
} elseif (( // line 38
(isset($context["brickLayout"]) || array_key_exists("brickLayout", $context) ? $context["brickLayout"] : (function () { throw new RuntimeError('Variable "brickLayout" does not exist.', 38, $this->source); })()) == "text-usps")) {
// line 39
yield " ";
yield from $this->loadTemplate("areas/content-brick/layouts/text-usps.html.twig", "areas/content-brick/view.html.twig", 39)->unwrap()->yield($context);
// line 40
yield "
";
} else {
// line 42
yield " ";
yield from $this->loadTemplate("areas/content-brick/layouts/text-image.html.twig", "areas/content-brick/view.html.twig", 42)->unwrap()->yield($context);
// line 43
yield "
";
}
// line 45
yield "
";
// line 46
if ((array_key_exists("showFloatingBanner", $context) && (isset($context["showFloatingBanner"]) || array_key_exists("showFloatingBanner", $context) ? $context["showFloatingBanner"] : (function () { throw new RuntimeError('Variable "showFloatingBanner" does not exist.', 46, $this->source); })()))) {
// line 47
yield " ";
yield from $this->loadTemplate("areas/content-brick/partials/_floating_banner.html.twig", "areas/content-brick/view.html.twig", 47)->unwrap()->yield($context);
// line 48
yield " ";
}
// line 49
yield "
</section>
";
}
// line 52
yield "
";
// line 53
yield from $this->loadTemplate("areas/content-brick/partials/editmode/styling.html.twig", "areas/content-brick/view.html.twig", 53)->unwrap()->yield($context);
// line 54
yield "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/content-brick/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 337 => 54, 335 => 53, 332 => 52, 327 => 49, 324 => 48, 321 => 47, 319 => 46, 316 => 45, 312 => 43, 309 => 42, 305 => 40, 302 => 39, 300 => 38, 297 => 37, 294 => 36, 292 => 35, 289 => 34, 287 => 32, 286 => 31, 284 => 30, 282 => 29, 279 => 28, 277 => 26, 276 => 25, 274 => 24, 272 => 23, 269 => 22, 267 => 20, 266 => 19, 264 => 18, 262 => 17, 255 => 14, 249 => 12, 243 => 10, 241 => 9, 238 => 8, 236 => 7, 233 => 6, 231 => 5, 228 => 4, 215 => 3, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% embed 'app/area-brick-layout.html.twig' %}
{% block content %}
{% set brickLayout = layout ?? pimcore_select(\"layout\").getData() %}
{% if editmode or pimcore_input(\"title\").data is not empty or pimcore_input(\"headline\").data is not empty or pimcore_wysiwyg(\"wysiwyg\").data is not empty or defaultTitle is defined %}
<section class=\"
{% if containerClasses is defined and containerClasses %}
{{ containerClasses }}
{% else %}
{{ 'py-10 lg:py-20' }}
{% endif %}
{{ defaultBackgroundColor ?? '' }}
\">
{% if brickLayout == \"text-image\" %}
{% include 'areas/content-brick/layouts/text-image.html.twig' with {
product: product ?? null,
productCategory: productCategory ?? null
} %}
{% elseif brickLayout == \"text-video\" %}
{% include 'areas/content-brick/layouts/text-video.html.twig' with {
product: product ?? null,
productCategory: productCategory ?? null
} %}
{% elseif brickLayout == \"text-gallery\" %}
{% include 'areas/content-brick/layouts/text-gallery.html.twig' with {
product: product ?? null,
productCategory: productCategory ?? null
} %}
{% elseif brickLayout == \"text-below-text\" %}
{% include 'areas/content-brick/layouts/text-below-text.html.twig' %}
{% elseif brickLayout == \"text-usps\" %}
{% include 'areas/content-brick/layouts/text-usps.html.twig' %}
{% else %}{# DEFAULT #}
{% include 'areas/content-brick/layouts/text-image.html.twig' %}
{% endif %}
{% if showFloatingBanner is defined and showFloatingBanner %}
{% include 'areas/content-brick/partials/_floating_banner.html.twig' %}
{% endif %}
</section>
{% endif %}
{% include 'areas/content-brick/partials/editmode/styling.html.twig' %}
{% endblock %}
{% endembed %}
", "areas/content-brick/view.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/content-brick/view.html.twig");
}
public function checkSecurity()
{
static $tags = ["extends" => 1, "set" => 5, "if" => 7, "include" => 18];
static $filters = ["escape" => 10];
static $functions = ["pimcore_select" => 5, "pimcore_input" => 7, "pimcore_wysiwyg" => 7];
try {
$this->sandbox->checkSecurity(
['extends', 'set', 'if', 'include'],
['escape'],
['pimcore_select', 'pimcore_input', 'pimcore_wysiwyg'],
$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;
}
}
}