var/cache/dev/twig/d2/d2e50945a4c38adaad9bdc40d7029c10.php line 189

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. /* @AleaAreabricks/areas/section/view.html.twig */
  14. class __TwigTemplate_e698bfc1e5fc4cbbfb768af0c05d8085 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""@AleaAreabricks/areas/section/view.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""@AleaAreabricks/areas/section/view.html.twig"));
  35.         // line 1
  36.         $context["fullscreen"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""fullscreen");
  37.         // line 2
  38.         $context["ptd"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""ptd"), "getData", [], "method"falsefalsetrue2);
  39.         // line 3
  40.         $context["ptm"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""ptm"), "getData", [], "method"falsefalsetrue3);
  41.         // line 4
  42.         $context["pbd"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""pbd"), "getData", [], "method"falsefalsetrue4);
  43.         // line 5
  44.         $context["pbm"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""pbm"), "getData", [], "method"falsefalsetrue5);
  45.         // line 6
  46.         $context["mtd"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""mtd"), "getData", [], "method"falsefalsetrue6);
  47.         // line 7
  48.         $context["mtm"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""mtm"), "getData", [], "method"falsefalsetrue7);
  49.         // line 8
  50.         $context["mbd"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""mbd"), "getData", [], "method"falsefalsetrue8);
  51.         // line 9
  52.         $context["mbm"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""mbm"), "getData", [], "method"falsefalsetrue9);
  53.         // line 10
  54.         $context["bgColor"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""bgColor"), "getData", [], "method"falsefalsetrue10);
  55.         // line 11
  56.         $context["borderTop"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""borderTop"), "getData", [], "method"falsefalsetrue11);
  57.         // line 12
  58.         $context["borderBottom"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""borderBottom"), "getData", [], "method"falsefalsetrue12);
  59.         // line 13
  60.         $context["borderColor"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""borderColor"), "getData", [], "method"falsefalsetrue13);
  61.         // line 14
  62.         $context["section"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""section", ["manual" => true]);
  63.         // line 15
  64.         $context["decoration"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"checkbox""decoration");
  65.         // line 19
  66.         $context["sectionId"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""sectionId");
  67.         // line 20
  68.         echo "
  69. ";
  70.         // line 21
  71.         twig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'21$this->source); })()), "start", [], "method"falsefalsetrue21);
  72.         // line 22
  73.         echo "
  74.     <section class=\"";
  75.         // line 23
  76.         if ( !twig_get_attribute($this->env$this->source, (isset($context["fullscreen"]) || array_key_exists("fullscreen"$context) ? $context["fullscreen"] : (function () { throw new RuntimeError('Variable "fullscreen" does not exist.'23$this->source); })()), "isChecked", [], "method"falsefalsetrue23)) {
  77.             echo " mx-10 mx-md-40 mx-lg-70 ";
  78.         }
  79.         // line 24
  80.         echo "        ";
  81.         if ((isset($context["ptm"]) || array_key_exists("ptm"$context) ? $context["ptm"] : (function () { throw new RuntimeError('Variable "ptm" does not exist.'24$this->source); })())) {
  82.             echo " pt-";
  83.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["ptm"]) || array_key_exists("ptm"$context) ? $context["ptm"] : (function () { throw new RuntimeError('Variable "ptm" does not exist.'24$this->source); })()), 24$this->source), "html"nulltrue);
  84.             echo " ";
  85.         }
  86.         // line 25
  87.         echo "        ";
  88.         if ((isset($context["ptd"]) || array_key_exists("ptd"$context) ? $context["ptd"] : (function () { throw new RuntimeError('Variable "ptd" does not exist.'25$this->source); })())) {
  89.             echo " pt-";
  90.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["ptd"]) || array_key_exists("ptd"$context) ? $context["ptd"] : (function () { throw new RuntimeError('Variable "ptd" does not exist.'25$this->source); })()), 25$this->source), "html"nulltrue);
  91.             echo " ";
  92.         }
  93.         // line 26
  94.         echo "        ";
  95.         if ((isset($context["pbm"]) || array_key_exists("pbm"$context) ? $context["pbm"] : (function () { throw new RuntimeError('Variable "pbm" does not exist.'26$this->source); })())) {
  96.             echo " pb-";
  97.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["pbm"]) || array_key_exists("pbm"$context) ? $context["pbm"] : (function () { throw new RuntimeError('Variable "pbm" does not exist.'26$this->source); })()), 26$this->source), "html"nulltrue);
  98.             echo " ";
  99.         }
  100.         // line 27
  101.         echo "        ";
  102.         if ((isset($context["pbd"]) || array_key_exists("pbd"$context) ? $context["pbd"] : (function () { throw new RuntimeError('Variable "pbd" does not exist.'27$this->source); })())) {
  103.             echo " pb-";
  104.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["pbd"]) || array_key_exists("pbd"$context) ? $context["pbd"] : (function () { throw new RuntimeError('Variable "pbd" does not exist.'27$this->source); })()), 27$this->source), "html"nulltrue);
  105.             echo " ";
  106.         }
  107.         // line 28
  108.         echo "        ";
  109.         if ((isset($context["mtm"]) || array_key_exists("mtm"$context) ? $context["mtm"] : (function () { throw new RuntimeError('Variable "mtm" does not exist.'28$this->source); })())) {
  110.             echo " mt-";
  111.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["mtm"]) || array_key_exists("mtm"$context) ? $context["mtm"] : (function () { throw new RuntimeError('Variable "mtm" does not exist.'28$this->source); })()), 28$this->source), "html"nulltrue);
  112.             echo " ";
  113.         }
  114.         // line 29
  115.         echo "        ";
  116.         if ((isset($context["mtd"]) || array_key_exists("mtd"$context) ? $context["mtd"] : (function () { throw new RuntimeError('Variable "mtd" does not exist.'29$this->source); })())) {
  117.             echo " mt-";
  118.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["mtd"]) || array_key_exists("mtd"$context) ? $context["mtd"] : (function () { throw new RuntimeError('Variable "mtd" does not exist.'29$this->source); })()), 29$this->source), "html"nulltrue);
  119.             echo " ";
  120.         }
  121.         // line 30
  122.         echo "        ";
  123.         if ((isset($context["mbm"]) || array_key_exists("mbm"$context) ? $context["mbm"] : (function () { throw new RuntimeError('Variable "mbm" does not exist.'30$this->source); })())) {
  124.             echo " mb-";
  125.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["mbm"]) || array_key_exists("mbm"$context) ? $context["mbm"] : (function () { throw new RuntimeError('Variable "mbm" does not exist.'30$this->source); })()), 30$this->source), "html"nulltrue);
  126.             echo " ";
  127.         }
  128.         // line 31
  129.         echo "        ";
  130.         if ((isset($context["mbd"]) || array_key_exists("mbd"$context) ? $context["mbd"] : (function () { throw new RuntimeError('Variable "mbd" does not exist.'31$this->source); })())) {
  131.             echo " mb-";
  132.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["mbd"]) || array_key_exists("mbd"$context) ? $context["mbd"] : (function () { throw new RuntimeError('Variable "mbd" does not exist.'31$this->source); })()), 31$this->source), "html"nulltrue);
  133.             echo " ";
  134.         }
  135.         // line 32
  136.         echo "        ";
  137.         if ((isset($context["bgColor"]) || array_key_exists("bgColor"$context) ? $context["bgColor"] : (function () { throw new RuntimeError('Variable "bgColor" does not exist.'32$this->source); })())) {
  138.             echo " bg-";
  139.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["bgColor"]) || array_key_exists("bgColor"$context) ? $context["bgColor"] : (function () { throw new RuntimeError('Variable "bgColor" does not exist.'32$this->source); })()), 32$this->source), "html"nulltrue);
  140.             echo " ";
  141.         }
  142.         // line 33
  143.         echo "        ";
  144.         if ((isset($context["borderTop"]) || array_key_exists("borderTop"$context) ? $context["borderTop"] : (function () { throw new RuntimeError('Variable "borderTop" does not exist.'33$this->source); })())) {
  145.             echo " border-top ";
  146.         }
  147.         // line 34
  148.         echo "        ";
  149.         if ((isset($context["borderBottom"]) || array_key_exists("borderBottom"$context) ? $context["borderBottom"] : (function () { throw new RuntimeError('Variable "borderBottom" does not exist.'34$this->source); })())) {
  150.             echo " border-bottom ";
  151.         }
  152.         // line 35
  153.         echo "        ";
  154.         if ((isset($context["borderColor"]) || array_key_exists("borderColor"$context) ? $context["borderColor"] : (function () { throw new RuntimeError('Variable "borderColor" does not exist.'35$this->source); })())) {
  155.             echo " border-";
  156.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["borderColor"]) || array_key_exists("borderColor"$context) ? $context["borderColor"] : (function () { throw new RuntimeError('Variable "borderColor" does not exist.'35$this->source); })()), 35$this->source), "html"nulltrue);
  157.             echo " ";
  158.         }
  159.         // line 36
  160.         echo "         id=\"";
  161.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["sectionId"]) || array_key_exists("sectionId"$context) ? $context["sectionId"] : (function () { throw new RuntimeError('Variable "sectionId" does not exist.'36$this->source); })()), 36$this->source), "html"nulltrue);
  162.         echo "\">
  163.             ";
  164.         // line 38
  165.         $context['_parent'] = $context;
  166.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'38$this->source); })()), "iterator", [], "any"falsefalsetrue38));
  167.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  168.             // line 39
  169.             echo "                ";
  170.             $context["info"] = twig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'39$this->source); })()), "buildInfoObject", [], "method"falsefalsetrue39);
  171.             // line 40
  172.             echo "                ";
  173.             twig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'40$this->source); })()), "blockConstruct", [], "method"falsefalsetrue40);
  174.             // line 41
  175.             echo "                    ";
  176.             $context["templateParams"] = twig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'41$this->source); })()), "blockStart", [=> (isset($context["info"]) || array_key_exists("info"$context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.'41$this->source); })())], "method"falsefalsetrue41);
  177.             // line 42
  178.             echo "                    ";
  179.             twig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'42$this->source); })()), "content", [=> (isset($context["info"]) || array_key_exists("info"$context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.'42$this->source); })()), => (isset($context["templateParams"]) || array_key_exists("templateParams"$context) ? $context["templateParams"] : (function () { throw new RuntimeError('Variable "templateParams" does not exist.'42$this->source); })())], "method"falsefalsetrue42);
  180.             // line 43
  181.             echo "
  182.                     ";
  183.             // line 44
  184.             twig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'44$this->source); })()), "blockEnd", [], "method"falsefalsetrue44);
  185.             // line 45
  186.             echo "                ";
  187.             twig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'45$this->source); })()), "blockDestruct", [], "method"falsefalsetrue45);
  188.             // line 46
  189.             echo "            ";
  190.         }
  191.         $_parent $context['_parent'];
  192.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  193.         $context array_intersect_key($context$_parent) + $_parent;
  194.         // line 47
  195.         echo "
  196.     </section>
  197. ";
  198.         // line 50
  199.         twig_get_attribute($this->env$this->source, (isset($context["section"]) || array_key_exists("section"$context) ? $context["section"] : (function () { throw new RuntimeError('Variable "section" does not exist.'50$this->source); })()), "end", [], "method"falsefalsetrue50);
  200.         
  201.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  202.         
  203.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  204.     }
  205.     public function getTemplateName()
  206.     {
  207.         return "@AleaAreabricks/areas/section/view.html.twig";
  208.     }
  209.     public function isTraitable()
  210.     {
  211.         return false;
  212.     }
  213.     public function getDebugInfo()
  214.     {
  215.         return array (  210 => 50,  205 => 47,  199 => 46,  196 => 45,  194 => 44,  191 => 43,  188 => 42,  185 => 41,  182 => 40,  179 => 39,  175 => 38,  169 => 36,  162 => 35,  157 => 34,  152 => 33,  145 => 32,  138 => 31,  131 => 30,  124 => 29,  117 => 28,  110 => 27,  103 => 26,  96 => 25,  89 => 24,  85 => 23,  82 => 22,  80 => 21,  77 => 20,  75 => 19,  73 => 15,  71 => 14,  69 => 13,  67 => 12,  65 => 11,  63 => 10,  61 => 9,  59 => 8,  57 => 7,  55 => 6,  53 => 5,  51 => 4,  49 => 3,  47 => 2,  45 => 1,);
  216.     }
  217.     public function getSourceContext()
  218.     {
  219.         return new Source("{% set fullscreen = pimcore_checkbox('fullscreen') %}
  220. {% set ptd = pimcore_select('ptd').getData() %}
  221. {% set ptm = pimcore_select('ptm').getData() %}
  222. {% set pbd = pimcore_select('pbd').getData() %}
  223. {% set pbm = pimcore_select('pbm').getData() %}
  224. {% set mtd = pimcore_select('mtd').getData() %}
  225. {% set mtm = pimcore_select('mtm').getData() %}
  226. {% set mbd = pimcore_select('mbd').getData() %}
  227. {% set mbm = pimcore_select('mbm').getData() %}
  228. {% set bgColor = pimcore_select('bgColor').getData() %}
  229. {% set borderTop = pimcore_checkbox('borderTop').getData() %}
  230. {% set borderBottom = pimcore_checkbox('borderBottom').getData() %}
  231. {% set borderColor = pimcore_select('borderColor').getData() %}
  232. {% set section = pimcore_areablock('section', {'manual': true}) %}
  233. {% set decoration = pimcore_checkbox('decoration') %}
  234. {# not used in this template
  235.     {% set container = pimcore_checkbox('container') %}
  236. #}
  237. {% set sectionId = pimcore_input('sectionId') %}
  238. {% do section.start() %}
  239.     <section class=\"{% if not fullscreen.isChecked() %} mx-10 mx-md-40 mx-lg-70 {% endif %}
  240.         {% if ptm %} pt-{{ptm}} {% endif %}
  241.         {% if ptd %} pt-{{ptd}} {% endif %}
  242.         {% if pbm %} pb-{{pbm}} {% endif %}
  243.         {% if pbd %} pb-{{pbd}} {% endif %}
  244.         {% if mtm %} mt-{{mtm}} {% endif %}
  245.         {% if mtd %} mt-{{mtd}} {% endif %}
  246.         {% if mbm %} mb-{{mbm}} {% endif %}
  247.         {% if mbd %} mb-{{mbd}} {% endif %}
  248.         {% if bgColor %} bg-{{bgColor}} {% endif %}
  249.         {% if borderTop %} border-top {% endif %}
  250.         {% if borderBottom %} border-bottom {% endif %}
  251.         {% if borderColor %} border-{{borderColor}} {% endif %}
  252.          id=\"{{sectionId}}\">
  253.             {% for i in section.iterator %}
  254.                 {% set info = section.buildInfoObject() %}
  255.                 {% do section.blockConstruct() %}
  256.                     {% set templateParams = section.blockStart(info) %}
  257.                     {% do section.content(info, templateParams) %}
  258.                     {% do section.blockEnd() %}
  259.                 {% do section.blockDestruct() %}
  260.             {% endfor %}
  261.     </section>
  262. {% do section.end() %}""@AleaAreabricks/areas/section/view.html.twig""/var/www/html/bundles/Alea/AreabricksBundle/Resources/views/areas/section/view.html.twig");
  263.     }
  264.     
  265.     public function checkSecurity()
  266.     {
  267.         static $tags = array("set" => 1"do" => 21"if" => 23"for" => 38);
  268.         static $filters = array("escape" => 24);
  269.         static $functions = array("pimcore_checkbox" => 1"pimcore_select" => 2"pimcore_areablock" => 14"pimcore_input" => 19);
  270.         try {
  271.             $this->sandbox->checkSecurity(
  272.                 ['set''do''if''for'],
  273.                 ['escape'],
  274.                 ['pimcore_checkbox''pimcore_select''pimcore_areablock''pimcore_input']
  275.             );
  276.         } catch (SecurityError $e) {
  277.             $e->setSourceContext($this->source);
  278.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  279.                 $e->setTemplateLine($tags[$e->getTagName()]);
  280.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  281.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  282.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  283.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  284.             }
  285.             throw $e;
  286.         }
  287.     }
  288. }