<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\MacroNamespace;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* Partial/Base/header.html.twig */
class __TwigTemplate_7e1dc9a9d6f16a403cc920ec293c869e extends Template
{
private Source $source;
/**
* @var array<string, MacroNamespace>
*/
private array $macros = [];
private \Twig\Runtime\EscaperRuntime $escaper;
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
$this->parent = false;
$this->blocks = [
'header_inner' => [$this, 'block_header_inner'],
'before_navbar' => [$this, 'block_before_navbar'],
'navbar' => [$this, 'block_navbar'],
'navbar_link' => [$this, 'block_navbar_link'],
'navbar_title' => [$this, 'block_navbar_title'],
'navbar_title_inner' => [$this, 'block_navbar_title_inner'],
'navbar_menu' => [$this, 'block_navbar_menu'],
];
}
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", "Partial/Base/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", "Partial/Base/header.html.twig"));
// line 1
yield "<header class=\"main-header white\">
";
// line 2
yield from $this->unwrap()->yieldBlock('header_inner', $context, $blocks);
// line 51
yield "</header>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
return; yield;
}
// line 2
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_inner(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(), "block", "header_inner"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_inner"));
// line 3
yield " ";
yield from $this->unwrap()->yieldBlock('before_navbar', $context, $blocks);
// line 5
yield " <nav class=\"navbar navbar-expand-lg navbar-dark navbar-with-drawer-btn background-thumb-cut\">
<div class=\"header-content\">
";
// line 7
yield from $this->unwrap()->yieldBlock('navbar', $context, $blocks);
// line 48
yield " </div>
</nav>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_before_navbar(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(), "block", "before_navbar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "before_navbar"));
// line 4
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 7
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_navbar(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(), "block", "navbar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
// line 8
yield " <div class=\"header-left\">
";
// line 9
yield from $this->unwrap()->yieldBlock('navbar_link', $context, $blocks);
// line 12
yield "
";
// line 13
yield from $this->unwrap()->yieldBlock('navbar_title', $context, $blocks);
// line 29
yield " </div>
<div class=\"header-center\">
";
// line 32
if (( !array_key_exists("disable_header_search", $context) || ((isset($context["disable_header_search"]) || array_key_exists("disable_header_search", $context) ? $context["disable_header_search"] : (function () { throw new RuntimeError('Variable "disable_header_search" does not exist.', 32, $this->source); })()) === false))) {
// line 33
yield " ";
if ((null === CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 33, $this->source); })()), "user", [], "any", false, false, false, 33))) {
// line 34
yield " ";
yield (string) $this->env->getRuntime('App\Twig\Runtime\SearchRuntime')->searchForm($this->env);
yield "
<div class=\"d-none d-lg-block about-nellapp-link\">
<a href=\"";
// line 36
yield (string) $this->escaper->escape((isset($context["nellapp_wordpress_url"]) || array_key_exists("nellapp_wordpress_url", $context) ? $context["nellapp_wordpress_url"] : (function () { throw new RuntimeError('Variable "nellapp_wordpress_url" does not exist.', 36, $this->source); })()), "html", null, true);
yield "\">
Organisme de formation
</a>
</div>
";
}
// line 41
yield " ";
}
// line 42
yield " </div>
";
// line 44
yield from $this->unwrap()->yieldBlock('navbar_menu', $context, $blocks);
// line 47
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 9
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_navbar_link(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(), "block", "navbar_link"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar_link"));
// line 10
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 13
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_navbar_title(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(), "block", "navbar_title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar_title"));
// line 14
yield " <a href=\"";
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
yield "\" class=\"navbar-brand\">";
// line 15
yield from $this->unwrap()->yieldBlock('navbar_title_inner', $context, $blocks);
// line 26
if ((($tmp = $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\EnvRuntime')->isEnv("staging")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
yield " [TEST]";
}
// line 27
yield "</a>";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 15
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_navbar_title_inner(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(), "block", "navbar_title_inner"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar_title_inner"));
// line 16
$context["channel"] = $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\ChannelRuntime')->getChannelFromDomain();
// line 17
yield " ";
if ( !(null === (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 17, $this->source); })()))) {
// line 18
yield " ";
yield (string) $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\ChannelRuntime')->renderChannelLogo($this->env, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 18, $this->source); })()));
yield "
";
} else {
// line 20
yield " <img class=\"logo-brand\"
src=\"";
// line 21
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/nellapp-login-register.svg", "common"), "html", null, true);
yield "\"
alt=\"";
// line 22
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("site.title.label"), "html_attr");
yield "\">
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 44
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_navbar_menu(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(), "block", "navbar_menu"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar_menu"));
// line 45
yield " ";
yield from $this->load("Partial/Base/account-drop.html.twig", 45)->unwrap()->yield($context);
// line 46
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "Partial/Base/header.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function getDefaultEscapeStrategy(): string|false
{
return "html";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 323 => 46, 320 => 45, 307 => 44, 293 => 22, 289 => 21, 286 => 20, 280 => 18, 277 => 17, 275 => 16, 262 => 15, 251 => 27, 247 => 26, 245 => 15, 241 => 14, 228 => 13, 216 => 10, 203 => 9, 192 => 47, 190 => 44, 186 => 42, 183 => 41, 175 => 36, 169 => 34, 166 => 33, 164 => 32, 159 => 29, 157 => 13, 154 => 12, 152 => 9, 149 => 8, 136 => 7, 125 => 4, 112 => 3, 99 => 48, 97 => 7, 93 => 5, 90 => 3, 77 => 2, 65 => 51, 63 => 2, 60 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<header class=\"main-header white\">
{% block header_inner %}
{% block before_navbar %}
{% endblock before_navbar %}
<nav class=\"navbar navbar-expand-lg navbar-dark navbar-with-drawer-btn background-thumb-cut\">
<div class=\"header-content\">
{% block navbar %}
<div class=\"header-left\">
{% block navbar_link %}
{% endblock %}
{% block navbar_title %}
<a href=\"{{ path(\x27home\x27) }}\" class=\"navbar-brand\">
{%- block navbar_title_inner -%}
{% set channel = get_channel_from_domain() %}
{% if channel is not null %}
{{ render_channel_logo(channel) }}
{% else %}
<img class=\"logo-brand\"
src=\"{{ asset(\x27build/common/nellapp-login-register.svg\x27, \x27common\x27) }}\"
alt=\"{{ \x27site.title.label\x27|trans|e(\x27html_attr\x27) }}\">
{% endif %}
{%- endblock navbar_title_inner -%}
{%- if is_env(\x27staging\x27) %} [TEST]{% endif -%}
</a>
{%- endblock navbar_title %}
</div>
<div class=\"header-center\">
{% if disable_header_search is not defined or disable_header_search is same as false %}
{% if app.user is null %}
{{ search_form() }}
<div class=\"d-none d-lg-block about-nellapp-link\">
<a href=\"{{ nellapp_wordpress_url }}\">
Organisme de formation
</a>
</div>
{% endif %}
{% endif %}
</div>
{% block navbar_menu %}
{% include \x27Partial/Base/account-drop.html.twig\x27 %}
{% endblock navbar_menu %}
{% endblock navbar %}
</div>
</nav>
{% endblock header_inner %}
</header>
", "Partial/Base/header.html.twig", "/var/www/html/templates/Partial/Base/header.html.twig");
}
}