<?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/partials/mobile/overlay.html.twig */
class __TwigTemplate_5498af75341f630109a698fb207d798f9ef38da9fd91bc3908808ce731802b1e 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/partials/mobile/overlay.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/partials/mobile/overlay.html.twig"));
// line 1
yield "<div
class=\"fixed flex flex-col bottom-0 left-0 right-0 z-50 overflow-auto bg-white lg:hidden top-[74px] text-black h-[calc(100%-74px)]\"
x-show=\"mobileMenuOpen\"
x-transition.opacity.duration.500ms
x-on:resize.window=\"mobileMenuOpen = false\"
>
<div class=\"flex-grow\">
";
// line 8
yield from $this->loadTemplate("app/partials/mobile/navigation.html.twig", "app/partials/mobile/overlay.html.twig", 8)->unwrap()->yield($context);
// line 9
yield "
<div class=\"flex flex-col gap-5 pt-5 px-5\">
";
// line 11
yield from $this->loadTemplate("app/partials/header/emergency.html.twig", "app/partials/mobile/overlay.html.twig", 11)->unwrap()->yield(CoreExtension::merge($context, ["showIcon" => false]));
// line 12
yield "
";
// line 13
if (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.', 13, $this->source); })()), "getProperty", ["workAtPage"], "method", false, false, true, 13)) {
// line 14
yield " ";
$context["workAtLink"] = CoreExtension::getAttribute($this->env, $this->source, 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.', 14, $this->source); })()), "getProperty", ["workAtPage"], "method", false, false, true, 14), "url", [], "any", false, false, true, 14);
// line 15
yield " ";
$context["workAtTitle"] = CoreExtension::getAttribute($this->env, $this->source, 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.', 15, $this->source); })()), "getProperty", ["workAtPage"], "method", false, false, true, 15), "getProperty", ["navigation_title"], "method", false, false, true, 15);
// line 16
yield "
";
// line 17
yield from $this->loadTemplate("app/partials/header/link.html.twig", "app/partials/mobile/overlay.html.twig", 17)->unwrap()->yield(CoreExtension::merge($context, ["href" => (isset($context["workAtLink"]) || array_key_exists("workAtLink", $context) ? $context["workAtLink"] : (function () { throw new RuntimeError('Variable "workAtLink" does not exist.', 17, $this->source); })()), "label" => (isset($context["workAtTitle"]) || array_key_exists("workAtTitle", $context) ? $context["workAtTitle"] : (function () { throw new RuntimeError('Variable "workAtTitle" does not exist.', 17, $this->source); })()), "class" => "text-blue-800"]));
// line 18
yield " ";
}
// line 19
yield "
";
// line 20
if (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.', 20, $this->source); })()), "getProperty", ["contactPage"], "method", false, false, true, 20)) {
// line 21
yield " ";
$context["contactLink"] = CoreExtension::getAttribute($this->env, $this->source, 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.', 21, $this->source); })()), "getProperty", ["contactPage"], "method", false, false, true, 21), "url", [], "any", false, false, true, 21);
// line 22
yield " ";
$context["contactTitle"] = CoreExtension::getAttribute($this->env, $this->source, 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.', 22, $this->source); })()), "getProperty", ["contactPage"], "method", false, false, true, 22), "getProperty", ["navigation_title"], "method", false, false, true, 22);
// line 23
yield "
";
// line 24
yield from $this->loadTemplate("app/partials/header/link.html.twig", "app/partials/mobile/overlay.html.twig", 24)->unwrap()->yield(CoreExtension::merge($context, ["href" => (isset($context["contactLink"]) || array_key_exists("contactLink", $context) ? $context["contactLink"] : (function () { throw new RuntimeError('Variable "contactLink" does not exist.', 24, $this->source); })()), "label" => (isset($context["contactTitle"]) || array_key_exists("contactTitle", $context) ? $context["contactTitle"] : (function () { throw new RuntimeError('Variable "contactTitle" does not exist.', 24, $this->source); })()), "class" => "text-blue-800"]));
// line 25
yield " ";
}
// line 26
yield " </div>
<div class=\"px-5 my-5\">
";
// line 29
yield from $this->loadTemplate("app/partials/languageswitch.html.twig", "app/partials/mobile/overlay.html.twig", 29)->unwrap()->yield(CoreExtension::merge($context, ["theme" => "header"]));
// line 30
yield " </div>
</div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "app/partials/mobile/overlay.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 112 => 30, 110 => 29, 105 => 26, 102 => 25, 100 => 24, 97 => 23, 94 => 22, 91 => 21, 89 => 20, 86 => 19, 83 => 18, 81 => 17, 78 => 16, 75 => 15, 72 => 14, 70 => 13, 67 => 12, 65 => 11, 61 => 9, 59 => 8, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<div
class=\"fixed flex flex-col bottom-0 left-0 right-0 z-50 overflow-auto bg-white lg:hidden top-[74px] text-black h-[calc(100%-74px)]\"
x-show=\"mobileMenuOpen\"
x-transition.opacity.duration.500ms
x-on:resize.window=\"mobileMenuOpen = false\"
>
<div class=\"flex-grow\">
{% include 'app/partials/mobile/navigation.html.twig' %}
<div class=\"flex flex-col gap-5 pt-5 px-5\">
{% include \"app/partials/header/emergency.html.twig\" with {showIcon: false} %}
{% if document.getProperty('workAtPage') %}
{% set workAtLink = document.getProperty('workAtPage').url %}
{% set workAtTitle = document.getProperty('workAtPage').getProperty('navigation_title') %}
{% include \"app/partials/header/link.html.twig\" with {href: workAtLink, label: workAtTitle, class: 'text-blue-800'} %}
{% endif %}
{% if document.getProperty('contactPage') %}
{% set contactLink = document.getProperty('contactPage').url %}
{% set contactTitle = document.getProperty('contactPage').getProperty('navigation_title') %}
{% include \"app/partials/header/link.html.twig\" with {href: contactLink, label: contactTitle, class: 'text-blue-800'} %}
{% endif %}
</div>
<div class=\"px-5 my-5\">
{% include 'app/partials/languageswitch.html.twig' with {'theme': 'header' } %}
</div>
</div>
</div>
", "app/partials/mobile/overlay.html.twig", "/home/forge/testing.coolworld.ptchr.dev/templates/app/partials/mobile/overlay.html.twig");
}
public function checkSecurity()
{
static $tags = ["include" => 8, "if" => 13, "set" => 14];
static $filters = [];
static $functions = [];
try {
$this->sandbox->checkSecurity(
['include', 'if', 'set'],
[],
[],
$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;
}
}
}