var/cache/dev/twig/db/dba904bf7ce8b23563dc299404467c30.php line 74

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. /* @FoxHabbitBasis/Areas/basisbundle-header/variant-area-content.html.twig */
  14. class __TwigTemplate_2e7b381689367d7c9e04765ecb495ecd 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""@FoxHabbitBasis/Areas/basisbundle-header/variant-area-content.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""@FoxHabbitBasis/Areas/basisbundle-header/variant-area-content.html.twig"));
  35.         // line 1
  36.         $macros["wrap_macro"] = $this->macros["wrap_macro"] = $this->loadTemplate("@FoxHabbitBasis/Macro/wrap.html.twig""@FoxHabbitBasis/Areas/basisbundle-header/variant-area-content.html.twig"1)->unwrap();
  37.         // line 2
  38.         echo "
  39. ";
  40.         // line 3
  41.         echo twig_call_macro($macros["wrap_macro"], "macro_wrapperOpen", [((twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "cols_wrapper", [], "any"truetruetrue3)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "cols_wrapper", [], "any"falsefalsetrue3), 3$this->source), null)) : (null)), $context], 3$context$this->getSourceContext());
  42.         echo "
  43. ";
  44.         // line 4
  45.         $context['_parent'] = $context;
  46.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["config"]) || array_key_exists("config"$context) ? $context["config"] : (function () { throw new RuntimeError('Variable "config" does not exist.'4$this->source); })()), "cols", [], "any"falsefalsetrue4));
  47.         foreach ($context['_seq'] as $context["colName"] => $context["colConfig"]) {
  48.             // line 5
  49.             echo "\t";
  50.             $context["colWrapper"] = ((twig_get_attribute($this->env$this->source$context["colConfig"], "wrapper", [], "any"truetruetrue5)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["colConfig"], "wrapper", [], "any"falsefalsetrue5), 5$this->source), null)) : (null));
  51.             // line 6
  52.             echo "\t";
  53.             echo twig_call_macro($macros["wrap_macro"], "macro_wrapperOpen", [(isset($context["colWrapper"]) || array_key_exists("colWrapper"$context) ? $context["colWrapper"] : (function () { throw new RuntimeError('Variable "colWrapper" does not exist.'6$this->source); })()), $context], 6$context$this->getSourceContext());
  54.             echo "
  55. \t";
  56.             // line 7
  57.             if (((twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_prepend", [], "any"truetruetrue7)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_prepend", [], "any"falsefalsetrue7), false)) : (false))) {
  58.                 // line 8
  59.                 echo "\t\t";
  60.                 $context['_parent'] = $context;
  61.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_prepend", [], "any"falsefalsetrue8));
  62.                 foreach ($context['_seq'] as $context["idx"] => $context["brickConfig"]) {
  63.                     // line 9
  64.                     echo "\t\t\t";
  65.                     echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area", (($this->sandbox->ensureToStringAllowed($context["colName"], 9$this->source) . "-p-") . $this->sandbox->ensureToStringAllowed($context["idx"], 9$this->source)), $this->sandbox->ensureToStringAllowed($context["brickConfig"], 9$this->source));
  66.                     echo "
  67. \t\t";
  68.                 }
  69.                 $_parent $context['_parent'];
  70.                 unset($context['_seq'], $context['_iterated'], $context['idx'], $context['brickConfig'], $context['_parent'], $context['loop']);
  71.                 $context array_intersect_key($context$_parent) + $_parent;
  72.                 // line 11
  73.                 echo "\t";
  74.             }
  75.             // line 12
  76.             echo "\t";
  77.             if ( !((twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_disable_selection", [], "any"truetruetrue12)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_disable_selection", [], "any"falsefalsetrue12), false)) : (false))) {
  78.                 // line 13
  79.                 echo "\t\t";
  80.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock"$this->sandbox->ensureToStringAllowed($context["colName"], 13$this->source), ["allowed" => $this->extensions['FoxHabbit\BasisBundle\Twig\Extension\ToolExtension']->toolAreabricksGetList(((twig_get_attribute($this->env$this->source,                 // line 14
  81. $context["colConfig"], "areabricks_regex", [], "any"truetruetrue14)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_regex", [], "any"falsefalsetrue14), 14$this->source), "/-content-/")) : ("/-content-/")), ((twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_include", [], "any"truetruetrue14)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_include", [], "any"falsefalsetrue14), 14$this->source), null)) : (null)), ((twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_exclude", [], "any"truetruetrue14)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_exclude", [], "any"falsefalsetrue14), 14$this->source), null)) : (null))), "params" => ((twig_get_attribute($this->env$this->source,                 // line 15
  82. $context["colConfig"], "params", [], "any"truetruetrue15)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["colConfig"], "params", [], "any"falsefalsetrue15), 15$this->source), [])) : ([]))]);
  83.                 // line 16
  84.                 echo "
  85. \t";
  86.             }
  87.             // line 18
  88.             echo "\t";
  89.             echo twig_call_macro($macros["wrap_macro"], "macro_wrapperClose", [(isset($context["colWrapper"]) || array_key_exists("colWrapper"$context) ? $context["colWrapper"] : (function () { throw new RuntimeError('Variable "colWrapper" does not exist.'18$this->source); })()), $context], 18$context$this->getSourceContext());
  90.             echo "
  91. ";
  92.         }
  93.         $_parent $context['_parent'];
  94.         unset($context['_seq'], $context['_iterated'], $context['colName'], $context['colConfig'], $context['_parent'], $context['loop']);
  95.         $context array_intersect_key($context$_parent) + $_parent;
  96.         // line 20
  97.         echo twig_call_macro($macros["wrap_macro"], "macro_wrapperClose", [((twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "cols_wrapper", [], "any"truetruetrue20)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "cols_wrapper", [], "any"falsefalsetrue20), 20$this->source), null)) : (null))], 20$context$this->getSourceContext());
  98.         echo "
  99. ";
  100.         // line 21
  101.         echo twig_call_macro($macros["wrap_macro"], "macro_wrapperOpen", [((twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "cols_append_wrapper", [], "any"truetruetrue21)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "cols_append_wrapper", [], "any"falsefalsetrue21), 21$this->source), null)) : (null)), $context], 21$context$this->getSourceContext());
  102.         echo "
  103. ";
  104.         // line 22
  105.         $context['_parent'] = $context;
  106.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["config"]) || array_key_exists("config"$context) ? $context["config"] : (function () { throw new RuntimeError('Variable "config" does not exist.'22$this->source); })()), "cols_append", [], "any"falsefalsetrue22));
  107.         foreach ($context['_seq'] as $context["colName"] => $context["colConfig"]) {
  108.             // line 23
  109.             echo "\t";
  110.             $context["colWrapper"] = ((twig_get_attribute($this->env$this->source$context["colConfig"], "wrapper", [], "any"truetruetrue23)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["colConfig"], "wrapper", [], "any"falsefalsetrue23), 23$this->source), null)) : (null));
  111.             // line 24
  112.             echo "\t";
  113.             echo twig_call_macro($macros["wrap_macro"], "macro_wrapperOpen", [(isset($context["colWrapper"]) || array_key_exists("colWrapper"$context) ? $context["colWrapper"] : (function () { throw new RuntimeError('Variable "colWrapper" does not exist.'24$this->source); })()), $context], 24$context$this->getSourceContext());
  114.             echo "
  115. \t";
  116.             // line 25
  117.             if (((twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_prepend", [], "any"truetruetrue25)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_prepend", [], "any"falsefalsetrue25), false)) : (false))) {
  118.                 // line 26
  119.                 echo "\t\t";
  120.                 $context['_parent'] = $context;
  121.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_prepend", [], "any"falsefalsetrue26));
  122.                 foreach ($context['_seq'] as $context["idx"] => $context["brickConfig"]) {
  123.                     // line 27
  124.                     echo "\t\t\t";
  125.                     echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"area", (($this->sandbox->ensureToStringAllowed($context["colName"], 27$this->source) . "-p-") . $this->sandbox->ensureToStringAllowed($context["idx"], 27$this->source)), $this->sandbox->ensureToStringAllowed($context["brickConfig"], 27$this->source));
  126.                     echo "
  127. \t\t";
  128.                 }
  129.                 $_parent $context['_parent'];
  130.                 unset($context['_seq'], $context['_iterated'], $context['idx'], $context['brickConfig'], $context['_parent'], $context['loop']);
  131.                 $context array_intersect_key($context$_parent) + $_parent;
  132.                 // line 29
  133.                 echo "\t";
  134.             }
  135.             // line 30
  136.             echo "\t";
  137.             if ( !((twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_disable_selection", [], "any"truetruetrue30)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_disable_selection", [], "any"falsefalsetrue30), false)) : (false))) {
  138.                 // line 31
  139.                 echo "\t\t";
  140.                 echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock"$this->sandbox->ensureToStringAllowed($context["colName"], 31$this->source), ["allowed" => $this->extensions['FoxHabbit\BasisBundle\Twig\Extension\ToolExtension']->toolAreabricksGetList(((twig_get_attribute($this->env$this->source,                 // line 32
  141. $context["colConfig"], "areabricks_regex", [], "any"truetruetrue32)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_regex", [], "any"falsefalsetrue32), 32$this->source), "/-content-/")) : ("/-content-/")), ((twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_include", [], "any"truetruetrue32)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_include", [], "any"falsefalsetrue32), 32$this->source), null)) : (null)), ((twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_exclude", [], "any"truetruetrue32)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["colConfig"], "areabricks_exclude", [], "any"falsefalsetrue32), 32$this->source), null)) : (null))), "params" => ((twig_get_attribute($this->env$this->source,                 // line 33
  142. $context["colConfig"], "params", [], "any"truetruetrue33)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["colConfig"], "params", [], "any"falsefalsetrue33), 33$this->source), [])) : ([]))]);
  143.                 // line 34
  144.                 echo "
  145. \t";
  146.             }
  147.             // line 36
  148.             echo "\t";
  149.             echo twig_call_macro($macros["wrap_macro"], "macro_wrapperClose", [(isset($context["colWrapper"]) || array_key_exists("colWrapper"$context) ? $context["colWrapper"] : (function () { throw new RuntimeError('Variable "colWrapper" does not exist.'36$this->source); })()), $context], 36$context$this->getSourceContext());
  150.             echo "
  151. ";
  152.         }
  153.         $_parent $context['_parent'];
  154.         unset($context['_seq'], $context['_iterated'], $context['colName'], $context['colConfig'], $context['_parent'], $context['loop']);
  155.         $context array_intersect_key($context$_parent) + $_parent;
  156.         // line 38
  157.         echo twig_call_macro($macros["wrap_macro"], "macro_wrapperClose", [((twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "cols_append_wrapper", [], "any"truetruetrue38)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source, ($context["config"] ?? null), "cols_append_wrapper", [], "any"falsefalsetrue38), 38$this->source), null)) : (null))], 38$context$this->getSourceContext());
  158.         echo "
  159. ";
  160.         
  161.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  162.         
  163.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  164.     }
  165.     public function getTemplateName()
  166.     {
  167.         return "@FoxHabbitBasis/Areas/basisbundle-header/variant-area-content.html.twig";
  168.     }
  169.     public function isTraitable()
  170.     {
  171.         return false;
  172.     }
  173.     public function getDebugInfo()
  174.     {
  175.         return array (  166 => 38,  157 => 36,  153 => 34,  151 => 33,  150 => 32,  148 => 31,  145 => 30,  142 => 29,  133 => 27,  128 => 26,  126 => 25,  121 => 24,  118 => 23,  114 => 22,  110 => 21,  106 => 20,  97 => 18,  93 => 16,  91 => 15,  90 => 14,  88 => 13,  85 => 12,  82 => 11,  73 => 9,  68 => 8,  66 => 7,  61 => 6,  58 => 5,  54 => 4,  50 => 3,  47 => 2,  45 => 1,);
  176.     }
  177.     public function getSourceContext()
  178.     {
  179.         return new Source("{% import '@FoxHabbitBasis/Macro/wrap.html.twig' as wrap_macro %}
  180. {{ wrap_macro.wrapperOpen( config.cols_wrapper|default(null), _context) }}
  181. {% for colName,colConfig in config.cols %}
  182. \t{% set colWrapper = colConfig.wrapper|default(null) %}
  183. \t{{ wrap_macro.wrapperOpen( colWrapper, _context) }}
  184. \t{% if colConfig.areabricks_prepend|default(false)  %}
  185. \t\t{% for idx,brickConfig in colConfig.areabricks_prepend %}
  186. \t\t\t{{ pimcore_area( colName ~ '-p-' ~ idx, brickConfig) }}
  187. \t\t{% endfor %}
  188. \t{% endif %}
  189. \t{% if not colConfig.areabricks_disable_selection|default(false) %}
  190. \t\t{{pimcore_areablock(colName, {
  191. \t\t\t\tallowed: foxhabbit_common_tool_areabricks_get_list( colConfig.areabricks_regex|default('/-content-/'), colConfig.areabricks_include|default(null), colConfig.areabricks_exclude|default(null)),
  192. \t\t\t\tparams: colConfig.params|default({})}
  193. \t\t) }}
  194. \t{% endif %}
  195. \t{{ wrap_macro.wrapperClose( colWrapper, _context) }}
  196. {% endfor %}
  197. {{ wrap_macro.wrapperClose( config.cols_wrapper|default(null)) }}
  198. {{ wrap_macro.wrapperOpen( config.cols_append_wrapper|default(null), _context) }}
  199. {% for colName,colConfig in config.cols_append %}
  200. \t{% set colWrapper = colConfig.wrapper|default(null) %}
  201. \t{{ wrap_macro.wrapperOpen( colWrapper, _context) }}
  202. \t{% if colConfig.areabricks_prepend|default(false)  %}
  203. \t\t{% for idx,brickConfig in colConfig.areabricks_prepend %}
  204. \t\t\t{{ pimcore_area( colName ~ '-p-' ~ idx, brickConfig) }}
  205. \t\t{% endfor %}
  206. \t{% endif %}
  207. \t{% if not colConfig.areabricks_disable_selection|default(false) %}
  208. \t\t{{pimcore_areablock(colName, {
  209. \t\t\t\tallowed: foxhabbit_common_tool_areabricks_get_list( colConfig.areabricks_regex|default('/-content-/'), colConfig.areabricks_include|default(null), colConfig.areabricks_exclude|default(null)),
  210. \t\t\t\tparams: colConfig.params|default({})}
  211. \t\t) }}
  212. \t{% endif %}
  213. \t{{ wrap_macro.wrapperClose( colWrapper, _context) }}
  214. {% endfor %}
  215. {{ wrap_macro.wrapperClose( config.cols_append_wrapper|default(null)) }}
  216. ""@FoxHabbitBasis/Areas/basisbundle-header/variant-area-content.html.twig""/srv/httpd/vhosts/lorch-test/releases/51/bundles/FoxHabbit/BasisBundle/Resources/views/Areas/basisbundle-header/variant-area-content.html.twig");
  217.     }
  218.     
  219.     public function checkSecurity()
  220.     {
  221.         static $tags = array("import" => 1"for" => 4"set" => 5"if" => 7);
  222.         static $filters = array("default" => 3);
  223.         static $functions = array("pimcore_area" => 9"pimcore_areablock" => 13"foxhabbit_common_tool_areabricks_get_list" => 14);
  224.         try {
  225.             $this->sandbox->checkSecurity(
  226.                 ['import''for''set''if'],
  227.                 ['default'],
  228.                 ['pimcore_area''pimcore_areablock''foxhabbit_common_tool_areabricks_get_list']
  229.             );
  230.         } catch (SecurityError $e) {
  231.             $e->setSourceContext($this->source);
  232.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  233.                 $e->setTemplateLine($tags[$e->getTagName()]);
  234.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  235.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  236.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  237.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  238.             }
  239.             throw $e;
  240.         }
  241.     }
  242. }