<?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/layouts/text-gallery.html.twig */
class __TwigTemplate_1f86b32449f3da510ecfa9ad91080bda1a2cd278d00d564c538e3ce31f6bff7e 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/layouts/text-gallery.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/layouts/text-gallery.html.twig"));
// line 1
$context["hideMediaOnMobile"] = CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "hideMediaOnMobile"), "getData", [], "method", false, false, true, 1);
// line 2
yield "
";
// line 3
$context["showRentalFormButton"] = CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "showRentalFormButton"), "getData", [], "method", false, false, true, 3);
// line 4
$context["showRentalFormButtonColor"] = CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "showRentalFormButtonColor"), "getData", [], "method", false, false, true, 4);
// line 5
yield "
";
// line 6
$context["showCustomButtonComment"] = CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "showCustomButtonComment"), "getData", [], "method", false, false, true, 6);
// line 7
$context["customButtonComment"] = CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "customButtonComment"), "getData", [], "method", false, false, true, 7);
// line 8
yield "
<div class=\"container grid justify-center grid-cols-1 gap-6 mx-auto text-base md:text-lg md:grid-cols-2\">
";
// line 11
yield " ";
$context["inverted"] = ($context["inverted"] ?? CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "inverted"), "data", [], "any", false, false, true, 11));
// line 12
yield " <div class=\"order-2 md:flex md:items-center lg:pl-16
";
// line 13
yield (((isset($context["inverted"]) || array_key_exists("inverted", $context) ? $context["inverted"] : (function () { throw new RuntimeError('Variable "inverted" does not exist.', 13, $this->source); })())) ? ("md:order-2 lg:pl-16") : ("md:order-1 lg:pr-16"));
yield "
";
// line 14
yield (((isset($context["hideMediaOnMobile"]) || array_key_exists("hideMediaOnMobile", $context) ? $context["hideMediaOnMobile"] : (function () { throw new RuntimeError('Variable "hideMediaOnMobile" does not exist.', 14, $this->source); })())) ? ("pt-4 md:pt-0") : (""));
yield "
\">
<div>
";
// line 17
yield from $this->loadTemplate("areas/content-brick/partials/_headline.html.twig", "areas/content-brick/layouts/text-gallery.html.twig", 17)->unwrap()->yield($context);
// line 18
yield "
";
// line 19
yield from $this->loadTemplate("areas/content-brick/partials/_title.html.twig", "areas/content-brick/layouts/text-gallery.html.twig", 19)->unwrap()->yield($context);
// line 20
yield "
";
// line 21
yield from $this->loadTemplate("areas/content-brick/partials/_wysiwyg.html.twig", "areas/content-brick/layouts/text-gallery.html.twig", 21)->unwrap()->yield($context);
// line 22
yield "
";
// line 23
yield from $this->loadTemplate("areas/content-brick/partials/_usps.html.twig", "areas/content-brick/layouts/text-gallery.html.twig", 23)->unwrap()->yield($context);
// line 24
yield "
";
// line 25
yield from $this->loadTemplate("areas/content-brick/partials/_form-builder.html.twig", "areas/content-brick/layouts/text-gallery.html.twig", 25)->unwrap()->yield(CoreExtension::merge($context, ["fieldName" => "formbuilder-select_text-gallery"]));
// line 28
yield "
";
// line 29
yield from $this->loadTemplate("areas/content-brick/partials/_buttons.html.twig", "areas/content-brick/layouts/text-gallery.html.twig", 29)->unwrap()->yield(CoreExtension::merge($context, ["product" => ( // line 30
$context["product"] ?? null), "productCategory" => ( // line 31
$context["productCategory"] ?? null), "showRentalFormButton" => ( // line 32
$context["showRentalFormButton"] ?? null), "showRentalFormButtonColor" => ( // line 33
$context["showRentalFormButtonColor"] ?? null), "greenButton" => true, "showCustomButtonComment" => ( // line 35
$context["showCustomButtonComment"] ?? null), "buttonComment" => ((( // line 36
(isset($context["customButtonComment"]) || array_key_exists("customButtonComment", $context) ? $context["customButtonComment"] : (function () { throw new RuntimeError('Variable "customButtonComment" does not exist.', 36, $this->source); })()) !== "")) ? ((isset($context["customButtonComment"]) || array_key_exists("customButtonComment", $context) ? $context["customButtonComment"] : (function () { throw new RuntimeError('Variable "customButtonComment" does not exist.', 36, $this->source); })())) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Binnen één dag vrijblijvend een offerte")))]));
// line 38
yield " </div>
</div>
<div class=\"order-1
";
// line 41
yield (((isset($context["inverted"]) || array_key_exists("inverted", $context) ? $context["inverted"] : (function () { throw new RuntimeError('Variable "inverted" does not exist.', 41, $this->source); })())) ? ("md:order-1") : ("md:order-2"));
yield "
";
// line 42
yield (((isset($context["hideMediaOnMobile"]) || array_key_exists("hideMediaOnMobile", $context) ? $context["hideMediaOnMobile"] : (function () { throw new RuntimeError('Variable "hideMediaOnMobile" does not exist.', 42, $this->source); })())) ? ("hidden md:block") : (""));
yield "
\">
";
// line 44
yield from $this->loadTemplate("areas/content-brick/partials/_gallery.html.twig", "areas/content-brick/layouts/text-gallery.html.twig", 44)->unwrap()->yield($context);
// line 45
yield " </div>
</div>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/content-brick/layouts/text-gallery.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 135 => 45, 133 => 44, 128 => 42, 124 => 41, 119 => 38, 117 => 36, 116 => 35, 115 => 33, 114 => 32, 113 => 31, 112 => 30, 111 => 29, 108 => 28, 106 => 25, 103 => 24, 101 => 23, 98 => 22, 96 => 21, 93 => 20, 91 => 19, 88 => 18, 86 => 17, 80 => 14, 76 => 13, 73 => 12, 70 => 11, 66 => 8, 64 => 7, 62 => 6, 59 => 5, 57 => 4, 55 => 3, 52 => 2, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% set hideMediaOnMobile = pimcore_checkbox('hideMediaOnMobile').getData() %}
{% set showRentalFormButton = pimcore_checkbox('showRentalFormButton').getData() %}
{% set showRentalFormButtonColor = pimcore_select('showRentalFormButtonColor').getData() %}
{% set showCustomButtonComment = pimcore_checkbox('showCustomButtonComment').getData() %}
{% set customButtonComment = pimcore_input('customButtonComment').getData() %}
<div class=\"container grid justify-center grid-cols-1 gap-6 mx-auto text-base md:text-lg md:grid-cols-2\">
{# Defined as param or EditableDialog field #}
{% set inverted = inverted ?? pimcore_select('inverted').data %}
<div class=\"order-2 md:flex md:items-center lg:pl-16
{{ inverted ? 'md:order-2 lg:pl-16' : 'md:order-1 lg:pr-16' }}
{{ hideMediaOnMobile ? 'pt-4 md:pt-0' : '' }}
\">
<div>
{% include 'areas/content-brick/partials/_headline.html.twig' %}
{% include 'areas/content-brick/partials/_title.html.twig' %}
{% include 'areas/content-brick/partials/_wysiwyg.html.twig' %}
{% include 'areas/content-brick/partials/_usps.html.twig' %}
{% include 'areas/content-brick/partials/_form-builder.html.twig' with {
'fieldName' : 'formbuilder-select_text-gallery' }
%}
{% include 'areas/content-brick/partials/_buttons.html.twig' with {
product: product ?? null,
productCategory: productCategory ?? null,
showRentalFormButton: showRentalFormButton ?? null,
showRentalFormButtonColor: showRentalFormButtonColor ?? null,
greenButton: true,
showCustomButtonComment: showCustomButtonComment ?? null,
buttonComment: customButtonComment !== '' ? customButtonComment : 'Binnen één dag vrijblijvend een offerte'|trans
} %}
</div>
</div>
<div class=\"order-1
{{ inverted ? 'md:order-1' : 'md:order-2' }}
{{ hideMediaOnMobile ? 'hidden md:block' : '' }}
\">
{% include 'areas/content-brick/partials/_gallery.html.twig' %}
</div>
</div>", "areas/content-brick/layouts/text-gallery.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/areas/content-brick/layouts/text-gallery.html.twig");
}
public function checkSecurity()
{
static $tags = ["set" => 1, "include" => 17];
static $filters = ["trans" => 36];
static $functions = ["pimcore_checkbox" => 1, "pimcore_select" => 4, "pimcore_input" => 7];
try {
$this->sandbox->checkSecurity(
['set', 'include'],
['trans'],
['pimcore_checkbox', 'pimcore_select', 'pimcore_input'],
$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;
}
}
}