<?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/parts/basisbundle-part-cols/variant-element-col.html.twig */
class __TwigTemplate_234ec7349eb2c6e509447c6478a967db 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/parts/basisbundle-part-cols/variant-element-col.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/parts/basisbundle-part-cols/variant-element-col.html.twig"));
// line 1
$macros["wrap_macro"] = $this->macros["wrap_macro"] = $this->loadTemplate("@FoxHabbitBasis/Macro/wrap.html.twig", "@FoxHabbitBasis/Areas/parts/basisbundle-part-cols/variant-element-col.html.twig", 1)->unwrap();
// line 2
echo "
";
// line 3
$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.', 3, $this->source); })()), "cols", [], "any", false, false, true, 3));
foreach ($context['_seq'] as $context["colName"] => $context["colDef"]) {
// line 4
echo " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 4, $this->source); })())) {
// line 5
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", $this->sandbox->ensureToStringAllowed($context["colName"], 5, $this->source), ["type" => "basisbundle-element-col", "class" => ((twig_get_attribute($this->env, $this->source, // line 7
$context["colDef"], "class", [], "any", true, true, true, 7)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["colDef"], "class", [], "any", false, false, true, 7), 7, $this->source), "xxx")) : ("xxx")), "params" => ["params" => ((twig_get_attribute($this->env, $this->source, // line 9
$context["colDef"], "params", [], "any", true, true, true, 9)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["colDef"], "params", [], "any", false, false, true, 9), 9, $this->source), [])) : ([]))]]);
// line 11
echo "
";
} else {
// line 13
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "area", $this->sandbox->ensureToStringAllowed($context["colName"], 13, $this->source), ["type" => "basisbundle-element-col", "params" => ["basisbundle-element-col" => ["class" => ((twig_get_attribute($this->env, $this->source, // line 16
$context["colDef"], "class", [], "any", true, true, true, 16)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["colDef"], "class", [], "any", false, false, true, 16), 16, $this->source), "xxx")) : ("xxx")), "xxx" => "yyy", "params" => ((twig_get_attribute($this->env, $this->source, $context["colDef"], "params", [], "any", true, true, true, 16)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["colDef"], "params", [], "any", false, false, true, 16), 16, $this->source), [])) : ([]))]]]);
// line 19
echo "
";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['colName'], $context['colDef'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 22
echo "
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@FoxHabbitBasis/Areas/parts/basisbundle-part-cols/variant-element-col.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 78 => 22, 70 => 19, 68 => 16, 66 => 13, 62 => 11, 60 => 9, 59 => 7, 57 => 5, 54 => 4, 50 => 3, 47 => 2, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% import '@FoxHabbitBasis/Macro/wrap.html.twig' as wrap_macro %}
{% for colName,colDef in config.cols %}
{% if editmode %}
{{pimcore_area(colName, {
type: 'basisbundle-element-col',
class: colDef.class|default('xxx'),
params: {
params: colDef.params|default({})
}
}) }}
{% else %}
{{pimcore_area(colName, {
type: 'basisbundle-element-col',
params: {
\"basisbundle-element-col\": {class: colDef.class|default('xxx'), xxx:'yyy',params: colDef.params|default({})}
}
}) }}
{% endif %}
{% endfor %}
", "@FoxHabbitBasis/Areas/parts/basisbundle-part-cols/variant-element-col.html.twig", "/srv/httpd/vhosts/lorch-test/releases/51/bundles/FoxHabbit/BasisBundle/Resources/views/Areas/parts/basisbundle-part-cols/variant-element-col.html.twig");
}
public function checkSecurity()
{
static $tags = array("import" => 1, "for" => 3, "if" => 4);
static $filters = array("default" => 7);
static $functions = array("pimcore_area" => 5);
try {
$this->sandbox->checkSecurity(
['import', 'for', 'if'],
['default'],
['pimcore_area']
);
} 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;
}
}
}