<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* @!NellappSDK/Partials/component/header/header.html.twig */
class __TwigTemplate_1ecd3a90caeec74defed3b8a44d7c61726cdbeaf51c85dcb8db60d4b3ddb5d02 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$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 = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@!NellappSDK/Partials/component/header/header.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@!NellappSDK/Partials/component/header/header.html.twig"));
// line 1
echo "<header class=\"nellapp-header\">
<nav class=\"nellapp-header-wrapper\">
";
// line 3
$this->displayBlock('header_up', $context, $blocks);
// line 62
echo " ";
if (( $this->hasBlock("sub_header", $context, $blocks) && !twig_test_empty( $this->renderBlock("sub_header", $context, $blocks)))) {
// line 63
echo " <div class=\"nellapp-header-sub\">
";
// line 64
$this->displayBlock('sub_header', $context, $blocks);
// line 65
echo " </div>
";
}
// line 67
echo " </nav>
</header>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_header_up($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_up"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_up"));
// line 4
echo " <div class=\"nellapp-header-up\">
";
// line 5
$this->displayBlock('header_logo', $context, $blocks);
// line 18
echo " ";
$this->displayBlock('header_center', $context, $blocks);
// line 41
echo " ";
$this->displayBlock('header_actions', $context, $blocks);
// line 60
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_header_logo($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_logo"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_logo"));
// line 6
echo " ";
$context["channelFromDomain"] = $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\ChannelRuntime')->getChannelFromDomain();
// line 7
echo " <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
echo " ";
echo $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); })()));
echo "
";
} else {
// line 12
echo " <img src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/nellapp-logo.svg", "core"), "html", null, true);
echo "\" alt=\"nellapp-logo\">
";
}
// line 14
echo " ";
echo $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\EnvRuntime')->renderEnvBadge($this->env);
echo "
</a>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 18
public function block_header_center($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_center"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_center"));
// line 19
echo " <div class=\"nellapp-header-center\">
";
// line 20
$this->displayBlock('header_center_content', $context, $blocks);
// line 39
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 20
public function block_header_center_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_center_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_center_content"));
// line 21
echo " ";
if ( !$this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\HeaderRuntime')->isSearchDeactivated()) {
// line 22
echo " <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
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 41
public function block_header_actions($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_actions"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_actions"));
// line 42
echo " <div class=\"nellapp-header-actions\">
";
// line 43
$this->displayBlock('header_actions_content', $context, $blocks);
// line 58
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 43
public function block_header_actions_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_actions_content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_actions_content"));
// line 44
echo " <ul>
";
// line 45
if (twig_get_attribute($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)) {
// line 46
echo " ";
$this->displayBlock('header_notification_menu', $context, $blocks);
// line 49
echo " <li>
";
// line 50
$this->loadTemplate("@NellappSDK/Partials/component/header/chat-notification.html.twig", "@!NellappSDK/Partials/component/header/header.html.twig", 50)->display($context);
// line 51
echo " </li>
<li>
";
// line 53
$this->loadTemplate("@NellappSDK/Partials/component/header/account-drop.html.twig", "@!NellappSDK/Partials/component/header/header.html.twig", 53)->display($context);
// line 54
echo " </li>
";
}
// line 56
echo " </ul>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 46
public function block_header_notification_menu($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_notification_menu"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_notification_menu"));
// line 47
echo " <li>";
echo $this->extensions['Symfony\UX\TwigComponent\Twig\ComponentExtension']->render("Notification:Menu");
echo "</li>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 64
public function block_sub_header($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sub_header"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sub_header"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@!NellappSDK/Partials/component/header/header.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 320 => 64, 307 => 47, 297 => 46, 286 => 56, 282 => 54, 280 => 53, 276 => 51, 274 => 50, 271 => 49, 268 => 46, 266 => 45, 263 => 44, 253 => 43, 242 => 58, 240 => 43, 237 => 42, 227 => 41, 217 => 38, 199 => 22, 196 => 21, 186 => 20, 175 => 39, 173 => 20, 170 => 19, 160 => 18, 145 => 14, 139 => 12, 133 => 10, 131 => 9, 127 => 7, 124 => 6, 114 => 5, 103 => 60, 100 => 41, 97 => 18, 95 => 5, 92 => 4, 82 => 3, 69 => 67, 65 => 65, 63 => 64, 60 => 63, 57 => 62, 55 => 3, 51 => 1,);
}
public function getSourceContext()
{
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('images/nellapp-logo.svg', 'core') }}\" 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('Notification:Menu') }}</li>
{% endblock header_notification_menu %}
<li>
{% include '@NellappSDK/Partials/component/header/chat-notification.html.twig' %}
</li>
<li>
{% include '@NellappSDK/Partials/component/header/account-drop.html.twig' %}
</li>
{% endif %}
</ul>
{% endblock header_actions_content %}
</div>
{% endblock header_actions %}
</div>
{% endblock header_up %}
{% if block('sub_header') is defined and block('sub_header') 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");
}
}