<?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;
/* includes/partials/hero_content.html.twig */
class __TwigTemplate_43f86c9c177a3f4e90deb8ff332362fd71a062abf5626cbb0c9351263e8c6e1a 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", "includes/partials/hero_content.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/partials/hero_content.html.twig"));
// line 1
$context["showButtonComment"] = ((CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "buttonComment"), "getData", [], "method", true, true, true, 1)) ? (Twig\Extension\CoreExtension::default($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "buttonComment"), "getData", [], "method", false, false, true, 1), 1, $this->source))) : (""));
// line 2
$context["showForm"] = CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "showRentalForm"), "isChecked", [], "method", false, false, true, 2);
// line 3
$context["showBottom"] = (((CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "showRentalForm"), "isChecked", [], "method", false, false, true, 3) || ((CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "secondary-link"), "getHref", [], "method", true, true, true, 3)) ? (Twig\Extension\CoreExtension::default($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "secondary-link"), "getHref", [], "method", false, false, true, 3), 3, $this->source))) : (""))) || (isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 3, $this->source); })())) || (isset($context["showButtonComment"]) || array_key_exists("showButtonComment", $context) ? $context["showButtonComment"] : (function () { throw new RuntimeError('Variable "showButtonComment" does not exist.', 3, $this->source); })()));
// line 4
yield "
";
// line 5
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 5, $this->source); })())) {
// line 6
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "label-icon");
yield "
<p>";
// line 7
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "pre_title");
yield "</p>
<h1 class=\"mb-3 md:mb-4 text-[26px] leading-8 lg:text-[42px] lg:leading-[49px]\">";
// line 8
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title");
yield "</h1>
<p class=\"text-base md:mb-8 md:text-lg lg:max-w-[470px]\">";
// line 9
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "description");
yield "</p>
";
} else {
// line 11
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "pre_title"), "getData", [], "method", false, false, true, 11)) {
// line 12
yield " <p class=\"flex text-[14px] max-w-max mb-3 md:mb-4 px-3 py-2 text-xs text-blue text-center bg-gray-100 rounded-full whitespace-nowrap\">
";
// line 13
if ( !CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "label-icon"), "isEmpty", [], "method", false, false, true, 13)) {
// line 14
yield " ";
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "label-icon"), "getThumbnail", ["sector-card-icon-small"], "method", false, false, true, 14), "html", [["pictureAttributes" => ["class" => "mr-2"]]], "method", false, false, true, 14), 14, $this->source);
// line 16
yield "
";
}
// line 18
yield "
";
// line 19
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "pre_title"), "getData", [], "method", false, false, true, 19), 19, $this->source), "html", null, true);
yield "
</p>
";
}
// line 22
yield " <h1 class=\"mb-3 md:mb-4 text-[26px] leading-8 lg:text-[42px] lg:leading-[49px]\">";
yield ((CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title"), "getData", [], "method", false, false, true, 22)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title"), "getData", [], "method", false, false, true, 22), 22, $this->source), "html", null, true)) : (($context["titleDefault"] ?? "")));
yield "</h1>
<p class=\"text-base ";
// line 23
if ((isset($context["showBottom"]) || array_key_exists("showBottom", $context) ? $context["showBottom"] : (function () { throw new RuntimeError('Variable "showBottom" does not exist.', 23, $this->source); })())) {
yield " md:mb-8 ";
}
yield " md:text-lg lg:max-w-[470px]\">";
yield ((CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "description"), "getData", [], "method", false, false, true, 23)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "description"), "getData", [], "method", false, false, true, 23), 23, $this->source), "html", null, true)) : (($context["defaultValue"] ?? "")));
yield "</p>
";
}
// line 25
yield "
";
// line 26
if ((isset($context["showBottom"]) || array_key_exists("showBottom", $context) ? $context["showBottom"] : (function () { throw new RuntimeError('Variable "showBottom" does not exist.', 26, $this->source); })())) {
// line 27
yield "<div class=\"flex flex-col sm:flex-row mt-6 gap-2 relative ";
if ((isset($context["showButtonComment"]) || array_key_exists("showButtonComment", $context) ? $context["showButtonComment"] : (function () { throw new RuntimeError('Variable "showButtonComment" does not exist.', 27, $this->source); })())) {
yield " mb-4 ";
}
yield "\">
";
// line 29
if ((isset($context["showForm"]) || array_key_exists("showForm", $context) ? $context["showForm"] : (function () { throw new RuntimeError('Variable "showForm" does not exist.', 29, $this->source); })())) {
// line 30
yield " ";
yield from $this->loadTemplate("includes/partials/_rental-form.html.twig", "includes/partials/hero_content.html.twig", 30)->unwrap()->yield(CoreExtension::merge($context, ["buttonText" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "customButtonLabel"), "getData", [], "method", true, true, true, 31)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "customButtonLabel"), "getData", [], "method", false, false, true, 31), "Offerte aanvragen")) : ("Offerte aanvragen"))), "buttonClass" => "button button__green group", "trackButtonId" => "conversion_requestquote", "requestUrl" => (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 34
($context["data"] ?? null), "request", [], "any", false, true, true, 34), "url", [], "any", true, true, true, 34) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "request", [], "any", false, true, true, 34), "url", [], "any", false, false, true, 34)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "request", [], "any", false, true, true, 34), "url", [], "any", false, false, true, 34)) : (null))]));
// line 36
yield " ";
}
// line 37
yield "
";
// line 38
if ((((CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "secondary-link"), "getHref", [], "method", true, true, true, 38)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "secondary-link"), "getHref", [], "method", false, false, true, 38))) : ("")) || (isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 38, $this->source); })()))) {
// line 39
yield " ";
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "secondary-link", ["class" => ("button button__secondary group " . (( // line 40
(isset($context["showForm"]) || array_key_exists("showForm", $context) ? $context["showForm"] : (function () { throw new RuntimeError('Variable "showForm" does not exist.', 40, $this->source); })())) ? ("") : ("!pl-0"))), "textSuffix" => "<span class=\"flex items-center justify-center w-6 h-6 ml-3 transition-all bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white\"><svg class=\"h-3.5 w-3.5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\"><path fill=\"currentColor\" fill-rule=\"currentColor\" d=\"m6.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L6.406.343A1.206 1.206 0 0 0 4.657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L10.731 8l-6.008 5.806a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z\"/></svg></span>"]);
// line 42
yield "
";
}
// line 44
yield "
";
// line 45
if ((isset($context["showButtonComment"]) || array_key_exists("showButtonComment", $context) ? $context["showButtonComment"] : (function () { throw new RuntimeError('Variable "showButtonComment" does not exist.', 45, $this->source); })())) {
// line 46
yield " <div class=\"flex items-start justify-center mt-2 ml-2 text-xs md:ml-0 md:my-0 md:left-0 md:absolute text-blue whitespace-nowrap md:-bottom-8\">
<span class=\"hidden md:absolute md:block -top-10 -left-10\">
<img src=\"/static/img/icons/comment.svg\" alt=\"\">
</span>
<span class=\"md:hidden\">
<svg width=\"22\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\"><defs><clipPath id=\"107118525210612011410197100\"><path d=\"M12.01 0v18.086H0V0h12.01Z\"/></clipPath><clipPath id=\"53121112112521191031055798\"><path d=\"M11.341 0c.201.002.4.104.54.286a.664.664 0 0 1 .094.604c-.166.581-.432 1.06-.679 1.58-.449.82-.819 1.6-.889 2.583a.724.724 0 0 1-.285.53l-.082.05c-.081.039-.202.098-.362-.023a.633.633 0 0 1-.636-.69c.039-.902.327-1.682.664-2.38C3.883 5.828.71 11.463 1.425 17.332a.66.66 0 1 1-1.309.185c-.802-6.418 2.6-12.55 8.86-16.115-.57.028-1.148.053-1.768.063-.401-.004-.7-.308-.677-.67.004-.401.309-.7.67-.676.663.027 1.346-.007 2.03-.04a64.742 64.742 0 0 1 2.11-.08Z\"/></clipPath><clipPath id=\"5353105120011210011111656\"><path d=\"M12.01 0v18.086H0V0h12.01Z\"/></clipPath></defs><g clip-path=\"url(#107118525210612011410197100)\" transform=\"rotate(-57 9.275 5.036)\"><g clip-path=\"url(#53121112112521191031055798)\"><g clip-path=\"url(#5353105120011210011111656)\"><path fill=\"#0071BA\" d=\"M0 0h12.009v18.086H0V0z\"/></g></g></g></svg>
</span>
<span class=\"py-2 md:py-0\">";
// line 53
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "buttonComment"), "getData", [], "method", false, false, true, 53), 53, $this->source), "html", null, true);
yield "</span>
</div>
";
}
// line 56
yield "</div>
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "includes/partials/hero_content.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 172 => 56, 166 => 53, 157 => 46, 155 => 45, 152 => 44, 148 => 42, 146 => 40, 144 => 39, 142 => 38, 139 => 37, 136 => 36, 134 => 34, 132 => 30, 130 => 29, 122 => 27, 120 => 26, 117 => 25, 108 => 23, 103 => 22, 97 => 19, 94 => 18, 90 => 16, 87 => 14, 85 => 13, 82 => 12, 79 => 11, 74 => 9, 70 => 8, 66 => 7, 61 => 6, 59 => 5, 56 => 4, 54 => 3, 52 => 2, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% set showButtonComment = pimcore_input('buttonComment').getData() | default() %}
{% set showForm = pimcore_checkbox('showRentalForm').isChecked() %}
{% set showBottom = pimcore_checkbox('showRentalForm').isChecked() or pimcore_link('secondary-link').getHref()|default() or editmode or showButtonComment %}
{% if (editmode) %}
{{ pimcore_image('label-icon') }}
<p>{{ pimcore_input('pre_title') }}</p>
<h1 class=\"mb-3 md:mb-4 text-[26px] leading-8 lg:text-[42px] lg:leading-[49px]\">{{ pimcore_input('title') }}</h1>
<p class=\"text-base md:mb-8 md:text-lg lg:max-w-[470px]\">{{ pimcore_textarea('description') }}</p>
{% else %}
{% if pimcore_input('pre_title').getData() %}
<p class=\"flex text-[14px] max-w-max mb-3 md:mb-4 px-3 py-2 text-xs text-blue text-center bg-gray-100 rounded-full whitespace-nowrap\">
{% if not pimcore_image('label-icon').isEmpty() %}
{{ pimcore_image('label-icon').getThumbnail('sector-card-icon-small').html({
pictureAttributes: {class: 'mr-2'},
}) | raw }}
{% endif %}
{{ pimcore_input('pre_title').getData() }}
</p>
{% endif %}
<h1 class=\"mb-3 md:mb-4 text-[26px] leading-8 lg:text-[42px] lg:leading-[49px]\">{{ pimcore_input('title').getData() ?: titleDefault ?? '' }}</h1>
<p class=\"text-base {% if showBottom %} md:mb-8 {% endif %} md:text-lg lg:max-w-[470px]\">{{ pimcore_textarea('description').getData() ?: (defaultValue ?? \"\") }}</p>
{% endif %}
{% if showBottom %}
<div class=\"flex flex-col sm:flex-row mt-6 gap-2 relative {% if showButtonComment %} mb-4 {% endif %}\">
{% if showForm %}
{% include 'includes/partials/_rental-form.html.twig' with {
buttonText: pimcore_input('customButtonLabel').getData()|default('Offerte aanvragen') | trans,
buttonClass: 'button button__green group',
trackButtonId: 'conversion_requestquote',
requestUrl: data.request.url ?? null,
} %}
{% endif %}
{% if pimcore_link('secondary-link').getHref()|default() or editmode %}
{{ pimcore_link('secondary-link', {
class: 'button button__secondary group ' ~ (showForm ? '' : '!pl-0'),
textSuffix: '<span class=\"flex items-center justify-center w-6 h-6 ml-3 transition-all bg-white rounded-full shadow-md text-blue group-hover:bg-blue group-hover:text-white\"><svg class=\"h-3.5 w-3.5\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\"><path fill=\"currentColor\" fill-rule=\"currentColor\" d=\"m6.406 15.656 6.963-6.731c.249-.24.389-.575.389-.925 0-.35-.14-.685-.389-.925L6.406.343A1.206 1.206 0 0 0 4.657.41l-.09.113a1.297 1.297 0 0 0 .154 1.67L10.731 8l-6.008 5.806a1.295 1.295 0 0 0-.065 1.783c.463.52 1.248.55 1.748.066Z\"/></svg></span>'
}) }}
{% endif %}
{% if showButtonComment %}
<div class=\"flex items-start justify-center mt-2 ml-2 text-xs md:ml-0 md:my-0 md:left-0 md:absolute text-blue whitespace-nowrap md:-bottom-8\">
<span class=\"hidden md:absolute md:block -top-10 -left-10\">
<img src=\"/static/img/icons/comment.svg\" alt=\"\">
</span>
<span class=\"md:hidden\">
<svg width=\"22\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\"><defs><clipPath id=\"107118525210612011410197100\"><path d=\"M12.01 0v18.086H0V0h12.01Z\"/></clipPath><clipPath id=\"53121112112521191031055798\"><path d=\"M11.341 0c.201.002.4.104.54.286a.664.664 0 0 1 .094.604c-.166.581-.432 1.06-.679 1.58-.449.82-.819 1.6-.889 2.583a.724.724 0 0 1-.285.53l-.082.05c-.081.039-.202.098-.362-.023a.633.633 0 0 1-.636-.69c.039-.902.327-1.682.664-2.38C3.883 5.828.71 11.463 1.425 17.332a.66.66 0 1 1-1.309.185c-.802-6.418 2.6-12.55 8.86-16.115-.57.028-1.148.053-1.768.063-.401-.004-.7-.308-.677-.67.004-.401.309-.7.67-.676.663.027 1.346-.007 2.03-.04a64.742 64.742 0 0 1 2.11-.08Z\"/></clipPath><clipPath id=\"5353105120011210011111656\"><path d=\"M12.01 0v18.086H0V0h12.01Z\"/></clipPath></defs><g clip-path=\"url(#107118525210612011410197100)\" transform=\"rotate(-57 9.275 5.036)\"><g clip-path=\"url(#53121112112521191031055798)\"><g clip-path=\"url(#5353105120011210011111656)\"><path fill=\"#0071BA\" d=\"M0 0h12.009v18.086H0V0z\"/></g></g></g></svg>
</span>
<span class=\"py-2 md:py-0\">{{ pimcore_input('buttonComment').getData() }}</span>
</div>
{% endif %}
</div>
{% endif %}", "includes/partials/hero_content.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/includes/partials/hero_content.html.twig");
}
public function checkSecurity()
{
static $tags = ["set" => 1, "if" => 5, "include" => 30];
static $filters = ["default" => 1, "raw" => 16, "escape" => 19, "trans" => 31];
static $functions = ["pimcore_input" => 1, "pimcore_checkbox" => 2, "pimcore_link" => 3, "pimcore_image" => 6, "pimcore_textarea" => 9];
try {
$this->sandbox->checkSecurity(
['set', 'if', 'include'],
['default', 'raw', 'escape', 'trans'],
['pimcore_input', 'pimcore_checkbox', 'pimcore_link', 'pimcore_image', 'pimcore_textarea'],
$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;
}
}
}