<?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;
/* platform/component/organism/theme_default_security_header.html.twig */
class __TwigTemplate_eb15684c10aa9add3733a4e1d1fb9a95 extends Template
{
private $source;
private $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 = [])
{
$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 ( !array_key_exists("componentKey", $context)) {
// 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 ( !(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) === "")) {
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 ( !(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)) {
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 ($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); })()))) {
// 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 (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)) {
// line 35
yield " <div class=\"";
if (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)) {
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);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "platform/component/organism/theme_default_security_header.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 178 => 43, 174 => 41, 171 => 40, 168 => 39, 162 => 36, 155 => 35, 152 => 34, 149 => 33, 145 => 31, 137 => 29, 133 => 28, 128 => 27, 125 => 26, 122 => 25, 119 => 24, 110 => 21, 106 => 20, 102 => 19, 99 => 18, 96 => 17, 90 => 15, 88 => 14, 80 => 13, 62 => 8, 55 => 7, 50 => 4, 46 => 2, 44 => 1,);
}
public function getSourceContext()
{
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");
}
}