<?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_3484606902c02daec60eb09e7abf2f2d3b99937a34de43195b341aa17451e666 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'],
'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 66
echo " ";
if (( $this->hasBlock("sub_header", $context, $blocks) && !twig_test_empty( $this->renderBlock("sub_header", $context, $blocks)))) {
// line 67
echo " <div class=\"nellapp-header-sub\">
";
// line 68
$this->displayBlock('sub_header', $context, $blocks);
// line 69
echo " </div>
";
}
// line 71
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 22
echo " ";
$this->displayBlock('header_center', $context, $blocks);
// line 45
echo " ";
$this->displayBlock('header_actions', $context, $blocks);
// line 64
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
if ($this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\EnvRuntime')->isEnv("staging")) {
// line 15
echo " [TEST]
";
} elseif ($this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\EnvRuntime')->isEnv("dev")) {
// line 17
echo " [DEV]
";
}
// line 19
echo "</a>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 22
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 23
echo " <div class=\"nellapp-header-center\">
";
// line 24
$this->displayBlock('header_center_content', $context, $blocks);
// line 43
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 24
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 25
echo " ";
if ( !$this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\HeaderRuntime')->isSearchDeactivated()) {
// line 26
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 42
echo " ";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 45
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 46
echo " <div class=\"nellapp-header-actions\">
";
// line 47
$this->displayBlock('header_actions_content', $context, $blocks);
// line 62
echo " </div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 47
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 48
echo " <ul>
";
// line 49
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.', 49, $this->source); })()), "user", [], "any", false, false, false, 49)) {
// line 50
echo " <li>
";
// line 51
$this->loadTemplate("@NellappSDK/Partials/component/header/notification_menu.html.twig", "@!NellappSDK/Partials/component/header/header.html.twig", 51)->display($context);
// line 52
echo " </li>
<li>
";
// line 54
$this->loadTemplate("@NellappSDK/Partials/component/header/chat-notification.html.twig", "@!NellappSDK/Partials/component/header/header.html.twig", 54)->display($context);
// line 55
echo " </li>
<li>
";
// line 57
$this->loadTemplate("@NellappSDK/Partials/component/header/account-drop.html.twig", "@!NellappSDK/Partials/component/header/header.html.twig", 57)->display($context);
// line 58
echo " </li>
";
}
// line 60
echo " </ul>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 68
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 ( 306 => 68, 295 => 60, 291 => 58, 289 => 57, 285 => 55, 283 => 54, 279 => 52, 277 => 51, 274 => 50, 272 => 49, 269 => 48, 259 => 47, 248 => 62, 246 => 47, 243 => 46, 233 => 45, 223 => 42, 205 => 26, 202 => 25, 192 => 24, 181 => 43, 179 => 24, 176 => 23, 166 => 22, 154 => 19, 150 => 17, 146 => 15, 144 => 14, 138 => 12, 132 => 10, 130 => 9, 126 => 7, 123 => 6, 113 => 5, 102 => 64, 99 => 45, 96 => 22, 94 => 5, 91 => 4, 81 => 3, 68 => 71, 64 => 69, 62 => 68, 59 => 67, 56 => 66, 54 => 3, 50 => 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 %}
{%- if is_env('staging') %}
[TEST]
{% elseif is_env('dev') %}
[DEV]
{% endif -%}
</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 %}
<li>
{% include '@NellappSDK/Partials/component/header/notification_menu.html.twig' %}
</li>
<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");
}
}