var/cache/dev/twig/5d/5d010f9f2032a06f6093b5a5aef722b5.php line 80

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. /* Partial/Base/header.html.twig */
  18. class __TwigTemplate_7e1dc9a9d6f16a403cc920ec293c869e 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->parent = false;
  32. $this->blocks = [
  33. 'header_inner' => [$this, 'block_header_inner'],
  34. 'before_navbar' => [$this, 'block_before_navbar'],
  35. 'navbar' => [$this, 'block_navbar'],
  36. 'navbar_link' => [$this, 'block_navbar_link'],
  37. 'navbar_title' => [$this, 'block_navbar_title'],
  38. 'navbar_title_inner' => [$this, 'block_navbar_title_inner'],
  39. 'navbar_menu' => [$this, 'block_navbar_menu'],
  40. ];
  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", "Partial/Base/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", "Partial/Base/header.html.twig"));
  49. // line 1
  50. yield "<header class=\"main-header white\">
  51. ";
  52. // line 2
  53. yield from $this->unwrap()->yieldBlock('header_inner', $context, $blocks);
  54. // line 51
  55. yield "</header>
  56. ";
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  58. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  59. return; yield;
  60. }
  61. // line 2
  62. /**
  63. * @return iterable<null|scalar|\Stringable>
  64. */
  65. public function block_header_inner(array $context, array $blocks = []): iterable
  66. {
  67. $macros = $this->macros;
  68. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  69. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_inner"));
  70. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  71. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_inner"));
  72. // line 3
  73. yield " ";
  74. yield from $this->unwrap()->yieldBlock('before_navbar', $context, $blocks);
  75. // line 5
  76. yield " <nav class=\"navbar navbar-expand-lg navbar-dark navbar-with-drawer-btn background-thumb-cut\">
  77. <div class=\"header-content\">
  78. ";
  79. // line 7
  80. yield from $this->unwrap()->yieldBlock('navbar', $context, $blocks);
  81. // line 48
  82. yield " </div>
  83. </nav>
  84. ";
  85. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  86. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  87. return; yield;
  88. }
  89. // line 3
  90. /**
  91. * @return iterable<null|scalar|\Stringable>
  92. */
  93. public function block_before_navbar(array $context, array $blocks = []): iterable
  94. {
  95. $macros = $this->macros;
  96. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  97. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "before_navbar"));
  98. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  99. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "before_navbar"));
  100. // line 4
  101. yield " ";
  102. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  103. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  104. return; yield;
  105. }
  106. // line 7
  107. /**
  108. * @return iterable<null|scalar|\Stringable>
  109. */
  110. public function block_navbar(array $context, array $blocks = []): iterable
  111. {
  112. $macros = $this->macros;
  113. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  114. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
  115. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  116. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar"));
  117. // line 8
  118. yield " <div class=\"header-left\">
  119. ";
  120. // line 9
  121. yield from $this->unwrap()->yieldBlock('navbar_link', $context, $blocks);
  122. // line 12
  123. yield "
  124. ";
  125. // line 13
  126. yield from $this->unwrap()->yieldBlock('navbar_title', $context, $blocks);
  127. // line 29
  128. yield " </div>
  129. <div class=\"header-center\">
  130. ";
  131. // line 32
  132. if (( !array_key_exists("disable_header_search", $context) || ((isset($context["disable_header_search"]) || array_key_exists("disable_header_search", $context) ? $context["disable_header_search"] : (function () { throw new RuntimeError('Variable "disable_header_search" does not exist.', 32, $this->source); })()) === false))) {
  133. // line 33
  134. yield " ";
  135. if ((null === 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.', 33, $this->source); })()), "user", [], "any", false, false, false, 33))) {
  136. // line 34
  137. yield " ";
  138. yield (string) $this->env->getRuntime('App\Twig\Runtime\SearchRuntime')->searchForm($this->env);
  139. yield "
  140. <div class=\"d-none d-lg-block about-nellapp-link\">
  141. <a href=\"";
  142. // line 36
  143. yield (string) $this->escaper->escape((isset($context["nellapp_wordpress_url"]) || array_key_exists("nellapp_wordpress_url", $context) ? $context["nellapp_wordpress_url"] : (function () { throw new RuntimeError('Variable "nellapp_wordpress_url" does not exist.', 36, $this->source); })()), "html", null, true);
  144. yield "\">
  145. Organisme de formation
  146. </a>
  147. </div>
  148. ";
  149. }
  150. // line 41
  151. yield " ";
  152. }
  153. // line 42
  154. yield " </div>
  155. ";
  156. // line 44
  157. yield from $this->unwrap()->yieldBlock('navbar_menu', $context, $blocks);
  158. // line 47
  159. yield " ";
  160. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  161. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  162. return; yield;
  163. }
  164. // line 9
  165. /**
  166. * @return iterable<null|scalar|\Stringable>
  167. */
  168. public function block_navbar_link(array $context, array $blocks = []): iterable
  169. {
  170. $macros = $this->macros;
  171. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  172. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar_link"));
  173. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  174. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar_link"));
  175. // line 10
  176. yield "
  177. ";
  178. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  179. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  180. return; yield;
  181. }
  182. // line 13
  183. /**
  184. * @return iterable<null|scalar|\Stringable>
  185. */
  186. public function block_navbar_title(array $context, array $blocks = []): iterable
  187. {
  188. $macros = $this->macros;
  189. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  190. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar_title"));
  191. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  192. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar_title"));
  193. // line 14
  194. yield " <a href=\"";
  195. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  196. yield "\" class=\"navbar-brand\">";
  197. // line 15
  198. yield from $this->unwrap()->yieldBlock('navbar_title_inner', $context, $blocks);
  199. // line 26
  200. if ((($tmp = $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\EnvRuntime')->isEnv("staging")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  201. yield " [TEST]";
  202. }
  203. // line 27
  204. yield "</a>";
  205. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  206. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  207. return; yield;
  208. }
  209. // line 15
  210. /**
  211. * @return iterable<null|scalar|\Stringable>
  212. */
  213. public function block_navbar_title_inner(array $context, array $blocks = []): iterable
  214. {
  215. $macros = $this->macros;
  216. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  217. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar_title_inner"));
  218. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  219. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar_title_inner"));
  220. // line 16
  221. $context["channel"] = $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\ChannelRuntime')->getChannelFromDomain();
  222. // line 17
  223. yield " ";
  224. if ( !(null === (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 17, $this->source); })()))) {
  225. // line 18
  226. yield " ";
  227. yield (string) $this->env->getRuntime('Nellapp\Bundle\SDKBundle\Twig\Runtime\ChannelRuntime')->renderChannelLogo($this->env, (isset($context["channel"]) || array_key_exists("channel", $context) ? $context["channel"] : (function () { throw new RuntimeError('Variable "channel" does not exist.', 18, $this->source); })()));
  228. yield "
  229. ";
  230. } else {
  231. // line 20
  232. yield " <img class=\"logo-brand\"
  233. src=\"";
  234. // line 21
  235. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/common/nellapp-login-register.svg", "common"), "html", null, true);
  236. yield "\"
  237. alt=\"";
  238. // line 22
  239. yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("site.title.label"), "html_attr");
  240. yield "\">
  241. ";
  242. }
  243. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  244. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  245. return; yield;
  246. }
  247. // line 44
  248. /**
  249. * @return iterable<null|scalar|\Stringable>
  250. */
  251. public function block_navbar_menu(array $context, array $blocks = []): iterable
  252. {
  253. $macros = $this->macros;
  254. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  255. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar_menu"));
  256. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  257. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "navbar_menu"));
  258. // line 45
  259. yield " ";
  260. yield from $this->load("Partial/Base/account-drop.html.twig", 45)->unwrap()->yield($context);
  261. // line 46
  262. yield " ";
  263. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  264. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  265. return; yield;
  266. }
  267. /**
  268. * @codeCoverageIgnore
  269. */
  270. public function getTemplateName(): string
  271. {
  272. return "Partial/Base/header.html.twig";
  273. }
  274. /**
  275. * @codeCoverageIgnore
  276. */
  277. public function getDefaultEscapeStrategy(): string|false
  278. {
  279. return "html";
  280. }
  281. /**
  282. * @codeCoverageIgnore
  283. */
  284. public function getDebugInfo(): array
  285. {
  286. return array ( 323 => 46, 320 => 45, 307 => 44, 293 => 22, 289 => 21, 286 => 20, 280 => 18, 277 => 17, 275 => 16, 262 => 15, 251 => 27, 247 => 26, 245 => 15, 241 => 14, 228 => 13, 216 => 10, 203 => 9, 192 => 47, 190 => 44, 186 => 42, 183 => 41, 175 => 36, 169 => 34, 166 => 33, 164 => 32, 159 => 29, 157 => 13, 154 => 12, 152 => 9, 149 => 8, 136 => 7, 125 => 4, 112 => 3, 99 => 48, 97 => 7, 93 => 5, 90 => 3, 77 => 2, 65 => 51, 63 => 2, 60 => 1,);
  287. }
  288. public function getSourceContext(): Source
  289. {
  290. return new Source("<header class=\"main-header white\">
  291. {% block header_inner %}
  292. {% block before_navbar %}
  293. {% endblock before_navbar %}
  294. <nav class=\"navbar navbar-expand-lg navbar-dark navbar-with-drawer-btn background-thumb-cut\">
  295. <div class=\"header-content\">
  296. {% block navbar %}
  297. <div class=\"header-left\">
  298. {% block navbar_link %}
  299. {% endblock %}
  300. {% block navbar_title %}
  301. <a href=\"{{ path(\x27home\x27) }}\" class=\"navbar-brand\">
  302. {%- block navbar_title_inner -%}
  303. {% set channel = get_channel_from_domain() %}
  304. {% if channel is not null %}
  305. {{ render_channel_logo(channel) }}
  306. {% else %}
  307. <img class=\"logo-brand\"
  308. src=\"{{ asset(\x27build/common/nellapp-login-register.svg\x27, \x27common\x27) }}\"
  309. alt=\"{{ \x27site.title.label\x27|trans|e(\x27html_attr\x27) }}\">
  310. {% endif %}
  311. {%- endblock navbar_title_inner -%}
  312. {%- if is_env(\x27staging\x27) %} [TEST]{% endif -%}
  313. </a>
  314. {%- endblock navbar_title %}
  315. </div>
  316. <div class=\"header-center\">
  317. {% if disable_header_search is not defined or disable_header_search is same as false %}
  318. {% if app.user is null %}
  319. {{ search_form() }}
  320. <div class=\"d-none d-lg-block about-nellapp-link\">
  321. <a href=\"{{ nellapp_wordpress_url }}\">
  322. Organisme de formation
  323. </a>
  324. </div>
  325. {% endif %}
  326. {% endif %}
  327. </div>
  328. {% block navbar_menu %}
  329. {% include \x27Partial/Base/account-drop.html.twig\x27 %}
  330. {% endblock navbar_menu %}
  331. {% endblock navbar %}
  332. </div>
  333. </nav>
  334. {% endblock header_inner %}
  335. </header>
  336. ", "Partial/Base/header.html.twig", "/var/www/html/templates/Partial/Base/header.html.twig");
  337. }
  338. }