<?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;
/* module/Content/__content-accordion-text-tabellen.html.twig */
class __TwigTemplate_614cbf6bcf23edb16de82b850aece28f extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
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", "module/Content/__content-accordion-text-tabellen.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "module/Content/__content-accordion-text-tabellen.html.twig"));
// line 1
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 1, $this->source); })())) {
// line 2
echo "
";
// line 3
echo twig_include($this->env, $context, "includes/backend-kopf.html.twig");
echo "
";
// line 5
$context["tabContentArray"] = [1 => "Optional", 2 => "Content"];
// line 6
echo " ";
$context["tab"] = 1;
// line 7
echo "
<div id=\"content\">
";
// line 9
if ((array_key_exists("tabContentArray", $context) && twig_in_filter((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 9, $this->source); })()), twig_get_array_keys_filter((isset($context["tabContentArray"]) || array_key_exists("tabContentArray", $context) ? $context["tabContentArray"] : (function () { throw new RuntimeError('Variable "tabContentArray" does not exist.', 9, $this->source); })()))))) {
// line 10
echo " ";
echo $this->extensions['App\Twig\Extension\GlanzerExtension']->getAdminTabs($this->sandbox->ensureToStringAllowed((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 10, $this->source); })()), 10, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["tabContentArray"]) || array_key_exists("tabContentArray", $context) ? $context["tabContentArray"] : (function () { throw new RuntimeError('Variable "tabContentArray" does not exist.', 10, $this->source); })()), 10, $this->source));
echo "
";
}
// line 12
echo " <section class=\"tabContent\">
<p class=\"hl\">Optionale Einstellung:</p>
";
// line 15
$context["element"] = "artikel";
// line 16
echo " <div id=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["element"]) || array_key_exists("element", $context) ? $context["element"] : (function () { throw new RuntimeError('Variable "element" does not exist.', 16, $this->source); })()), 16, $this->source), "html", null, true);
echo "\">
";
// line 17
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "multiselect", $this->sandbox->ensureToStringAllowed((isset($context["element"]) || array_key_exists("element", $context) ? $context["element"] : (function () { throw new RuntimeError('Variable "element" does not exist.', 17, $this->source); })()), 17, $this->source), ["width" => 200, "height" => 100, "store" => [0 => [0 => "abstand-top", 1 => "Abstand nach oben"], 1 => [0 => "abstand-bottom", 1 => "Abstand nach unten"]]]);
// line 24
echo "
</div>
</section>
";
// line 29
if ((array_key_exists("tabContentArray", $context) && twig_in_filter(2, twig_get_array_keys_filter((isset($context["tabContentArray"]) || array_key_exists("tabContentArray", $context) ? $context["tabContentArray"] : (function () { throw new RuntimeError('Variable "tabContentArray" does not exist.', 29, $this->source); })()))))) {
// line 30
echo " ";
echo $this->extensions['App\Twig\Extension\GlanzerExtension']->getAdminTabs(2, $this->sandbox->ensureToStringAllowed((isset($context["tabContentArray"]) || array_key_exists("tabContentArray", $context) ? $context["tabContentArray"] : (function () { throw new RuntimeError('Variable "tabContentArray" does not exist.', 30, $this->source); })()), 30, $this->source));
echo "
<section class=\"tabContent\">
";
// line 33
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "AreablockAccordion", ["allowed" => [0 => "AccordionTextWysiwyg", 1 => "AccordionTablePerDraganddrop"], "toolbar" => false, "areablock_toolbar" => ["title" => "Content Konfiguration", "width" => 274, "x" => 570, "y" => 41, "xAlign" => "left", "buttonWidth" => 270, "buttonMaxCharacters" => 35]]);
// line 45
echo "
<br /><br />
</section>
";
}
// line 49
echo " </div>
";
// line 50
echo twig_include($this->env, $context, "includes/backend-fuss.html.twig");
echo "
";
} else {
// line 53
echo "
";
// line 54
$context["abstand_top_class"] = ((($this->extensions['App\Twig\Extension\GlanzerExtension']->checkMultiselect($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "multiselect", "artikel"), "abstand-top") == true)) ? (" abstand-top") : (""));
// line 55
echo " ";
$context["abstand_bottom_class"] = ((($this->extensions['App\Twig\Extension\GlanzerExtension']->checkMultiselect($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "multiselect", "artikel"), "abstand-bottom") == true)) ? (" abstand-bottom") : (""));
// line 56
echo "
";
// line 57
$context["abstandClasses"] = ($this->sandbox->ensureToStringAllowed((isset($context["abstand_top_class"]) || array_key_exists("abstand_top_class", $context) ? $context["abstand_top_class"] : (function () { throw new RuntimeError('Variable "abstand_top_class" does not exist.', 57, $this->source); })()), 57, $this->source) . $this->sandbox->ensureToStringAllowed((isset($context["abstand_bottom_class"]) || array_key_exists("abstand_bottom_class", $context) ? $context["abstand_bottom_class"] : (function () { throw new RuntimeError('Variable "abstand_bottom_class" does not exist.', 57, $this->source); })()), 57, $this->source));
// line 58
echo " <div class=\"constrainer-maxsize edgepadding";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["abstandClasses"]) || array_key_exists("abstandClasses", $context) ? $context["abstandClasses"] : (function () { throw new RuntimeError('Variable "abstandClasses" does not exist.', 58, $this->source); })()), 58, $this->source), "html", null, true);
echo "\">
<section class=\"bellows\">
";
// line 60
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "AreablockAccordion", ["params" => ["AccordionTablePerDraganddrop" => ["accordion" => 1]]]);
// line 66
echo "
</section>
</div>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "module/Content/__content-accordion-text-tabellen.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 140 => 66, 138 => 60, 132 => 58, 130 => 57, 127 => 56, 124 => 55, 122 => 54, 119 => 53, 113 => 50, 110 => 49, 104 => 45, 102 => 33, 95 => 30, 93 => 29, 86 => 24, 84 => 17, 79 => 16, 77 => 15, 72 => 12, 66 => 10, 64 => 9, 60 => 7, 57 => 6, 55 => 5, 50 => 3, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% if editmode %}
{{ include('includes/backend-kopf.html.twig') }}
{% set tabContentArray = {1: 'Optional', 2: 'Content'} %}
{% set tab = 1 %}
<div id=\"content\">
{% if tabContentArray is defined and tab in tabContentArray|keys %}
{{ admin_tabs(tab, tabContentArray) | raw }}
{% endif %}
<section class=\"tabContent\">
<p class=\"hl\">Optionale Einstellung:</p>
{% set element = 'artikel' %}
<div id=\"{{ element }}\">
{{ pimcore_multiselect(element, {
'width': 200,
'height': 100,
'store': [
['abstand-top', 'Abstand nach oben'],
['abstand-bottom', 'Abstand nach unten']
]
}) }}
</div>
</section>
{% if tabContentArray is defined and 2 in tabContentArray|keys %}
{{ admin_tabs(2, tabContentArray) | raw }}
<section class=\"tabContent\">
{{ pimcore_areablock(\"AreablockAccordion\", {
\"allowed\": [\"AccordionTextWysiwyg\",\"AccordionTablePerDraganddrop\"],
\"toolbar\": false,
\"areablock_toolbar\": {
\"title\": \"Content Konfiguration\",
\"width\": 274,
\"x\": 570,
\"y\": 41,
\"xAlign\": \"left\",
\"buttonWidth\": 270,
\"buttonMaxCharacters\": 35
}
}) }}
<br /><br />
</section>
{% endif %}
</div>
{{ include('includes/backend-fuss.html.twig') }}
{% else %}
{% set abstand_top_class = (checkMultiselect(pimcore_multiselect(\"artikel\"),'abstand-top') == true)? ' abstand-top' : '' %}
{% set abstand_bottom_class = (checkMultiselect(pimcore_multiselect(\"artikel\"),'abstand-bottom') == true)? ' abstand-bottom' : '' %}
{% set abstandClasses = abstand_top_class ~ abstand_bottom_class %}
<div class=\"constrainer-maxsize edgepadding{{ abstandClasses }}\">
<section class=\"bellows\">
{{ pimcore_areablock(\"AreablockAccordion\", {
\"params\": {
\"AccordionTablePerDraganddrop\": {
\"accordion\": 1
}
}
}) }}
</section>
</div>
{% endif %}
", "module/Content/__content-accordion-text-tabellen.html.twig", "/var/www/vhosts/jumpalionenbabaloo.at/httpdocs/templates/module/Content/__content-accordion-text-tabellen.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 1, "set" => 5);
static $filters = array("keys" => 9, "raw" => 10, "escape" => 16);
static $functions = array("include" => 3, "admin_tabs" => 10, "pimcore_multiselect" => 17, "pimcore_areablock" => 33, "checkMultiselect" => 54);
try {
$this->sandbox->checkSecurity(
['if', 'set'],
['keys', 'raw', 'escape'],
['include', 'admin_tabs', 'pimcore_multiselect', 'pimcore_areablock', 'checkMultiselect']
);
} 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;
}
}
}