var/cache/dev/twig/57/57c78eb1bc199eb302953d118c95ec2a.php line 67

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/parts/basisbundle-part-cols/variant-element-col.html.twig */
  14. class __TwigTemplate_234ec7349eb2c6e509447c6478a967db 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/parts/basisbundle-part-cols/variant-element-col.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/parts/basisbundle-part-cols/variant-element-col.html.twig"));
  35.         // line 1
  36.         $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();
  37.         // line 2
  38.         echo "
  39. ";
  40.         // line 3
  41.         $context['_parent'] = $context;
  42.         $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"falsefalsetrue3));
  43.         foreach ($context['_seq'] as $context["colName"] => $context["colDef"]) {
  44.             // line 4
  45.             echo "    ";
  46.             if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'4$this->source); })())) {
  47.                 // line 5
  48.                 echo "        ";
  49.                 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
  50. $context["colDef"], "class", [], "any"truetruetrue7)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["colDef"], "class", [], "any"falsefalsetrue7), 7$this->source), "xxx")) : ("xxx")), "params" => ["params" => ((twig_get_attribute($this->env$this->source,                 // line 9
  51. $context["colDef"], "params", [], "any"truetruetrue9)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["colDef"], "params", [], "any"falsefalsetrue9), 9$this->source), [])) : ([]))]]);
  52.                 // line 11
  53.                 echo "
  54.     ";
  55.             } else {
  56.                 // line 13
  57.                 echo "        ";
  58.                 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
  59. $context["colDef"], "class", [], "any"truetruetrue16)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["colDef"], "class", [], "any"falsefalsetrue16), 16$this->source), "xxx")) : ("xxx")), "xxx" => "yyy""params" => ((twig_get_attribute($this->env$this->source$context["colDef"], "params", [], "any"truetruetrue16)) ? (_twig_default_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["colDef"], "params", [], "any"falsefalsetrue16), 16$this->source), [])) : ([]))]]]);
  60.                 // line 19
  61.                 echo "
  62.     ";
  63.             }
  64.         }
  65.         $_parent $context['_parent'];
  66.         unset($context['_seq'], $context['_iterated'], $context['colName'], $context['colDef'], $context['_parent'], $context['loop']);
  67.         $context array_intersect_key($context$_parent) + $_parent;
  68.         // line 22
  69.         echo "
  70. ";
  71.         
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  73.         
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  75.     }
  76.     public function getTemplateName()
  77.     {
  78.         return "@FoxHabbitBasis/Areas/parts/basisbundle-part-cols/variant-element-col.html.twig";
  79.     }
  80.     public function isTraitable()
  81.     {
  82.         return false;
  83.     }
  84.     public function getDebugInfo()
  85.     {
  86.         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,);
  87.     }
  88.     public function getSourceContext()
  89.     {
  90.         return new Source("{% import '@FoxHabbitBasis/Macro/wrap.html.twig' as wrap_macro %}
  91. {% for colName,colDef in config.cols %}
  92.     {% if editmode %}
  93.         {{pimcore_area(colName, {
  94.                 type: 'basisbundle-element-col',
  95.                 class: colDef.class|default('xxx'),
  96.                 params: {
  97.                     params: colDef.params|default({})
  98.                 }
  99.         }) }}
  100.     {% else %}
  101.         {{pimcore_area(colName, {
  102.                 type: 'basisbundle-element-col',
  103.                 params: {
  104.                     \"basisbundle-element-col\": {class: colDef.class|default('xxx'), xxx:'yyy',params: colDef.params|default({})}
  105.                     
  106.                 }
  107.         }) }}
  108.     {% endif %}
  109. {% endfor %}
  110. ""@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");
  111.     }
  112.     
  113.     public function checkSecurity()
  114.     {
  115.         static $tags = array("import" => 1"for" => 3"if" => 4);
  116.         static $filters = array("default" => 7);
  117.         static $functions = array("pimcore_area" => 5);
  118.         try {
  119.             $this->sandbox->checkSecurity(
  120.                 ['import''for''if'],
  121.                 ['default'],
  122.                 ['pimcore_area']
  123.             );
  124.         } catch (SecurityError $e) {
  125.             $e->setSourceContext($this->source);
  126.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  127.                 $e->setTemplateLine($tags[$e->getTagName()]);
  128.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  129.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  130.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  131.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  132.             }
  133.             throw $e;
  134.         }
  135.     }
  136. }