var/cache/dev/twig/08/081c487ddef3f6543d7dbf80a19e5c7b.php line 534

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. /* @FoxHabbitBasis/Macro/area-variant.html.twig */
  14. class __TwigTemplate_92692f3a46bc113cb89c882982fd225c 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""@FoxHabbitBasis/Macro/area-variant.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""@FoxHabbitBasis/Macro/area-variant.html.twig"));
  35.         
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  37.         
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  39.     }
  40.     // line 1
  41.     public function macro_includeVariant($__context__ null$__parentTemplate__ null$__outerClass__ null$__outerAttributes__ null, ...$__varargs__)
  42.     {
  43.         $macros $this->macros;
  44.         $context $this->env->mergeGlobals([
  45.             "context" => $__context__,
  46.             "parentTemplate" => $__parentTemplate__,
  47.             "outerClass" => $__outerClass__,
  48.             "outerAttributes" => $__outerAttributes__,
  49.             "varargs" => $__varargs__,
  50.         ]);
  51.         $blocks = [];
  52.         ob_start();
  53.         try {
  54.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""includeVariant"));
  56.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""includeVariant"));
  58.             // line 2
  59.             echo "\t";
  60.             $context["editmode"] = twig_get_attribute($this->env$this->source, (isset($context["context"]) || array_key_exists("context"$context) ? $context["context"] : (function () { throw new RuntimeError('Variable "context" does not exist.'2$this->source); })()), "editmode", [], "any"falsefalsetrue2);
  61.             // line 3
  62.             echo "\t";
  63.             $context["document"] = twig_get_attribute($this->env$this->source, (isset($context["context"]) || array_key_exists("context"$context) ? $context["context"] : (function () { throw new RuntimeError('Variable "context" does not exist.'3$this->source); })()), "document", [], "any"falsefalsetrue3);
  64.             // line 4
  65.             echo "\t";
  66.             $context["config"] = twig_get_attribute($this->env$this->source, (isset($context["context"]) || array_key_exists("context"$context) ? $context["context"] : (function () { throw new RuntimeError('Variable "context" does not exist.'4$this->source); })()), "config", [], "any"falsefalsetrue4);
  67.             // line 5
  68.             echo "\t";
  69.             if (twig_get_attribute($this->env$this->source, ($context["context"] ?? null), "brick", [], "any"truetruetrue5)) {
  70.                 // line 6
  71.                 echo "\t\t";
  72.                 $context["brick"] = twig_get_attribute($this->env$this->source, (isset($context["context"]) || array_key_exists("context"$context) ? $context["context"] : (function () { throw new RuntimeError('Variable "context" does not exist.'6$this->source); })()), "brick", [], "any"falsefalsetrue6);
  73.                 // line 7
  74.                 echo "    ";
  75.             }
  76.             // line 8
  77.             echo "
  78.     ";
  79.             // line 9
  80.             if ((((twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "disabled", [], "any"truetruetrue9)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "disabled", [], "any"falsefalsetrue9), null)) : (null)) && (isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'9$this->source); })()))) {
  81.                 // line 10
  82.                 echo "        <div class=\"basisbundle_edit_line basisbundle_edit_info\">
  83.             <tt>";
  84.                 // line 11
  85.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["parentTemplate"]) || array_key_exists("parentTemplate"$context) ? $context["parentTemplate"] : (function () { throw new RuntimeError('Variable "parentTemplate" does not exist.'11$this->source); })()), 11$this->source), "html"nulltrue);
  86.                 echo "</tt>
  87.             <p><b>Warning: Areabrick is disabled</b> (";
  88.                 // line 12
  89.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["config"]) || array_key_exists("config"$context) ? $context["config"] : (function () { throw new RuntimeError('Variable "config" does not exist.'12$this->source); })()), "disabled", [], "any"falsefalsetrue12), 12$this->source), "html"nulltrue);
  90.                 echo ")</p>
  91.         </div>
  92.     ";
  93.             }
  94.             // line 15
  95.             echo "
  96. \t";
  97.             // line 16
  98.             $context["variantStore"] = [];
  99.             // line 17
  100.             echo "\t";
  101.             $context["availableVariants"] = ((twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "variants", [], "any"truetruetrue17)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "variants", [], "any"falsefalsetrue17), 17$this->source), [])) : ([]));
  102.             // line 18
  103.             echo "\t";
  104.             $context['_parent'] = $context;
  105.             $context['_seq'] = twig_ensure_traversable((isset($context["availableVariants"]) || array_key_exists("availableVariants"$context) ? $context["availableVariants"] : (function () { throw new RuntimeError('Variable "availableVariants" does not exist.'18$this->source); })()));
  106.             foreach ($context['_seq'] as $context["id"] => $context["variant"]) {
  107.                 // line 19
  108.                 echo "\t\t";
  109.                 if ((twig_test_iterable($context["variant"]) && twig_get_attribute($this->env$this->source$context["variant"], "variant_name", [], "any"truetruetrue19))) {
  110.                     // line 20
  111.                     echo "\t\t\t";
  112.                     $context["varianteSelectable"] = true;
  113.                     // line 21
  114.                     echo "\t\t\t";
  115.                     if (((twig_get_attribute($this->env$this->source$context["variant"], "variant_disable_user_select", [], "any"truetruetrue21)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["variant"], "variant_disable_user_select", [], "any"falsefalsetrue21), false)) : (false))) {
  116.                         // line 22
  117.                         echo "\t\t\t\t";
  118.                         $context["varianteSelectable"] = false;
  119.                         // line 23
  120.                         echo "\t\t\t";
  121.                     }
  122.                     // line 24
  123.                     echo "\t\t\t";
  124.                     if ((isset($context["varianteSelectable"]) || array_key_exists("varianteSelectable"$context) ? $context["varianteSelectable"] : (function () { throw new RuntimeError('Variable "varianteSelectable" does not exist.'24$this->source); })())) {
  125.                         // line 25
  126.                         echo "\t\t\t\t";
  127.                         $context["variantStore"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["variantStore"]) || array_key_exists("variantStore"$context) ? $context["variantStore"] : (function () { throw new RuntimeError('Variable "variantStore" does not exist.'25$this->source); })()), 25$this->source), [[$context["id"], twig_get_attribute($this->env$this->source$context["variant"], "variant_name", [], "any"falsefalsetrue25)]]);
  128.                         // line 26
  129.                         echo "\t\t\t";
  130.                     }
  131.                     // line 27
  132.                     echo "\t\t";
  133.                 }
  134.                 // line 28
  135.                 echo "\t";
  136.             }
  137.             $_parent $context['_parent'];
  138.             unset($context['_seq'], $context['_iterated'], $context['id'], $context['variant'], $context['_parent'], $context['loop']);
  139.             $context array_intersect_key($context$_parent) + $_parent;
  140.             // line 29
  141.             echo "\t";
  142.             if (((twig_get_attribute($this->env$this->source, ($context["context"] ?? null), "variant", [], "any"truetruetrue29)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["context"] ?? null), "variant", [], "any"falsefalsetrue29), false)) : (false))) {
  143.                 // line 30
  144.                 echo "\t\t";
  145.                 // line 31
  146.                 echo "\t\t";
  147.                 $context['_parent'] = $context;
  148.                 $context['_seq'] = twig_ensure_traversable((isset($context["availableVariants"]) || array_key_exists("availableVariants"$context) ? $context["availableVariants"] : (function () { throw new RuntimeError('Variable "availableVariants" does not exist.'31$this->source); })()));
  149.                 foreach ($context['_seq'] as $context["id"] => $context["variant"]) {
  150.                     // line 32
  151.                     echo "            ";
  152.                     if (($context["id"] == twig_get_attribute($this->env$this->source, (isset($context["context"]) || array_key_exists("context"$context) ? $context["context"] : (function () { throw new RuntimeError('Variable "context" does not exist.'32$this->source); })()), "variant", [], "any"falsefalsetrue32))) {
  153.                         // line 33
  154.                         echo "\t\t\t    ";
  155.                         $context["variantStore"] = [[$context["id"], twig_get_attribute($this->env$this->source$context["variant"], "variant_name", [], "any"falsefalsetrue33)]];
  156.                         // line 34
  157.                         echo "            ";
  158.                     }
  159.                     // line 35
  160.                     echo "\t\t";
  161.                 }
  162.                 $_parent $context['_parent'];
  163.                 unset($context['_seq'], $context['_iterated'], $context['id'], $context['variant'], $context['_parent'], $context['loop']);
  164.                 $context array_intersect_key($context$_parent) + $_parent;
  165.                 // line 36
  166.                 echo "\t";
  167.             }
  168.             // line 37
  169.             echo "\t";
  170.             $context["defaultVariant"] = ((twig_get_attribute($this->env$this->source, ($context["context"] ?? null), "variant", [], "any"truetruetrue37)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["context"] ?? null), "variant", [], "any"falsefalsetrue37), 37$this->source), ((twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "variant_default", [], "any"truetruetrue37)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "variant_default", [], "any"falsefalsetrue37), 37$this->source), "default")) : ("default")))) : (((twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "variant_default", [], "any"truetruetrue37)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "variant_default", [], "any"falsefalsetrue37), 37$this->source), "default")) : ("default"))));
  171.             // line 38
  172.             echo "\t";
  173.             $context["selectedVariant"] = ((twig_get_attribute($this->env$this->source, ($context["context"] ?? null), "variant", [], "any"truetruetrue38)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["context"] ?? null), "variant", [], "any"falsefalsetrue38), 38$this->source), ((twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""variant"), "getValue", [], "method"truetruetrue38)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""variant"), "getValue", [], "method"falsefalsetrue38), 38$this->source), $this->sandbox->ensureToStringAllowed((isset($context["defaultVariant"]) || array_key_exists("defaultVariant"$context) ? $context["defaultVariant"] : (function () { throw new RuntimeError('Variable "defaultVariant" does not exist.'38$this->source); })()), 38$this->source))) : ((isset($context["defaultVariant"]) || array_key_exists("defaultVariant"$context) ? $context["defaultVariant"] : (function () { throw new RuntimeError('Variable "defaultVariant" does not exist.'38$this->source); })()))))) : (((twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""variant"), "getValue", [], "method"truetruetrue38)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""variant"), "getValue", [], "method"falsefalsetrue38), 38$this->source), $this->sandbox->ensureToStringAllowed((isset($context["defaultVariant"]) || array_key_exists("defaultVariant"$context) ? $context["defaultVariant"] : (function () { throw new RuntimeError('Variable "defaultVariant" does not exist.'38$this->source); })()), 38$this->source))) : ((isset($context["defaultVariant"]) || array_key_exists("defaultVariant"$context) ? $context["defaultVariant"] : (function () { throw new RuntimeError('Variable "defaultVariant" does not exist.'38$this->source); })())))));
  174.             // line 39
  175.             echo "\t";
  176.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'39$this->source); })())) {
  177.                 // line 40
  178.                 echo "\t\t";
  179.                 if ((twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""variant"), "isEmpty", [], "method"falsefalsetrue40) || (twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""variant"), "getValue", [], "method"falsefalsetrue40) != (isset($context["selectedVariant"]) || array_key_exists("selectedVariant"$context) ? $context["selectedVariant"] : (function () { throw new RuntimeError('Variable "selectedVariant" does not exist.'40$this->source); })())))) {
  180.                     // line 41
  181.                     echo "\t\t\t";
  182.                     twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""variant"), "setDataFromResource", [(isset($context["defaultVariant"]) || array_key_exists("defaultVariant"$context) ? $context["defaultVariant"] : (function () { throw new RuntimeError('Variable "defaultVariant" does not exist.'41$this->source); })())], "method"falsefalsetrue41);
  183.                     // line 42
  184.                     echo "\t\t";
  185.                 }
  186.                 // line 43
  187.                 echo "\t\t";
  188.                 if ((twig_length_filter($this->env, (isset($context["variantStore"]) || array_key_exists("variantStore"$context) ? $context["variantStore"] : (function () { throw new RuntimeError('Variable "variantStore" does not exist.'43$this->source); })())) > 1)) {
  189.                     // line 44
  190.                     echo "\t\t\t<div class=\"basisbundle_edit_line\">
  191. \t\t\t\t<div class=\"basisbundle_edit_entry\">
  192. \t\t\t\t\t<div class=\"basisbundle_edit_label\">";
  193.                     // line 46
  194.                     echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "variant_label", [], "any"truetruetrue46)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "variant_label", [], "any"falsefalsetrue46), 46$this->source), "Choose variant")) : ("Choose variant")), "html"nulltrue);
  195.                     echo ":</div>
  196. \t\t\t\t\t<div class=\"basisbundle_edit_input\">";
  197.                     // line 47
  198.                     echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""variant", ["store" => (isset($context["variantStore"]) || array_key_exists("variantStore"$context) ? $context["variantStore"] : (function () { throw new RuntimeError('Variable "variantStore" does not exist.'47$this->source); })()), "reload" => true"class" => "m-0"]);
  199.                     echo "</div>
  200. \t\t\t\t</div>
  201. \t\t\t</div>
  202. \t\t";
  203.                 }
  204.                 // line 51
  205.                 echo "\t";
  206.             }
  207.             // line 52
  208.             echo "\t";
  209.             if ( !(isset($context["availableVariants"]) || array_key_exists("availableVariants"$context) ? $context["availableVariants"] : (function () { throw new RuntimeError('Variable "availableVariants" does not exist.'52$this->source); })())) {
  210.                 // line 53
  211.                 echo "\t\t<div class=\"basisbundle_edit_line basisbundle_edit_error\">
  212. \t\t\tNo variants available for ";
  213.                 // line 54
  214.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["parentTemplate"]) || array_key_exists("parentTemplate"$context) ? $context["parentTemplate"] : (function () { throw new RuntimeError('Variable "parentTemplate" does not exist.'54$this->source); })()), 54$this->source), "html"nulltrue);
  215.                 echo "!
  216. \t\t</div>
  217. \t";
  218.             } elseif ( !twig_get_attribute($this->env$this->source,             // line 56
  219. ($context["availableVariants"] ?? null), (isset($context["selectedVariant"]) || array_key_exists("selectedVariant"$context) ? $context["selectedVariant"] : (function () { throw new RuntimeError('Variable "selectedVariant" does not exist.'56$this->source); })()), [], "any"truetruetrue56)) {
  220.                 // line 57
  221.                 echo "\t\t";
  222.                 if (((isset($context["selectedVariant"]) || array_key_exists("selectedVariant"$context) ? $context["selectedVariant"] : (function () { throw new RuntimeError('Variable "selectedVariant" does not exist.'57$this->source); })()) != (isset($context["defaultVariant"]) || array_key_exists("defaultVariant"$context) ? $context["defaultVariant"] : (function () { throw new RuntimeError('Variable "defaultVariant" does not exist.'57$this->source); })()))) {
  223.                     // line 58
  224.                     echo "\t\t\t";
  225.                     if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'58$this->source); })())) {
  226.                         // line 59
  227.                         echo "\t\t\t\t<div class=\"basisbundle_edit_line basisbundle_edit_error\">
  228. \t\t\t\t\tSelected variant \"<em>";
  229.                         // line 60
  230.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["selectedVariant"]) || array_key_exists("selectedVariant"$context) ? $context["selectedVariant"] : (function () { throw new RuntimeError('Variable "selectedVariant" does not exist.'60$this->source); })()), 60$this->source), "html"nulltrue);
  231.                         echo "</em>\" does not exist, using: \"<em>";
  232.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["defaultVariant"]) || array_key_exists("defaultVariant"$context) ? $context["defaultVariant"] : (function () { throw new RuntimeError('Variable "defaultVariant" does not exist.'60$this->source); })()), 60$this->source), "html"nulltrue);
  233.                         echo "</em>\"!
  234. \t\t\t\t</div>
  235. \t\t\t";
  236.                     }
  237.                     // line 63
  238.                     echo "\t\t\t";
  239.                     $context["selectedVariant"] = (isset($context["defaultVariant"]) || array_key_exists("defaultVariant"$context) ? $context["defaultVariant"] : (function () { throw new RuntimeError('Variable "defaultVariant" does not exist.'63$this->source); })());
  240.                     // line 64
  241.                     echo "\t\t";
  242.                 } else {
  243.                     // line 65
  244.                     echo "\t\t\t";
  245.                     if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'65$this->source); })())) {
  246.                         // line 66
  247.                         echo "\t\t\t\t<div class=\"basisbundle_edit_line basisbundle_edit_error\">
  248. \t\t\t\t\tSelected variant \"<em>";
  249.                         // line 67
  250.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["selectedVariant"]) || array_key_exists("selectedVariant"$context) ? $context["selectedVariant"] : (function () { throw new RuntimeError('Variable "selectedVariant" does not exist.'67$this->source); })()), 67$this->source), "html"nulltrue);
  251.                         echo "</em>\" does not exist!
  252. \t\t\t\t</div>
  253. \t\t\t";
  254.                     }
  255.                     // line 70
  256.                     echo "\t\t";
  257.                 }
  258.                 // line 71
  259.                 echo "\t";
  260.             } elseif ( !twig_test_iterable(twig_get_attribute($this->env$this->source, (isset($context["availableVariants"]) || array_key_exists("availableVariants"$context) ? $context["availableVariants"] : (function () { throw new RuntimeError('Variable "availableVariants" does not exist.'71$this->source); })()), (isset($context["selectedVariant"]) || array_key_exists("selectedVariant"$context) ? $context["selectedVariant"] : (function () { throw new RuntimeError('Variable "selectedVariant" does not exist.'71$this->source); })()), [], "array"falsefalsetrue71))) {
  261.                 // line 72
  262.                 echo "\t\t";
  263.                 if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'72$this->source); })())) {
  264.                     // line 73
  265.                     echo "\t\t\t<div class=\"basisbundle_edit_line basisbundle_edit_error\">
  266. \t\t\t\tSelected variant \"<em>";
  267.                     // line 74
  268.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["selectedVariant"]) || array_key_exists("selectedVariant"$context) ? $context["selectedVariant"] : (function () { throw new RuntimeError('Variable "selectedVariant" does not exist.'74$this->source); })()), 74$this->source), "html"nulltrue);
  269.                     echo "</em>\" has no valid definition:\"
  270. \t\t\t</div>
  271. \t\t";
  272.                 }
  273.                 // line 77
  274.                 echo "\t";
  275.             }
  276.             // line 78
  277.             echo "\t";
  278.             if ((twig_get_attribute($this->env$this->source, ($context["availableVariants"] ?? null), (isset($context["selectedVariant"]) || array_key_exists("selectedVariant"$context) ? $context["selectedVariant"] : (function () { throw new RuntimeError('Variable "selectedVariant" does not exist.'78$this->source); })()), [], "any"truetruetrue78) && twig_test_iterable(twig_get_attribute($this->env$this->source, (isset($context["availableVariants"]) || array_key_exists("availableVariants"$context) ? $context["availableVariants"] : (function () { throw new RuntimeError('Variable "availableVariants" does not exist.'78$this->source); })()), (isset($context["selectedVariant"]) || array_key_exists("selectedVariant"$context) ? $context["selectedVariant"] : (function () { throw new RuntimeError('Variable "selectedVariant" does not exist.'78$this->source); })()), [], "array"falsefalsetrue78)))) {
  279.                 // line 79
  280.                 echo "\t\t";
  281.                 $context["selectedTemplate"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["availableVariants"] ?? null), (isset($context["selectedVariant"]) || array_key_exists("selectedVariant"$context) ? $context["selectedVariant"] : (function () { throw new RuntimeError('Variable "selectedVariant" does not exist.'79$this->source); })()), [], "array"falsetruetrue79), "variant_template", [], "array"truetruetrue79)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["availableVariants"] ?? null), (isset($context["selectedVariant"]) || array_key_exists("selectedVariant"$context) ? $context["selectedVariant"] : (function () { throw new RuntimeError('Variable "selectedVariant" does not exist.'79$this->source); })()), [], "array"falsetruetrue79), "variant_template", [], "array"falsefalsetrue79), 79$this->source), $this->sandbox->ensureToStringAllowed((isset($context["selectedVariant"]) || array_key_exists("selectedVariant"$context) ? $context["selectedVariant"] : (function () { throw new RuntimeError('Variable "selectedVariant" does not exist.'79$this->source); })()), 79$this->source))) : ((isset($context["selectedVariant"]) || array_key_exists("selectedVariant"$context) ? $context["selectedVariant"] : (function () { throw new RuntimeError('Variable "selectedVariant" does not exist.'79$this->source); })())));
  282.                 // line 80
  283.                 echo "\t\t";
  284.                 $context["isAppTemplate"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["availableVariants"] ?? null), (isset($context["selectedVariant"]) || array_key_exists("selectedVariant"$context) ? $context["selectedVariant"] : (function () { throw new RuntimeError('Variable "selectedVariant" does not exist.'80$this->source); })()), [], "array"falsetruetrue80), "variant_template_from_app", [], "array"truetruetrue80)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["availableVariants"] ?? null), (isset($context["selectedVariant"]) || array_key_exists("selectedVariant"$context) ? $context["selectedVariant"] : (function () { throw new RuntimeError('Variable "selectedVariant" does not exist.'80$this->source); })()), [], "array"falsetruetrue80), "variant_template_from_app", [], "array"falsefalsetrue80), 80$this->source), false)) : (false));
  285.                 // line 81
  286.                 echo "
  287.         ";
  288.                 // line 82
  289.                 if ((is_string($__internal_compile_0 = (isset($context["parentTemplate"]) || array_key_exists("parentTemplate"$context) ? $context["parentTemplate"] : (function () { throw new RuntimeError('Variable "parentTemplate" does not exist.'82$this->source); })())) && is_string($__internal_compile_1 "@") && ('' === $__internal_compile_1 || === strpos($__internal_compile_0$__internal_compile_1)))) {
  290.                     // line 83
  291.                     echo "            ";
  292.                     $context["parentTemplateNamespace"] = twig_get_attribute($this->env$this->sourcetwig_split_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["parentTemplate"]) || array_key_exists("parentTemplate"$context) ? $context["parentTemplate"] : (function () { throw new RuntimeError('Variable "parentTemplate" does not exist.'83$this->source); })()), 83$this->source), "/"), 0, [], "array"falsefalsetrue83);
  293.                     // line 84
  294.                     echo "            ";
  295.                     $context["parentTemplatePath"] = twig_join_filter(twig_slice($this->envtwig_split_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["parentTemplate"]) || array_key_exists("parentTemplate"$context) ? $context["parentTemplate"] : (function () { throw new RuntimeError('Variable "parentTemplate" does not exist.'84$this->source); })()), 84$this->source), "/"), 1,  -1), "/");
  296.                     // line 85
  297.                     echo "        ";
  298.                 } elseif (twig_in_filter("Bundle:", (isset($context["parentTemplate"]) || array_key_exists("parentTemplate"$context) ? $context["parentTemplate"] : (function () { throw new RuntimeError('Variable "parentTemplate" does not exist.'85$this->source); })()))) {
  299.                     // line 86
  300.                     echo "            ";
  301.                     $context["parentTemplateNamespace"] = ("@" $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_split_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["parentTemplate"]) || array_key_exists("parentTemplate"$context) ? $context["parentTemplate"] : (function () { throw new RuntimeError('Variable "parentTemplate" does not exist.'86$this->source); })()), 86$this->source), "Bundle:"), 0, [], "array"falsefalsetrue86), 86$this->source));
  302.                     // line 87
  303.                     echo "            ";
  304.                     $context["parentTemplatePath"] = twig_get_attribute($this->env$this->sourcetwig_split_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["parentTemplate"]) || array_key_exists("parentTemplate"$context) ? $context["parentTemplate"] : (function () { throw new RuntimeError('Variable "parentTemplate" does not exist.'87$this->source); })()), 87$this->source), "Bundle:"), 1, [], "array"falsefalsetrue87);
  305.                     // line 88
  306.                     echo "            ";
  307.                     if (twig_in_filter(":", (isset($context["parentTemplatePath"]) || array_key_exists("parentTemplatePath"$context) ? $context["parentTemplatePath"] : (function () { throw new RuntimeError('Variable "parentTemplatePath" does not exist.'88$this->source); })()))) {
  308.                         // line 89
  309.                         echo "                ";
  310.                         $context["parentTemplatePath"] = twig_get_attribute($this->env$this->sourcetwig_split_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["parentTemplatePath"]) || array_key_exists("parentTemplatePath"$context) ? $context["parentTemplatePath"] : (function () { throw new RuntimeError('Variable "parentTemplatePath" does not exist.'89$this->source); })()), 89$this->source), ":"), 0, [], "array"falsefalsetrue89);
  311.                         // line 90
  312.                         echo "            ";
  313.                     } else {
  314.                         // line 91
  315.                         echo "                ";
  316.                         $context["parentTemplatePath"] = twig_join_filter(twig_slice($this->envtwig_split_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["parentTemplatePath"]) || array_key_exists("parentTemplatePath"$context) ? $context["parentTemplatePath"] : (function () { throw new RuntimeError('Variable "parentTemplatePath" does not exist.'91$this->source); })()), 91$this->source), "/"), 0,  -1), "/");
  317.                         // line 92
  318.                         echo "            ";
  319.                     }
  320.                     // line 93
  321.                     echo "        ";
  322.                 } else {
  323.                     // line 94
  324.                     echo "            ";
  325.                     // line 95
  326.                     echo "        ";
  327.                 }
  328.                 // line 96
  329.                 echo "        ";
  330.                 if ((isset($context["isAppTemplate"]) || array_key_exists("isAppTemplate"$context) ? $context["isAppTemplate"] : (function () { throw new RuntimeError('Variable "isAppTemplate" does not exist.'96$this->source); })())) {
  331.                     // line 97
  332.                     echo "            ";
  333.                     $context["parentTemplateNamespace"] = "@App";
  334.                     // line 98
  335.                     echo "        ";
  336.                 }
  337.                 // line 99
  338.                 echo "        ";
  339.                 $context["areaBase"] = ((($this->sandbox->ensureToStringAllowed((isset($context["parentTemplateNamespace"]) || array_key_exists("parentTemplateNamespace"$context) ? $context["parentTemplateNamespace"] : (function () { throw new RuntimeError('Variable "parentTemplateNamespace" does not exist.'99$this->source); })()), 99$this->source) . "/") . $this->sandbox->ensureToStringAllowed((isset($context["parentTemplatePath"]) || array_key_exists("parentTemplatePath"$context) ? $context["parentTemplatePath"] : (function () { throw new RuntimeError('Variable "parentTemplatePath" does not exist.'99$this->source); })()), 99$this->source)) . "/");
  340.                 // line 100
  341.                 echo "\t\t";
  342.                 // line 107
  343.                 echo "
  344. \t\t";
  345.                 // line 108
  346.                 $context["variantConfig"] = twig_get_attribute($this->env$this->source, (isset($context["availableVariants"]) || array_key_exists("availableVariants"$context) ? $context["availableVariants"] : (function () { throw new RuntimeError('Variable "availableVariants" does not exist.'108$this->source); })()), (isset($context["selectedVariant"]) || array_key_exists("selectedVariant"$context) ? $context["selectedVariant"] : (function () { throw new RuntimeError('Variable "selectedVariant" does not exist.'108$this->source); })()), [], "array"falsefalsetrue108);
  347.                 // line 109
  348.                 echo "
  349.         ";
  350.                 // line 110
  351.                 if ((((twig_get_attribute($this->env$this->source, ($context["variantConfig"] ?? null), "disabled", [], "any"truetruetrue110)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["variantConfig"] ?? null), "disabled", [], "any"falsefalsetrue110), null)) : (null)) && (isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'110$this->source); })()))) {
  352.                     // line 111
  353.                     echo "            <div class=\"basisbundle_edit_line basisbundle_edit_info\">
  354.                 <tt>";
  355.                     // line 112
  356.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["parentTemplate"]) || array_key_exists("parentTemplate"$context) ? $context["parentTemplate"] : (function () { throw new RuntimeError('Variable "parentTemplate" does not exist.'112$this->source); })()), 112$this->source), "html"nulltrue);
  357.                     echo "</tt> / <tt>";
  358.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["selectedVariant"]) || array_key_exists("selectedVariant"$context) ? $context["selectedVariant"] : (function () { throw new RuntimeError('Variable "selectedVariant" does not exist.'112$this->source); })()), 112$this->source), "html"nulltrue);
  359.                     echo "</tt>
  360.                 <p><b>Warning: Selected Variant is disabled</b> (";
  361.                     // line 113
  362.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["variantConfig"]) || array_key_exists("variantConfig"$context) ? $context["variantConfig"] : (function () { throw new RuntimeError('Variable "variantConfig" does not exist.'113$this->source); })()), "disabled", [], "any"falsefalsetrue113), 113$this->source), "html"nulltrue);
  363.                     echo ")</p>
  364.             </div>
  365.         ";
  366.                 }
  367.                 // line 116
  368.                 echo "
  369. \t\t";
  370.                 // line 117
  371.                 if ( !twig_get_attribute($this->env$this->source, ($context["variantConfig"] ?? null), "linkmodul", [], "any"truetruetrue117)) {
  372.                     // line 118
  373.                     echo "\t\t\t";
  374.                     // line 119
  375.                     echo "\t\t\t";
  376.                     $context["variantConfig"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["variantConfig"]) || array_key_exists("variantConfig"$context) ? $context["variantConfig"] : (function () { throw new RuntimeError('Variable "variantConfig" does not exist.'119$this->source); })()), 119$this->source), ["linkmodul" => twig_get_attribute($this->env$this->source, (isset($context["config"]) || array_key_exists("config"$context) ? $context["config"] : (function () { throw new RuntimeError('Variable "config" does not exist.'119$this->source); })()), "linkmodul", [], "any"falsefalsetrue119)]);
  377.                     // line 120
  378.                     echo "\t\t";
  379.                 }
  380.                 // line 121
  381.                 echo "\t\t";
  382.                 if ( !twig_get_attribute($this->env$this->source, ($context["variantConfig"] ?? null), "image_module", [], "any"truetruetrue121)) {
  383.                     // line 122
  384.                     echo "\t\t\t";
  385.                     // line 123
  386.                     echo "\t\t\t";
  387.                     $context["variantConfig"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["variantConfig"]) || array_key_exists("variantConfig"$context) ? $context["variantConfig"] : (function () { throw new RuntimeError('Variable "variantConfig" does not exist.'123$this->source); })()), 123$this->source), ["image_module" => twig_get_attribute($this->env$this->source, (isset($context["config"]) || array_key_exists("config"$context) ? $context["config"] : (function () { throw new RuntimeError('Variable "config" does not exist.'123$this->source); })()), "image_module", [], "any"falsefalsetrue123)]);
  388.                     // line 124
  389.                     echo "\t\t";
  390.                 }
  391.                 // line 125
  392.                 echo "\t\t";
  393.                 $context["overwriteKeys"] = ["headlines""lead""wysiwyg"];
  394.                 // line 126
  395.                 echo "\t\t";
  396.                 $context['_parent'] = $context;
  397.                 $context['_seq'] = twig_ensure_traversable((isset($context["overwriteKeys"]) || array_key_exists("overwriteKeys"$context) ? $context["overwriteKeys"] : (function () { throw new RuntimeError('Variable "overwriteKeys" does not exist.'126$this->source); })()));
  398.                 foreach ($context['_seq'] as $context["_key"] => $context["overwriteKey"]) {
  399.                     // line 127
  400.                     echo "\t\t\t";
  401.                     if (twig_get_attribute($this->env$this->source, ($context["context"] ?? null), $context["overwriteKey"], [], "array"truetruetrue127)) {
  402.                         // line 128
  403.                         echo "\t\t\t\t";
  404.                         $context["variantConfig"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["variantConfig"]) || array_key_exists("variantConfig"$context) ? $context["variantConfig"] : (function () { throw new RuntimeError('Variable "variantConfig" does not exist.'128$this->source); })()), 128$this->source), [$context["overwriteKey"] => twig_get_attribute($this->env$this->source, (isset($context["context"]) || array_key_exists("context"$context) ? $context["context"] : (function () { throw new RuntimeError('Variable "context" does not exist.'128$this->source); })()), $context["overwriteKey"], [], "array"falsefalsetrue128)]);
  405.                         // line 129
  406.                         echo "\t\t\t";
  407.                     }
  408.                     // line 130
  409.                     echo "\t\t";
  410.                 }
  411.                 $_parent $context['_parent'];
  412.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['overwriteKey'], $context['_parent'], $context['loop']);
  413.                 $context array_intersect_key($context$_parent) + $_parent;
  414.                 // line 131
  415.                 echo "\t\t";
  416.                 $context["mergeKeys"] = ["image_module"];
  417.                 // line 132
  418.                 echo "\t\t";
  419.                 $context['_parent'] = $context;
  420.                 $context['_seq'] = twig_ensure_traversable((isset($context["mergeKeys"]) || array_key_exists("mergeKeys"$context) ? $context["mergeKeys"] : (function () { throw new RuntimeError('Variable "mergeKeys" does not exist.'132$this->source); })()));
  421.                 foreach ($context['_seq'] as $context["_key"] => $context["mergeKey"]) {
  422.                     // line 133
  423.                     echo "\t\t\t";
  424.                     if (twig_get_attribute($this->env$this->source, ($context["context"] ?? null), $context["mergeKey"], [], "array"truetruetrue133)) {
  425.                         // line 134
  426.                         echo "\t\t\t\t";
  427.                         $context["variantConfig"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["variantConfig"]) || array_key_exists("variantConfig"$context) ? $context["variantConfig"] : (function () { throw new RuntimeError('Variable "variantConfig" does not exist.'134$this->source); })()), 134$this->source), [$context["mergeKey"] => twig_array_merge($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["variantConfig"]) || array_key_exists("variantConfig"$context) ? $context["variantConfig"] : (function () { throw new RuntimeError('Variable "variantConfig" does not exist.'134$this->source); })()), $context["mergeKey"], [], "array"falsefalsetrue134), 134$this->source), $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, (isset($context["context"]) || array_key_exists("context"$context) ? $context["context"] : (function () { throw new RuntimeError('Variable "context" does not exist.'134$this->source); })()), $context["mergeKey"], [], "array"falsefalsetrue134), 134$this->source))]);
  428.                         // line 135
  429.                         echo "\t\t\t";
  430.                     }
  431.                     // line 136
  432.                     echo "\t\t";
  433.                 }
  434.                 $_parent $context['_parent'];
  435.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['mergeKey'], $context['_parent'], $context['loop']);
  436.                 $context array_intersect_key($context$_parent) + $_parent;
  437.                 // line 137
  438.                 echo "
  439. \t\t";
  440.                 // line 138
  441.                 $context["wrapper"] = null;
  442.                 // line 139
  443.                 echo "\t\t";
  444.                 if (((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'139$this->source); })()) && twig_get_attribute($this->env$this->source, ($context["variantConfig"] ?? null), "editmode_wrapper", [], "any"truetruetrue139))) {
  445.                     // line 140
  446.                     echo "\t\t\t";
  447.                     $context["wrapper"] = twig_get_attribute($this->env$this->source, (isset($context["variantConfig"]) || array_key_exists("variantConfig"$context) ? $context["variantConfig"] : (function () { throw new RuntimeError('Variable "variantConfig" does not exist.'140$this->source); })()), "editmode_wrapper", [], "any"falsefalsetrue140);
  448.                     // line 141
  449.                     echo "\t\t";
  450.                 } elseif (( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'141$this->source); })()) && twig_get_attribute($this->env$this->source, ($context["variantConfig"] ?? null), "frontend_wrapper", [], "any"truetruetrue141))) {
  451.                     // line 142
  452.                     echo "\t\t\t";
  453.                     $context["wrapper"] = twig_get_attribute($this->env$this->source, (isset($context["variantConfig"]) || array_key_exists("variantConfig"$context) ? $context["variantConfig"] : (function () { throw new RuntimeError('Variable "variantConfig" does not exist.'142$this->source); })()), "frontend_wrapper", [], "any"falsefalsetrue142);
  454.                     // line 143
  455.                     echo "\t\t";
  456.                 } elseif (twig_get_attribute($this->env$this->source, ($context["variantConfig"] ?? null), "wrapper", [], "any"truetruetrue143)) {
  457.                     // line 144
  458.                     echo "\t\t\t";
  459.                     $context["wrapper"] = twig_get_attribute($this->env$this->source, (isset($context["variantConfig"]) || array_key_exists("variantConfig"$context) ? $context["variantConfig"] : (function () { throw new RuntimeError('Variable "variantConfig" does not exist.'144$this->source); })()), "wrapper", [], "any"falsefalsetrue144);
  460.                     // line 145
  461.                     echo "\t\t";
  462.                 }
  463.                 // line 146
  464.                 echo "\t\t";
  465.                 // line 147
  466.                 echo "        ";
  467.                 $context["passedParams"] = ["config" => (isset($context["variantConfig"]) || array_key_exists("variantConfig"$context) ? $context["variantConfig"] : (function () { throw new RuntimeError('Variable "variantConfig" does not exist.'147$this->source); })())];
  468.                 // line 148
  469.                 echo "        ";
  470.                 $context['_parent'] = $context;
  471.                 $context['_seq'] = twig_ensure_traversable(((twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "pass_params", [], "any"truetruetrue148)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "pass_params", [], "any"falsefalsetrue148), null)) : (null)));
  472.                 foreach ($context['_seq'] as $context["_key"] => $context["passKey"]) {
  473.                     // line 149
  474.                     echo "            ";
  475.                     if (twig_in_filter($context["passKey"], twig_get_array_keys_filter(twig_get_attribute($this->env$this->source$context"context", [], "any"falsefalsetrue149)))) {
  476.                         // line 150
  477.                         echo "                ";
  478.                         $context["passedParams"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["passedParams"]) || array_key_exists("passedParams"$context) ? $context["passedParams"] : (function () { throw new RuntimeError('Variable "passedParams" does not exist.'150$this->source); })()), 150$this->source), [$context["passKey"] => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context"context", [], "any"falsefalsetrue150), $context["passKey"], [], "array"falsefalsetrue150)]);
  479.                         // line 151
  480.                         echo "            ";
  481.                     }
  482.                     // line 152
  483.                     echo "        ";
  484.                 }
  485.                 $_parent $context['_parent'];
  486.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['passKey'], $context['_parent'], $context['loop']);
  487.                 $context array_intersect_key($context$_parent) + $_parent;
  488.                 // line 153
  489.                 echo "        ";
  490.                 $context['_parent'] = $context;
  491.                 $context['_seq'] = twig_ensure_traversable(((twig_get_attribute($this->env$this->source, ($context["variantConfig"] ?? null), "pass_params", [], "any"truetruetrue153)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["variantConfig"] ?? null), "pass_params", [], "any"falsefalsetrue153), null)) : (null)));
  492.                 foreach ($context['_seq'] as $context["_key"] => $context["passKey"]) {
  493.                     // line 154
  494.                     echo "            ";
  495.                     if (twig_in_filter($context["passKey"], twig_get_array_keys_filter(twig_get_attribute($this->env$this->source$context"context", [], "any"falsefalsetrue154)))) {
  496.                         // line 155
  497.                         echo "                ";
  498.                         $context["passedParams"] = twig_array_merge($this->sandbox->ensureToStringAllowed((isset($context["passedParams"]) || array_key_exists("passedParams"$context) ? $context["passedParams"] : (function () { throw new RuntimeError('Variable "passedParams" does not exist.'155$this->source); })()), 155$this->source), [$context["passKey"] => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context"context", [], "any"falsefalsetrue155), $context["passKey"], [], "array"falsefalsetrue155)]);
  499.                         // line 156
  500.                         echo "            ";
  501.                     }
  502.                     // line 157
  503.                     echo "        ";
  504.                 }
  505.                 $_parent $context['_parent'];
  506.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['passKey'], $context['_parent'], $context['loop']);
  507.                 $context array_intersect_key($context$_parent) + $_parent;
  508.                 // line 158
  509.                 echo "\t\t";
  510.                 if ((isset($context["wrapper"]) || array_key_exists("wrapper"$context) ? $context["wrapper"] : (function () { throw new RuntimeError('Variable "wrapper" does not exist.'158$this->source); })())) {
  511.                     // line 159
  512.                     echo "\t\t\t";
  513.                     // line 160
  514.                     echo "\t\t\t";
  515.                     $macros["wrap_macro"] = $this->loadTemplate("@FoxHabbitBasis/Macro/wrap.html.twig""@FoxHabbitBasis/Macro/area-variant.html.twig"160)->unwrap();
  516.                     // line 161
  517.                     echo "\t\t\t";
  518.                     echo twig_call_macro($macros["wrap_macro"], "macro_wrapperOpen", [(isset($context["wrapper"]) || array_key_exists("wrapper"$context) ? $context["wrapper"] : (function () { throw new RuntimeError('Variable "wrapper" does not exist.'161$this->source); })()), $context, (isset($context["outerClass"]) || array_key_exists("outerClass"$context) ? $context["outerClass"] : (function () { throw new RuntimeError('Variable "outerClass" does not exist.'161$this->source); })()), (isset($context["outerAttributes"]) || array_key_exists("outerAttributes"$context) ? $context["outerAttributes"] : (function () { throw new RuntimeError('Variable "outerAttributes" does not exist.'161$this->source); })())], 161$context$this->getSourceContext());
  519.                     echo "
  520. \t\t\t\t";
  521.                     // line 162
  522.                     $this->loadTemplate(((((isset($context["areaBase"]) || array_key_exists("areaBase"$context) ? $context["areaBase"] : (function () { throw new RuntimeError('Variable "areaBase" does not exist.'162$this->source); })()) . "variant-") . (isset($context["selectedTemplate"]) || array_key_exists("selectedTemplate"$context) ? $context["selectedTemplate"] : (function () { throw new RuntimeError('Variable "selectedTemplate" does not exist.'162$this->source); })())) . ".html.twig"), "@FoxHabbitBasis/Macro/area-variant.html.twig"162)->display(twig_array_merge($context, (isset($context["passedParams"]) || array_key_exists("passedParams"$context) ? $context["passedParams"] : (function () { throw new RuntimeError('Variable "passedParams" does not exist.'162$this->source); })())));
  523.                     // line 163
  524.                     echo "\t\t\t";
  525.                     echo twig_call_macro($macros["wrap_macro"], "macro_wrapperClose", [(isset($context["wrapper"]) || array_key_exists("wrapper"$context) ? $context["wrapper"] : (function () { throw new RuntimeError('Variable "wrapper" does not exist.'163$this->source); })())], 163$context$this->getSourceContext());
  526.                     echo "
  527. \t\t";
  528.                 } else {
  529.                     // line 165
  530.                     echo "\t\t\t";
  531.                     // line 166
  532.                     echo "\t\t\t";
  533.                     $this->loadTemplate(((((isset($context["areaBase"]) || array_key_exists("areaBase"$context) ? $context["areaBase"] : (function () { throw new RuntimeError('Variable "areaBase" does not exist.'166$this->source); })()) . "variant-") . (isset($context["selectedTemplate"]) || array_key_exists("selectedTemplate"$context) ? $context["selectedTemplate"] : (function () { throw new RuntimeError('Variable "selectedTemplate" does not exist.'166$this->source); })())) . ".html.twig"), "@FoxHabbitBasis/Macro/area-variant.html.twig"166)->display(twig_array_merge($context, (isset($context["passedParams"]) || array_key_exists("passedParams"$context) ? $context["passedParams"] : (function () { throw new RuntimeError('Variable "passedParams" does not exist.'166$this->source); })())));
  534.                     // line 167
  535.                     echo "\t\t";
  536.                 }
  537.                 // line 168
  538.                 echo "\t\t";
  539.                 // line 169
  540.                 echo "\t";
  541.             }
  542.             
  543.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  544.             
  545.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  546.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  547.         } finally {
  548.             ob_end_clean();
  549.         }
  550.     }
  551.     public function getTemplateName()
  552.     {
  553.         return "@FoxHabbitBasis/Macro/area-variant.html.twig";
  554.     }
  555.     public function isTraitable()
  556.     {
  557.         return false;
  558.     }
  559.     public function getDebugInfo()
  560.     {
  561.         return array (  556 => 169,  554 => 168,  551 => 167,  548 => 166,  546 => 165,  540 => 163,  538 => 162,  533 => 161,  530 => 160,  528 => 159,  525 => 158,  519 => 157,  516 => 156,  513 => 155,  510 => 154,  505 => 153,  499 => 152,  496 => 151,  493 => 150,  490 => 149,  485 => 148,  482 => 147,  480 => 146,  477 => 145,  474 => 144,  471 => 143,  468 => 142,  465 => 141,  462 => 140,  459 => 139,  457 => 138,  454 => 137,  448 => 136,  445 => 135,  442 => 134,  439 => 133,  434 => 132,  431 => 131,  425 => 130,  422 => 129,  419 => 128,  416 => 127,  411 => 126,  408 => 125,  405 => 124,  402 => 123,  400 => 122,  397 => 121,  394 => 120,  391 => 119,  389 => 118,  387 => 117,  384 => 116,  378 => 113,  372 => 112,  369 => 111,  367 => 110,  364 => 109,  362 => 108,  359 => 107,  357 => 100,  354 => 99,  351 => 98,  348 => 97,  345 => 96,  342 => 95,  340 => 94,  337 => 93,  334 => 92,  331 => 91,  328 => 90,  325 => 89,  322 => 88,  319 => 87,  316 => 86,  313 => 85,  310 => 84,  307 => 83,  305 => 82,  302 => 81,  299 => 80,  296 => 79,  293 => 78,  290 => 77,  284 => 74,  281 => 73,  278 => 72,  275 => 71,  272 => 70,  266 => 67,  263 => 66,  260 => 65,  257 => 64,  254 => 63,  246 => 60,  243 => 59,  240 => 58,  237 => 57,  235 => 56,  230 => 54,  227 => 53,  224 => 52,  221 => 51,  214 => 47,  210 => 46,  206 => 44,  203 => 43,  200 => 42,  197 => 41,  194 => 40,  191 => 39,  188 => 38,  185 => 37,  182 => 36,  176 => 35,  173 => 34,  170 => 33,  167 => 32,  162 => 31,  160 => 30,  157 => 29,  151 => 28,  148 => 27,  145 => 26,  142 => 25,  139 => 24,  136 => 23,  133 => 22,  130 => 21,  127 => 20,  124 => 19,  119 => 18,  116 => 17,  114 => 16,  111 => 15,  105 => 12,  101 => 11,  98 => 10,  96 => 9,  93 => 8,  90 => 7,  87 => 6,  84 => 5,  81 => 4,  78 => 3,  75 => 2,  53 => 1,);
  562.     }
  563.     public function getSourceContext()
  564.     {
  565.         return new Source("{% macro includeVariant( context, parentTemplate, outerClass, outerAttributes) %}
  566. \t{% set editmode = context.editmode %}
  567. \t{% set document = context.document %}
  568. \t{% set config = context.config %}
  569. \t{% if context.brick is defined %}
  570. \t\t{% set brick = context.brick %}
  571.     {% endif %}
  572.     {% if config.disabled|default(null) and editmode %}
  573.         <div class=\"basisbundle_edit_line basisbundle_edit_info\">
  574.             <tt>{{ parentTemplate }}</tt>
  575.             <p><b>Warning: Areabrick is disabled</b> ({{ config.disabled }})</p>
  576.         </div>
  577.     {% endif %}
  578. \t{% set variantStore = [] %}
  579. \t{% set availableVariants = config.variants|default([]) %}
  580. \t{% for id,variant in availableVariants %}
  581. \t\t{% if variant is iterable and variant.variant_name is defined %}
  582. \t\t\t{% set varianteSelectable = true %}
  583. \t\t\t{% if variant.variant_disable_user_select|default(false) %}
  584. \t\t\t\t{% set varianteSelectable = false %}
  585. \t\t\t{% endif %}
  586. \t\t\t{% if varianteSelectable %}
  587. \t\t\t\t{% set variantStore = variantStore|merge([[id,variant.variant_name]]) %}
  588. \t\t\t{% endif %}
  589. \t\t{% endif %}
  590. \t{% endfor %}
  591. \t{% if context.variant|default(false) %}
  592. \t\t{# when a fixed variant is set, reduce the set of available variants #}
  593. \t\t{% for id,variant in availableVariants %}
  594.             {% if id == context.variant %}
  595. \t\t\t    {% set variantStore = [[id,variant.variant_name]] %}
  596.             {% endif %}
  597. \t\t{% endfor %}
  598. \t{% endif %}
  599. \t{% set defaultVariant = context.variant|default( config.variant_default|default('default')) %}
  600. \t{% set selectedVariant = context.variant|default( pimcore_select('variant').getValue()|default(defaultVariant)) %}
  601. \t{% if editmode %}
  602. \t\t{% if pimcore_select('variant').isEmpty() or (pimcore_select('variant').getValue() != selectedVariant) %}
  603. \t\t\t{% do pimcore_select(\"variant\").setDataFromResource(defaultVariant) %}
  604. \t\t{% endif %}
  605. \t\t{% if variantStore|length > 1 %}
  606. \t\t\t<div class=\"basisbundle_edit_line\">
  607. \t\t\t\t<div class=\"basisbundle_edit_entry\">
  608. \t\t\t\t\t<div class=\"basisbundle_edit_label\">{{ config.variant_label|default('Choose variant') }}:</div>
  609. \t\t\t\t\t<div class=\"basisbundle_edit_input\">{{ pimcore_select('variant',{store:variantStore,reload:true,class:'m-0'}) }}</div>
  610. \t\t\t\t</div>
  611. \t\t\t</div>
  612. \t\t{% endif %}
  613. \t{% endif %}
  614. \t{% if not availableVariants %}
  615. \t\t<div class=\"basisbundle_edit_line basisbundle_edit_error\">
  616. \t\t\tNo variants available for {{ parentTemplate }}!
  617. \t\t</div>
  618. \t{% elseif not attribute( availableVariants, selectedVariant) is defined %}
  619. \t\t{% if selectedVariant != defaultVariant %}
  620. \t\t\t{% if editmode %}
  621. \t\t\t\t<div class=\"basisbundle_edit_line basisbundle_edit_error\">
  622. \t\t\t\t\tSelected variant \"<em>{{selectedVariant}}</em>\" does not exist, using: \"<em>{{defaultVariant}}</em>\"!
  623. \t\t\t\t</div>
  624. \t\t\t{% endif %}
  625. \t\t\t{% set selectedVariant = defaultVariant %}
  626. \t\t{% else %}
  627. \t\t\t{% if editmode %}
  628. \t\t\t\t<div class=\"basisbundle_edit_line basisbundle_edit_error\">
  629. \t\t\t\t\tSelected variant \"<em>{{selectedVariant}}</em>\" does not exist!
  630. \t\t\t\t</div>
  631. \t\t\t{% endif %}
  632. \t\t{% endif %}
  633. \t{% elseif not availableVariants[selectedVariant] is iterable %}
  634. \t\t{% if editmode %}
  635. \t\t\t<div class=\"basisbundle_edit_line basisbundle_edit_error\">
  636. \t\t\t\tSelected variant \"<em>{{selectedVariant}}</em>\" has no valid definition:\"
  637. \t\t\t</div>
  638. \t\t{% endif %}
  639. \t{% endif %}
  640. \t{% if attribute( availableVariants, selectedVariant) is defined and availableVariants[selectedVariant] is iterable %}
  641. \t\t{% set selectedTemplate = availableVariants[selectedVariant]['variant_template']|default(selectedVariant) %}
  642. \t\t{% set isAppTemplate = availableVariants[selectedVariant]['variant_template_from_app']|default(false) %}
  643.         {% if parentTemplate starts with '@' %}
  644.             {% set parentTemplateNamespace = parentTemplate|split('/')[0] %}
  645.             {% set parentTemplatePath = parentTemplate|split('/')|slice(1,-1)|join('/') %}
  646.         {% elseif 'Bundle:' in parentTemplate %}
  647.             {% set parentTemplateNamespace = '@' ~ parentTemplate|split('Bundle:')[0] %}
  648.             {% set parentTemplatePath = parentTemplate|split('Bundle:')[1] %}
  649.             {% if ':' in parentTemplatePath %}
  650.                 {% set parentTemplatePath = parentTemplatePath|split(':')[0] %}
  651.             {% else %}
  652.                 {% set parentTemplatePath = parentTemplatePath|split('/')|slice(0,-1)|join('/') %}
  653.             {% endif %}
  654.         {% else %}
  655.             {# ??? #}
  656.         {% endif %}
  657.         {% if isAppTemplate %}
  658.             {% set parentTemplateNamespace = '@App' %}
  659.         {% endif %}
  660.         {% set areaBase = parentTemplateNamespace ~ '/' ~ parentTemplatePath ~ '/' %}
  661. \t\t{#
  662.         <!-- parentTemplate: \"{{ parentTemplate }}\" -->
  663. \t\t<!-- parentTemplateNamespace: \"{{ parentTemplateNamespace }}\" -->
  664. \t\t<!-- parentTemplatePath: \"{{ parentTemplatePath }}\" -->
  665. \t\t<!-- isAppTemplate: \"{{ isAppTemplate }}\" -->
  666. \t\t<!-- areaBase: \"{{ areaBase }}\" -->
  667.         #}
  668. \t\t{% set variantConfig = availableVariants[selectedVariant] %}
  669.         {% if variantConfig.disabled|default(null) and editmode %}
  670.             <div class=\"basisbundle_edit_line basisbundle_edit_info\">
  671.                 <tt>{{ parentTemplate }}</tt> / <tt>{{ selectedVariant }}</tt>
  672.                 <p><b>Warning: Selected Variant is disabled</b> ({{ variantConfig.disabled }})</p>
  673.             </div>
  674.         {% endif %}
  675. \t\t{% if not variantConfig.linkmodul is defined %}
  676. \t\t\t{# linkmodul nicht in variante definiert => setzen #}
  677. \t\t\t{% set variantConfig = variantConfig|merge({linkmodul:config.linkmodul}) %}
  678. \t\t{% endif %}
  679. \t\t{% if not variantConfig.image_module is defined %}
  680. \t\t\t{# image_module nicht in variante definiert => setzen #}
  681. \t\t\t{% set variantConfig = variantConfig|merge({image_module:config.image_module}) %}
  682. \t\t{% endif %}
  683. \t\t{% set overwriteKeys = ['headlines','lead','wysiwyg'] %}
  684. \t\t{% for overwriteKey in overwriteKeys %}
  685. \t\t\t{% if context[overwriteKey] is defined %}
  686. \t\t\t\t{% set variantConfig = variantConfig|merge({(overwriteKey):context[overwriteKey]}) %}
  687. \t\t\t{% endif %}
  688. \t\t{% endfor %}
  689. \t\t{% set mergeKeys = ['image_module'] %}
  690. \t\t{% for mergeKey in mergeKeys %}
  691. \t\t\t{% if context[mergeKey] is defined %}
  692. \t\t\t\t{% set variantConfig = variantConfig|merge({(mergeKey):variantConfig[mergeKey]|merge(context[mergeKey])}) %}
  693. \t\t\t{% endif %}
  694. \t\t{% endfor %}
  695. \t\t{% set wrapper = null %}
  696. \t\t{% if editmode and variantConfig.editmode_wrapper is defined %}
  697. \t\t\t{% set wrapper = variantConfig.editmode_wrapper %}
  698. \t\t{% elseif not editmode and variantConfig.frontend_wrapper is defined %}
  699. \t\t\t{% set wrapper = variantConfig.frontend_wrapper %}
  700. \t\t{% elseif variantConfig.wrapper is defined %}
  701. \t\t\t{% set wrapper = variantConfig.wrapper %}
  702. \t\t{% endif %}
  703. \t\t{# <!--- start config \"{{ selectedVariant }}\"  variant-{{ selectedTemplate }} --> #}
  704.         {% set passedParams = { config: variantConfig} %}
  705.         {% for passKey in config.pass_params|default(null) %}
  706.             {% if passKey in _context.context|keys %}
  707.                 {% set passedParams = passedParams|merge({ (passKey): _context.context[passKey]}) %}
  708.             {% endif %}
  709.         {% endfor %}
  710.         {% for passKey in variantConfig.pass_params|default(null) %}
  711.             {% if passKey in _context.context|keys %}
  712.                 {% set passedParams = passedParams|merge({ (passKey): _context.context[passKey]}) %}
  713.             {% endif %}
  714.         {% endfor %}
  715. \t\t{% if wrapper %}
  716. \t\t\t{# a wrapper is defined #}
  717. \t\t\t{% import '@FoxHabbitBasis/Macro/wrap.html.twig' as wrap_macro %}
  718. \t\t\t{{ wrap_macro.wrapperOpen( wrapper, _context, outerClass, outerAttributes) }}
  719. \t\t\t\t{% include areaBase ~ 'variant-' ~ selectedTemplate ~ '.html.twig'  with passedParams %}
  720. \t\t\t{{ wrap_macro.wrapperClose( wrapper) }}
  721. \t\t{% else %}
  722. \t\t\t{# no wrapper => include directly #}
  723. \t\t\t{% include areaBase ~ 'variant-' ~ selectedTemplate ~ '.html.twig'  with passedParams %}
  724. \t\t{% endif %}
  725. \t\t{# <!--- end variant-{{ selectedTemplate }} --> #}
  726. \t{% endif %}
  727. {% endmacro %}
  728. ""@FoxHabbitBasis/Macro/area-variant.html.twig""/srv/httpd/vhosts/lorch-test/releases/51/bundles/FoxHabbit/BasisBundle/Resources/views/Macro/area-variant.html.twig");
  729.     }
  730.     
  731.     public function checkSecurity()
  732.     {
  733.         static $tags = array("macro" => 1"set" => 2"if" => 5"for" => 18"do" => 41"import" => 160"include" => 162);
  734.         static $filters = array("default" => 9"escape" => 11"merge" => 25"length" => 43"split" => 83"join" => 84"slice" => 84"keys" => 149);
  735.         static $functions = array("pimcore_select" => 38);
  736.         try {
  737.             $this->sandbox->checkSecurity(
  738.                 ['macro''set''if''for''do''import''include'],
  739.                 ['default''escape''merge''length''split''join''slice''keys'],
  740.                 ['pimcore_select']
  741.             );
  742.         } catch (SecurityError $e) {
  743.             $e->setSourceContext($this->source);
  744.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  745.                 $e->setTemplateLine($tags[$e->getTagName()]);
  746.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  747.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  748.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  749.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  750.             }
  751.             throw $e;
  752.         }
  753.     }
  754. }