<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @Provider/areas/teaser/view.html.twig */
class __TwigTemplate_cb399f150e1fd2b6a732cf73765b0040 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Provider/areas/teaser/view.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Provider/areas/teaser/view.html.twig"));
// line 1
$macros["__internal_parse_0"] = $this->macros["__internal_parse_0"] = $this->loadTemplate("@Provider/macros/teaser.html.twig", "@Provider/areas/teaser/view.html.twig", 1)->unwrap();
// line 2
$macros["__internal_parse_1"] = $this->macros["__internal_parse_1"] = $this->loadTemplate("@Provider/macros/teaser.html.twig", "@Provider/areas/teaser/view.html.twig", 2)->unwrap();
// line 3
echo "
";
// line 5
$context["class"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "class"), "getData", [], "method", false, false, true, 5);
// line 6
$context["marginTop"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "margin_top"), "getData", [], "method", false, false, true, 6);
// line 7
$context["marginBottom"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "margin_bottom"), "getData", [], "method", false, false, true, 7);
// line 8
$context["anchorId"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "anchor"), "getData", [], "method", false, false, true, 8);
// line 9
$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", false, false, true, 9), [0 => "large", 1 => "xl"])) ? ("full-width") : (twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "container_width"), "getData", [], "method", false, false, true, 9)));
// line 10
$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));
// line 11
echo "
";
// line 13
$context["layout"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "layout"), "getData", [], "method", false, false, true, 13);
// line 14
$context["headerTag"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "header_tag"), "getData", [], "method", false, false, true, 14);
// line 15
$context["linkAsBtn"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "link_as_button"), "isChecked", [], "method", false, false, true, 15);
// line 16
echo "
<div class=\"area area--teaser ";
// line 17
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", null, true);
echo "\"";
if ((isset($context["anchorId"]) || array_key_exists("anchorId", $context) ? $context["anchorId"] : (function () { throw new RuntimeError('Variable "anchorId" does not exist.', 17, $this->source); })())) {
echo " id=\"";
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", null, true);
echo "\"";
}
echo ">
";
// line 19
$context["teaserHeight"] = ((twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "teaser_height"), "getData", [], "method", false, false, true, 19)) ? (twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "teaser_height"), "getData", [], "method", false, false, true, 19)) : ("default"));
// line 20
echo "
";
// line 21
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 21, $this->source); })())) {
// line 22
echo "
";
// line 23
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "teaser_items", ["types" => [0 => "object"], "subtypes" => ["object" => [0 => "object"]], "classes" => [0 => "Teaser"], "reload" => true, "class" => "container"]);
// line 31
echo "
<div class=\"cols cols--2 container\">
";
// line 35
$context["teaserTypeDisable"] = false;
// line 36
echo " ";
if (((isset($context["layout"]) || array_key_exists("layout", $context) ? $context["layout"] : (function () { throw new RuntimeError('Variable "layout" does not exist.', 36, $this->source); })()) == "slider")) {
// line 37
echo " ";
$context["teaserTypeDisable"] = true;
// line 38
echo " <div style=\"display: none;\">
";
// line 39
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", [0 => "klein"], "method", false, false, true, 39), 39, $this->source), "html", null, true);
echo "
</div>
";
}
// line 42
echo "
<div class=\"card--config-edit\">
<strong>Teaser Größe:</strong>
";
// line 45
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "teaser_height", ["store" => [0 => [0 => "default", 1 => "klein"], 1 => [0 => "medium", 1 => "mittel"], 2 => [0 => "large", 1 => "groß"], 3 => [0 => "xl", 1 => "xl"]], "defaultValue" => "default", "reload" => true, "disabled" => // line 54
(isset($context["teaserTypeDisable"]) || array_key_exists("teaserTypeDisable", $context) ? $context["teaserTypeDisable"] : (function () { throw new RuntimeError('Variable "teaserTypeDisable" does not exist.', 54, $this->source); })())]);
// line 55
echo "
</div>
";
// line 59
echo " ";
$context["disabled"] = false;
// line 60
echo " ";
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"))) {
// line 61
echo " ";
$context["disabled"] = true;
// line 62
echo " <div style=\"display: none;\">
";
// line 63
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", [0 => "1 Spalte"], "method", false, false, true, 63), 63, $this->source), "html", null, true);
echo "
</div>
";
}
// line 66
echo "
<div class=\"card--config-edit\">
<strong>Spalten:</strong>
";
// line 69
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "teaser_row_cols", ["store" => [0 => [0 => "auto", 1 => "automatisch"], 1 => [0 => 1, 1 => "1 Spalte"], 2 => [0 => 2, 1 => "2 Spalten"], 3 => [0 => 3, 1 => "3 Spalten"], 4 => [0 => 4, 1 => "4 Spalten"]], "defaultValue" => "auto", "reload" => true, "disabled" => // line 79
(isset($context["disabled"]) || array_key_exists("disabled", $context) ? $context["disabled"] : (function () { throw new RuntimeError('Variable "disabled" does not exist.', 79, $this->source); })())]);
// line 80
echo "
</div>
";
// line 83
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); })()), [0 => "large", 1 => "xl"])) {
// line 84
echo " <div class=\"card--config-edit\" style=\"margin-top: 0; margin-bottom: 30px\">
";
// line 85
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "teaser_border", ["label" => "Teaser mit Rahmen", "reload" => true]);
// line 88
echo "
</div>
";
}
// line 91
echo " </div>
";
}
// line 93
echo "
";
// line 94
$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", false, false, true, 94)) : (0));
// line 95
echo " ";
$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); })()), [0 => "large", 1 => "xl"])) ? (0) : (twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "teaser_border"), "isChecked", [], "method", false, false, true, 95)));
// line 96
echo "
";
// line 97
$context["cols"] = (((twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "teaser_row_cols"), "getData", [], "method", false, false, true, 97) == "1 Spalte")) ? (1) : (twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "teaser_row_cols"), "getData", [], "method", false, false, true, 97)));
// line 98
echo " ";
if (((isset($context["cols"]) || array_key_exists("cols", $context) ? $context["cols"] : (function () { throw new RuntimeError('Variable "cols" does not exist.', 98, $this->source); })()) == "auto")) {
// line 99
echo " ";
$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", false, false, true, 99), 99, $this->source));
// line 100
echo " ";
$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));
// line 101
echo " ";
}
// line 102
echo "
";
// line 103
if (((isset($context["layout"]) || array_key_exists("layout", $context) ? $context["layout"] : (function () { throw new RuntimeError('Variable "layout" does not exist.', 103, $this->source); })()) == "row")) {
// line 104
echo " <div class=\"cols cols--";
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", null, true);
echo "\">
";
// line 105
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "teaser_items"));
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
// line 106
echo " ";
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());
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 108
echo " </div>
";
} else {
// line 110
echo "
";
// line 111
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 111, $this->source); })())) {
// line 112
echo " <div class=\"cols cols--3 container\">
<div class=\"card--config-edit\">
";
// line 114
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "teaser_no_pagination", ["label" => "Pagination deaktivieren", "reload" => true]);
// line 117
echo "
</div>
<div class=\"card--config-edit\">
";
// line 121
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "teaser_no_arrows", ["label" => "Controls deaktivieren", "reload" => true]);
// line 124
echo "
</div>
<div class=\"card--config-edit\">
";
// line 128
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "teaser_big", ["label" => "breite Teaser", "reload" => true]);
// line 131
echo "
</div>
</div>
";
}
// line 135
echo "
";
// line 136
$context["pagination"] = ((twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "teaser_no_pagination"), "isChecked", [], "method", false, false, true, 136)) ? ("false") : ("true"));
// line 137
echo " ";
$context["arrows"] = ((twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "teaser_no_arrows"), "isChecked", [], "method", false, false, true, 137)) ? ("false") : ("true"));
// line 138
echo " ";
$context["teaserBig"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "teaser_big"), "isChecked", [], "method", false, false, true, 138);
// line 139
echo "
";
// line 140
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", false, false, true, 140), (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());
echo "
";
}
// line 142
echo "</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@Provider/areas/teaser/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% from '@Provider/macros/teaser.html.twig' import teaser %}
{% from '@Provider/macros/teaser.html.twig' import teaserSlider %}
{# Default block settings #}
{% set class = pimcore_input('class').getData() %}
{% set marginTop = pimcore_select('margin_top').getData() %}
{% set marginBottom = pimcore_select('margin_bottom').getData() %}
{% set anchorId = pimcore_input('anchor').getData() %}
{% set containerWidth = pimcore_select('teaser_height').getData() in [ 'large', 'xl' ] ? 'full-width' : pimcore_select('container_width').getData() %}
{% set areaClass = class ~ ' ' ~ marginTop ~ ' ' ~ marginBottom ~ ' ' ~ containerWidth %}
{# Teaser block settings #}
{% set layout = pimcore_select('layout').getData() %}
{% set headerTag = pimcore_select('header_tag').getData() %}
{% set linkAsBtn = pimcore_checkbox('link_as_button').isChecked() %}
<div class=\"area area--teaser {{ areaClass }}\"{% if anchorId %} id=\"{{ anchorId }}\"{% endif %}>
{% set teaserHeight = pimcore_select('teaser_height').getData() ? pimcore_select('teaser_height').getData() : 'default' %}
{% if editmode %}
{{ pimcore_relations('teaser_items', {
'types': ['object'],
'subtypes': {
'object': ['object']
},
'classes': ['Teaser'],
'reload': true,
'class': 'container'
}) }}
<div class=\"cols cols--2 container\">
{% set teaserTypeDisable = false %}
{% if layout == 'slider' %}
{% set teaserTypeDisable = true %}
<div style=\"display: none;\">
{{ pimcore_select('teaser_height').setDataFromEditmode('klein') }}
</div>
{% endif %}
<div class=\"card--config-edit\">
<strong>Teaser Größe:</strong>
{{ pimcore_select('teaser_height', {
'store': [
[ 'default', 'klein' ],
[ 'medium', 'mittel' ],
[ 'large', 'groß' ],
[ 'xl', 'xl' ]
],
'defaultValue': 'default',
'reload': true,
'disabled': teaserTypeDisable
}) }}
</div>
{# to disable row cols select if teaser height is not small #}
{% set disabled = false %}
{% if teaserHeight != 'default' and layout != 'slider' %}
{% set disabled = true %}
<div style=\"display: none;\">
{{ pimcore_select('teaser_row_cols').setDataFromEditmode('1 Spalte') }}
</div>
{% endif %}
<div class=\"card--config-edit\">
<strong>Spalten:</strong>
{{ pimcore_select('teaser_row_cols', {
'store': [
[ 'auto', 'automatisch' ],
[ 1, '1 Spalte' ],
[ 2, '2 Spalten' ],
[ 3, '3 Spalten' ],
[ 4, '4 Spalten' ]
],
'defaultValue': 'auto',
'reload': true,
'disabled': disabled
}) }}
</div>
{% if teaserHeight not in [ 'large', 'xl' ] %}
<div class=\"card--config-edit\" style=\"margin-top: 0; margin-bottom: 30px\">
{{ pimcore_checkbox('teaser_border', {
'label': 'Teaser mit Rahmen',
'reload': true
}) }}
</div>
{% endif %}
</div>
{% endif %}
{% set hasBorder = pimcore_checkbox('teaser_border') ? pimcore_checkbox('teaser_border').isChecked() : 0 %}
{% set hasBorder = teaserHeight in [ 'large', 'xl' ] ? 0 : pimcore_checkbox('teaser_border').isChecked() %}
{% set cols = pimcore_select('teaser_row_cols').getData() == '1 Spalte' ? 1 : pimcore_select('teaser_row_cols').getData() %}
{% if cols == 'auto' %}
{% set cardElementLength = pimcore_relations('teaser_items').getElements() | length %}
{% set cols = cardElementLength < 4 ? cardElementLength : 4 %}
{% endif %}
{% if layout == 'row' %}
<div class=\"cols cols--{{ cols }}\">
{% for item in pimcore_relations('teaser_items') %}
{{ teaser(item, headerTag, linkAsBtn, hasBorder, teaserHeight) }}
{% endfor %}
</div>
{% else %}
{% if editmode %}
<div class=\"cols cols--3 container\">
<div class=\"card--config-edit\">
{{ pimcore_checkbox('teaser_no_pagination', {
'label': 'Pagination deaktivieren',
'reload': true
}) }}
</div>
<div class=\"card--config-edit\">
{{ pimcore_checkbox('teaser_no_arrows', {
'label': 'Controls deaktivieren',
'reload': true
}) }}
</div>
<div class=\"card--config-edit\">
{{ pimcore_checkbox('teaser_big', {
'label': 'breite Teaser',
'reload': true
}) }}
</div>
</div>
{% endif %}
{% set pagination = pimcore_checkbox('teaser_no_pagination').isChecked() ? 'false' : 'true' %}
{% set arrows = pimcore_checkbox('teaser_no_arrows').isChecked() ? 'false' : 'true' %}
{% set teaserBig = pimcore_checkbox('teaser_big').isChecked() %}
{{ teaserSlider(pimcore_relations('teaser_items').getElements(), headerTag, linkAsBtn, hasBorder, cols, pagination, arrows, teaserBig) }}
{% endif %}
</div>", "@Provider/areas/teaser/view.html.twig", "/html/pimcore/templates/bundles/ProviderBundle/areas/teaser/view.html.twig");
}
public function checkSecurity()
{
static $tags = array("from" => 1, "set" => 5, "if" => 17, "for" => 105);
static $filters = array("escape" => 17, "length" => 99);
static $functions = array("pimcore_input" => 5, "pimcore_select" => 6, "pimcore_checkbox" => 15, "pimcore_relations" => 23);
try {
$this->sandbox->checkSecurity(
['from', 'set', 'if', 'for'],
['escape', 'length'],
['pimcore_input', 'pimcore_select', 'pimcore_checkbox', 'pimcore_relations']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}