<?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/homepageHero/homepageHero.html.twig */
class __TwigTemplate_b32c8fceb294db8be2a623968b452743 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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/homepageHero/homepageHero.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "areas/homepageHero/homepageHero.html.twig"));
// line 1
yield "<figure class=\"homepage-hero\">";
// line 2
if ((($tmp = (isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 2, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 3
yield "<picture class=\"homepage-hero__picture\">";
// line 4
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "heroImage", ["class" => "homepage-hero__image"]);
// line 7
yield "</picture>
<figcaption class=\"homepage-hero__caption\">
<div class=\"homepage-hero__claim\">";
// line 11
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "claim", ["placeholder" => "Sie."]);
// line 14
yield "</div>
<p class=\"homepage-hero__questions-item homepage-hero__questions-item--one\">";
// line 17
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "questionOne", ["placeholder" => "Frage Eins"]);
// line 20
yield "</p>
<p class=\"homepage-hero__questions-item homepage-hero__questions-item--two\">";
// line 23
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "questionTwo", ["placeholder" => "Frage Zwei"]);
// line 26
yield "</p>
<p class=\"homepage-hero__questions-item homepage-hero__questions-item--three\">";
// line 29
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "questionThree", ["placeholder" => "Frage Drei"]);
// line 32
yield "</p>
<p class=\"homepage-hero__questions-item homepage-hero__questions-item--four\">";
// line 35
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "questionFour", ["placeholder" => "Frage Vier"]);
// line 38
yield "</p>
<h1 class=\"homepage-hero__headline\">
";
// line 41
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headlineWordOne", ["placeholder" => "Wort vorne"]);
// line 43
yield "
";
// line 45
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headlineWordTwo", ["placeholder" => "Wort hinten"]);
// line 47
yield "
</h1>";
// line 50
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "headlineLink");
// line 51
yield "</figcaption>";
} else {
// line 53
$context["heroImage"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "heroImage", ["thumbnail" => "homepageHeroImage", "pictureAttributes" => ["class" => "homepage-hero__picture"], "imgAttributes" => ["class" => "homepage-hero__image", "loading" => "eager"]]);
// line 63
$context["claim"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "claim");
// line 64
$context["questionOne"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "questionOne");
// line 65
$context["questionTwo"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "questionTwo");
// line 66
$context["questionThree"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "questionThree");
// line 67
$context["questionFour"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "questionFour");
// line 68
$context["headlineWordOne"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headlineWordOne");
// line 69
$context["headlineWordTwo"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headlineWordTwo");
// line 70
$context["headlineLink"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "headlineLink");
// line 72
if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, (isset($context["heroImage"]) || array_key_exists("heroImage", $context) ? $context["heroImage"] : (function () { throw new RuntimeError('Variable "heroImage" does not exist.', 72, $this->source); })()), "isEmpty", [], "method", false, false, true, 72)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 73
yield $this->sandbox->ensureToStringAllowed((isset($context["heroImage"]) || array_key_exists("heroImage", $context) ? $context["heroImage"] : (function () { throw new RuntimeError('Variable "heroImage" does not exist.', 73, $this->source); })()), 73, $this->source);
}
// line 76
yield "<figcaption class=\"homepage-hero__caption\">";
// line 77
if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, (isset($context["claim"]) || array_key_exists("claim", $context) ? $context["claim"] : (function () { throw new RuntimeError('Variable "claim" does not exist.', 77, $this->source); })()), "isEmpty", [], "method", false, false, true, 77)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 78
yield "<p class=\"homepage-hero__claim\">";
// line 79
yield $this->sandbox->ensureToStringAllowed((isset($context["claim"]) || array_key_exists("claim", $context) ? $context["claim"] : (function () { throw new RuntimeError('Variable "claim" does not exist.', 79, $this->source); })()), 79, $this->source);
// line 80
yield "</p>";
}
// line 83
if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, (isset($context["questionOne"]) || array_key_exists("questionOne", $context) ? $context["questionOne"] : (function () { throw new RuntimeError('Variable "questionOne" does not exist.', 83, $this->source); })()), "isEmpty", [], "method", false, false, true, 83)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 84
yield "<p class=\"homepage-hero__questions-item homepage-hero__questions-item--one\">";
// line 85
yield Twig\Extension\CoreExtension::nl2br($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["questionOne"]) || array_key_exists("questionOne", $context) ? $context["questionOne"] : (function () { throw new RuntimeError('Variable "questionOne" does not exist.', 85, $this->source); })()), 85, $this->source), "html", null, true));
// line 86
yield "<span class=\"anim-wrapper anim-wrapper-1\">
<span class=\"border-animation border-animation-1\">
</span><span class=\"pulsar\"></span>
</span>
</p>";
}
// line 93
if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, (isset($context["questionTwo"]) || array_key_exists("questionTwo", $context) ? $context["questionTwo"] : (function () { throw new RuntimeError('Variable "questionTwo" does not exist.', 93, $this->source); })()), "isEmpty", [], "method", false, false, true, 93)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 94
yield " <p class=\"homepage-hero__questions-item homepage-hero__questions-item--two\">";
// line 95
yield Twig\Extension\CoreExtension::nl2br($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["questionTwo"]) || array_key_exists("questionTwo", $context) ? $context["questionTwo"] : (function () { throw new RuntimeError('Variable "questionTwo" does not exist.', 95, $this->source); })()), 95, $this->source), "html", null, true));
// line 96
yield "<span class=\"anim-wrapper anim-wrapper-2\">
<span class=\"border-animation border-animation-2\">
</span><span class=\"pulsar\"></span>
</span>
</p>";
}
// line 103
if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, (isset($context["questionThree"]) || array_key_exists("questionThree", $context) ? $context["questionThree"] : (function () { throw new RuntimeError('Variable "questionThree" does not exist.', 103, $this->source); })()), "isEmpty", [], "method", false, false, true, 103)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 104
yield "<p class=\"homepage-hero__questions-item homepage-hero__questions-item--three\">";
// line 105
yield Twig\Extension\CoreExtension::nl2br($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["questionThree"]) || array_key_exists("questionThree", $context) ? $context["questionThree"] : (function () { throw new RuntimeError('Variable "questionThree" does not exist.', 105, $this->source); })()), 105, $this->source), "html", null, true));
// line 106
yield "<span class=\"anim-wrapper anim-wrapper-3\">
<span class=\"border-animation border-animation-3\">
</span><span class=\"pulsar\"></span>
</span>
</p>";
}
// line 113
if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, (isset($context["questionFour"]) || array_key_exists("questionFour", $context) ? $context["questionFour"] : (function () { throw new RuntimeError('Variable "questionFour" does not exist.', 113, $this->source); })()), "isEmpty", [], "method", false, false, true, 113)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 114
yield "<p class=\"homepage-hero__questions-item homepage-hero__questions-item--four\">";
// line 115
yield Twig\Extension\CoreExtension::nl2br($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["questionFour"]) || array_key_exists("questionFour", $context) ? $context["questionFour"] : (function () { throw new RuntimeError('Variable "questionFour" does not exist.', 115, $this->source); })()), 115, $this->source), "html", null, true));
// line 117
yield "<span class=\"anim-wrapper anim-wrapper-4\">
<span class=\"border-animation border-animation-4\">
</span><span class=\"pulsar\"></span>
</span>
</p>";
}
// line 124
if (( !CoreExtension::getAttribute($this->env, $this->source, (isset($context["headlineWordOne"]) || array_key_exists("headlineWordOne", $context) ? $context["headlineWordOne"] : (function () { throw new RuntimeError('Variable "headlineWordOne" does not exist.', 124, $this->source); })()), "isEmpty", [], "method", false, false, true, 124) || !CoreExtension::getAttribute($this->env, $this->source, (isset($context["headlineWordTwo"]) || array_key_exists("headlineWordTwo", $context) ? $context["headlineWordTwo"] : (function () { throw new RuntimeError('Variable "headlineWordTwo" does not exist.', 124, $this->source); })()), "isEmpty", [], "method", false, false, true, 124))) {
// line 125
yield "<h1 class=\"homepage-hero__headline\">";
// line 126
if (( !CoreExtension::getAttribute($this->env, $this->source, (isset($context["headlineLink"]) || array_key_exists("headlineLink", $context) ? $context["headlineLink"] : (function () { throw new RuntimeError('Variable "headlineLink" does not exist.', 126, $this->source); })()), "isEmpty", [], "method", false, false, true, 126) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["headlineLink"]) || array_key_exists("headlineLink", $context) ? $context["headlineLink"] : (function () { throw new RuntimeError('Variable "headlineLink" does not exist.', 126, $this->source); })()), "href", [], "any", false, false, true, 126) != ""))) {
// line 127
yield "<a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, (isset($context["headlineLink"]) || array_key_exists("headlineLink", $context) ? $context["headlineLink"] : (function () { throw new RuntimeError('Variable "headlineLink" does not exist.', 127, $this->source); })()), "href", [], "any", false, false, true, 127), 127, $this->source), "html", null, true);
yield "\">";
// line 128
if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, (isset($context["headlineWordOne"]) || array_key_exists("headlineWordOne", $context) ? $context["headlineWordOne"] : (function () { throw new RuntimeError('Variable "headlineWordOne" does not exist.', 128, $this->source); })()), "isEmpty", [], "method", false, false, true, 128)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 129
yield "<span class=\"homepage-hero__headline-one\">";
// line 130
yield $this->sandbox->ensureToStringAllowed((isset($context["headlineWordOne"]) || array_key_exists("headlineWordOne", $context) ? $context["headlineWordOne"] : (function () { throw new RuntimeError('Variable "headlineWordOne" does not exist.', 130, $this->source); })()), 130, $this->source);
// line 131
yield "</span>";
}
// line 134
if ((($tmp = !CoreExtension::getAttribute($this->env, $this->source, (isset($context["headlineWordTwo"]) || array_key_exists("headlineWordTwo", $context) ? $context["headlineWordTwo"] : (function () { throw new RuntimeError('Variable "headlineWordTwo" does not exist.', 134, $this->source); })()), "isEmpty", [], "method", false, false, true, 134)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 135
yield "<span class=\"homepage-hero__headline-two\">";
// line 136
yield $this->sandbox->ensureToStringAllowed((isset($context["headlineWordTwo"]) || array_key_exists("headlineWordTwo", $context) ? $context["headlineWordTwo"] : (function () { throw new RuntimeError('Variable "headlineWordTwo" does not exist.', 136, $this->source); })()), 136, $this->source);
// line 137
yield "</span>";
}
// line 139
yield "</a>";
}
// line 142
yield "<svg class=\"icon\"
aria-hidden=\"true\"
focusable=\"false\">
<use xlink:href=\"#angle-down-regular\" />
</svg>
</h1>";
}
// line 150
yield "</figcaption>";
}
// line 152
yield "</figure>
<script src=\"/lef-career/js/hero-observer.js\" async></script>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "areas/homepageHero/homepageHero.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 239 => 152, 236 => 150, 227 => 142, 224 => 139, 221 => 137, 219 => 136, 217 => 135, 215 => 134, 212 => 131, 210 => 130, 208 => 129, 206 => 128, 202 => 127, 200 => 126, 198 => 125, 196 => 124, 189 => 117, 187 => 115, 185 => 114, 183 => 113, 176 => 106, 174 => 105, 172 => 104, 170 => 103, 163 => 96, 161 => 95, 159 => 94, 157 => 93, 150 => 86, 148 => 85, 146 => 84, 144 => 83, 141 => 80, 139 => 79, 137 => 78, 135 => 77, 133 => 76, 130 => 73, 128 => 72, 126 => 70, 124 => 69, 122 => 68, 120 => 67, 118 => 66, 116 => 65, 114 => 64, 112 => 63, 110 => 53, 107 => 51, 105 => 50, 102 => 47, 100 => 45, 96 => 43, 94 => 41, 89 => 38, 87 => 35, 83 => 32, 81 => 29, 77 => 26, 75 => 23, 71 => 20, 69 => 17, 65 => 14, 63 => 11, 58 => 7, 56 => 4, 54 => 3, 52 => 2, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<figure class=\"homepage-hero\">
{%- if editmode -%}
<picture class=\"homepage-hero__picture\">
{{- pimcore_image('heroImage', {
'class': 'homepage-hero__image'
}) -}}
</picture>
<figcaption class=\"homepage-hero__caption\">
<div class=\"homepage-hero__claim\">
{{- pimcore_input('claim', {
'placeholder': 'Sie.'
}) -}}
</div>
<p class=\"homepage-hero__questions-item homepage-hero__questions-item--one\">
{{- pimcore_textarea('questionOne', {
'placeholder': 'Frage Eins'
}) -}}
</p>
<p class=\"homepage-hero__questions-item homepage-hero__questions-item--two\">
{{- pimcore_textarea('questionTwo', {
'placeholder': 'Frage Zwei'
}) -}}
</p>
<p class=\"homepage-hero__questions-item homepage-hero__questions-item--three\">
{{- pimcore_textarea('questionThree', {
'placeholder': 'Frage Drei'
}) -}}
</p>
<p class=\"homepage-hero__questions-item homepage-hero__questions-item--four\">
{{- pimcore_textarea('questionFour', {
'placeholder': 'Frage Vier'
}) -}}
</p>
<h1 class=\"homepage-hero__headline\">
{{ pimcore_input('headlineWordOne', {
'placeholder': 'Wort vorne'
}) }}
{{ pimcore_input('headlineWordTwo', {
'placeholder': 'Wort hinten'
}) }}
</h1>
{{- pimcore_link('headlineLink') -}}
</figcaption>
{%- else -%}
{%- set heroImage = pimcore_image('heroImage', {
'thumbnail': 'homepageHeroImage',
'pictureAttributes': {
'class': 'homepage-hero__picture'
},
'imgAttributes': {
'class': 'homepage-hero__image',
'loading': 'eager'
}
}) -%}
{%- set claim = pimcore_input('claim') -%}
{%- set questionOne = pimcore_textarea('questionOne') -%}
{%- set questionTwo = pimcore_textarea('questionTwo') -%}
{%- set questionThree = pimcore_textarea('questionThree') -%}
{%- set questionFour = pimcore_textarea('questionFour') -%}
{%- set headlineWordOne = pimcore_input('headlineWordOne') -%}
{%- set headlineWordTwo = pimcore_input('headlineWordTwo') -%}
{%- set headlineLink = pimcore_link('headlineLink') -%}
{%- if not heroImage.isEmpty() -%}
{{- heroImage|raw -}}
{%- endif -%}
<figcaption class=\"homepage-hero__caption\">
{%- if not claim.isEmpty() -%}
<p class=\"homepage-hero__claim\">
{{- claim|raw -}}
</p>
{%- endif -%}
{%- if not questionOne.isEmpty() -%}
<p class=\"homepage-hero__questions-item homepage-hero__questions-item--one\">
{{- questionOne|nl2br -}}
<span class=\"anim-wrapper anim-wrapper-1\">
<span class=\"border-animation border-animation-1\">
</span><span class=\"pulsar\"></span>
</span>
</p>
{%- endif -%}
{% if not questionTwo.isEmpty() %}
<p class=\"homepage-hero__questions-item homepage-hero__questions-item--two\">
{{- questionTwo|nl2br -}}
<span class=\"anim-wrapper anim-wrapper-2\">
<span class=\"border-animation border-animation-2\">
</span><span class=\"pulsar\"></span>
</span>
</p>
{%- endif -%}
{%- if not questionThree.isEmpty() -%}
<p class=\"homepage-hero__questions-item homepage-hero__questions-item--three\">
{{- questionThree|nl2br -}}
<span class=\"anim-wrapper anim-wrapper-3\">
<span class=\"border-animation border-animation-3\">
</span><span class=\"pulsar\"></span>
</span>
</p>
{%- endif -%}
{%- if not questionFour.isEmpty() -%}
<p class=\"homepage-hero__questions-item homepage-hero__questions-item--four\">
{{- questionFour|nl2br -}}
<span class=\"anim-wrapper anim-wrapper-4\">
<span class=\"border-animation border-animation-4\">
</span><span class=\"pulsar\"></span>
</span>
</p>
{%- endif -%}
{%- if not headlineWordOne.isEmpty() or not headlineWordTwo.isEmpty() -%}
<h1 class=\"homepage-hero__headline\">
{%- if not headlineLink.isEmpty() and headlineLink.href != '' -%}
<a href=\"{{ headlineLink.href }}\">
{%- if not headlineWordOne.isEmpty() -%}
<span class=\"homepage-hero__headline-one\">
{{- headlineWordOne|raw -}}
</span>
{%- endif -%}
{%- if not headlineWordTwo.isEmpty() -%}
<span class=\"homepage-hero__headline-two\">
{{- headlineWordTwo|raw -}}
</span>
{%- endif -%}
</a>
{%- endif -%}
<svg class=\"icon\"
aria-hidden=\"true\"
focusable=\"false\">
<use xlink:href=\"#angle-down-regular\" />
</svg>
</h1>
{%- endif -%}
</figcaption>
{%- endif -%}
</figure>
<script src=\"/lef-career/js/hero-observer.js\" async></script>", "areas/homepageHero/homepageHero.html.twig", "/var/www/pimcore/templates/areas/homepageHero/homepageHero.html.twig");
}
public function checkSecurity()
{
static $tags = ["if" => 2, "set" => 53];
static $filters = ["raw" => 73, "nl2br" => 85, "escape" => 85];
static $functions = ["pimcore_image" => 4, "pimcore_input" => 11, "pimcore_textarea" => 17, "pimcore_link" => 50];
try {
$this->sandbox->checkSecurity(
['if', 'set'],
['raw', 'nl2br', 'escape'],
['pimcore_image', 'pimcore_input', 'pimcore_textarea', 'pimcore_link'],
$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;
}
}
}