var/cache/dev/twig/16/16823ceeb8e870ec57b07bdd6e452cd3.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. /* @Provider/areas/teaser/view.html.twig */
  14. class __TwigTemplate_cb399f150e1fd2b6a732cf73765b0040 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""@Provider/areas/teaser/view.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""@Provider/areas/teaser/view.html.twig"));
  35.         // line 1
  36.         $macros["__internal_parse_0"] = $this->macros["__internal_parse_0"] = $this->loadTemplate("@Provider/macros/teaser.html.twig""@Provider/areas/teaser/view.html.twig"1)->unwrap();
  37.         // line 2
  38.         $macros["__internal_parse_1"] = $this->macros["__internal_parse_1"] = $this->loadTemplate("@Provider/macros/teaser.html.twig""@Provider/areas/teaser/view.html.twig"2)->unwrap();
  39.         // line 3
  40.         echo "
  41. ";
  42.         // line 5
  43.         $context["class"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""class"), "getData", [], "method"falsefalsetrue5);
  44.         // line 6
  45.         $context["marginTop"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""margin_top"), "getData", [], "method"falsefalsetrue6);
  46.         // line 7
  47.         $context["marginBottom"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""margin_bottom"), "getData", [], "method"falsefalsetrue7);
  48.         // line 8
  49.         $context["anchorId"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""anchor"), "getData", [], "method"falsefalsetrue8);
  50.         // line 9
  51.         $context["containerWidth"] = ((twig_in_filter(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""teaser_height"), "getData", [], "method"falsefalsetrue9), [=> "large"=> "xl"])) ? ("full-width") : (twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""container_width"), "getData", [], "method"falsefalsetrue9)));
  52.         // line 10
  53.         $context["areaClass"] = (((((($this->sandbox->ensureToStringAllowed((isset($context["class"]) || array_key_exists("class"$context) ? $context["class"] : (function () { throw new RuntimeError('Variable "class" does not exist.'10$this->source); })()), 10$this->source) . " ") . $this->sandbox->ensureToStringAllowed((isset($context["marginTop"]) || array_key_exists("marginTop"$context) ? $context["marginTop"] : (function () { throw new RuntimeError('Variable "marginTop" does not exist.'10$this->source); })()), 10$this->source)) . " ") . $this->sandbox->ensureToStringAllowed((isset($context["marginBottom"]) || array_key_exists("marginBottom"$context) ? $context["marginBottom"] : (function () { throw new RuntimeError('Variable "marginBottom" does not exist.'10$this->source); })()), 10$this->source)) . " ") . $this->sandbox->ensureToStringAllowed((isset($context["containerWidth"]) || array_key_exists("containerWidth"$context) ? $context["containerWidth"] : (function () { throw new RuntimeError('Variable "containerWidth" does not exist.'10$this->source); })()), 10$this->source));
  54.         // line 11
  55.         echo "
  56. ";
  57.         // line 13
  58.         $context["layout"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""layout"), "getData", [], "method"falsefalsetrue13);
  59.         // line 14
  60.         $context["headerTag"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""header_tag"), "getData", [], "method"falsefalsetrue14);
  61.         // line 15
  62.         $context["linkAsBtn"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""link_as_button"), "isChecked", [], "method"falsefalsetrue15);
  63.         // line 16
  64.         echo "
  65. <div class=\"area area--teaser ";
  66.         // line 17
  67.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["areaClass"]) || array_key_exists("areaClass"$context) ? $context["areaClass"] : (function () { throw new RuntimeError('Variable "areaClass" does not exist.'17$this->source); })()), 17$this->source), "html"nulltrue);
  68.         echo "\"";
  69.         if ((isset($context["anchorId"]) || array_key_exists("anchorId"$context) ? $context["anchorId"] : (function () { throw new RuntimeError('Variable "anchorId" does not exist.'17$this->source); })())) {
  70.             echo " id=\"";
  71.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["anchorId"]) || array_key_exists("anchorId"$context) ? $context["anchorId"] : (function () { throw new RuntimeError('Variable "anchorId" does not exist.'17$this->source); })()), 17$this->source), "html"nulltrue);
  72.             echo "\"";
  73.         }
  74.         echo ">
  75.     ";
  76.         // line 19
  77.         $context["teaserHeight"] = ((twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""teaser_height"), "getData", [], "method"falsefalsetrue19)) ? (twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""teaser_height"), "getData", [], "method"falsefalsetrue19)) : ("default"));
  78.         // line 20
  79.         echo "
  80.     ";
  81.         // line 21
  82.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'21$this->source); })())) {
  83.             // line 22
  84.             echo "
  85.         ";
  86.             // line 23
  87.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""teaser_items", ["types" => [=> "object"], "subtypes" => ["object" => [=> "object"]], "classes" => [=> "Teaser"], "reload" => true"class" => "container"]);
  88.             // line 31
  89.             echo "
  90.         <div class=\"cols cols--2 container\">
  91.             ";
  92.             // line 35
  93.             $context["teaserTypeDisable"] = false;
  94.             // line 36
  95.             echo "            ";
  96.             if (((isset($context["layout"]) || array_key_exists("layout"$context) ? $context["layout"] : (function () { throw new RuntimeError('Variable "layout" does not exist.'36$this->source); })()) == "slider")) {
  97.                 // line 37
  98.                 echo "                ";
  99.                 $context["teaserTypeDisable"] = true;
  100.                 // line 38
  101.                 echo "                <div style=\"display: none;\">
  102.                     ";
  103.                 // line 39
  104.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""teaser_height"), "setDataFromEditmode", [=> "klein"], "method"falsefalsetrue39), 39$this->source), "html"nulltrue);
  105.                 echo "
  106.                 </div>
  107.             ";
  108.             }
  109.             // line 42
  110.             echo "
  111.             <div class=\"card--config-edit\">
  112.                 <strong>Teaser Größe:</strong>
  113.                 ";
  114.             // line 45
  115.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""teaser_height", ["store" => [=> [=> "default"=> "klein"], => [=> "medium"=> "mittel"], => [=> "large"=> "groß"], => [=> "xl"=> "xl"]], "defaultValue" => "default""reload" => true"disabled" =>             // line 54
  116. (isset($context["teaserTypeDisable"]) || array_key_exists("teaserTypeDisable"$context) ? $context["teaserTypeDisable"] : (function () { throw new RuntimeError('Variable "teaserTypeDisable" does not exist.'54$this->source); })())]);
  117.             // line 55
  118.             echo "
  119.             </div>
  120.             ";
  121.             // line 59
  122.             echo "            ";
  123.             $context["disabled"] = false;
  124.             // line 60
  125.             echo "            ";
  126.             if ((((isset($context["teaserHeight"]) || array_key_exists("teaserHeight"$context) ? $context["teaserHeight"] : (function () { throw new RuntimeError('Variable "teaserHeight" does not exist.'60$this->source); })()) != "default") && ((isset($context["layout"]) || array_key_exists("layout"$context) ? $context["layout"] : (function () { throw new RuntimeError('Variable "layout" does not exist.'60$this->source); })()) != "slider"))) {
  127.                 // line 61
  128.                 echo "                ";
  129.                 $context["disabled"] = true;
  130.                 // line 62
  131.                 echo "                <div style=\"display: none;\">
  132.                     ";
  133.                 // line 63
  134.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""teaser_row_cols"), "setDataFromEditmode", [=> "1 Spalte"], "method"falsefalsetrue63), 63$this->source), "html"nulltrue);
  135.                 echo "
  136.                 </div>
  137.             ";
  138.             }
  139.             // line 66
  140.             echo "
  141.             <div class=\"card--config-edit\">
  142.                 <strong>Spalten:</strong>
  143.                 ";
  144.             // line 69
  145.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""teaser_row_cols", ["store" => [=> [=> "auto"=> "automatisch"], => [=> 1=> "1 Spalte"], => [=> 2=> "2 Spalten"], => [=> 3=> "3 Spalten"], => [=> 4=> "4 Spalten"]], "defaultValue" => "auto""reload" => true"disabled" =>             // line 79
  146. (isset($context["disabled"]) || array_key_exists("disabled"$context) ? $context["disabled"] : (function () { throw new RuntimeError('Variable "disabled" does not exist.'79$this->source); })())]);
  147.             // line 80
  148.             echo "
  149.             </div>
  150.             ";
  151.             // line 83
  152.             if (!twig_in_filter((isset($context["teaserHeight"]) || array_key_exists("teaserHeight"$context) ? $context["teaserHeight"] : (function () { throw new RuntimeError('Variable "teaserHeight" does not exist.'83$this->source); })()), [=> "large"=> "xl"])) {
  153.                 // line 84
  154.                 echo "                <div class=\"card--config-edit\" style=\"margin-top: 0; margin-bottom: 30px\">
  155.                     ";
  156.                 // line 85
  157.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""teaser_border", ["label" => "Teaser mit Rahmen""reload" => true]);
  158.                 // line 88
  159.                 echo "
  160.                 </div>
  161.             ";
  162.             }
  163.             // line 91
  164.             echo "        </div>
  165.     ";
  166.         }
  167.         // line 93
  168.         echo "
  169.     ";
  170.         // line 94
  171.         $context["hasBorder"] = (($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""teaser_border")) ? (twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""teaser_border"), "isChecked", [], "method"falsefalsetrue94)) : (0));
  172.         // line 95
  173.         echo "    ";
  174.         $context["hasBorder"] = ((twig_in_filter((isset($context["teaserHeight"]) || array_key_exists("teaserHeight"$context) ? $context["teaserHeight"] : (function () { throw new RuntimeError('Variable "teaserHeight" does not exist.'95$this->source); })()), [=> "large"=> "xl"])) ? (0) : (twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""teaser_border"), "isChecked", [], "method"falsefalsetrue95)));
  175.         // line 96
  176.         echo "
  177.     ";
  178.         // line 97
  179.         $context["cols"] = (((twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""teaser_row_cols"), "getData", [], "method"falsefalsetrue97) == "1 Spalte")) ? (1) : (twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""teaser_row_cols"), "getData", [], "method"falsefalsetrue97)));
  180.         // line 98
  181.         echo "    ";
  182.         if (((isset($context["cols"]) || array_key_exists("cols"$context) ? $context["cols"] : (function () { throw new RuntimeError('Variable "cols" does not exist.'98$this->source); })()) == "auto")) {
  183.             // line 99
  184.             echo "        ";
  185.             $context["cardElementLength"] = twig_length_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""teaser_items"), "getElements", [], "method"falsefalsetrue99), 99$this->source));
  186.             // line 100
  187.             echo "        ";
  188.             $context["cols"] = ((((isset($context["cardElementLength"]) || array_key_exists("cardElementLength"$context) ? $context["cardElementLength"] : (function () { throw new RuntimeError('Variable "cardElementLength" does not exist.'100$this->source); })()) < 4)) ? ((isset($context["cardElementLength"]) || array_key_exists("cardElementLength"$context) ? $context["cardElementLength"] : (function () { throw new RuntimeError('Variable "cardElementLength" does not exist.'100$this->source); })())) : (4));
  189.             // line 101
  190.             echo "    ";
  191.         }
  192.         // line 102
  193.         echo "
  194.     ";
  195.         // line 103
  196.         if (((isset($context["layout"]) || array_key_exists("layout"$context) ? $context["layout"] : (function () { throw new RuntimeError('Variable "layout" does not exist.'103$this->source); })()) == "row")) {
  197.             // line 104
  198.             echo "        <div class=\"cols cols--";
  199.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["cols"]) || array_key_exists("cols"$context) ? $context["cols"] : (function () { throw new RuntimeError('Variable "cols" does not exist.'104$this->source); })()), 104$this->source), "html"nulltrue);
  200.             echo "\">
  201.             ";
  202.             // line 105
  203.             $context['_parent'] = $context;
  204.             $context['_seq'] = twig_ensure_traversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""teaser_items"));
  205.             foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  206.                 // line 106
  207.                 echo "                ";
  208.                 echo twig_call_macro($macros["__internal_parse_0"], "macro_teaser", [$context["item"], (isset($context["headerTag"]) || array_key_exists("headerTag"$context) ? $context["headerTag"] : (function () { throw new RuntimeError('Variable "headerTag" does not exist.'106$this->source); })()), (isset($context["linkAsBtn"]) || array_key_exists("linkAsBtn"$context) ? $context["linkAsBtn"] : (function () { throw new RuntimeError('Variable "linkAsBtn" does not exist.'106$this->source); })()), (isset($context["hasBorder"]) || array_key_exists("hasBorder"$context) ? $context["hasBorder"] : (function () { throw new RuntimeError('Variable "hasBorder" does not exist.'106$this->source); })()), (isset($context["teaserHeight"]) || array_key_exists("teaserHeight"$context) ? $context["teaserHeight"] : (function () { throw new RuntimeError('Variable "teaserHeight" does not exist.'106$this->source); })())], 106$context$this->getSourceContext());
  209.                 echo "
  210.             ";
  211.             }
  212.             $_parent $context['_parent'];
  213.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  214.             $context array_intersect_key($context$_parent) + $_parent;
  215.             // line 108
  216.             echo "        </div>
  217.     ";
  218.         } else {
  219.             // line 110
  220.             echo "
  221.         ";
  222.             // line 111
  223.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'111$this->source); })())) {
  224.                 // line 112
  225.                 echo "            <div class=\"cols cols--3 container\">
  226.                 <div class=\"card--config-edit\">
  227.                     ";
  228.                 // line 114
  229.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""teaser_no_pagination", ["label" => "Pagination deaktivieren""reload" => true]);
  230.                 // line 117
  231.                 echo "
  232.                 </div>
  233.                 <div class=\"card--config-edit\">
  234.                     ";
  235.                 // line 121
  236.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""teaser_no_arrows", ["label" => "Controls deaktivieren""reload" => true]);
  237.                 // line 124
  238.                 echo "
  239.                 </div>
  240.                 <div class=\"card--config-edit\">
  241.                     ";
  242.                 // line 128
  243.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""teaser_big", ["label" => "breite Teaser""reload" => true]);
  244.                 // line 131
  245.                 echo "
  246.                 </div>
  247.             </div>
  248.         ";
  249.             }
  250.             // line 135
  251.             echo "
  252.         ";
  253.             // line 136
  254.             $context["pagination"] = ((twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""teaser_no_pagination"), "isChecked", [], "method"falsefalsetrue136)) ? ("false") : ("true"));
  255.             // line 137
  256.             echo "        ";
  257.             $context["arrows"] = ((twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""teaser_no_arrows"), "isChecked", [], "method"falsefalsetrue137)) ? ("false") : ("true"));
  258.             // line 138
  259.             echo "        ";
  260.             $context["teaserBig"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""teaser_big"), "isChecked", [], "method"falsefalsetrue138);
  261.             // line 139
  262.             echo "
  263.         ";
  264.             // line 140
  265.             echo twig_call_macro($macros["__internal_parse_1"], "macro_teaserSlider", [twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""teaser_items"), "getElements", [], "method"falsefalsetrue140), (isset($context["headerTag"]) || array_key_exists("headerTag"$context) ? $context["headerTag"] : (function () { throw new RuntimeError('Variable "headerTag" does not exist.'140$this->source); })()), (isset($context["linkAsBtn"]) || array_key_exists("linkAsBtn"$context) ? $context["linkAsBtn"] : (function () { throw new RuntimeError('Variable "linkAsBtn" does not exist.'140$this->source); })()), (isset($context["hasBorder"]) || array_key_exists("hasBorder"$context) ? $context["hasBorder"] : (function () { throw new RuntimeError('Variable "hasBorder" does not exist.'140$this->source); })()), (isset($context["cols"]) || array_key_exists("cols"$context) ? $context["cols"] : (function () { throw new RuntimeError('Variable "cols" does not exist.'140$this->source); })()), (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'140$this->source); })()), (isset($context["arrows"]) || array_key_exists("arrows"$context) ? $context["arrows"] : (function () { throw new RuntimeError('Variable "arrows" does not exist.'140$this->source); })()), (isset($context["teaserBig"]) || array_key_exists("teaserBig"$context) ? $context["teaserBig"] : (function () { throw new RuntimeError('Variable "teaserBig" does not exist.'140$this->source); })())], 140$context$this->getSourceContext());
  266.             echo "
  267.     ";
  268.         }
  269.         // line 142
  270.         echo "</div>";
  271.         
  272.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  273.         
  274.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  275.     }
  276.     public function getTemplateName()
  277.     {
  278.         return "@Provider/areas/teaser/view.html.twig";
  279.     }
  280.     public function isTraitable()
  281.     {
  282.         return false;
  283.     }
  284.     public function getDebugInfo()
  285.     {
  286.         return array (  286 => 142,  281 => 140,  278 => 139,  275 => 138,  272 => 137,  270 => 136,  267 => 135,  261 => 131,  259 => 128,  253 => 124,  251 => 121,  245 => 117,  243 => 114,  239 => 112,  237 => 111,  234 => 110,  230 => 108,  221 => 106,  217 => 105,  212 => 104,  210 => 103,  207 => 102,  204 => 101,  201 => 100,  198 => 99,  195 => 98,  193 => 97,  190 => 96,  187 => 95,  185 => 94,  182 => 93,  178 => 91,  173 => 88,  171 => 85,  168 => 84,  166 => 83,  161 => 80,  159 => 79,  158 => 69,  153 => 66,  147 => 63,  144 => 62,  141 => 61,  138 => 60,  135 => 59,  130 => 55,  128 => 54,  127 => 45,  122 => 42,  116 => 39,  113 => 38,  110 => 37,  107 => 36,  105 => 35,  99 => 31,  97 => 23,  94 => 22,  92 => 21,  89 => 20,  87 => 19,  76 => 17,  73 => 16,  71 => 15,  69 => 14,  67 => 13,  64 => 11,  62 => 10,  60 => 9,  58 => 8,  56 => 7,  54 => 6,  52 => 5,  49 => 3,  47 => 2,  45 => 1,);
  287.     }
  288.     public function getSourceContext()
  289.     {
  290.         return new Source("{% from '@Provider/macros/teaser.html.twig' import teaser %}
  291. {% from '@Provider/macros/teaser.html.twig' import teaserSlider %}
  292. {# Default block settings #}
  293. {% set class            = pimcore_input('class').getData() %}
  294. {% set marginTop        = pimcore_select('margin_top').getData() %}
  295. {% set marginBottom     = pimcore_select('margin_bottom').getData() %}
  296. {% set anchorId         = pimcore_input('anchor').getData() %}
  297. {% set containerWidth   = pimcore_select('teaser_height').getData() in [ 'large', 'xl' ] ? 'full-width' : pimcore_select('container_width').getData() %}
  298. {% set areaClass        = class ~ ' ' ~ marginTop ~ ' ' ~ marginBottom ~ ' ' ~ containerWidth %}
  299. {# Teaser block settings #}
  300. {% set layout       = pimcore_select('layout').getData() %}
  301. {% set headerTag    = pimcore_select('header_tag').getData() %}
  302. {% set linkAsBtn    = pimcore_checkbox('link_as_button').isChecked() %}
  303. <div class=\"area area--teaser {{ areaClass }}\"{% if anchorId %} id=\"{{ anchorId }}\"{% endif %}>
  304.     {% set teaserHeight = pimcore_select('teaser_height').getData() ? pimcore_select('teaser_height').getData() : 'default' %}
  305.     {% if editmode %}
  306.         {{ pimcore_relations('teaser_items', {
  307.             'types': ['object'],
  308.             'subtypes': {
  309.                 'object': ['object']
  310.             },
  311.             'classes': ['Teaser'],
  312.             'reload': true,
  313.             'class': 'container'
  314.         }) }}
  315.         <div class=\"cols cols--2 container\">
  316.             {% set teaserTypeDisable = false %}
  317.             {% if layout == 'slider' %}
  318.                 {% set teaserTypeDisable = true %}
  319.                 <div style=\"display: none;\">
  320.                     {{ pimcore_select('teaser_height').setDataFromEditmode('klein') }}
  321.                 </div>
  322.             {% endif %}
  323.             <div class=\"card--config-edit\">
  324.                 <strong>Teaser Größe:</strong>
  325.                 {{ pimcore_select('teaser_height', {
  326.                     'store': [
  327.                         [ 'default', 'klein' ],
  328.                         [ 'medium', 'mittel' ],
  329.                         [ 'large', 'groß' ],
  330.                         [ 'xl', 'xl' ]
  331.                     ],
  332.                     'defaultValue': 'default',
  333.                     'reload': true,
  334.                     'disabled': teaserTypeDisable
  335.                 }) }}
  336.             </div>
  337.             {# to disable row cols select if teaser height is not small #}
  338.             {% set disabled = false %}
  339.             {% if teaserHeight != 'default' and layout != 'slider' %}
  340.                 {% set disabled = true %}
  341.                 <div style=\"display: none;\">
  342.                     {{ pimcore_select('teaser_row_cols').setDataFromEditmode('1 Spalte') }}
  343.                 </div>
  344.             {% endif %}
  345.             <div class=\"card--config-edit\">
  346.                 <strong>Spalten:</strong>
  347.                 {{ pimcore_select('teaser_row_cols', {
  348.                     'store': [
  349.                         [ 'auto', 'automatisch' ],
  350.                         [ 1, '1 Spalte' ],
  351.                         [ 2, '2 Spalten' ],
  352.                         [ 3, '3 Spalten' ],
  353.                         [ 4, '4 Spalten' ]
  354.                     ],
  355.                     'defaultValue': 'auto',
  356.                     'reload': true,
  357.                     'disabled': disabled
  358.                 }) }}
  359.             </div>
  360.             {% if teaserHeight not in [ 'large', 'xl' ] %}
  361.                 <div class=\"card--config-edit\" style=\"margin-top: 0; margin-bottom: 30px\">
  362.                     {{ pimcore_checkbox('teaser_border', {
  363.                         'label': 'Teaser mit Rahmen',
  364.                         'reload': true
  365.                     }) }}
  366.                 </div>
  367.             {% endif %}
  368.         </div>
  369.     {% endif %}
  370.     {% set hasBorder = pimcore_checkbox('teaser_border') ? pimcore_checkbox('teaser_border').isChecked() : 0 %}
  371.     {% set hasBorder = teaserHeight in [ 'large', 'xl' ] ? 0 : pimcore_checkbox('teaser_border').isChecked() %}
  372.     {% set cols = pimcore_select('teaser_row_cols').getData() == '1 Spalte' ? 1 : pimcore_select('teaser_row_cols').getData() %}
  373.     {% if cols == 'auto' %}
  374.         {% set cardElementLength = pimcore_relations('teaser_items').getElements() | length %}
  375.         {% set cols = cardElementLength < 4 ? cardElementLength : 4 %}
  376.     {% endif %}
  377.     {% if layout == 'row' %}
  378.         <div class=\"cols cols--{{ cols }}\">
  379.             {% for item in pimcore_relations('teaser_items') %}
  380.                 {{ teaser(item, headerTag, linkAsBtn, hasBorder, teaserHeight) }}
  381.             {% endfor %}
  382.         </div>
  383.     {% else %}
  384.         {% if editmode %}
  385.             <div class=\"cols cols--3 container\">
  386.                 <div class=\"card--config-edit\">
  387.                     {{ pimcore_checkbox('teaser_no_pagination', {
  388.                         'label': 'Pagination deaktivieren',
  389.                         'reload': true
  390.                     }) }}
  391.                 </div>
  392.                 <div class=\"card--config-edit\">
  393.                     {{ pimcore_checkbox('teaser_no_arrows', {
  394.                         'label': 'Controls deaktivieren',
  395.                         'reload': true
  396.                     }) }}
  397.                 </div>
  398.                 <div class=\"card--config-edit\">
  399.                     {{ pimcore_checkbox('teaser_big', {
  400.                         'label': 'breite Teaser',
  401.                         'reload': true
  402.                     }) }}
  403.                 </div>
  404.             </div>
  405.         {% endif %}
  406.         {% set pagination = pimcore_checkbox('teaser_no_pagination').isChecked() ? 'false' : 'true' %}
  407.         {% set arrows = pimcore_checkbox('teaser_no_arrows').isChecked() ? 'false' : 'true' %}
  408.         {% set teaserBig = pimcore_checkbox('teaser_big').isChecked() %}
  409.         {{ teaserSlider(pimcore_relations('teaser_items').getElements(), headerTag, linkAsBtn, hasBorder, cols, pagination, arrows, teaserBig) }}
  410.     {% endif %}
  411. </div>""@Provider/areas/teaser/view.html.twig""/html/pimcore/templates/bundles/ProviderBundle/areas/teaser/view.html.twig");
  412.     }
  413.     
  414.     public function checkSecurity()
  415.     {
  416.         static $tags = array("from" => 1"set" => 5"if" => 17"for" => 105);
  417.         static $filters = array("escape" => 17"length" => 99);
  418.         static $functions = array("pimcore_input" => 5"pimcore_select" => 6"pimcore_checkbox" => 15"pimcore_relations" => 23);
  419.         try {
  420.             $this->sandbox->checkSecurity(
  421.                 ['from''set''if''for'],
  422.                 ['escape''length'],
  423.                 ['pimcore_input''pimcore_select''pimcore_checkbox''pimcore_relations']
  424.             );
  425.         } catch (SecurityError $e) {
  426.             $e->setSourceContext($this->source);
  427.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  428.                 $e->setTemplateLine($tags[$e->getTagName()]);
  429.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  430.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  431.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  432.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  433.             }
  434.             throw $e;
  435.         }
  436.     }
  437. }