<?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_e051e17c06eb74e49d223d198a2a54df 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->blocks = [
'header_center_content' => [$this, 'block_header_center_content'],
'header_actions_content' => [$this, 'block_header_actions_content'],
'header_notification_menu' => [$this, 'block_header_notification_menu'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return $this->parent ??= $this->load("@!NellappSDK/Partials/component/header/header.html.twig", 1);
}
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"));
$this->parent = $this->load("@!NellappSDK/Partials/component/header/header.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @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 4
yield " ";
if ((((array_key_exists("enable_search", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["enable_search"]) || array_key_exists("enable_search", $context) ? $context["enable_search"] : (function () { throw new RuntimeError('Variable "enable_search" does not exist.', 4, $this->source); })()), false)) : (false)) === true)) {
// line 5
yield " ";
yield (string) $this->env->getRuntime('App\Twig\Runtime\SearchRuntime')->searchForm($this->env);
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_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 10
yield " ";
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.', 10, $this->source); })()), "user", [], "any", false, false, false, 10)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 11
yield " ";
yield from $this->yieldParentBlock("header_actions_content", $context, $blocks);
yield "
";
} else {
// line 13
yield " <div class=\"not-connected-dro\">
<a href=\"";
// line 14
yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("nellapp_sdk_connect_nellapp");
yield "\" class=\"btn-nellapp-v2\">
<i class=\"fas fa-sign-in-alt d-md-none\"></i>
<span class=\"d-none d-md-inline\">
";
// line 17
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menus.front.appbar.login.label"), "html", null, true);
yield "
</span>
</a>
</div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 24
/**
* @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 25
yield " <li>";
yield (string) $this->extensions['Symfony\UX\TwigComponent\Twig\ComponentExtension']->render("Notification:Menu", ["bsVersion" => 4]);
yield "</li>
";
$__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 ( 162 => 25, 149 => 24, 132 => 17, 126 => 14, 123 => 13, 117 => 11, 114 => 10, 101 => 9, 86 => 5, 83 => 4, 70 => 3, 47 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \"@!NellappSDK/Partials/component/header/header.html.twig\" %}
{% block header_center_content %}
{% if enable_search|default(false) is same as true %}
{{ search_form() }}
{% endif %}
{% endblock %}
{% block header_actions_content %}
{% if app.user %}
{{ parent() }}
{% else %}
<div class=\"not-connected-dro\">
<a href=\"{{ path(\x27nellapp_sdk_connect_nellapp\x27) }}\" class=\"btn-nellapp-v2\">
<i class=\"fas fa-sign-in-alt d-md-none\"></i>
<span class=\"d-none d-md-inline\">
{{ \x27menus.front.appbar.login.label\x27|trans }}
</span>
</a>
</div>
{% endif %}
{% endblock %}
{% block header_notification_menu %}
<li>{{ component(\x27Notification:Menu\x27, { bsVersion: 4 }) }}</li>
{% endblock header_notification_menu %}", "@NellappSDK/Partials/component/header/header.html.twig", "/var/www/html/templates/bundles/NellappSDKBundle/Partials/component/header/header.html.twig");
}
}