<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* platform/component/organism/theme_default_security_footer.html.twig */
class __TwigTemplate_babc6569aec202b022e4c4ab8bac4390 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "platform/component/organism/theme_default_security_footer.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "platform/component/organism/theme_default_security_footer.html.twig"));
// line 1
if ((($tmp = !array_key_exists("componentKey", $context)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 2
yield "\t";
$context["componentKey"] = "theme_default_security_footer";
}
// line 4
$context["item_config"] = $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->generateComponentOptions((isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 4, $this->source); })()), (isset($context["componentKey"]) || array_key_exists("componentKey", $context) ? $context["componentKey"] : (function () { throw new RuntimeError('Variable "componentKey" does not exist.', 4, $this->source); })()));
// line 5
yield "
<footer data-component-acl=\"";
// line 6
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["componentKey"]) || array_key_exists("componentKey", $context) ? $context["componentKey"] : (function () { throw new RuntimeError('Variable "componentKey" does not exist.', 6, $this->source); })()), "html", null, true);
yield "\" class=\"main-footer ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["item_config"]) || array_key_exists("item_config", $context) ? $context["item_config"] : (function () { throw new RuntimeError('Variable "item_config" does not exist.', 6, $this->source); })()), "item", [], "any", false, false, false, 6), "class", [], "any", false, false, false, 6), "html", null, true);
yield "\" ";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "background", [], "any", false, true, false, 6), "color", [], "any", true, true, false, 6)) {
yield "style=\"background-color:";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 6, $this->source); })()), "background", [], "any", false, false, false, 6), "color", [], "any", false, false, false, 6), "html", null, true);
yield "\"";
}
yield ">
\t";
// line 7
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 7) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 7, $this->source); })()), "container", [], "any", false, false, false, 7) == true))) {
// line 8
yield "\t\t<div class=\"container\">
\t\t\t<div class=\"row main-footer-sections ";
// line 9
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "wrapper", [], "any", true, true, false, 9)) {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 9, $this->source); })()), "wrapper", [], "any", false, false, false, 9), "html", null, true);
}
yield "\">
\t";
} else {
// line 11
yield "\t\t\t<div class=\"d-flex main-footer-sections ";
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "wrapper", [], "any", true, true, false, 11)) {
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 11, $this->source); })()), "wrapper", [], "any", false, false, false, 11), "html", null, true);
}
yield "\" style=\"flex-wrap: wrap;\">
\t";
}
// line 13
yield "
\t\t\t";
// line 14
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 14, $this->source); })()), "sections", [], "any", false, false, false, 14));
foreach ($context['_seq'] as $context["key"] => $context["item"]) {
// line 15
yield "\t\t\t\t<div class=\"col";
if (CoreExtension::getAttribute($this->env, $this->source, $context["item"], "col", [], "any", true, true, false, 15)) {
yield "-";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "col", [], "any", false, false, false, 15), "html", null, true);
}
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, $context["item"], "class", [], "any", true, true, false, 15)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "class", [], "any", false, false, false, 15), "html", null, true);
}
yield "\">
\t\t\t\t\t";
// line 16
yield $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->component($context["item"], ("security.footer.sections." . $context["key"]));
yield "
\t\t\t\t</div>
\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['key'], $context['item'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 19
yield "
\t";
// line 20
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 20) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["value"]) || array_key_exists("value", $context) ? $context["value"] : (function () { throw new RuntimeError('Variable "value" does not exist.', 20, $this->source); })()), "container", [], "any", false, false, false, 20) == true))) {
// line 21
yield "\t\t\t</div>
\t\t</div>
\t";
} else {
// line 24
yield "\t\t</div>
\t";
}
// line 26
yield "</footer>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "platform/component/organism/theme_default_security_footer.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 135 => 26, 131 => 24, 126 => 21, 124 => 20, 121 => 19, 112 => 16, 100 => 15, 96 => 14, 93 => 13, 84 => 11, 76 => 9, 73 => 8, 71 => 7, 59 => 6, 56 => 5, 54 => 4, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if componentKey is not defined %}
\t{% set componentKey = \"theme_default_security_footer\" %}
{% endif %}
{% set item_config = generateComponentOptions(value, componentKey)%}
<footer data-component-acl=\"{{ componentKey }}\" class=\"main-footer {{ item_config.item.class }}\" {% if value.background.color is defined %}style=\"background-color:{{ value.background.color }}\"{% endif %}>
\t{% if value.container is defined and value.container == true %}
\t\t<div class=\"container\">
\t\t\t<div class=\"row main-footer-sections {% if value.wrapper is defined %} {{value.wrapper}}{%endif%}\">
\t{% else %}
\t\t\t<div class=\"d-flex main-footer-sections {% if value.wrapper is defined %} {{value.wrapper}}{%endif%}\" style=\"flex-wrap: wrap;\">
\t{% endif %}
\t\t\t{% for key, item in value.sections %}
\t\t\t\t<div class=\"col{% if item.col is defined %}-{{ item.col }}{% endif %} {% if item.class is defined %}{{ item.class }}{% endif %}\">
\t\t\t\t\t{{ component(item, 'security.footer.sections.' ~ key) }}
\t\t\t\t</div>
\t\t\t{% endfor %}
\t{% if value.container is defined and value.container == true %}
\t\t\t</div>
\t\t</div>
\t{% else %}
\t\t</div>
\t{% endif %}
</footer>
", "platform/component/organism/theme_default_security_footer.html.twig", "/var/www/dtv-preprod/current/templates/platform/component/organism/theme_default_security_footer.html.twig");
}
}