<?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;
/* includes/areabrick.html.twig */
class __TwigTemplate_cb43171acf809ab11dbba5bb7a73a3e3 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", "includes/areabrick.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/areabrick.html.twig"));
// line 6
$context["allowed"] = ((array_key_exists("allowed", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["allowed"]) || array_key_exists("allowed", $context) ? $context["allowed"] : (function () { throw new RuntimeError('Variable "allowed" does not exist.', 6, $this->source); })()), 6, $this->source), [0 => "section"])) : ([0 => "section"]));
// line 7
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", $this->sandbox->ensureToStringAllowed( // line 8
(isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 8, $this->source); })()), 8, $this->source), ["allowed" => // line 9
(isset($context["allowed"]) || array_key_exists("allowed", $context) ? $context["allowed"] : (function () { throw new RuntimeError('Variable "allowed" does not exist.', 9, $this->source); })()), "group" => ["Structure" => [0 => "section", 1 => "columns"], "Text" => [0 => "wysiwyg", 1 => "quote"], "Image" => [0 => "image", 1 => "imagegrid", 2 => "gallery"], "Relation" => [0 => "teaser", 1 => "documentlist", 2 => "documentslider"], "Buttons" => [0 => "buttons"], "Other" => [0 => "numberlist", 1 => "video", 2 => "map", 3 => "timeline"]], "globalParams" => ["columns" => (( // line 19
array_key_exists("columns", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["columns"]) || array_key_exists("columns", $context) ? $context["columns"] : (function () { throw new RuntimeError('Variable "columns" does not exist.', 19, $this->source); })()), 19, $this->source), "")) : ("")), "brickMode" => (( // line 20
array_key_exists("mode", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 20, $this->source); })()), 20, $this->source), "structure")) : ("structure")), "sectionIndex" => (( // line 21
array_key_exists("sectionIndex", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["sectionIndex"]) || array_key_exists("sectionIndex", $context) ? $context["sectionIndex"] : (function () { throw new RuntimeError('Variable "sectionIndex" does not exist.', 21, $this->source); })()), 21, $this->source), 0)) : (0)), "gridIndex" => (( // line 22
array_key_exists("gridIndex", $context)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed((isset($context["gridIndex"]) || array_key_exists("gridIndex", $context) ? $context["gridIndex"] : (function () { throw new RuntimeError('Variable "gridIndex" does not exist.', 22, $this->source); })()), 22, $this->source), 0)) : (0))]]);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "includes/areabrick.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 53 => 22, 52 => 21, 51 => 20, 50 => 19, 49 => 9, 48 => 8, 47 => 7, 45 => 6,);
}
public function getSourceContext()
{
return new Source("{#
project: Pimcore - Devicenow
User: EBiermann
Year: 2022
#}
{% set allowed = allowed | default(['section']) %}
{{
\tpimcore_areablock(id, {
\t\t'allowed': allowed,
\t\t'group': {
\t\t\t'Structure': ['section', 'columns'],
\t\t\t'Text': ['wysiwyg', 'quote'],
\t\t\t'Image': ['image', 'imagegrid', 'gallery'],
\t\t\t'Relation': ['teaser', 'documentlist', 'documentslider'],
\t\t\t'Buttons': ['buttons'],
\t\t\t'Other': ['numberlist','video', 'map', 'timeline']
\t\t},
\t\t'globalParams': {
\t\t\t'columns': columns | default(''),
\t\t\t'brickMode': mode | default('structure'),
\t\t\t'sectionIndex': sectionIndex | default(0),
\t\t\t'gridIndex': gridIndex | default(0)
\t\t}
\t})
}}", "includes/areabrick.html.twig", "/var/www/snr/staging.nuernberger-bratwuerste.de/templates/includes/areabrick.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 6);
static $filters = array("default" => 6);
static $functions = array("pimcore_areablock" => 8);
try {
$this->sandbox->checkSecurity(
['set'],
['default'],
['pimcore_areablock']
);
} 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;
}
}
}