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