var/cache/dev/twig/a4/a42c8c6395812170c9a2bc16353fd057.php line 35

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* includes/header.html.twig */
  14. class __TwigTemplate_8c85d68ffb6386452083bafba16564b6 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/header.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/header.html.twig"));
  35.         // line 6
  36.         $context["stringMenuClosed"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("hamburger.label.closed");
  37.         // line 7
  38.         $context["stringMenuOpened"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("hamburger.label.opened");
  39.         // line 8
  40.         echo "
  41. <header class=\"header\">
  42. \t<div class=\"header__meta\">
  43. \t\t<div class=\"header__container\">
  44. \t\t\t";
  45.         // line 12
  46.         $this->loadTemplate("navigation/language.html.twig""includes/header.html.twig"12)->display($context);
  47.         // line 13
  48.         echo "
  49. \t\t\t";
  50.         // line 14
  51.         $this->loadTemplate("navigation/meta.html.twig""includes/header.html.twig"14)->display($context);
  52.         // line 15
  53.         echo "\t\t</div>
  54. \t</div>
  55. \t<div class=\"header__main\">
  56. \t\t<div class=\"header__container\">
  57. \t\t\t<div class=\"header__hamburger\">
  58. \t\t\t\t<button class=\"hamburger hamburger--closed\">
  59. \t\t\t\t\t<div class=\"hamburger__lines\">
  60. \t\t\t\t\t\t<div class=\"hamburger__line hamburger__line--top\"></div>
  61. \t\t\t\t\t\t<div class=\"hamburger__line hamburger__line--bottom\"></div>
  62. \t\t\t\t\t</div>
  63. \t\t\t\t\t<div class=\"hamburger__labels\">
  64. \t\t\t\t\t\t<div class=\"hamburger__label hamburger__label--closed\">";
  65.         // line 27
  66.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["stringMenuClosed"]) || array_key_exists("stringMenuClosed"$context) ? $context["stringMenuClosed"] : (function () { throw new RuntimeError('Variable "stringMenuClosed" does not exist.'27$this->source); })()), 27$this->source), "html"nulltrue);
  67.         echo "</div>
  68. \t\t\t\t\t\t<div class=\"hamburger__label hamburger__label--opened\">";
  69.         // line 28
  70.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["stringMenuOpened"]) || array_key_exists("stringMenuOpened"$context) ? $context["stringMenuOpened"] : (function () { throw new RuntimeError('Variable "stringMenuOpened" does not exist.'28$this->source); })()), 28$this->source), "html"nulltrue);
  71.         echo "</div>
  72. \t\t\t\t\t</div>
  73. \t\t\t\t</button>
  74. \t\t\t</div>
  75. \t\t\t";
  76.         // line 34
  77.         $this->loadTemplate("navigation/primary.html.twig""includes/header.html.twig"34)->display($context);
  78.         // line 35
  79.         echo "
  80. \t\t\t<div class=\"header__mobile-nav\" data-scroll-lock-scrollable>
  81. \t\t\t\t";
  82.         // line 37
  83.         $this->loadTemplate("navigation/primary-mobile.html.twig""includes/header.html.twig"37)->display($context);
  84.         // line 38
  85.         echo "\t\t\t</div>
  86. \t\t\t";
  87.         // line 40
  88.         $this->loadTemplate("includes/partials/stuff/logos.html.twig""includes/header.html.twig"40)->display(twig_array_merge($context, ["class" => "logo--header"]));
  89.         // line 41
  90.         echo "\t\t</div>
  91. \t</div>
  92. </header>";
  93.         
  94.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  95.         
  96.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  97.     }
  98.     public function getTemplateName()
  99.     {
  100.         return "includes/header.html.twig";
  101.     }
  102.     public function isTraitable()
  103.     {
  104.         return false;
  105.     }
  106.     public function getDebugInfo()
  107.     {
  108.         return array (  103 => 41,  101 => 40,  97 => 38,  95 => 37,  91 => 35,  89 => 34,  80 => 28,  76 => 27,  62 => 15,  60 => 14,  57 => 13,  55 => 12,  49 => 8,  47 => 7,  45 => 6,);
  109.     }
  110.     public function getSourceContext()
  111.     {
  112.         return new Source("{#
  113. project: Pimcore - Devicenow
  114. User: EBiermann
  115. Year: 2022
  116. #}
  117. {% set stringMenuClosed = 'hamburger.label.closed'|trans %}
  118. {% set stringMenuOpened = 'hamburger.label.opened'|trans %}
  119. <header class=\"header\">
  120. \t<div class=\"header__meta\">
  121. \t\t<div class=\"header__container\">
  122. \t\t\t{% include 'navigation/language.html.twig' %}
  123. \t\t\t{% include 'navigation/meta.html.twig' %}
  124. \t\t</div>
  125. \t</div>
  126. \t<div class=\"header__main\">
  127. \t\t<div class=\"header__container\">
  128. \t\t\t<div class=\"header__hamburger\">
  129. \t\t\t\t<button class=\"hamburger hamburger--closed\">
  130. \t\t\t\t\t<div class=\"hamburger__lines\">
  131. \t\t\t\t\t\t<div class=\"hamburger__line hamburger__line--top\"></div>
  132. \t\t\t\t\t\t<div class=\"hamburger__line hamburger__line--bottom\"></div>
  133. \t\t\t\t\t</div>
  134. \t\t\t\t\t<div class=\"hamburger__labels\">
  135. \t\t\t\t\t\t<div class=\"hamburger__label hamburger__label--closed\">{{ stringMenuClosed }}</div>
  136. \t\t\t\t\t\t<div class=\"hamburger__label hamburger__label--opened\">{{ stringMenuOpened }}</div>
  137. \t\t\t\t\t</div>
  138. \t\t\t\t</button>
  139. \t\t\t</div>
  140. \t\t\t{% include 'navigation/primary.html.twig' %}
  141. \t\t\t<div class=\"header__mobile-nav\" data-scroll-lock-scrollable>
  142. \t\t\t\t{% include 'navigation/primary-mobile.html.twig' %}
  143. \t\t\t</div>
  144. \t\t\t{% include 'includes/partials/stuff/logos.html.twig' with { class: 'logo--header' } %}
  145. \t\t</div>
  146. \t</div>
  147. </header>""includes/header.html.twig""/var/www/snr/staging.nuernberger-bratwuerste.de/templates/includes/header.html.twig");
  148.     }
  149.     
  150.     public function checkSecurity()
  151.     {
  152.         static $tags = array("set" => 6"include" => 12);
  153.         static $filters = array("trans" => 6"escape" => 27);
  154.         static $functions = array();
  155.         try {
  156.             $this->sandbox->checkSecurity(
  157.                 ['set''include'],
  158.                 ['trans''escape'],
  159.                 []
  160.             );
  161.         } catch (SecurityError $e) {
  162.             $e->setSourceContext($this->source);
  163.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  164.                 $e->setTemplateLine($tags[$e->getTagName()]);
  165.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  166.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  167.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  168.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  169.             }
  170.             throw $e;
  171.         }
  172.     }
  173. }