var/cache/dev/twig/79/793742cdd741c29577e29202c0284bb39eb8ac6e5abe4cdcaace4eb04219118a.php line 40

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. /* app/partials/mobile/overlay.html.twig */
  16. class __TwigTemplate_5498af75341f630109a698fb207d798f9ef38da9fd91bc3908808ce731802b1e 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.         $this->sandbox $this->extensions[SandboxExtension::class];
  31.         $this->checkSecurity();
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = []): iterable
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""app/partials/mobile/overlay.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""app/partials/mobile/overlay.html.twig"));
  40.         // line 1
  41.         yield "<div
  42.     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)]\"
  43.     x-show=\"mobileMenuOpen\"
  44.     x-transition.opacity.duration.500ms
  45.     x-on:resize.window=\"mobileMenuOpen = false\"
  46. >
  47.     <div class=\"flex-grow\">
  48.         ";
  49.         // line 8
  50.         yield from $this->loadTemplate("app/partials/mobile/navigation.html.twig""app/partials/mobile/overlay.html.twig"8)->unwrap()->yield($context);
  51.         // line 9
  52.         yield "
  53.         <div class=\"flex flex-col gap-5 pt-5 px-5\">
  54.             ";
  55.         // line 11
  56.         yield from $this->loadTemplate("app/partials/header/emergency.html.twig""app/partials/mobile/overlay.html.twig"11)->unwrap()->yield(CoreExtension::merge($context, ["showIcon" => false]));
  57.         // line 12
  58.         yield "
  59.             ";
  60.         // line 13
  61.         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"falsefalsetrue13)) {
  62.             // line 14
  63.             yield "                ";
  64.             $context["workAtLink"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsetrue14), "url", [], "any"falsefalsetrue14);
  65.             // line 15
  66.             yield "                ";
  67.             $context["workAtTitle"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsetrue15), "getProperty", ["navigation_title"], "method"falsefalsetrue15);
  68.             // line 16
  69.             yield "
  70.                 ";
  71.             // line 17
  72.             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"]));
  73.             // line 18
  74.             yield "            ";
  75.         }
  76.         // line 19
  77.         yield "
  78.             ";
  79.         // line 20
  80.         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"falsefalsetrue20)) {
  81.             // line 21
  82.             yield "                ";
  83.             $context["contactLink"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsetrue21), "url", [], "any"falsefalsetrue21);
  84.             // line 22
  85.             yield "                ";
  86.             $context["contactTitle"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsetrue22), "getProperty", ["navigation_title"], "method"falsefalsetrue22);
  87.             // line 23
  88.             yield "
  89.                 ";
  90.             // line 24
  91.             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"]));
  92.             // line 25
  93.             yield "            ";
  94.         }
  95.         // line 26
  96.         yield "        </div>
  97.         <div class=\"px-5 my-5\">
  98.             ";
  99.         // line 29
  100.         yield from $this->loadTemplate("app/partials/languageswitch.html.twig""app/partials/mobile/overlay.html.twig"29)->unwrap()->yield(CoreExtension::merge($context, ["theme" => "header"]));
  101.         // line 30
  102.         yield "        </div>
  103.     </div>
  104. </div>
  105. ";
  106.         
  107.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  108.         
  109.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  110.         yield from [];
  111.     }
  112.     /**
  113.      * @codeCoverageIgnore
  114.      */
  115.     public function getTemplateName(): string
  116.     {
  117.         return "app/partials/mobile/overlay.html.twig";
  118.     }
  119.     /**
  120.      * @codeCoverageIgnore
  121.      */
  122.     public function isTraitable(): bool
  123.     {
  124.         return false;
  125.     }
  126.     /**
  127.      * @codeCoverageIgnore
  128.      */
  129.     public function getDebugInfo(): array
  130.     {
  131.         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,);
  132.     }
  133.     public function getSourceContext(): Source
  134.     {
  135.         return new Source("<div
  136.     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)]\"
  137.     x-show=\"mobileMenuOpen\"
  138.     x-transition.opacity.duration.500ms
  139.     x-on:resize.window=\"mobileMenuOpen = false\"
  140. >
  141.     <div class=\"flex-grow\">
  142.         {% include 'app/partials/mobile/navigation.html.twig' %}
  143.         <div class=\"flex flex-col gap-5 pt-5 px-5\">
  144.             {% include \"app/partials/header/emergency.html.twig\" with {showIcon: false} %}
  145.             {% if document.getProperty('workAtPage') %}
  146.                 {% set workAtLink = document.getProperty('workAtPage').url %}
  147.                 {% set workAtTitle = document.getProperty('workAtPage').getProperty('navigation_title') %}
  148.                 {% include \"app/partials/header/link.html.twig\" with {href: workAtLink, label: workAtTitle, class: 'text-blue-800'} %}
  149.             {% endif %}
  150.             {% if document.getProperty('contactPage') %}
  151.                 {% set contactLink = document.getProperty('contactPage').url %}
  152.                 {% set contactTitle = document.getProperty('contactPage').getProperty('navigation_title') %}
  153.                 {% include \"app/partials/header/link.html.twig\" with {href: contactLink, label: contactTitle, class: 'text-blue-800'} %}
  154.             {% endif %}
  155.         </div>
  156.         <div class=\"px-5 my-5\">
  157.             {% include 'app/partials/languageswitch.html.twig' with {'theme': 'header' } %}
  158.         </div>
  159.     </div>
  160. </div>
  161. ""app/partials/mobile/overlay.html.twig""/home/forge/testing.coolworld.ptchr.dev/templates/app/partials/mobile/overlay.html.twig");
  162.     }
  163.     
  164.     public function checkSecurity()
  165.     {
  166.         static $tags = ["include" => 8"if" => 13"set" => 14];
  167.         static $filters = [];
  168.         static $functions = [];
  169.         try {
  170.             $this->sandbox->checkSecurity(
  171.                 ['include''if''set'],
  172.                 [],
  173.                 [],
  174.                 $this->source
  175.             );
  176.         } catch (SecurityError $e) {
  177.             $e->setSourceContext($this->source);
  178.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  179.                 $e->setTemplateLine($tags[$e->getTagName()]);
  180.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  181.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  182.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  183.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  184.             }
  185.             throw $e;
  186.         }
  187.     }
  188. }