var/cache/dev/twig/a7/a7739cd767d20a6f3299458eb04612e5.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. /* includes/areabrick.html.twig */
  14. class __TwigTemplate_cb43171acf809ab11dbba5bb7a73a3e3 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""includes/areabrick.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""includes/areabrick.html.twig"));
  35.         // line 6
  36.         $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), [=> "section"])) : ([=> "section"]));
  37.         // line 7
  38.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock"$this->sandbox->ensureToStringAllowed(        // line 8
  39. (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
  40. (isset($context["allowed"]) || array_key_exists("allowed"$context) ? $context["allowed"] : (function () { throw new RuntimeError('Variable "allowed" does not exist.'9$this->source); })()), "group" => ["Structure" => [=> "section"=> "columns"], "Text" => [=> "wysiwyg"=> "quote"], "Image" => [=> "image"=> "imagegrid"=> "gallery"], "Relation" => [=> "teaser"=> "documentlist"=> "documentslider"], "Buttons" => [=> "buttons"], "Other" => [=> "numberlist"=> "video"=> "map"=> "timeline"]], "globalParams" => ["columns" => ((        // line 19
  41. 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
  42. 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
  43. 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
  44. 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))]]);
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     public function getTemplateName()
  51.     {
  52.         return "includes/areabrick.html.twig";
  53.     }
  54.     public function isTraitable()
  55.     {
  56.         return false;
  57.     }
  58.     public function getDebugInfo()
  59.     {
  60.         return array (  53 => 22,  52 => 21,  51 => 20,  50 => 19,  49 => 9,  48 => 8,  47 => 7,  45 => 6,);
  61.     }
  62.     public function getSourceContext()
  63.     {
  64.         return new Source("{#
  65. project: Pimcore - Devicenow
  66. User: EBiermann
  67. Year: 2022
  68. #}
  69. {% set allowed = allowed | default(['section']) %}
  70. {{
  71. \tpimcore_areablock(id, {
  72. \t\t'allowed': allowed,
  73. \t\t'group': {
  74. \t\t\t'Structure': ['section', 'columns'],
  75. \t\t\t'Text': ['wysiwyg', 'quote'],
  76. \t\t\t'Image': ['image', 'imagegrid', 'gallery'],
  77. \t\t\t'Relation': ['teaser', 'documentlist', 'documentslider'],
  78. \t\t\t'Buttons': ['buttons'],
  79. \t\t\t'Other': ['numberlist','video', 'map', 'timeline']
  80. \t\t},
  81. \t\t'globalParams': {
  82. \t\t\t'columns': columns | default(''),
  83. \t\t\t'brickMode': mode | default('structure'),
  84. \t\t\t'sectionIndex': sectionIndex | default(0),
  85. \t\t\t'gridIndex': gridIndex | default(0)
  86. \t\t}
  87. \t})
  88. }}""includes/areabrick.html.twig""/var/www/snr/staging.nuernberger-bratwuerste.de/templates/includes/areabrick.html.twig");
  89.     }
  90.     
  91.     public function checkSecurity()
  92.     {
  93.         static $tags = array("set" => 6);
  94.         static $filters = array("default" => 6);
  95.         static $functions = array("pimcore_areablock" => 8);
  96.         try {
  97.             $this->sandbox->checkSecurity(
  98.                 ['set'],
  99.                 ['default'],
  100.                 ['pimcore_areablock']
  101.             );
  102.         } catch (SecurityError $e) {
  103.             $e->setSourceContext($this->source);
  104.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  105.                 $e->setTemplateLine($tags[$e->getTagName()]);
  106.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  107.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  108.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  109.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  110.             }
  111.             throw $e;
  112.         }
  113.     }
  114. }