<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* themes/theme/common/site-header.html.twig */
class __TwigTemplate_9c42ebaa4920743082ad2b835bb8ea4c extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "themes/theme/common/site-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", "themes/theme/common/site-header.html.twig"));
// line 1
$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);
// line 2
$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));
// line 3
yield "
<header class=\"";
// line 4
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"));
yield "\">
<div class=\"site-header__container\">
<a class=\"site-header__logo\" href=\"/\">
";
// line 7
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)) {
// line 8
yield " <img
class=\"logo-icon\"
src=\"";
// line 10
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/logo-mark.svg"), "html", null, true);
yield "\"
alt=\"Taurus HR logo mark\"
width=\"87\"
height=\"55\"
loading=\"lazy\"
>
<img
class=\"logo-text\"
src=\"";
// line 18
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/images/logo-text.svg"), "html", null, true);
yield "\"
alt=\"Taurus HR logo text\"
width=\"165\"
height=\"48\"
loading=\"lazy\"
>
";
} else {
// line 25
yield " <img
class=\"logo-icon\"
src=\"";
// line 27
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);
yield "\"
alt=\"Taurus HR logo mark\"
width=\"87\"
height=\"55\"
loading=\"lazy\"
>
<img
class=\"logo-text\"
src=\"";
// line 35
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);
yield "\"
alt=\"Taurus HR logo text\"
width=\"165\"
height=\"48\"
loading=\"lazy\"
>
";
}
// line 42
yield " </a>
<div class=\"site-header__contact\">
<a href=\"tel:";
// line 44
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags($this->env->getFunction('renderSetting')->getCallable()(2, "content")), "html", null, true);
yield "\"
><i class=\"fa-solid fa-phone\"></i> ";
// line 45
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags($this->env->getFunction('renderSetting')->getCallable()(2, "content")), "html", null, true);
yield "</a
>
<a href=\"mailto:";
// line 47
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags($this->env->getFunction('renderSetting')->getCallable()(3, "content")), "html", null, true);
yield "\"
><i class=\"fa-solid fa-paper-plane\"></i> ";
// line 48
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::striptags($this->env->getFunction('renderSetting')->getCallable()(3, "content")), "html", null, true);
yield "</a
>
";
// line 50
yield $this->env->getRuntime('Symfony\UX\TwigComponent\Twig\ComponentRuntime')->render("SocialLinks");
yield "
</div>
<div class=\"site-header__list\" id=\"top_menu\">
";
// line 53
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)]));
yield "
<button class=\"site-header__search site-header__desktop-search\">
<i class=\"fa-regular fa-magnifying-glass\"></i>
<span class=\"sr-only\">Search</span>
</button>
</div>
<div class=\"site-header__actions\">
<button class=\"site-header__search site-header__mobile-search\">
<i class=\"fa-regular fa-magnifying-glass\"></i>
<span class=\"sr-only\">Search</span>
</button>
<button
class=\"site-header__toggler\"
type=\"button\"
data-toggle=\"collapse\"
data-target=\"#top-menu\"
aria-controls=\"top-menu\"
aria-expanded=\"false\"
aria-label=\"Toggle navigation\"
>
<span class=\"sr-only\">Toggle navigation</span>
<i class=\"fa-regular fa-bars\"></i>
</button>
</div>
</div>
</header>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "themes/theme/common/site-header.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% set templateId = page.template.id %}
{% set lightTheme = templateId == 7 or templateId == 8 %}
<header class=\"{{ lightTheme ? 'site-header site-header--light' : 'site-header' }}\">
<div class=\"site-header__container\">
<a class=\"site-header__logo\" href=\"/\">
{% if lightTheme %}
<img
class=\"logo-icon\"
src=\"{{ asset('build/images/logo-mark.svg') }}\"
alt=\"Taurus HR logo mark\"
width=\"87\"
height=\"55\"
loading=\"lazy\"
>
<img
class=\"logo-text\"
src=\"{{ asset('build/images/logo-text.svg') }}\"
alt=\"Taurus HR logo text\"
width=\"165\"
height=\"48\"
loading=\"lazy\"
>
{% else %}
<img
class=\"logo-icon\"
src=\"{{ asset('build/images/logo-mark-light.svg') }}\"
alt=\"Taurus HR logo mark\"
width=\"87\"
height=\"55\"
loading=\"lazy\"
>
<img
class=\"logo-text\"
src=\"{{ asset('build/images/logo-text-light.svg') }}\"
alt=\"Taurus HR logo text\"
width=\"165\"
height=\"48\"
loading=\"lazy\"
>
{% endif %}
</a>
<div class=\"site-header__contact\">
<a href=\"tel:{{ renderSetting(2, 'content')|striptags }}\"
><i class=\"fa-solid fa-phone\"></i> {{ renderSetting(2, 'content')|striptags }}</a
>
<a href=\"mailto:{{ renderSetting(3, 'content')|striptags }}\"
><i class=\"fa-solid fa-paper-plane\"></i> {{ renderSetting(3, 'content')|striptags }}</a
>
{{ component('SocialLinks') }}
</div>
<div class=\"site-header__list\" id=\"top_menu\">
{{ render(controller('App\\\\Controller\\\\MenuDefaultController::fetchMenu', { 'identifier':'Top', 'currentUrl': app.request.pathinfo })) }}
<button class=\"site-header__search site-header__desktop-search\">
<i class=\"fa-regular fa-magnifying-glass\"></i>
<span class=\"sr-only\">Search</span>
</button>
</div>
<div class=\"site-header__actions\">
<button class=\"site-header__search site-header__mobile-search\">
<i class=\"fa-regular fa-magnifying-glass\"></i>
<span class=\"sr-only\">Search</span>
</button>
<button
class=\"site-header__toggler\"
type=\"button\"
data-toggle=\"collapse\"
data-target=\"#top-menu\"
aria-controls=\"top-menu\"
aria-expanded=\"false\"
aria-label=\"Toggle navigation\"
>
<span class=\"sr-only\">Toggle navigation</span>
<i class=\"fa-regular fa-bars\"></i>
</button>
</div>
</div>
</header>
", "themes/theme/common/site-header.html.twig", "/var/www/html/t/taurushr/templates/themes/theme/common/site-header.html.twig");
}
}