<?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;
/* @!NellappSDK/Partials/component/header/header.html.twig */
class __TwigTemplate_2c18d8ed2fb7f29e8c0c333a2f0ea7b7 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_up' => [$this, 'block_header_up'],
'header_logo' => [$this, 'block_header_logo'],
'header_center' => [$this, 'block_header_center'],
'header_center_content' => [$this, 'block_header_center_content'],
'header_actions' => [$this, 'block_header_actions'],
'header_actions_content' => [$this, 'block_header_actions_content'],
'header_notification_menu' => [$this, 'block_header_notification_menu'],
'sub_header' => [$this, 'block_sub_header'],
];
}
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", "@!NellappSDK/Partials/component/header/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", "@!NellappSDK/Partials/component/header/header.html.twig"));
// line 1
yield "<header class=\"nellapp-header\">
<nav class=\"nellapp-header-wrapper\">
";
// line 3
yield from $this->unwrap()->yieldBlock('header_up', $context, $blocks);
// line 62
yield " ";
if (( $this->unwrap()->hasBlock("sub_header", $context, $blocks) && !Twig\Extension\CoreExtension::testEmpty( $this->unwrap()->renderBlock("sub_header", $context, $blocks)))) {
// line 63
yield " <div class=\"nellapp-header-sub\">
";
// line 64
yield from $this->unwrap()->yieldBlock('sub_header', $context, $blocks);
// line 65
yield " </div>
";
}
// line 67
yield " </nav>
</header>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
return; yield;
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_up(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_up"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_up"));
// line 4
yield " <div class=\"nellapp-header-up\">
";
// line 5
yield from $this->unwrap()->yieldBlock('header_logo', $context, $blocks);
// line 18
yield " ";
yield from $this->unwrap()->yieldBlock('header_center', $context, $blocks);
// line 41
yield " ";
yield from $this->unwrap()->yieldBlock('header_actions', $context, $blocks);
// line 60
yield " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_logo(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_logo"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_logo"));
// line 6
yield " ";
$context["channelFromDomain"] = $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\ChannelRuntime')->getChannelFromDomain();
// line 7
yield " <div class=\"nellapp-header-logo\">
<a class=\"header-brand\" href=\"/\">
";
// line 9
if ( !(null === (isset($context["channelFromDomain"]) || array_key_exists("channelFromDomain", $context) ? $context["channelFromDomain"] : (function () { throw new RuntimeError('Variable "channelFromDomain" does not exist.', 9, $this->source); })()))) {
// line 10
yield " ";
yield (string) $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\ChannelRuntime')->renderChannelLogo($this->env, (isset($context["channelFromDomain"]) || array_key_exists("channelFromDomain", $context) ? $context["channelFromDomain"] : (function () { throw new RuntimeError('Variable "channelFromDomain" does not exist.', 10, $this->source); })()));
yield "
";
} else {
// line 12
yield " <img src=\"";
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/nellapp-logo.svg", "core"), "html", null, true);
yield "\" alt=\"nellapp-logo\">
";
}
// line 14
yield " ";
yield (string) $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\EnvRuntime')->renderEnvBadge($this->env);
yield "
</a>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 18
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_center(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_center"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_center"));
// line 19
yield " <div class=\"nellapp-header-center\">
";
// line 20
yield from $this->unwrap()->yieldBlock('header_center_content', $context, $blocks);
// line 39
yield " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 20
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_center_content(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_center_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_center_content"));
// line 21
yield " ";
if ( !(($tmp = $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\HeaderRuntime')->isSearchDeactivated()) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 22
yield " <div class=\"search-header-container\">
<form name=\"main_search\" method=\"get\" action=\"/recherche\" novalidate=\"novalidate\">
<div class=\"form-group\">
<input type=\"text\"
id=\"main_search_search\"
name=\"main_search[search]\"
required=\"required\"
placeholder=\"Rechercher un événement ou un formateur\"
data-channel=\"9\"
class=\"form-control nellapp-input\"
>
</div>
<i class=\"fas fa-search\"></i>
</form>
</div>
";
}
// line 38
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 41
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_actions(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_actions"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_actions"));
// line 42
yield " <div class=\"nellapp-header-actions\">
";
// line 43
yield from $this->unwrap()->yieldBlock('header_actions_content', $context, $blocks);
// line 58
yield " </div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 43
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_actions_content(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_actions_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_actions_content"));
// line 44
yield " <ul>
";
// line 45
if ((($tmp = 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.', 45, $this->source); })()), "user", [], "any", false, false, false, 45)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 46
yield " ";
yield from $this->unwrap()->yieldBlock('header_notification_menu', $context, $blocks);
// line 49
yield " <li>
";
// line 50
yield from $this->load("@NellappSDK/Partials/component/header/chat-notification.html.twig", 50)->unwrap()->yield($context);
// line 51
yield " </li>
<li>
";
// line 53
yield from $this->load("@NellappSDK/Partials/component/header/account-drop.html.twig", 53)->unwrap()->yield($context);
// line 54
yield " </li>
";
}
// line 56
yield " </ul>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 46
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_header_notification_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", "header_notification_menu"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_notification_menu"));
// line 47
yield " <li>";
yield (string) $this->extensions['Symfony\UX\TwigComponent\Twig\ComponentExtension']->render("Notification:Menu");
yield "</li>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 64
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_sub_header(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", "sub_header"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sub_header"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@!NellappSDK/Partials/component/header/header.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDefaultEscapeStrategy(): string|false
{
return "html";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 359 => 64, 345 => 47, 332 => 46, 320 => 56, 316 => 54, 314 => 53, 310 => 51, 308 => 50, 305 => 49, 302 => 46, 300 => 45, 297 => 44, 284 => 43, 272 => 58, 270 => 43, 267 => 42, 254 => 41, 243 => 38, 225 => 22, 222 => 21, 209 => 20, 197 => 39, 195 => 20, 192 => 19, 179 => 18, 163 => 14, 157 => 12, 151 => 10, 149 => 9, 145 => 7, 142 => 6, 129 => 5, 117 => 60, 114 => 41, 111 => 18, 109 => 5, 106 => 4, 93 => 3, 79 => 67, 75 => 65, 73 => 64, 70 => 63, 67 => 62, 65 => 3, 61 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<header class=\"nellapp-header\">
<nav class=\"nellapp-header-wrapper\">
{% block header_up %}
<div class=\"nellapp-header-up\">
{% block header_logo %}
{% set channelFromDomain = get_channel_from_domain() %}
<div class=\"nellapp-header-logo\">
<a class=\"header-brand\" href=\"/\">
{% if channelFromDomain is not null %}
{{ render_channel_logo(channelFromDomain) }}
{% else %}
<img src=\"{{ asset(\x27images/nellapp-logo.svg\x27, \x27core\x27) }}\" alt=\"nellapp-logo\">
{% endif %}
{{ render_env_badge() }}
</a>
</div>
{% endblock header_logo %}
{% block header_center %}
<div class=\"nellapp-header-center\">
{% block header_center_content %}
{% if not isSearchDeactivated() %}
<div class=\"search-header-container\">
<form name=\"main_search\" method=\"get\" action=\"/recherche\" novalidate=\"novalidate\">
<div class=\"form-group\">
<input type=\"text\"
id=\"main_search_search\"
name=\"main_search[search]\"
required=\"required\"
placeholder=\"Rechercher un événement ou un formateur\"
data-channel=\"9\"
class=\"form-control nellapp-input\"
>
</div>
<i class=\"fas fa-search\"></i>
</form>
</div>
{% endif %}
{% endblock %}
</div>
{% endblock header_center %}
{% block header_actions %}
<div class=\"nellapp-header-actions\">
{% block header_actions_content %}
<ul>
{% if app.user %}
{% block header_notification_menu %}
<li>{{ component(\x27Notification:Menu\x27) }}</li>
{% endblock header_notification_menu %}
<li>
{% include \x27@NellappSDK/Partials/component/header/chat-notification.html.twig\x27 %}
</li>
<li>
{% include \x27@NellappSDK/Partials/component/header/account-drop.html.twig\x27 %}
</li>
{% endif %}
</ul>
{% endblock header_actions_content %}
</div>
{% endblock header_actions %}
</div>
{% endblock header_up %}
{% if block(\x27sub_header\x27) is defined and block(\x27sub_header\x27) is not empty %}
<div class=\"nellapp-header-sub\">
{% block sub_header %}{% endblock %}
</div>
{% endif %}
</nav>
</header>
", "@!NellappSDK/Partials/component/header/header.html.twig", "/var/www/html/vendor/nellapp/sdk-bundle/src/Resources/views/Partials/component/header/header.html.twig");
}
}