<?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_header.html.twig */
class __TwigTemplate_86377be20b12c3b879e0327550862691 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_header.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_header.html.twig"));
// line 1
if ((($tmp = !array_key_exists("componentKey", $context)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 2
yield " ";
$context["componentKey"] = "theme_default_security_header";
}
// line 4
yield "
<div id=\"security-background\"
class=\"position-fixed w-100 vh-100";
// line 7
if ((($tmp = !(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.', 7, $this->source); })()), "background", [], "any", false, false, false, 7), "class", [], "any", false, false, false, 7) === "")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
yield " ";
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.', 7, $this->source); })()), "background", [], "any", false, false, false, 7), "class", [], "any", false, false, false, 7), "html", null, true);
}
yield "\"
style=\"z-index: -5;";
// line 8
if (!CoreExtension::inFilter(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.', 8, $this->source); })()), "background", [], "any", false, false, false, 8), "image", [], "any", false, false, false, 8), [null, ""])) {
yield "background-image: url(";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("static_project_file", ["fileName" => 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.', 8, $this->source); })()), "background", [], "any", false, false, false, 8), "image", [], "any", false, false, false, 8)]), "html", null, true);
yield ");";
}
yield " ";
if ((($tmp = !(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.', 8, $this->source); })()), "background", [], "any", false, false, false, 8), "color", [], "any", false, false, false, 8) === null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
yield "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.', 8, $this->source); })()), "background", [], "any", false, false, false, 8), "color", [], "any", false, false, false, 8), "html", null, true);
yield ";";
}
yield "\"
>
</div>
<header class=\"security-header";
// line 13
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "class", [], "any", true, true, false, 13)) {
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.', 13, $this->source); })()), "class", [], "any", false, false, false, 13), "html", null, true);
yield " ";
}
yield "\">
";
// line 14
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 14)) {
// line 15
yield " <div class=\"";
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.', 15, $this->source); })()), "container", [], "any", false, false, false, 15), "html", null, true);
yield "\">
";
}
// line 17
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "banner", [], "any", true, true, false, 17) && 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.', 17, $this->source); })()), "banner", [], "any", false, false, false, 17), "enabled", [], "any", false, false, false, 17))) {
// line 18
yield " <div class=\"security-header-banner\">
<img src=\"";
// line 19
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("static_project_file", ["fileName" => 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.', 19, $this->source); })()), "banner", [], "any", false, false, false, 19), "url", [], "any", false, false, false, 19)]), "html", null, true);
yield "\"
alt=\"";
// line 20
yield $this->extensions['App\Twig\TwigExtension']->customTrans(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.', 20, $this->source); })()), "banner", [], "any", false, false, false, 20), "alt", [], "any", false, false, false, 20));
yield "\"
class=\" img-fluid ";
// line 21
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "banner", [], "any", false, true, false, 21), "class", [], "any", true, true, false, 21)) {
yield " ";
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.', 21, $this->source); })()), "banner", [], "any", false, false, false, 21), "class", [], "any", false, false, false, 21), "html", null, true);
}
yield "\">
</div>
";
}
// line 24
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "logo", [], "any", true, true, false, 24) && !CoreExtension::inFilter(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.', 24, $this->source); })()), "logo", [], "any", false, false, false, 24), "url", [], "any", false, false, false, 24), [null, ""]))) {
// line 25
yield " ";
$context["logo_config"] = $this->env->getRuntime('App\Twig\Runtime\PlatformComponentRuntime')->generateComponentOptions(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.', 25, $this->source); })()), "logo", [], "any", false, false, false, 25), ((isset($context["componentKey"]) || array_key_exists("componentKey", $context) ? $context["componentKey"] : (function () { throw new RuntimeError('Variable "componentKey" does not exist.', 25, $this->source); })()) . ".logo"));
// line 26
yield " ";
if ((($tmp = $this->env->getRuntime('App\Twig\Runtime\AclRuntime')->canDisplayComponentByAcl((isset($context["logo_config"]) || array_key_exists("logo_config", $context) ? $context["logo_config"] : (function () { throw new RuntimeError('Variable "logo_config" does not exist.', 26, $this->source); })()))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 27
yield " <img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("static_project_file", ["fileName" => 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.', 27, $this->source); })()), "logo", [], "any", false, false, false, 27), "url", [], "any", false, false, false, 27)]), "html", null, true);
yield "\"
alt=\"";
// line 28
yield $this->extensions['App\Twig\TwigExtension']->customTrans(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.', 28, $this->source); })()), "logo", [], "any", false, false, false, 28), "alt", [], "any", false, false, false, 28));
yield "\"
class=\"logo";
// line 29
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "logo", [], "any", false, true, false, 29), "class", [], "any", true, true, false, 29)) {
yield " ";
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.', 29, $this->source); })()), "logo", [], "any", false, false, false, 29), "class", [], "any", false, false, false, 29), "html", null, true);
}
yield "\">
";
}
// line 31
yield "
";
}
// line 33
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "sub_title", [], "any", true, true, false, 33)) {
// line 34
yield " ";
if ((($tmp = 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.', 34, $this->source); })()), "sub_title", [], "any", false, false, false, 34), "enabled", [], "any", false, false, false, 34)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 35
yield " <div class=\"";
if ((($tmp = 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.', 35, $this->source); })()), "sub_title", [], "any", false, false, false, 35), "class", [], "any", false, false, false, 35)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
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.', 35, $this->source); })()), "sub_title", [], "any", false, false, false, 35), "class", [], "any", false, false, false, 35), "html", null, true);
}
yield "\">
";
// line 36
yield 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.', 36, $this->source); })()), "sub_title", [], "any", false, false, false, 36), "content", [], "any", false, false, false, 36);
yield "
</div>
";
}
// line 39
yield " ";
}
// line 40
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, ($context["value"] ?? null), "container", [], "any", true, true, false, 40)) {
// line 41
yield " </div>
";
}
// line 43
yield "</header>
";
$__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_header.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 182 => 43, 178 => 41, 175 => 40, 172 => 39, 166 => 36, 159 => 35, 156 => 34, 153 => 33, 149 => 31, 141 => 29, 137 => 28, 132 => 27, 129 => 26, 126 => 25, 123 => 24, 114 => 21, 110 => 20, 106 => 19, 103 => 18, 100 => 17, 94 => 15, 92 => 14, 84 => 13, 66 => 8, 59 => 7, 54 => 4, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if componentKey is not defined %}
{% set componentKey = \"theme_default_security_header\" %}
{% endif %}
<div id=\"security-background\"
class=\"position-fixed w-100 vh-100{% if value.background.class is not same as(\"\") %} {{ value.background.class }}{% endif %}\"
style=\"z-index: -5;{% if value.background.image not in [null ,''] %}background-image: url({{ path('static_project_file', {'fileName': value.background.image}) }});{% endif %} {% if value.background.color is not same as(null) %}background-color: {{value.background.color}};{% endif %}\"
>
</div>
<header class=\"security-header{% if value.class is defined %} {{ value.class }} {% endif %}\">
{% if value.container is defined %}
<div class=\"{{ value.container }}\">
{% endif %}
{% if value.banner is defined and value.banner.enabled %}
<div class=\"security-header-banner\">
<img src=\"{{ path('static_project_file', {'fileName': value.banner.url}) }}\"
alt=\"{{ value.banner.alt|trans }}\"
class=\" img-fluid {% if value.banner.class is defined %} {{ value.banner.class }}{% endif %}\">
</div>
{% endif %}
{% if value.logo is defined and value.logo.url not in [null ,''] %}
{% set logo_config = generateComponentOptions(value.logo, componentKey ~'.logo')%}
{% if canDisplayComponentByAcl( logo_config) %}
<img src=\"{{ path('static_project_file', {'fileName': value.logo.url}) }}\"
alt=\"{{ value.logo.alt|trans }}\"
class=\"logo{% if value.logo.class is defined %} {{ value.logo.class }}{% endif %}\">
{% endif %}
{% endif %}
{% if value.sub_title is defined %}
{% if value.sub_title.enabled %}
<div class=\"{% if value.sub_title.class %}{{ value.sub_title.class }}{% endif %}\">
{{ value.sub_title.content|raw }}
</div>
{% endif %}
{% endif %}
{% if value.container is defined %}
</div>
{% endif %}
</header>
", "platform/component/organism/theme_default_security_header.html.twig", "/var/www/dtv-preprod/current/templates/platform/component/organism/theme_default_security_header.html.twig");
}
}