<?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;
/* @AleaAreabricks/areas/section/view.html.twig */
class __TwigTemplate_e698bfc1e5fc4cbbfb768af0c05d8085 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", "@AleaAreabricks/areas/section/view.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@AleaAreabricks/areas/section/view.html.twig"));
// line 1
$context["fullscreen"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "fullscreen");
// line 2
$context["ptd"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "ptd"), "getData", [], "method", false, false, true, 2);
// line 3
$context["ptm"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "ptm"), "getData", [], "method", false, false, true, 3);
// line 4
$context["pbd"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "pbd"), "getData", [], "method", false, false, true, 4);
// line 5
$context["pbm"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "pbm"), "getData", [], "method", false, false, true, 5);
// line 6
$context["mtd"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "mtd"), "getData", [], "method", false, false, true, 6);
// line 7
$context["mtm"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "mtm"), "getData", [], "method", false, false, true, 7);
// line 8
$context["mbd"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "mbd"), "getData", [], "method", false, false, true, 8);
// line 9
$context["mbm"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "mbm"), "getData", [], "method", false, false, true, 9);
// line 10
$context["bgColor"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "bgColor"), "getData", [], "method", false, false, true, 10);
// line 11
$context["borderTop"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "borderTop"), "getData", [], "method", false, false, true, 11);
// line 12
$context["borderBottom"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "borderBottom"), "getData", [], "method", false, false, true, 12);
// line 13
$context["borderColor"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "borderColor"), "getData", [], "method", false, false, true, 13);
// line 14
$context["section"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "section", ["manual" => true]);
// line 15
$context["decoration"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "checkbox", "decoration");
// line 19
$context["sectionId"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "sectionId");
// line 20
echo "
";
// line 21
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", false, false, true, 21);
// line 22
echo "
<section class=\"";
// line 23
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", false, false, true, 23)) {
echo " mx-10 mx-md-40 mx-lg-70 ";
}
// line 24
echo " ";
if ((isset($context["ptm"]) || array_key_exists("ptm", $context) ? $context["ptm"] : (function () { throw new RuntimeError('Variable "ptm" does not exist.', 24, $this->source); })())) {
echo " pt-";
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", null, true);
echo " ";
}
// line 25
echo " ";
if ((isset($context["ptd"]) || array_key_exists("ptd", $context) ? $context["ptd"] : (function () { throw new RuntimeError('Variable "ptd" does not exist.', 25, $this->source); })())) {
echo " pt-";
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", null, true);
echo " ";
}
// line 26
echo " ";
if ((isset($context["pbm"]) || array_key_exists("pbm", $context) ? $context["pbm"] : (function () { throw new RuntimeError('Variable "pbm" does not exist.', 26, $this->source); })())) {
echo " pb-";
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", null, true);
echo " ";
}
// line 27
echo " ";
if ((isset($context["pbd"]) || array_key_exists("pbd", $context) ? $context["pbd"] : (function () { throw new RuntimeError('Variable "pbd" does not exist.', 27, $this->source); })())) {
echo " pb-";
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", null, true);
echo " ";
}
// line 28
echo " ";
if ((isset($context["mtm"]) || array_key_exists("mtm", $context) ? $context["mtm"] : (function () { throw new RuntimeError('Variable "mtm" does not exist.', 28, $this->source); })())) {
echo " mt-";
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", null, true);
echo " ";
}
// line 29
echo " ";
if ((isset($context["mtd"]) || array_key_exists("mtd", $context) ? $context["mtd"] : (function () { throw new RuntimeError('Variable "mtd" does not exist.', 29, $this->source); })())) {
echo " mt-";
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", null, true);
echo " ";
}
// line 30
echo " ";
if ((isset($context["mbm"]) || array_key_exists("mbm", $context) ? $context["mbm"] : (function () { throw new RuntimeError('Variable "mbm" does not exist.', 30, $this->source); })())) {
echo " mb-";
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", null, true);
echo " ";
}
// line 31
echo " ";
if ((isset($context["mbd"]) || array_key_exists("mbd", $context) ? $context["mbd"] : (function () { throw new RuntimeError('Variable "mbd" does not exist.', 31, $this->source); })())) {
echo " mb-";
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", null, true);
echo " ";
}
// line 32
echo " ";
if ((isset($context["bgColor"]) || array_key_exists("bgColor", $context) ? $context["bgColor"] : (function () { throw new RuntimeError('Variable "bgColor" does not exist.', 32, $this->source); })())) {
echo " bg-";
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", null, true);
echo " ";
}
// line 33
echo " ";
if ((isset($context["borderTop"]) || array_key_exists("borderTop", $context) ? $context["borderTop"] : (function () { throw new RuntimeError('Variable "borderTop" does not exist.', 33, $this->source); })())) {
echo " border-top ";
}
// line 34
echo " ";
if ((isset($context["borderBottom"]) || array_key_exists("borderBottom", $context) ? $context["borderBottom"] : (function () { throw new RuntimeError('Variable "borderBottom" does not exist.', 34, $this->source); })())) {
echo " border-bottom ";
}
// line 35
echo " ";
if ((isset($context["borderColor"]) || array_key_exists("borderColor", $context) ? $context["borderColor"] : (function () { throw new RuntimeError('Variable "borderColor" does not exist.', 35, $this->source); })())) {
echo " border-";
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", null, true);
echo " ";
}
// line 36
echo " id=\"";
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", null, true);
echo "\">
";
// line 38
$context['_parent'] = $context;
$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", false, false, true, 38));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 39
echo " ";
$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", false, false, true, 39);
// line 40
echo " ";
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", false, false, true, 40);
// line 41
echo " ";
$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", [0 => (isset($context["info"]) || array_key_exists("info", $context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.', 41, $this->source); })())], "method", false, false, true, 41);
// line 42
echo " ";
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", [0 => (isset($context["info"]) || array_key_exists("info", $context) ? $context["info"] : (function () { throw new RuntimeError('Variable "info" does not exist.', 42, $this->source); })()), 1 => (isset($context["templateParams"]) || array_key_exists("templateParams", $context) ? $context["templateParams"] : (function () { throw new RuntimeError('Variable "templateParams" does not exist.', 42, $this->source); })())], "method", false, false, true, 42);
// line 43
echo "
";
// line 44
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", false, false, true, 44);
// line 45
echo " ";
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", false, false, true, 45);
// line 46
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 47
echo "
</section>
";
// line 50
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", false, false, true, 50);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@AleaAreabricks/areas/section/view.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% set fullscreen = pimcore_checkbox('fullscreen') %}
{% set ptd = pimcore_select('ptd').getData() %}
{% set ptm = pimcore_select('ptm').getData() %}
{% set pbd = pimcore_select('pbd').getData() %}
{% set pbm = pimcore_select('pbm').getData() %}
{% set mtd = pimcore_select('mtd').getData() %}
{% set mtm = pimcore_select('mtm').getData() %}
{% set mbd = pimcore_select('mbd').getData() %}
{% set mbm = pimcore_select('mbm').getData() %}
{% set bgColor = pimcore_select('bgColor').getData() %}
{% set borderTop = pimcore_checkbox('borderTop').getData() %}
{% set borderBottom = pimcore_checkbox('borderBottom').getData() %}
{% set borderColor = pimcore_select('borderColor').getData() %}
{% set section = pimcore_areablock('section', {'manual': true}) %}
{% set decoration = pimcore_checkbox('decoration') %}
{# not used in this template
{% set container = pimcore_checkbox('container') %}
#}
{% set sectionId = pimcore_input('sectionId') %}
{% do section.start() %}
<section class=\"{% if not fullscreen.isChecked() %} mx-10 mx-md-40 mx-lg-70 {% endif %}
{% if ptm %} pt-{{ptm}} {% endif %}
{% if ptd %} pt-{{ptd}} {% endif %}
{% if pbm %} pb-{{pbm}} {% endif %}
{% if pbd %} pb-{{pbd}} {% endif %}
{% if mtm %} mt-{{mtm}} {% endif %}
{% if mtd %} mt-{{mtd}} {% endif %}
{% if mbm %} mb-{{mbm}} {% endif %}
{% if mbd %} mb-{{mbd}} {% endif %}
{% if bgColor %} bg-{{bgColor}} {% endif %}
{% if borderTop %} border-top {% endif %}
{% if borderBottom %} border-bottom {% endif %}
{% if borderColor %} border-{{borderColor}} {% endif %}
id=\"{{sectionId}}\">
{% for i in section.iterator %}
{% set info = section.buildInfoObject() %}
{% do section.blockConstruct() %}
{% set templateParams = section.blockStart(info) %}
{% do section.content(info, templateParams) %}
{% do section.blockEnd() %}
{% do section.blockDestruct() %}
{% endfor %}
</section>
{% do section.end() %}", "@AleaAreabricks/areas/section/view.html.twig", "/var/www/html/bundles/Alea/AreabricksBundle/Resources/views/areas/section/view.html.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 1, "do" => 21, "if" => 23, "for" => 38);
static $filters = array("escape" => 24);
static $functions = array("pimcore_checkbox" => 1, "pimcore_select" => 2, "pimcore_areablock" => 14, "pimcore_input" => 19);
try {
$this->sandbox->checkSecurity(
['set', 'do', 'if', 'for'],
['escape'],
['pimcore_checkbox', 'pimcore_select', 'pimcore_areablock', 'pimcore_input']
);
} 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;
}
}
}