var/cache/dev/twig/34/3413d075bdd23deeda25ba31088f3b86.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\MacroNamespace;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Sandbox\SecurityNotAllowedTestError;
  14. use Twig\Source;
  15. use Twig\Template;
  16. use Twig\TemplateWrapper;
  17. /* @NellappSDK/Partials/component/header/header.html.twig */
  18. class __TwigTemplate_e051e17c06eb74e49d223d198a2a54df extends Template
  19. {
  20. private Source $source;
  21. /**
  22. * @var array<string, MacroNamespace>
  23. */
  24. private array $macros = [];
  25. private \Twig\Runtime\EscaperRuntime $escaper;
  26. public function __construct(Environment $env)
  27. {
  28. parent::__construct($env);
  29. $this->source = $this->getSourceContext();
  30. $this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
  31. $this->blocks = [
  32. 'header_center_content' => [$this, 'block_header_center_content'],
  33. 'header_actions_content' => [$this, 'block_header_actions_content'],
  34. 'header_notification_menu' => [$this, 'block_header_notification_menu'],
  35. ];
  36. }
  37. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  38. {
  39. // line 1
  40. return $this->parent ??= $this->load("@!NellappSDK/Partials/component/header/header.html.twig", 1);
  41. }
  42. protected function doDisplay(array $context, array $blocks = []): iterable
  43. {
  44. $macros = $this->macros;
  45. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  46. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@NellappSDK/Partials/component/header/header.html.twig"));
  47. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  48. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@NellappSDK/Partials/component/header/header.html.twig"));
  49. $this->parent = $this->load("@!NellappSDK/Partials/component/header/header.html.twig", 1);
  50. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  51. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  52. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53. }
  54. // line 3
  55. /**
  56. * @return iterable<null|scalar|\Stringable>
  57. */
  58. public function block_header_center_content(array $context, array $blocks = []): iterable
  59. {
  60. $macros = $this->macros;
  61. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  62. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_center_content"));
  63. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  64. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_center_content"));
  65. // line 4
  66. yield " ";
  67. 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)) {
  68. // line 5
  69. yield " ";
  70. yield (string) $this->env->getRuntime('App\Twig\Runtime\SearchRuntime')->searchForm($this->env);
  71. yield "
  72. ";
  73. }
  74. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  75. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  76. return; yield;
  77. }
  78. // line 9
  79. /**
  80. * @return iterable<null|scalar|\Stringable>
  81. */
  82. public function block_header_actions_content(array $context, array $blocks = []): iterable
  83. {
  84. $macros = $this->macros;
  85. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  86. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_actions_content"));
  87. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  88. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_actions_content"));
  89. // line 10
  90. yield " ";
  91. 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)) {
  92. // line 11
  93. yield " ";
  94. yield from $this->yieldParentBlock("header_actions_content", $context, $blocks);
  95. yield "
  96. ";
  97. } else {
  98. // line 13
  99. yield " <div class=\"not-connected-dro\">
  100. <a href=\"";
  101. // line 14
  102. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("nellapp_sdk_connect_nellapp");
  103. yield "\" class=\"btn-nellapp-v2\">
  104. <i class=\"fas fa-sign-in-alt d-md-none\"></i>
  105. <span class=\"d-none d-md-inline\">
  106. ";
  107. // line 17
  108. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menus.front.appbar.login.label"), "html", null, true);
  109. yield "
  110. </span>
  111. </a>
  112. </div>
  113. ";
  114. }
  115. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  116. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  117. return; yield;
  118. }
  119. // line 24
  120. /**
  121. * @return iterable<null|scalar|\Stringable>
  122. */
  123. public function block_header_notification_menu(array $context, array $blocks = []): iterable
  124. {
  125. $macros = $this->macros;
  126. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  127. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_notification_menu"));
  128. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  129. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_notification_menu"));
  130. // line 25
  131. yield " <li>";
  132. yield (string) $this->extensions['Symfony\UX\TwigComponent\Twig\ComponentExtension']->render("Notification:Menu", ["bsVersion" => 4]);
  133. yield "</li>
  134. ";
  135. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  136. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  137. return; yield;
  138. }
  139. /**
  140. * @codeCoverageIgnore
  141. */
  142. public function getTemplateName(): string
  143. {
  144. return "@NellappSDK/Partials/component/header/header.html.twig";
  145. }
  146. /**
  147. * @codeCoverageIgnore
  148. */
  149. public function isTraitable(): bool
  150. {
  151. return false;
  152. }
  153. /**
  154. * @codeCoverageIgnore
  155. */
  156. public function getDefaultEscapeStrategy(): string|false
  157. {
  158. return "html";
  159. }
  160. /**
  161. * @codeCoverageIgnore
  162. */
  163. public function getDebugInfo(): array
  164. {
  165. 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,);
  166. }
  167. public function getSourceContext(): Source
  168. {
  169. return new Source("{% extends \"@!NellappSDK/Partials/component/header/header.html.twig\" %}
  170. {% block header_center_content %}
  171. {% if enable_search|default(false) is same as true %}
  172. {{ search_form() }}
  173. {% endif %}
  174. {% endblock %}
  175. {% block header_actions_content %}
  176. {% if app.user %}
  177. {{ parent() }}
  178. {% else %}
  179. <div class=\"not-connected-dro\">
  180. <a href=\"{{ path(\x27nellapp_sdk_connect_nellapp\x27) }}\" class=\"btn-nellapp-v2\">
  181. <i class=\"fas fa-sign-in-alt d-md-none\"></i>
  182. <span class=\"d-none d-md-inline\">
  183. {{ \x27menus.front.appbar.login.label\x27|trans }}
  184. </span>
  185. </a>
  186. </div>
  187. {% endif %}
  188. {% endblock %}
  189. {% block header_notification_menu %}
  190. <li>{{ component(\x27Notification:Menu\x27, { bsVersion: 4 }) }}</li>
  191. {% endblock header_notification_menu %}", "@NellappSDK/Partials/component/header/header.html.twig", "/var/www/html/templates/bundles/NellappSDKBundle/Partials/component/header/header.html.twig");
  192. }
  193. }