<?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/bild-text/view.html.twig */
class __TwigTemplate_699f6da52cb456cd4800849d3d97ca55 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/bild-text/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/bild-text/view.html.twig"));
$this->parent = $this->loadTemplate("areas_shared/settings.html.twig", "areas/bild-text/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 " ";
if (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.', 12, $this->source); })()), "isEmpty", [], "method", false, false, false, 12)) {
// line 13
echo " ";
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.', 13, $this->source); })()), "setDataFromResource", [0 => "background-lightbrown"], "method", false, false, false, 13);
// line 14
echo " ";
}
// line 15
echo "
";
// line 17
echo " ";
if ((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.', 17, $this->source); })()), "data", [], "any", false, false, false, 17) == "background-darkblue")) {
// line 18
echo " ";
$context["buttonColor"] = "lightbrown-to-turquois";
// line 19
echo " ";
}
// line 20
echo "
";
// line 22
echo " ";
$context["imagePosition"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "imagePosition", ["store" => [0 => [0 => "imageLeft", 1 => "Bild / Text"], 1 => [0 => "imageRight", 1 => "Text / Bild"]], "reload" => true]);
// line 29
echo "
";
// line 31
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["imagePosition"]) || array_key_exists("imagePosition", $context) ? $context["imagePosition"] : (function () { throw new RuntimeError('Variable "imagePosition" does not exist.', 31, $this->source); })()), "isEmpty", [], "method", false, false, false, 31)) {
// line 32
echo " ";
twig_get_attribute($this->env, $this->source, (isset($context["imagePosition"]) || array_key_exists("imagePosition", $context) ? $context["imagePosition"] : (function () { throw new RuntimeError('Variable "imagePosition" does not exist.', 32, $this->source); })()), "setDataFromResource", [0 => "imageLeft"], "method", false, false, false, 32);
// line 33
echo " ";
}
// line 34
echo "
";
// line 35
if ((twig_get_attribute($this->env, $this->source, (isset($context["imagePosition"]) || array_key_exists("imagePosition", $context) ? $context["imagePosition"] : (function () { throw new RuntimeError('Variable "imagePosition" does not exist.', 35, $this->source); })()), "data", [], "any", false, false, false, 35) == "imageLeft")) {
// line 36
echo " ";
$context["imageOrder"] = "order-1";
// line 37
echo " ";
$context["textOrder"] = "order-2";
// line 38
echo " ";
} else {
// line 39
echo " ";
$context["imageOrder"] = "order-2";
// line 40
echo " ";
$context["textOrder"] = "order-1";
// line 41
echo " ";
}
// line 42
echo "
";
// line 44
echo " ";
$context["image"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "image", ["reload" => true, "width" => 300]);
// line 48
echo "
";
// line 50
echo " ";
$context["keepAspectRatio"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "keepAspectRatio");
// line 51
echo "
";
// line 53
echo " ";
$context["title"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title", ["placeholder" => "Titel"]);
// line 56
echo "
";
// line 58
echo " ";
$context["text"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "text", ["placeholder" => "Text"]);
// line 61
echo "
";
// line 63
echo " ";
$context["link"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link");
// line 64
echo "
";
// line 66
echo " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 66, $this->source); })())) {
// line 67
echo " <div class=\"editmode\">
<div class=\"accordion-container\">
<div class=\"accordion-button\">
<span class=\"accordion-button-text\">Bild / Text</span>
";
// line 71
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 78
echo (isset($context["anchor"]) || array_key_exists("anchor", $context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.', 78, $this->source); })());
echo "
</div>
<div class=\"setting select\">
<label>Position:</label>
";
// line 83
echo (isset($context["imagePosition"]) || array_key_exists("imagePosition", $context) ? $context["imagePosition"] : (function () { throw new RuntimeError('Variable "imagePosition" does not exist.', 83, $this->source); })());
echo "
</div>
<div class=\"setting\">
<label>Bild:</label>
";
// line 88
echo (isset($context["image"]) || array_key_exists("image", $context) ? $context["image"] : (function () { throw new RuntimeError('Variable "image" does not exist.', 88, $this->source); })());
echo "
</div>
<div class=\"setting checkbox\">
<label>";
// line 92
echo (isset($context["keepAspectRatio"]) || array_key_exists("keepAspectRatio", $context) ? $context["keepAspectRatio"] : (function () { throw new RuntimeError('Variable "keepAspectRatio" does not exist.', 92, $this->source); })());
echo " Bildformat beibehalten</label>
</div>
<div class=\"setting select colors\">
<label>Hintergrundfarbe:</label>
";
// line 97
echo (isset($context["backgroundColor"]) || array_key_exists("backgroundColor", $context) ? $context["backgroundColor"] : (function () { throw new RuntimeError('Variable "backgroundColor" does not exist.', 97, $this->source); })());
echo "
";
// line 98
echo twig_include($this->env, $context, "areas_shared/colors.html.twig");
echo "
</div>
<div class=\"setting select\">
<label>Abstand unten:</label>
";
// line 103
echo (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 103, $this->source); })());
echo "
</div>
</div>
</div>
</div>
</div>
";
}
// line 111
echo "
<div class=\"bild-text-brick brick-container ";
// line 112
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.', 112, $this->source); })()), "data", [], "any", false, false, false, 112), "html", null, true);
echo "\">
";
// line 115
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.', 115, $this->source); })()), "data", [], "any", false, false, false, 115)) {
// line 116
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.', 116, $this->source); })()), "data", [], "any", false, false, false, 116), "html", null, true);
echo "\"></div>
";
}
// line 118
echo "
<div class=\"container-1710\">
<div class=\"container ";
// line 121
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.', 121, $this->source); })()), "data", [], "any", false, false, false, 121), "html", null, true);
echo "\">
";
// line 123
echo twig_include($this->env, $context, "areas/bild-text/image.html.twig");
echo "
";
// line 125
echo twig_include($this->env, $context, "areas/bild-text/text.html.twig");
echo "
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "areas/bild-text/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 283 => 125, 278 => 123, 273 => 121, 268 => 118, 262 => 116, 259 => 115, 254 => 112, 251 => 111, 240 => 103, 232 => 98, 228 => 97, 220 => 92, 213 => 88, 205 => 83, 197 => 78, 187 => 71, 181 => 67, 178 => 66, 175 => 64, 172 => 63, 169 => 61, 166 => 58, 163 => 56, 160 => 53, 157 => 51, 154 => 50, 151 => 48, 148 => 44, 145 => 42, 142 => 41, 139 => 40, 136 => 39, 133 => 38, 130 => 37, 127 => 36, 125 => 35, 122 => 34, 119 => 33, 116 => 32, 113 => 31, 110 => 29, 107 => 22, 104 => 20, 101 => 19, 98 => 18, 95 => 17, 92 => 15, 89 => 14, 86 => 13, 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 #}
{% if marginBottom.isEmpty() %}
{% do marginBottom.setDataFromResource('no-margin-bottom') %}
{% endif %}
{# default background color #}
{% if backgroundColor.isEmpty() %}
{% do backgroundColor.setDataFromResource('background-lightbrown') %}
{% endif %}
{# button color #}
{% if backgroundColor.data == 'background-darkblue' %}
{% set buttonColor = 'lightbrown-to-turquois' %}
{% endif %}
{# image position #}
{% set imagePosition = pimcore_select('imagePosition', {
'store': [
['imageLeft', 'Bild / Text'],
['imageRight', 'Text / Bild']
],
'reload': true
}) %}
{# default image position #}
{% if imagePosition.isEmpty() %}
{% do imagePosition.setDataFromResource('imageLeft') %}
{% endif %}
{% if imagePosition.data == 'imageLeft' %}
{% set imageOrder = 'order-1' %}
{% set textOrder = 'order-2' %}
{% else %}
{% set imageOrder = 'order-2' %}
{% set textOrder = 'order-1' %}
{% endif %}
{# image #}
{% set image = pimcore_image('image', {
'reload': true,
'width': 300
}) %}
{# keep original image aspect ratio #}
{% set keepAspectRatio = pimcore_checkbox('keepAspectRatio') %}
{# title #}
{% set title = pimcore_input('title', {
'placeholder': 'Titel'
}) %}
{# text #}
{% set text = pimcore_wysiwyg('text', {
'placeholder': 'Text'
}) %}
{# link #}
{% set link = pimcore_link('link') %}
{# editmode #}
{% if editmode %}
<div class=\"editmode\">
<div class=\"accordion-container\">
<div class=\"accordion-button\">
<span class=\"accordion-button-text\">Bild / Text</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 select\">
<label>Position:</label>
{{ imagePosition|raw }}
</div>
<div class=\"setting\">
<label>Bild:</label>
{{ image|raw }}
</div>
<div class=\"setting checkbox\">
<label>{{ keepAspectRatio|raw }} Bildformat beibehalten</label>
</div>
<div class=\"setting select colors\">
<label>Hintergrundfarbe:</label>
{{ backgroundColor|raw }}
{{ include('areas_shared/colors.html.twig') }}
</div>
<div class=\"setting select\">
<label>Abstand unten:</label>
{{ marginBottom|raw }}
</div>
</div>
</div>
</div>
</div>
{% endif %}
<div class=\"bild-text-brick brick-container {{ marginBottom.data }}\">
{# anchor #}
{% if anchor.data %}
<div class=\"anchor\" id=\"{{ anchor.data }}\"></div>
{% endif %}
<div class=\"container-1710\">
<div class=\"container {{ backgroundColor.data }}\">
{{ include('areas/bild-text/image.html.twig') }}
{{ include('areas/bild-text/text.html.twig') }}
</div>
</div>
</div>
{% endblock %}", "areas/bild-text/view.html.twig", "/home/httpd/vhosts/a4interactive.ch/httpdocs/lutisbach.a4interactive.ch/templates/areas/bild-text/view.html.twig");
}
}