<?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;
/* app/header.html.twig */
class __TwigTemplate_630313b900922a23db468c3817723b061a4ae4fa73bcf2fbdfe1fab66845d2c5 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 = [
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "app/header.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "app/header.html.twig"));
// line 1
yield "<header
class=\"h-[74px] lg:h-[113px] bg-blue lg:bg-white relative z-40\"
x-data=\"{ mobileMenuOpen: false }\"
>
";
// line 6
yield " <nav class=\"fixed bg-white w-full text-white h-full sm:h-auto hidden lg:block\">
";
// line 7
yield from $this->loadTemplate("app/partials/header/top.html.twig", "app/header.html.twig", 7)->unwrap()->yield($context);
// line 8
yield "
";
// line 9
yield from $this->loadTemplate("app/partials/header/bottom.html.twig", "app/header.html.twig", 9)->unwrap()->yield($context);
// line 10
yield "
";
// line 11
yield $this->env->getFunction('pimcore_inc')->getCallable()($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 11, $this->source); })()), "getProperty", ["noticebarSnippet"], "method", false, false, true, 11), 11, $this->source));
yield "
</nav>
";
// line 15
yield " <nav :class=\"mobileMenuOpen || scrollState ? 'fixed top-0 left-0 right-0 lg:hidden' : 'relative lg:hidden'\">
";
// line 16
yield from $this->loadTemplate("app/partials/header/mobile.html.twig", "app/header.html.twig", 16)->unwrap()->yield($context);
// line 17
yield " ";
yield from $this->loadTemplate("app/partials/mobile/overlay.html.twig", "app/header.html.twig", 17)->unwrap()->yield($context);
// line 18
yield " </nav>
</header>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "app/header.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 83 => 18, 80 => 17, 78 => 16, 75 => 15, 69 => 11, 66 => 10, 64 => 9, 61 => 8, 59 => 7, 56 => 6, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<header
class=\"h-[74px] lg:h-[113px] bg-blue lg:bg-white relative z-40\"
x-data=\"{ mobileMenuOpen: false }\"
>
{# desktop nav #}
<nav class=\"fixed bg-white w-full text-white h-full sm:h-auto hidden lg:block\">
{% include 'app/partials/header/top.html.twig' %}
{% include 'app/partials/header/bottom.html.twig' %}
{{ pimcore_inc(document.getProperty('noticebarSnippet')) }}
</nav>
{# mobile nav #}
<nav :class=\"mobileMenuOpen || scrollState ? 'fixed top-0 left-0 right-0 lg:hidden' : 'relative lg:hidden'\">
{% include 'app/partials/header/mobile.html.twig' %}
{% include 'app/partials/mobile/overlay.html.twig' %}
</nav>
</header>", "app/header.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/app/header.html.twig");
}
public function checkSecurity()
{
static $tags = ["include" => 7];
static $filters = [];
static $functions = ["pimcore_inc" => 11];
try {
$this->sandbox->checkSecurity(
['include'],
[],
['pimcore_inc'],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}