<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* areas/hero/view.html.twig */
class __TwigTemplate_2e6593d37ead73119fc62c67b396b1df extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "areas_shared/settings.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$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/hero/view.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/hero/view.html.twig"));
$this->parent = $this->loadTemplate("areas_shared/settings.html.twig", "areas/hero/view.html.twig", 2);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 5
echo "
";
// line 7
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 7, $this->source); })()), "isEmpty", [], "method", false, false, false, 7)) {
// line 8
echo " ";
twig_get_attribute($this->env, $this->source, (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 8, $this->source); })()), "setDataFromResource", [0 => "no-margin-bottom"], "method", false, false, false, 8);
// line 9
echo " ";
}
// line 10
echo "
";
// line 12
echo " ";
$context["large"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "large", ["reload" => true]);
// line 15
echo "
";
// line 17
echo " ";
$context["image"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image", ["reload" => true, "width" => 300]);
// line 21
echo "
";
// line 23
echo " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 23, $this->source); })())) {
// line 24
echo " <div class=\"editmode\">
<div class=\"accordion-container\">
<div class=\"accordion-button\">
<span class=\"accordion-button-text\">Hero</span>
";
// line 28
echo twig_include($this->env, $context, "svg/editmode/setting.html.twig");
echo "
</div>
<div class=\"panel\">
<div class=\"settings-container\">
<div class=\"setting input\">
<label>Anker:</label>
";
// line 35
echo (isset($context["anchor"]) || array_key_exists("anchor", $context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.', 35, $this->source); })());
echo "
</div>
<div class=\"setting checkbox\">
<label>";
// line 39
echo (isset($context["large"]) || array_key_exists("large", $context) ? $context["large"] : (function () { throw new RuntimeError('Variable "large" does not exist.', 39, $this->source); })());
echo " Gross</label>
</div>
<div class=\"setting\">
<label>Bild:</label>
";
// line 44
echo (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 44, $this->source); })());
echo "
</div>
<div class=\"setting select\">
<label>Abstand unten:</label>
";
// line 49
echo (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 49, $this->source); })());
echo "
</div>
</div>
</div>
</div>
</div>
";
}
// line 57
echo "
";
// line 58
if (twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 58, $this->source); })()), "src", [], "any", false, false, false, 58)) {
// line 59
echo " <div class=\"hero-brick brick-container ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["backgroundColor"]) || array_key_exists("backgroundColor", $context) ? $context["backgroundColor"] : (function () { throw new RuntimeError('Variable "backgroundColor" does not exist.', 59, $this->source); })()), "data", [], "any", false, false, false, 59), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 59, $this->source); })()), "data", [], "any", false, false, false, 59), "html", null, true);
echo "\">
";
// line 62
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["anchor"]) || array_key_exists("anchor", $context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.', 62, $this->source); })()), "data", [], "any", false, false, false, 62)) {
// line 63
echo " <div class=\"anchor\" id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["anchor"]) || array_key_exists("anchor", $context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.', 63, $this->source); })()), "data", [], "any", false, false, false, 63), "html", null, true);
echo "\"></div>
";
}
// line 65
echo "
<div class=\"container-2500 no-padding\">
";
// line 69
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 69, $this->source); })()), "src", [], "any", false, false, false, 69) && twig_get_attribute($this->env, $this->source, (isset($context["large"]) || array_key_exists("large", $context) ? $context["large"] : (function () { throw new RuntimeError('Variable "large" does not exist.', 69, $this->source); })()), "checked", [], "any", false, false, false, 69))) {
// line 70
echo " <div class=\"image large\">
";
// line 71
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 71, $this->source); })()), "thumbnail", [0 => "heroLarge"], "method", false, false, false, 71), "html", [0 => ["alt" => twig_get_attribute($this->env, $this->source, // line 72
(isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 72, $this->source); })()), "alt", [], "any", false, false, false, 72), "disableWidthHeightAttributes" => true, "imgAttributes" => ["width" => 480, "height" => 400, "loading" => "eager"]]], "method", false, false, false, 71);
// line 79
echo "
</div>
";
// line 83
echo " ";
} elseif (twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 83, $this->source); })()), "src", [], "any", false, false, false, 83)) {
// line 84
echo " <div class=\"image\">
";
// line 85
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 85, $this->source); })()), "thumbnail", [0 => "heroSmall"], "method", false, false, false, 85), "html", [0 => ["alt" => twig_get_attribute($this->env, $this->source, // line 86
(isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 86, $this->source); })()), "alt", [], "any", false, false, false, 86), "disableWidthHeightAttributes" => true, "imgAttributes" => ["width" => 480, "height" => 200, "loading" => "eager"]]], "method", false, false, false, 85);
// line 93
echo "
</div>
";
}
// line 96
echo "
";
// line 98
echo " ";
if ( !twig_get_attribute($this->env, $this->source, (isset($context["large"]) || array_key_exists("large", $context) ? $context["large"] : (function () { throw new RuntimeError('Variable "large" does not exist.', 98, $this->source); })()), "checked", [], "any", false, false, false, 98)) {
// line 99
echo " <div class=\"wave\">
";
// line 100
echo twig_include($this->env, $context, "svg/hero/wave.html.twig");
echo "
</div>
";
}
// line 103
echo "
</div>
</div>
";
}
// line 107
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "areas/hero/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 224 => 107, 218 => 103, 212 => 100, 209 => 99, 206 => 98, 203 => 96, 198 => 93, 196 => 86, 195 => 85, 192 => 84, 189 => 83, 184 => 79, 182 => 72, 181 => 71, 178 => 70, 175 => 69, 170 => 65, 164 => 63, 161 => 62, 153 => 59, 151 => 58, 148 => 57, 137 => 49, 129 => 44, 121 => 39, 114 => 35, 104 => 28, 98 => 24, 95 => 23, 92 => 21, 89 => 17, 86 => 15, 83 => 12, 80 => 10, 77 => 9, 74 => 8, 71 => 7, 68 => 5, 58 => 4, 35 => 2,);
}
public function getSourceContext()
{
return new Source("{# settings #}
{% extends ('areas_shared/settings.html.twig') %}
{% block content %}
{# default margin bottom #}
{% if marginBottom.isEmpty() %}
{% do marginBottom.setDataFromResource('no-margin-bottom') %}
{% endif %}
{# large #}
{% set large = pimcore_checkbox('large', {
'reload': true
}) %}
{# image #}
{% set image = pimcore_image('image', {
'reload': true,
'width': 300
}) %}
{# editmode #}
{% if editmode %}
<div class=\"editmode\">
<div class=\"accordion-container\">
<div class=\"accordion-button\">
<span class=\"accordion-button-text\">Hero</span>
{{ include('svg/editmode/setting.html.twig') }}
</div>
<div class=\"panel\">
<div class=\"settings-container\">
<div class=\"setting input\">
<label>Anker:</label>
{{ anchor|raw }}
</div>
<div class=\"setting checkbox\">
<label>{{ large|raw }} Gross</label>
</div>
<div class=\"setting\">
<label>Bild:</label>
{{ image|raw }}
</div>
<div class=\"setting select\">
<label>Abstand unten:</label>
{{ marginBottom|raw }}
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% if image.src %}
<div class=\"hero-brick brick-container {{ backgroundColor.data }} {{ marginBottom.data }}\">
{# anchor #}
{% if anchor.data %}
<div class=\"anchor\" id=\"{{ anchor.data }}\"></div>
{% endif %}
<div class=\"container-2500 no-padding\">
{# large #}
{% if image.src and large.checked %}
<div class=\"image large\">
{{ image.thumbnail('heroLarge').html({
'alt': image.alt,
'disableWidthHeightAttributes': true,
'imgAttributes': {
'width': 480,
'height': 400,
'loading': 'eager'
}
})|raw }}
</div>
{# normal #}
{% elseif image.src %}
<div class=\"image\">
{{ image.thumbnail('heroSmall').html({
'alt': image.alt,
'disableWidthHeightAttributes': true,
'imgAttributes': {
'width': 480,
'height': 200,
'loading': 'eager'
}
})|raw }}
</div>
{% endif %}
{# wave #}
{% if not large.checked %}
<div class=\"wave\">
{{ include('svg/hero/wave.html.twig') }}
</div>
{% endif %}
</div>
</div>
{% endif %}
{% endblock %}", "areas/hero/view.html.twig", "/home/httpd/vhosts/a4interactive.ch/httpdocs/lutisbach.a4interactive.ch/templates/areas/hero/view.html.twig");
}
}