var/cache/dev/twig/ee/eec94c92293d3d282a9a0bac46c6c33d.php line 38

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\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* themes/theme/common/site-header.html.twig */
  16. class __TwigTemplate_9c42ebaa4920743082ad2b835bb8ea4c extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "themes/theme/common/site-header.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "themes/theme/common/site-header.html.twig"));
  38. // line 1
  39. $context["templateId"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 1, $this->source); })()), "template", [], "any", false, false, false, 1), "id", [], "any", false, false, false, 1);
  40. // line 2
  41. $context["lightTheme"] = (((isset($context["templateId"]) || array_key_exists("templateId", $context) ? $context["templateId"] : (function () { throw new RuntimeError('Variable "templateId" does not exist.', 2, $this->source); })()) == 7) || ((isset($context["templateId"]) || array_key_exists("templateId", $context) ? $context["templateId"] : (function () { throw new RuntimeError('Variable "templateId" does not exist.', 2, $this->source); })()) == 8));
  42. // line 3
  43. yield "
  44. <header class=\"";
  45. // line 4
  46. yield (((($tmp = (isset($context["lightTheme"]) || array_key_exists("lightTheme", $context) ? $context["lightTheme"] : (function () { throw new RuntimeError('Variable "lightTheme" does not exist.', 4, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("site-header site-header--light") : ("site-header"));
  47. yield "\">
  48. <div class=\"site-header__container\">
  49. <a class=\"site-header__logo\" href=\"/\">
  50. ";
  51. // line 7
  52. if ((($tmp = (isset($context["lightTheme"]) || array_key_exists("lightTheme", $context) ? $context["lightTheme"] : (function () { throw new RuntimeError('Variable "lightTheme" does not exist.', 7, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  53. // line 8
  54. yield " <img
  55. class=\"logo-icon\"
  56. src=\"";
  57. // line 10
  58. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/logo-mark.svg"), "html", null, true);
  59. yield "\"
  60. alt=\"Taurus HR logo mark\"
  61. width=\"87\"
  62. height=\"55\"
  63. loading=\"lazy\"
  64. >
  65. <img
  66. class=\"logo-text\"
  67. src=\"";
  68. // line 18
  69. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/logo-text.svg"), "html", null, true);
  70. yield "\"
  71. alt=\"Taurus HR logo text\"
  72. width=\"165\"
  73. height=\"48\"
  74. loading=\"lazy\"
  75. >
  76. ";
  77. } else {
  78. // line 25
  79. yield " <img
  80. class=\"logo-icon\"
  81. src=\"";
  82. // line 27
  83. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/logo-mark-light.svg"), "html", null, true);
  84. yield "\"
  85. alt=\"Taurus HR logo mark\"
  86. width=\"87\"
  87. height=\"55\"
  88. loading=\"lazy\"
  89. >
  90. <img
  91. class=\"logo-text\"
  92. src=\"";
  93. // line 35
  94. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/logo-text-light.svg"), "html", null, true);
  95. yield "\"
  96. alt=\"Taurus HR logo text\"
  97. width=\"165\"
  98. height=\"48\"
  99. loading=\"lazy\"
  100. >
  101. ";
  102. }
  103. // line 42
  104. yield " </a>
  105. <div class=\"site-header__contact\">
  106. <a href=\"tel:";
  107. // line 44
  108. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags($this->env->getFunction('renderSetting')->getCallable()(2, "content")), "html", null, true);
  109. yield "\"
  110. ><i class=\"fa-solid fa-phone\"></i> ";
  111. // line 45
  112. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags($this->env->getFunction('renderSetting')->getCallable()(2, "content")), "html", null, true);
  113. yield "</a
  114. >
  115. <a href=\"mailto:";
  116. // line 47
  117. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags($this->env->getFunction('renderSetting')->getCallable()(3, "content")), "html", null, true);
  118. yield "\"
  119. ><i class=\"fa-solid fa-paper-plane\"></i> ";
  120. // line 48
  121. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags($this->env->getFunction('renderSetting')->getCallable()(3, "content")), "html", null, true);
  122. yield "</a
  123. >
  124. ";
  125. // line 50
  126. yield $this->env->getRuntime('Symfony\UX\TwigComponent\Twig\ComponentRuntime')->render("SocialLinks");
  127. yield "
  128. </div>
  129. <div class=\"site-header__list\" id=\"top_menu\">
  130. ";
  131. // line 53
  132. yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\MenuDefaultController::fetchMenu", ["identifier" => "Top", "currentUrl" => CoreExtension::getAttribute($this->env, $this->source, 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.', 53, $this->source); })()), "request", [], "any", false, false, false, 53), "pathinfo", [], "any", false, false, false, 53)]));
  133. yield "
  134. <button class=\"site-header__search site-header__desktop-search\">
  135. <i class=\"fa-regular fa-magnifying-glass\"></i>
  136. <span class=\"sr-only\">Search</span>
  137. </button>
  138. </div>
  139. <div class=\"site-header__actions\">
  140. <button class=\"site-header__search site-header__mobile-search\">
  141. <i class=\"fa-regular fa-magnifying-glass\"></i>
  142. <span class=\"sr-only\">Search</span>
  143. </button>
  144. <button
  145. class=\"site-header__toggler\"
  146. type=\"button\"
  147. data-toggle=\"collapse\"
  148. data-target=\"#top-menu\"
  149. aria-controls=\"top-menu\"
  150. aria-expanded=\"false\"
  151. aria-label=\"Toggle navigation\"
  152. >
  153. <span class=\"sr-only\">Toggle navigation</span>
  154. <i class=\"fa-regular fa-bars\"></i>
  155. </button>
  156. </div>
  157. </div>
  158. </header>
  159. ";
  160. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  161. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  162. yield from [];
  163. }
  164. /**
  165. * @codeCoverageIgnore
  166. */
  167. public function getTemplateName(): string
  168. {
  169. return "themes/theme/common/site-header.html.twig";
  170. }
  171. /**
  172. * @codeCoverageIgnore
  173. */
  174. public function isTraitable(): bool
  175. {
  176. return false;
  177. }
  178. /**
  179. * @codeCoverageIgnore
  180. */
  181. public function getDebugInfo(): array
  182. {
  183. return array ( 141 => 53, 135 => 50, 130 => 48, 126 => 47, 121 => 45, 117 => 44, 113 => 42, 103 => 35, 92 => 27, 88 => 25, 78 => 18, 67 => 10, 63 => 8, 61 => 7, 55 => 4, 52 => 3, 50 => 2, 48 => 1,);
  184. }
  185. public function getSourceContext(): Source
  186. {
  187. return new Source("{% set templateId = page.template.id %}
  188. {% set lightTheme = templateId == 7 or templateId == 8 %}
  189. <header class=\"{{ lightTheme ? 'site-header site-header--light' : 'site-header' }}\">
  190. <div class=\"site-header__container\">
  191. <a class=\"site-header__logo\" href=\"/\">
  192. {% if lightTheme %}
  193. <img
  194. class=\"logo-icon\"
  195. src=\"{{ asset('build/images/logo-mark.svg') }}\"
  196. alt=\"Taurus HR logo mark\"
  197. width=\"87\"
  198. height=\"55\"
  199. loading=\"lazy\"
  200. >
  201. <img
  202. class=\"logo-text\"
  203. src=\"{{ asset('build/images/logo-text.svg') }}\"
  204. alt=\"Taurus HR logo text\"
  205. width=\"165\"
  206. height=\"48\"
  207. loading=\"lazy\"
  208. >
  209. {% else %}
  210. <img
  211. class=\"logo-icon\"
  212. src=\"{{ asset('build/images/logo-mark-light.svg') }}\"
  213. alt=\"Taurus HR logo mark\"
  214. width=\"87\"
  215. height=\"55\"
  216. loading=\"lazy\"
  217. >
  218. <img
  219. class=\"logo-text\"
  220. src=\"{{ asset('build/images/logo-text-light.svg') }}\"
  221. alt=\"Taurus HR logo text\"
  222. width=\"165\"
  223. height=\"48\"
  224. loading=\"lazy\"
  225. >
  226. {% endif %}
  227. </a>
  228. <div class=\"site-header__contact\">
  229. <a href=\"tel:{{ renderSetting(2, 'content')|striptags }}\"
  230. ><i class=\"fa-solid fa-phone\"></i> {{ renderSetting(2, 'content')|striptags }}</a
  231. >
  232. <a href=\"mailto:{{ renderSetting(3, 'content')|striptags }}\"
  233. ><i class=\"fa-solid fa-paper-plane\"></i> {{ renderSetting(3, 'content')|striptags }}</a
  234. >
  235. {{ component('SocialLinks') }}
  236. </div>
  237. <div class=\"site-header__list\" id=\"top_menu\">
  238. {{ render(controller('App\\\\Controller\\\\MenuDefaultController::fetchMenu', { 'identifier':'Top', 'currentUrl': app.request.pathinfo })) }}
  239. <button class=\"site-header__search site-header__desktop-search\">
  240. <i class=\"fa-regular fa-magnifying-glass\"></i>
  241. <span class=\"sr-only\">Search</span>
  242. </button>
  243. </div>
  244. <div class=\"site-header__actions\">
  245. <button class=\"site-header__search site-header__mobile-search\">
  246. <i class=\"fa-regular fa-magnifying-glass\"></i>
  247. <span class=\"sr-only\">Search</span>
  248. </button>
  249. <button
  250. class=\"site-header__toggler\"
  251. type=\"button\"
  252. data-toggle=\"collapse\"
  253. data-target=\"#top-menu\"
  254. aria-controls=\"top-menu\"
  255. aria-expanded=\"false\"
  256. aria-label=\"Toggle navigation\"
  257. >
  258. <span class=\"sr-only\">Toggle navigation</span>
  259. <i class=\"fa-regular fa-bars\"></i>
  260. </button>
  261. </div>
  262. </div>
  263. </header>
  264. ", "themes/theme/common/site-header.html.twig", "/var/www/html/t/taurushr/templates/themes/theme/common/site-header.html.twig");
  265. }
  266. }