var/cache/dev/twig/bb/bb45eafda18999ea36fc269349c229f2.php line 35

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* module/Content/__content-tabellen.html.twig */
  14. class __TwigTemplate_2abbf21928e17a3e0127b678ec2329a6 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""module/Content/__content-tabellen.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""module/Content/__content-tabellen.html.twig"));
  35.         // line 1
  36.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'1$this->source); })())) {
  37.             // line 2
  38.             echo "
  39.     ";
  40.             // line 3
  41.             echo twig_include($this->env$context"includes/backend-kopf.html.twig");
  42.             echo "
  43.     ";
  44.             // line 5
  45.             $context["tabContentArray"] = [=> "Optional"=> "Content"];
  46.             // line 6
  47.             echo "    ";
  48.             $context["tab"] = 1;
  49.             // line 7
  50.             echo "
  51.     <div id=\"content\">        
  52.             ";
  53.             // line 9
  54.             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); })()))))) {
  55.                 // line 10
  56.                 echo "                ";
  57.                 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));
  58.                 echo "
  59.             ";
  60.             }
  61.             // line 11
  62.             echo 
  63.             <section class=\"tabContent\">
  64.                 <p class=\"hl\">Optionale Einstellung:</p>
  65.                 ";
  66.             // line 15
  67.             $context["element"] = "artikel";
  68.             // line 16
  69.             echo "                <div id=\"";
  70.             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"nulltrue);
  71.             echo " \">
  72.                     ";
  73.             // line 17
  74.             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" => [=> [=> "abstand-top"=> "Abstand nach oben"], => [=> "abstand-bottom"=> "Abstand nach unten"]]]);
  75.             // line 24
  76.             echo "
  77.                 </div>
  78.             </section>
  79.             ";
  80.             // line 29
  81.             if ((array_key_exists("tabContentArray"$context) && twig_in_filter(2twig_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); })()))))) {
  82.                 // line 30
  83.                 echo "                ";
  84.                 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));
  85.                 echo "
  86.                 <section class=\"tabContent\">
  87.                     ";
  88.                 // line 33
  89.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""AreablockAccordion", ["allowed" => [=> "AccordionTablePerDraganddrop"], "toolbar" => false"areablock_toolbar" => ["title" => "Content Konfiguration""width" => 274"x" => 570"y" => 41"xAlign" => "left""buttonWidth" => 270"buttonMaxCharacters" => 35]]);
  90.                 // line 46
  91.                 echo "
  92.                     <br /><br />
  93.                 </section>
  94.             ";
  95.             }
  96.             // line 50
  97.             echo "    </div>
  98.     ";
  99.             // line 51
  100.             echo twig_include($this->env$context"includes/backend-fuss.html.twig");
  101.             echo "
  102. ";
  103.         } else {
  104.             // line 54
  105.             echo "
  106.     ";
  107.             // line 55
  108.             $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") : (""));
  109.             // line 56
  110.             echo "    ";
  111.             $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") : (""));
  112.             // line 57
  113.             echo "
  114.     ";
  115.             // line 58
  116.             $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.'58$this->source); })()), 58$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.'58$this->source); })()), 58$this->source));
  117.             // line 59
  118.             echo "    <div class=\"";
  119.             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.'59$this->source); })()), 59$this->source), "html"nulltrue);
  120.             echo "\">
  121.             ";
  122.             // line 60
  123.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""AreablockAccordion", ["params" => ["AccordionTablePerDraganddrop" => ["accordion" => 0]]]);
  124.             // line 66
  125.             echo "
  126.     </div>
  127. ";
  128.         }
  129.         
  130.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  131.         
  132.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  133.     }
  134.     public function getTemplateName()
  135.     {
  136.         return "module/Content/__content-tabellen.html.twig";
  137.     }
  138.     public function isTraitable()
  139.     {
  140.         return false;
  141.     }
  142.     public function getDebugInfo()
  143.     {
  144.         return array (  140 => 66,  138 => 60,  133 => 59,  131 => 58,  128 => 57,  125 => 56,  123 => 55,  120 => 54,  114 => 51,  111 => 50,  105 => 46,  103 => 33,  96 => 30,  94 => 29,  87 => 24,  85 => 17,  80 => 16,  78 => 15,  72 => 11,  66 => 10,  64 => 9,  60 => 7,  57 => 6,  55 => 5,  50 => 3,  47 => 2,  45 => 1,);
  145.     }
  146.     public function getSourceContext()
  147.     {
  148.         return new Source("{% if editmode %}
  149.     {{ include('includes/backend-kopf.html.twig') }}
  150.     {% set tabContentArray = {1: 'Optional', 2: 'Content'} %}
  151.     {% set tab = 1 %}
  152.     <div id=\"content\">        
  153.             {% if tabContentArray is defined and tab in tabContentArray|keys %}
  154.                 {{ admin_tabs(tab, tabContentArray) | raw }}
  155.             {% endif %} 
  156.             <section class=\"tabContent\">
  157.                 <p class=\"hl\">Optionale Einstellung:</p>
  158.                 {% set element = 'artikel' %}
  159.                 <div id=\"{{ element }} \">
  160.                     {{ pimcore_multiselect(element, {
  161.                             'width': 200,
  162.                             'height': 100,
  163.                             'store': [
  164.                                 ['abstand-top', 'Abstand nach oben'],
  165.                                 ['abstand-bottom', 'Abstand nach unten']
  166.                             ]
  167.                         }) }}
  168.                 </div>
  169.             </section>
  170.             {% if tabContentArray is defined and 2 in tabContentArray|keys %}
  171.                 {{ admin_tabs(2, tabContentArray) | raw }}
  172.                 <section class=\"tabContent\">
  173.                     {{ pimcore_areablock(\"AreablockAccordion\", {
  174.                             \"allowed\": [\"AccordionTablePerDraganddrop\"],
  175.                             \"toolbar\": false,
  176.                             \"areablock_toolbar\": {
  177.                                 \"title\": \"Content Konfiguration\",
  178.                                 \"width\": 274,
  179.                                 \"x\": 570,
  180.                                 \"y\": 41,
  181.                                 \"xAlign\": \"left\",
  182.                                 \"buttonWidth\": 270,
  183.                                 \"buttonMaxCharacters\": 35
  184.                             }
  185.                         })
  186.                     }}
  187.                     <br /><br />
  188.                 </section>
  189.             {% endif %}
  190.     </div>
  191.     {{ include('includes/backend-fuss.html.twig') }}
  192. {% else %}
  193.     {% set abstand_top_class = (checkMultiselect(pimcore_multiselect(\"artikel\"),'abstand-top') == true)? ' abstand-top' : '' %}
  194.     {% set abstand_bottom_class = (checkMultiselect(pimcore_multiselect(\"artikel\"),'abstand-bottom') == true)? ' abstand-bottom' : '' %}
  195.     {% set abstandClasses = abstand_top_class ~ abstand_bottom_class %}
  196.     <div class=\"{{ abstandClasses }}\">
  197.             {{ pimcore_areablock(\"AreablockAccordion\",{
  198.                     \"params\": {
  199.                     \"AccordionTablePerDraganddrop\": {
  200.                         \"accordion\": 0
  201.                     },
  202.                     },
  203.             }) }}
  204.     </div>
  205. {% endif %}""module/Content/__content-tabellen.html.twig""/var/www/vhosts/jumpalionenbabaloo.at/httpdocs/templates/module/Content/__content-tabellen.html.twig");
  206.     }
  207.     
  208.     public function checkSecurity()
  209.     {
  210.         static $tags = array("if" => 1"set" => 5);
  211.         static $filters = array("keys" => 9"raw" => 10"escape" => 16);
  212.         static $functions = array("include" => 3"admin_tabs" => 10"pimcore_multiselect" => 17"pimcore_areablock" => 33"checkMultiselect" => 55);
  213.         try {
  214.             $this->sandbox->checkSecurity(
  215.                 ['if''set'],
  216.                 ['keys''raw''escape'],
  217.                 ['include''admin_tabs''pimcore_multiselect''pimcore_areablock''checkMultiselect']
  218.             );
  219.         } catch (SecurityError $e) {
  220.             $e->setSourceContext($this->source);
  221.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  222.                 $e->setTemplateLine($tags[$e->getTagName()]);
  223.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  224.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  225.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  226.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  227.             }
  228.             throw $e;
  229.         }
  230.     }
  231. }