<?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;
/* @FoxHabbitBasis/Areas/basisbundle-header/variant-area-content.html.twig */
class __TwigTemplate_2e7b381689367d7c9e04765ecb495ecd 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", "@FoxHabbitBasis/Areas/basisbundle-header/variant-area-content.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FoxHabbitBasis/Areas/basisbundle-header/variant-area-content.html.twig"));
// line 1
$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();
// line 2
echo "
";
// line 3
echo twig_call_macro($macros["wrap_macro"], "macro_wrapperOpen", [((twig_get_attribute($this->env, $this->source, ($context["config"] ?? null), "cols_wrapper", [], "any", true, true, true, 3)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["config"] ?? null), "cols_wrapper", [], "any", false, false, true, 3), 3, $this->source), null)) : (null)), $context], 3, $context, $this->getSourceContext());
echo "
";
// line 4
$context['_parent'] = $context;
$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", false, false, true, 4));
foreach ($context['_seq'] as $context["colName"] => $context["colConfig"]) {
// line 5
echo "\t";
$context["colWrapper"] = ((twig_get_attribute($this->env, $this->source, $context["colConfig"], "wrapper", [], "any", true, true, true, 5)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["colConfig"], "wrapper", [], "any", false, false, true, 5), 5, $this->source), null)) : (null));
// line 6
echo "\t";
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());
echo "
\t";
// line 7
if (((twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_prepend", [], "any", true, true, true, 7)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_prepend", [], "any", false, false, true, 7), false)) : (false))) {
// line 8
echo "\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_prepend", [], "any", false, false, true, 8));
foreach ($context['_seq'] as $context["idx"] => $context["brickConfig"]) {
// line 9
echo "\t\t\t";
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));
echo "
\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['idx'], $context['brickConfig'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 11
echo "\t";
}
// line 12
echo "\t";
if ( !((twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_disable_selection", [], "any", true, true, true, 12)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_disable_selection", [], "any", false, false, true, 12), false)) : (false))) {
// line 13
echo "\t\t";
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
$context["colConfig"], "areabricks_regex", [], "any", true, true, true, 14)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_regex", [], "any", false, false, true, 14), 14, $this->source), "/-content-/")) : ("/-content-/")), ((twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_include", [], "any", true, true, true, 14)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_include", [], "any", false, false, true, 14), 14, $this->source), null)) : (null)), ((twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_exclude", [], "any", true, true, true, 14)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_exclude", [], "any", false, false, true, 14), 14, $this->source), null)) : (null))), "params" => ((twig_get_attribute($this->env, $this->source, // line 15
$context["colConfig"], "params", [], "any", true, true, true, 15)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["colConfig"], "params", [], "any", false, false, true, 15), 15, $this->source), [])) : ([]))]);
// line 16
echo "
\t";
}
// line 18
echo "\t";
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());
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['colName'], $context['colConfig'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 20
echo twig_call_macro($macros["wrap_macro"], "macro_wrapperClose", [((twig_get_attribute($this->env, $this->source, ($context["config"] ?? null), "cols_wrapper", [], "any", true, true, true, 20)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["config"] ?? null), "cols_wrapper", [], "any", false, false, true, 20), 20, $this->source), null)) : (null))], 20, $context, $this->getSourceContext());
echo "
";
// line 21
echo twig_call_macro($macros["wrap_macro"], "macro_wrapperOpen", [((twig_get_attribute($this->env, $this->source, ($context["config"] ?? null), "cols_append_wrapper", [], "any", true, true, true, 21)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["config"] ?? null), "cols_append_wrapper", [], "any", false, false, true, 21), 21, $this->source), null)) : (null)), $context], 21, $context, $this->getSourceContext());
echo "
";
// line 22
$context['_parent'] = $context;
$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", false, false, true, 22));
foreach ($context['_seq'] as $context["colName"] => $context["colConfig"]) {
// line 23
echo "\t";
$context["colWrapper"] = ((twig_get_attribute($this->env, $this->source, $context["colConfig"], "wrapper", [], "any", true, true, true, 23)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["colConfig"], "wrapper", [], "any", false, false, true, 23), 23, $this->source), null)) : (null));
// line 24
echo "\t";
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());
echo "
\t";
// line 25
if (((twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_prepend", [], "any", true, true, true, 25)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_prepend", [], "any", false, false, true, 25), false)) : (false))) {
// line 26
echo "\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_prepend", [], "any", false, false, true, 26));
foreach ($context['_seq'] as $context["idx"] => $context["brickConfig"]) {
// line 27
echo "\t\t\t";
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));
echo "
\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['idx'], $context['brickConfig'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 29
echo "\t";
}
// line 30
echo "\t";
if ( !((twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_disable_selection", [], "any", true, true, true, 30)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_disable_selection", [], "any", false, false, true, 30), false)) : (false))) {
// line 31
echo "\t\t";
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
$context["colConfig"], "areabricks_regex", [], "any", true, true, true, 32)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_regex", [], "any", false, false, true, 32), 32, $this->source), "/-content-/")) : ("/-content-/")), ((twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_include", [], "any", true, true, true, 32)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_include", [], "any", false, false, true, 32), 32, $this->source), null)) : (null)), ((twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_exclude", [], "any", true, true, true, 32)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["colConfig"], "areabricks_exclude", [], "any", false, false, true, 32), 32, $this->source), null)) : (null))), "params" => ((twig_get_attribute($this->env, $this->source, // line 33
$context["colConfig"], "params", [], "any", true, true, true, 33)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["colConfig"], "params", [], "any", false, false, true, 33), 33, $this->source), [])) : ([]))]);
// line 34
echo "
\t";
}
// line 36
echo "\t";
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());
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['colName'], $context['colConfig'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 38
echo twig_call_macro($macros["wrap_macro"], "macro_wrapperClose", [((twig_get_attribute($this->env, $this->source, ($context["config"] ?? null), "cols_append_wrapper", [], "any", true, true, true, 38)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, ($context["config"] ?? null), "cols_append_wrapper", [], "any", false, false, true, 38), 38, $this->source), null)) : (null))], 38, $context, $this->getSourceContext());
echo "
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@FoxHabbitBasis/Areas/basisbundle-header/variant-area-content.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% import '@FoxHabbitBasis/Macro/wrap.html.twig' as wrap_macro %}
{{ wrap_macro.wrapperOpen( config.cols_wrapper|default(null), _context) }}
{% for colName,colConfig in config.cols %}
\t{% set colWrapper = colConfig.wrapper|default(null) %}
\t{{ wrap_macro.wrapperOpen( colWrapper, _context) }}
\t{% if colConfig.areabricks_prepend|default(false) %}
\t\t{% for idx,brickConfig in colConfig.areabricks_prepend %}
\t\t\t{{ pimcore_area( colName ~ '-p-' ~ idx, brickConfig) }}
\t\t{% endfor %}
\t{% endif %}
\t{% if not colConfig.areabricks_disable_selection|default(false) %}
\t\t{{pimcore_areablock(colName, {
\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)),
\t\t\t\tparams: colConfig.params|default({})}
\t\t) }}
\t{% endif %}
\t{{ wrap_macro.wrapperClose( colWrapper, _context) }}
{% endfor %}
{{ wrap_macro.wrapperClose( config.cols_wrapper|default(null)) }}
{{ wrap_macro.wrapperOpen( config.cols_append_wrapper|default(null), _context) }}
{% for colName,colConfig in config.cols_append %}
\t{% set colWrapper = colConfig.wrapper|default(null) %}
\t{{ wrap_macro.wrapperOpen( colWrapper, _context) }}
\t{% if colConfig.areabricks_prepend|default(false) %}
\t\t{% for idx,brickConfig in colConfig.areabricks_prepend %}
\t\t\t{{ pimcore_area( colName ~ '-p-' ~ idx, brickConfig) }}
\t\t{% endfor %}
\t{% endif %}
\t{% if not colConfig.areabricks_disable_selection|default(false) %}
\t\t{{pimcore_areablock(colName, {
\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)),
\t\t\t\tparams: colConfig.params|default({})}
\t\t) }}
\t{% endif %}
\t{{ wrap_macro.wrapperClose( colWrapper, _context) }}
{% endfor %}
{{ wrap_macro.wrapperClose( config.cols_append_wrapper|default(null)) }}
", "@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");
}
public function checkSecurity()
{
static $tags = array("import" => 1, "for" => 4, "set" => 5, "if" => 7);
static $filters = array("default" => 3);
static $functions = array("pimcore_area" => 9, "pimcore_areablock" => 13, "foxhabbit_common_tool_areabricks_get_list" => 14);
try {
$this->sandbox->checkSecurity(
['import', 'for', 'set', 'if'],
['default'],
['pimcore_area', 'pimcore_areablock', 'foxhabbit_common_tool_areabricks_get_list']
);
} 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;
}
}
}