<?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/texte/view.html.twig */
class __TwigTemplate_ecb54ca91deef5f9c34f0781cc233110 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/texte/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/texte/view.html.twig"));
$this->parent = $this->loadTemplate("areas_shared/settings.html.twig", "areas/texte/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 => "full-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-white"], "method", false, false, false, 13);
// line 14
echo " ";
}
// line 15
echo "
";
// line 17
echo " ";
$context["title"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "title", ["nl2br" => true, "placeholder" => "Titel", "required" => false]);
// line 22
echo "
";
// line 24
echo " ";
$context["lead"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "lead", ["nl2br" => true, "placeholder" => "Lead"]);
// line 28
echo "
";
// line 30
echo " ";
$context["h1"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "h1", ["reload" => false]);
// line 33
echo "
";
// line 35
echo " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 35, $this->source); })())) {
// line 36
echo " <div class=\"editmode\">
<div class=\"accordion-container\">
<div class=\"accordion-button\">
<span class=\"accordion-button-text\">Text</span>
";
// line 40
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 47
echo (isset($context["anchor"]) || array_key_exists("anchor", $context) ? $context["anchor"] : (function () { throw new RuntimeError('Variable "anchor" does not exist.', 47, $this->source); })());
echo "
</div>
<div class=\"setting checkbox\">
<label>";
// line 51
echo (isset($context["h1"]) || array_key_exists("h1", $context) ? $context["h1"] : (function () { throw new RuntimeError('Variable "h1" does not exist.', 51, $this->source); })());
echo " H1</label>
</div>
<div class=\"setting select\">
<label>Abstand unten:</label>
";
// line 56
echo (isset($context["marginBottom"]) || array_key_exists("marginBottom", $context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.', 56, $this->source); })());
echo "
</div>
</div>
</div>
</div>
</div>
";
}
// line 64
echo "
<div class=\"texte-brick brick-container ";
// line 65
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.', 65, $this->source); })()), "data", [], "any", false, false, false, 65), "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.', 65, $this->source); })()), "data", [], "any", false, false, false, 65), "html", null, true);
echo "\">
";
// line 68
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.', 68, $this->source); })()), "data", [], "any", false, false, false, 68)) {
// line 69
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.', 69, $this->source); })()), "data", [], "any", false, false, false, 69), "html", null, true);
echo "\"></div>
";
}
// line 71
echo "
<div class=\"container-1420\">
";
// line 75
echo " ";
if (((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 75, $this->source); })()) || twig_get_attribute($this->env, $this->source, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 75, $this->source); })()), "data", [], "any", false, false, false, 75))) {
// line 76
echo " <div class=\"title\">
";
// line 78
if (twig_get_attribute($this->env, $this->source, (isset($context["h1"]) || array_key_exists("h1", $context) ? $context["h1"] : (function () { throw new RuntimeError('Variable "h1" does not exist.', 78, $this->source); })()), "checked", [], "any", false, false, false, 78)) {
// line 79
echo " <h1>
";
// line 80
echo (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 80, $this->source); })());
echo "
</h1>
";
} else {
// line 83
echo " <h2>
";
// line 84
echo (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 84, $this->source); })());
echo "
</h2>
";
}
// line 87
echo "
";
// line 91
echo "
</div>
";
}
// line 94
echo "
<div class=\"content\">
";
// line 98
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 98, $this->source); })()), "data", [], "any", false, false, false, 98) && (twig_get_attribute($this->env, $this->source, (isset($context["lead"]) || array_key_exists("lead", $context) ? $context["lead"] : (function () { throw new RuntimeError('Variable "lead" does not exist.', 98, $this->source); })()), "data", [], "any", false, false, false, 98) || !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "contentblock"), "isEmpty", [], "any", false, false, false, 98)))) {
// line 99
echo " <div class=\"text-wave\">
";
// line 100
echo twig_include($this->env, $context, "svg/text-wave/text-wave.html.twig");
echo "
</div>
";
}
// line 103
echo "
";
// line 105
echo " ";
if (((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 105, $this->source); })()) || twig_get_attribute($this->env, $this->source, (isset($context["lead"]) || array_key_exists("lead", $context) ? $context["lead"] : (function () { throw new RuntimeError('Variable "lead" does not exist.', 105, $this->source); })()), "data", [], "any", false, false, false, 105))) {
// line 106
echo " <div class=\"lead\">
<p>
";
// line 108
echo (isset($context["lead"]) || array_key_exists("lead", $context) ? $context["lead"] : (function () { throw new RuntimeError('Variable "lead" does not exist.', 108, $this->source); })());
echo "
</p>
</div>
";
}
// line 112
echo "
";
// line 113
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "block", "contentblock"), "iterator", [], "any", false, false, false, 113));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 114
echo "
";
// line 116
echo " ";
$context["subtitle"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "subtitle", ["nl2br" => true, "placeholder" => "Zwischentitel"]);
// line 120
echo "
";
// line 121
if (((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 121, $this->source); })()) || twig_get_attribute($this->env, $this->source, (isset($context["subtitle"]) || array_key_exists("subtitle", $context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.', 121, $this->source); })()), "data", [], "any", false, false, false, 121))) {
// line 122
echo "
";
// line 128
echo "
";
// line 129
if (twig_get_attribute($this->env, $this->source, (isset($context["h1"]) || array_key_exists("h1", $context) ? $context["h1"] : (function () { throw new RuntimeError('Variable "h1" does not exist.', 129, $this->source); })()), "checked", [], "any", false, false, false, 129)) {
// line 130
echo " <div class=\"subtitle\">
<h2>
";
// line 132
echo (isset($context["subtitle"]) || array_key_exists("subtitle", $context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.', 132, $this->source); })());
echo "
</h2>
</div>
";
} else {
// line 136
echo " <div class=\"subtitle\">
<h3>
";
// line 138
echo (isset($context["subtitle"]) || array_key_exists("subtitle", $context) ? $context["subtitle"] : (function () { throw new RuntimeError('Variable "subtitle" does not exist.', 138, $this->source); })());
echo "
</h3>
</div>
";
}
// line 142
echo "
";
}
// line 144
echo "
";
// line 146
echo " ";
$context["text"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "text", ["placeholder" => "Text"]);
// line 149
echo "
";
// line 150
if (((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 150, $this->source); })()) || twig_get_attribute($this->env, $this->source, (isset($context["text"]) || array_key_exists("text", $context) ? $context["text"] : (function () { throw new RuntimeError('Variable "text" does not exist.', 150, $this->source); })()), "data", [], "any", false, false, false, 150))) {
// line 151
echo " <div class=\"text\">
<div class=\"wysiwyg\">
";
// line 153
echo (isset($context["text"]) || array_key_exists("text", $context) ? $context["text"] : (function () { throw new RuntimeError('Variable "text" does not exist.', 153, $this->source); })());
echo "
</div>
</div>
";
}
// line 157
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 159
echo "
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "areas/texte/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 332 => 159, 325 => 157, 318 => 153, 314 => 151, 312 => 150, 309 => 149, 306 => 146, 303 => 144, 299 => 142, 292 => 138, 288 => 136, 281 => 132, 277 => 130, 275 => 129, 272 => 128, 269 => 122, 267 => 121, 264 => 120, 261 => 116, 258 => 114, 254 => 113, 251 => 112, 244 => 108, 240 => 106, 237 => 105, 234 => 103, 228 => 100, 225 => 99, 222 => 98, 217 => 94, 212 => 91, 209 => 87, 203 => 84, 200 => 83, 194 => 80, 191 => 79, 189 => 78, 185 => 76, 182 => 75, 177 => 71, 171 => 69, 168 => 68, 161 => 65, 158 => 64, 147 => 56, 139 => 51, 132 => 47, 122 => 40, 116 => 36, 113 => 35, 110 => 33, 107 => 30, 104 => 28, 101 => 24, 98 => 22, 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 bottom #}
{% if marginBottom.isEmpty() %}
{% do marginBottom.setDataFromResource('full-margin-bottom') %}
{% endif %}
{# default background color #}
{% if backgroundColor.isEmpty() %}
{% do backgroundColor.setDataFromResource('background-white') %}
{% endif %}
{# title #}
{% set title = pimcore_textarea('title', {
'nl2br': true,
'placeholder': 'Titel',
'required': false
}) %}
{# lead #}
{% set lead = pimcore_textarea('lead', {
'nl2br': true,
'placeholder': 'Lead'
}) %}
{# h1 or h2 #}
{% set h1 = pimcore_checkbox('h1', {
'reload': false
}) %}
{# editmode #}
{% if editmode %}
<div class=\"editmode\">
<div class=\"accordion-container\">
<div class=\"accordion-button\">
<span class=\"accordion-button-text\">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 checkbox\">
<label>{{ h1|raw }} H1</label>
</div>
<div class=\"setting select\">
<label>Abstand unten:</label>
{{ marginBottom|raw }}
</div>
</div>
</div>
</div>
</div>
{% endif %}
<div class=\"texte-brick brick-container {{ backgroundColor.data }} {{ marginBottom.data }}\">
{# anchor #}
{% if anchor.data %}
<div class=\"anchor\" id=\"{{ anchor.data }}\"></div>
{% endif %}
<div class=\"container-1420\">
{# title #}
{% if editmode or title.data %}
<div class=\"title\">
{% if h1.checked %}
<h1>
{{ title|raw }}
</h1>
{% else %}
<h2>
{{ title|raw }}
</h2>
{% endif %}
{# <h2>
{{ title|raw }}
</h2> #}
</div>
{% endif %}
<div class=\"content\">
{# {% if lead.data or not pimcore_block('contentblock').isEmpty %} #}
{% if title.data and (lead.data or not pimcore_block('contentblock').isEmpty) %}
<div class=\"text-wave\">
{{ include('svg/text-wave/text-wave.html.twig') }}
</div>
{% endif %}
{# lead #}
{% if editmode or lead.data %}
<div class=\"lead\">
<p>
{{ lead|raw }}
</p>
</div>
{% endif %}
{% for i in pimcore_block('contentblock').iterator %}
{# subtitle #}
{% set subtitle = pimcore_textarea('subtitle', {
'nl2br': true,
'placeholder': 'Zwischentitel'
}) %}
{% if editmode or subtitle.data %}
{# <div class=\"subtitle\">
<h3>
{{ subtitle|raw }}
</h3>
</div> #}
{% if h1.checked %}
<div class=\"subtitle\">
<h2>
{{ subtitle|raw }}
</h2>
</div>
{% else %}
<div class=\"subtitle\">
<h3>
{{ subtitle|raw }}
</h3>
</div>
{% endif %}
{% endif %}
{# text #}
{% set text = pimcore_wysiwyg('text', {
'placeholder': 'Text'
}) %}
{% if editmode or text.data %}
<div class=\"text\">
<div class=\"wysiwyg\">
{{ text|raw }}
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% endblock %}", "areas/texte/view.html.twig", "/home/httpd/vhosts/a4interactive.ch/httpdocs/lutisbach.a4interactive.ch/templates/areas/texte/view.html.twig");
}
}