var/cache/dev/twig/b8/b82b9ea6069f4815580700ae912c1d27.php line 149

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/layout/header/mainnav/mainnav.html.twig */
  14. class __TwigTemplate_38e2f08740b310fd3b68489eb38d9d26 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/layout/header/mainnav/mainnav.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/layout/header/mainnav/mainnav.html.twig"));
  35.         // line 1
  36.         echo "<input type=\"checkbox\" id=\"main-nav--toggle\" class=\"main-nav--toggle\" />
  37. <div class=\"main-nav--top\">
  38.     <label for=\"main-nav--toggle\" class=\"main-nav--burger\">
  39.         <span></span>
  40.     </label>
  41.     <div class=\"mobile-menu-top\">
  42.         <div class=\"mobile-menu--contact\">
  43.             <a href=\"tel:";
  44.         // line 10
  45.         echo twig_escape_filter($this->env, twig_replace_filter($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("phone"), [" " => ""]), "html", null, true);
  46.         echo "\">
  47.                 <i class=\"iconfont-phone\"></i>
  48.                 <span>";
  49.         // line 12
  50.         echo twig_escape_filter($this->env, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("phone"), "html", null, true);
  51.         echo "</span>
  52.             </a>
  53.         </div>
  54.         <div class=\"mobile-menu--language\">
  55.             ";
  56.         // line 16
  57.         $context['_parent'] = $context;
  58.         $context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\Extension\LanguageSwitcherExtension']->getLocalizedLinks((isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 16, $this->source); })())));
  59.         foreach ($context['_seq'] as $context["key"] => $context["lang"]) {
  60.             // line 17
  61.             echo "                ";
  62.             if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 17, $this->source); })()), "request", [], "any", false, false, true, 17), "locale", [], "any", false, false, true, 17) != $context["key"])) {
  63.                 // line 18
  64.                 echo "                    <a href=\"";
  65.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["lang"], "link", [], "any", false, false, true, 18), 18, $this->source), "html", null, true);
  66.                 echo "\">";
  67.                 echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->sandbox->ensureToStringAllowed($context["key"], 18, $this->source)), "html", null, true);
  68.                 echo "</a>
  69.                 ";
  70.             }
  71.             // line 20
  72.             echo "            ";
  73.         }
  74.         $_parent = $context['_parent'];
  75.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['lang'], $context['_parent'], $context['loop']);
  76.         $context = array_intersect_key($context, $_parent) + $_parent;
  77.         // line 21
  78.         echo "        </div>
  79.     </div>
  80. </div>
  81. <nav class=\"main-nav\" role=\"navigation\">
  82.     <div class=\"scroll-wrapper\">
  83.         <ul class=\"contact--first-level\">
  84.             ";
  85.         // line 28
  86.         if ($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("phone")) {
  87.             // line 29
  88.             echo "                <li>
  89.                     <a href=\"tel:";
  90.             // line 30
  91.             echo twig_escape_filter($this->env, twig_replace_filter($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("phone"), [" " => ""]), "html", null, true);
  92.             echo "\">
  93.                         <i class=\"iconfont-phone\"></i>
  94.                         <span>";
  95.             // line 32
  96.             echo twig_escape_filter($this->env, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("phone"), "html", null, true);
  97.             echo "</span>
  98.                     </a>
  99.                 </li>
  100.             ";
  101.         }
  102.         // line 36
  103.         echo "            ";
  104.         if ($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("email")) {
  105.             // line 37
  106.             echo "                <li class=\"mobile-hidden\">
  107.                     <a href=\"mailto:";
  108.             // line 38
  109.             echo twig_escape_filter($this->env, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("email"), "html", null, true);
  110.             echo "\">
  111.                         <i class=\"iconfont-envelope\"></i>
  112.                         <span>";
  113.             // line 40
  114.             echo twig_escape_filter($this->env, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("email"), "html", null, true);
  115.             echo "</span>
  116.                     </a>
  117.                 </li>
  118.             ";
  119.         }
  120.         // line 44
  121.         echo "        </ul>
  122.         ";
  123.         // line 46
  124.         if (( !array_key_exists("document", $context) ||  !(isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 46, $this->source); })()))) {
  125.             // line 47
  126.             echo "            ";
  127.             $context["document"] = Pimcore\Model\Document::getById(1);
  128.             // line 48
  129.             echo "        ";
  130.         }
  131.         // line 49
  132.         echo "        ";
  133.         $context["mainNavStartNode"] = twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 49, $this->source); })()), "getProperty", [0 => "mainnavStartNode"], "method", false, false, true, 49);
  134.         // line 50
  135.         echo "        ";
  136.         $context["mainNav"] = $this->extensions['App\Twig\Extension\ConectoExtension']->buildMainNavigation($this->sandbox->ensureToStringAllowed((isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 50, $this->source); })()), 50, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["mainNavStartNode"]) || array_key_exists("mainNavStartNode", $context) ? $context["mainNavStartNode"] : (function () { throw new RuntimeError('Variable "mainNavStartNode" does not exist.', 50, $this->source); })()), 50, $this->source));
  137.         // line 51
  138.         echo "        ";
  139.         $context["renderer"] = $this->env->getFunction('pimcore_nav_renderer')->getCallable()("menu");
  140.         // line 52
  141.         echo "        <ul class=\"main-nav--first-level\">
  142.             ";
  143.         // line 53
  144.         $context['_parent'] = $context;
  145.         $context['_seq'] = twig_ensure_traversable((isset($context["mainNav"]) || array_key_exists("mainNav", $context) ? $context["mainNav"] : (function () { throw new RuntimeError('Variable "mainNav" does not exist.', 53, $this->source); })()));
  146.         foreach ($context['_seq'] as $context["key"] => $context["page"]) {
  147.             // line 54
  148.             echo "                ";
  149.             if ((twig_get_attribute($this->env, $this->source, $context["page"], "isVisible", [], "method", false, false, true, 54) && twig_get_attribute($this->env, $this->source, (isset($context["renderer"]) || array_key_exists("renderer", $context) ? $context["renderer"] : (function () { throw new RuntimeError('Variable "renderer" does not exist.', 54, $this->source); })()), "accept", [0 => $context["page"]], "method", false, false, true, 54))) {
  150.                 // line 55
  151.                 echo "                    ";
  152.                 $context["activeClass"] = "";
  153.                 // line 56
  154.                 echo "                    ";
  155.                 $context["hiddenClass"] = "";
  156.                 // line 57
  157.                 echo "                    ";
  158.                 $context["buttonClass"] = "";
  159.                 // line 58
  160.                 echo "                    ";
  161.                 if (twig_get_attribute($this->env, $this->source, $context["page"], "getActive", [0 => true], "method", false, false, true, 58)) {
  162.                     // line 59
  163.                     echo "                        ";
  164.                     $context["activeClass"] = "main-nav--active";
  165.                     // line 60
  166.                     echo "                    ";
  167.                 }
  168.                 // line 61
  169.                 echo "                    ";
  170.                 if (twig_get_attribute($this->env, $this->source, $context["page"], "getCustomSetting", [0 => "menuAsButton"], "method", false, false, true, 61)) {
  171.                     // line 62
  172.                     echo "                        ";
  173.                     $context["hiddenClass"] = "desktop-down-hidden";
  174.                     // line 63
  175.                     echo "                        ";
  176.                     $context["buttonClass"] = "btn btn--flat btn--outline-negative";
  177.                     // line 64
  178.                     echo "                    ";
  179.                 }
  180.                 // line 65
  181.                 echo "                    <li class=\"";
  182.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["activeClass"]) || array_key_exists("activeClass", $context) ? $context["activeClass"] : (function () { throw new RuntimeError('Variable "activeClass" does not exist.', 65, $this->source); })()), 65, $this->source), "html", null, true);
  183.                 echo " ";
  184.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["hiddenClass"]) || array_key_exists("hiddenClass", $context) ? $context["hiddenClass"] : (function () { throw new RuntimeError('Variable "hiddenClass" does not exist.', 65, $this->source); })()), 65, $this->source), "html", null, true);
  185.                 echo "\">
  186.                         ";
  187.                 // line 66
  188.                 if (twig_get_attribute($this->env, $this->source, $context["page"], "hasVisiblePages", [], "any", false, false, true, 66)) {
  189.                     // line 67
  190.                     echo "                            <input type=\"checkbox\" id=\"plusminus-";
  191.                     echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["key"], 67, $this->source), "html", null, true);
  192.                     echo "\" class=\"dropdown\">
  193.                         ";
  194.                 }
  195.                 // line 69
  196.                 echo "                        <a class=\"";
  197.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["buttonClass"]) || array_key_exists("buttonClass", $context) ? $context["buttonClass"] : (function () { throw new RuntimeError('Variable "buttonClass" does not exist.', 69, $this->source); })()), 69, $this->source), "html", null, true);
  198.                 echo "\" href=\"";
  199.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["page"], "href", [], "any", false, false, true, 69), 69, $this->source), "html", null, true);
  200.                 echo "\" target=\"";
  201.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["page"], "getTarget", [], "method", false, false, true, 69), 69, $this->source), "html", null, true);
  202.                 echo "\">
  203.                             ";
  204.                 // line 70
  205.                 echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["page"], "label", [], "any", false, false, true, 70), 70, $this->source), "html", null, true);
  206.                 echo "
  207.                         </a>
  208.                         ";
  209.                 // line 72
  210.                 if (twig_get_attribute($this->env, $this->source, $context["page"], "hasVisiblePages", [], "any", false, false, true, 72)) {
  211.                     // line 73
  212.                     echo "                            <label for=\"plusminus-";
  213.                     echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["key"], 73, $this->source), "html", null, true);
  214.                     echo "\" class=\"next\"><span class=\"next--arrow\"></span></label>
  215.                             <ul class=\"main-nav--sub\" aria=\"submenu\">
  216.                                 ";
  217.                     // line 75
  218.                     $context['_parent'] = $context;
  219.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["page"], "pages", [], "any", false, false, true, 75));
  220.                     foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  221.                         // line 76
  222.                         echo "                                    ";
  223.                         if ((twig_get_attribute($this->env, $this->source, $context["child"], "isVisible", [], "method", false, false, true, 76) && twig_get_attribute($this->env, $this->source, (isset($context["renderer"]) || array_key_exists("renderer", $context) ? $context["renderer"] : (function () { throw new RuntimeError('Variable "renderer" does not exist.', 76, $this->source); })()), "accept", [0 => $context["child"]], "method", false, false, true, 76))) {
  224.                             // line 77
  225.                             echo "                                        <li ";
  226.                             if (twig_get_attribute($this->env, $this->source, $context["child"], "getActive", [0 => true], "method", false, false, true, 77)) {
  227.                                 echo " class=\"main-nav--sub-active\"";
  228.                             }
  229.                             echo ">
  230.                                             <a href=\"";
  231.                             // line 78
  232.                             echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["child"], "href", [], "any", false, false, true, 78), 78, $this->source), "html", null, true);
  233.                             echo "\" target=\"";
  234.                             echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["child"], "getTarget", [], "method", false, false, true, 78), 78, $this->source), "html", null, true);
  235.                             echo "\">";
  236.                             echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["child"], "label", [], "any", false, false, true, 78), 78, $this->source), "html", null, true);
  237.                             echo "</a>
  238.                                             ";
  239.                             // line 79
  240.                             if (twig_get_attribute($this->env, $this->source, $context["child"], "hasPages", [], "any", false, false, true, 79)) {
  241.                                 // line 80
  242.                                 echo "                                                <ul class=\"main-nav--third-level\">
  243.                                                     ";
  244.                                 // line 81
  245.                                 $context['_parent'] = $context;
  246.                                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["child"], "pages", [], "any", false, false, true, 81));
  247.                                 foreach ($context['_seq'] as $context["_key"] => $context["childPages"]) {
  248.                                     // line 82
  249.                                     echo "                                                        <li><i class=\"iconfont-arrow-right\"></i><a href=\"";
  250.                                     echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["childPages"], "href", [], "any", false, false, true, 82), 82, $this->source), "html", null, true);
  251.                                     echo "\" target=\"";
  252.                                     echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["childPages"], "getTarget", [], "method", false, false, true, 82), 82, $this->source), "html", null, true);
  253.                                     echo "\">";
  254.                                     echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["childPages"], "label", [], "any", false, false, true, 82), 82, $this->source), "html", null, true);
  255.                                     echo "</a></li>
  256.                                                     ";
  257.                                 }
  258.                                 $_parent = $context['_parent'];
  259.                                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['childPages'], $context['_parent'], $context['loop']);
  260.                                 $context = array_intersect_key($context, $_parent) + $_parent;
  261.                                 // line 84
  262.                                 echo "                                                </ul>
  263.                                             ";
  264.                             }
  265.                             // line 86
  266.                             echo "                                        </li>
  267.                                     ";
  268.                         }
  269.                         // line 88
  270.                         echo "                                ";
  271.                     }
  272.                     $_parent = $context['_parent'];
  273.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  274.                     $context = array_intersect_key($context, $_parent) + $_parent;
  275.                     // line 89
  276.                     echo "                            </ul>
  277.                         ";
  278.                 }
  279.                 // line 91
  280.                 echo "                    </li>
  281.                 ";
  282.             }
  283.             // line 93
  284.             echo "            ";
  285.         }
  286.         $_parent = $context['_parent'];
  287.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['page'], $context['_parent'], $context['loop']);
  288.         $context = array_intersect_key($context, $_parent) + $_parent;
  289.         // line 94
  290.         echo "        </ul>
  291.         <div class=\"mobile-menu-bottom\">
  292.             <ul class=\"mobile-menu-bottom--buttons\">
  293.                 ";
  294.         // line 98
  295.         if ($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("anfragen")) {
  296.             // line 99
  297.             echo "                    <li><a href=\"";
  298.             echo twig_escape_filter($this->env, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("anfragen"), "html", null, true);
  299.             echo "\" class=\"btn btn--flat btn--outline-negative\">";
  300.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mobileNav.Anfragen"), "html", null, true);
  301.             echo "</a></li>
  302.                 ";
  303.         }
  304.         // line 101
  305.         echo "                ";
  306.         if ($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("buchen")) {
  307.             // line 102
  308.             echo "                    <li><a href=\"";
  309.             echo twig_escape_filter($this->env, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("buchen"), "html", null, true);
  310.             echo "\" class=\"btn btn--flat btn--outline-negative--variant\">";
  311.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mobileNav.Buchen"), "html", null, true);
  312.             echo "</a></li>
  313.                 ";
  314.         }
  315.         // line 104
  316.         echo "            </ul>
  317.             <ul class=\"page-header--social\">
  318.                 ";
  319.         // line 106
  320.         echo twig_include($this->env, $context, "includes/layout/header/social-media-icons.html.twig");
  321.         echo "
  322.             </ul>
  323.         </div>
  324.     </div>
  325. </nav>
  326. <label class=\"main-nav--overlay\" for=\"main-nav--toggle\"></label>";
  327.         
  328.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  329.         
  330.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  331.     }
  332.     public function getTemplateName()
  333.     {
  334.         return "includes/layout/header/mainnav/mainnav.html.twig";
  335.     }
  336.     public function isTraitable()
  337.     {
  338.         return false;
  339.     }
  340.     public function getDebugInfo()
  341.     {
  342.         return array (  334 => 106,  330 => 104,  322 => 102,  319 => 101,  311 => 99,  309 => 98,  303 => 94,  297 => 93,  293 => 91,  289 => 89,  283 => 88,  279 => 86,  275 => 84,  262 => 82,  258 => 81,  255 => 80,  253 => 79,  245 => 78,  238 => 77,  235 => 76,  231 => 75,  225 => 73,  223 => 72,  218 => 70,  209 => 69,  203 => 67,  201 => 66,  194 => 65,  191 => 64,  188 => 63,  185 => 62,  182 => 61,  179 => 60,  176 => 59,  173 => 58,  170 => 57,  167 => 56,  164 => 55,  161 => 54,  157 => 53,  154 => 52,  151 => 51,  148 => 50,  145 => 49,  142 => 48,  139 => 47,  137 => 46,  133 => 44,  126 => 40,  121 => 38,  118 => 37,  115 => 36,  108 => 32,  103 => 30,  100 => 29,  98 => 28,  89 => 21,  83 => 20,  75 => 18,  72 => 17,  68 => 16,  61 => 12,  56 => 10,  45 => 1,);
  343.     }
  344.     public function getSourceContext()
  345.     {
  346.         return new Source("<input type=\"checkbox\" id=\"main-nav--toggle\" class=\"main-nav--toggle\" />
  347. <div class=\"main-nav--top\">
  348.     <label for=\"main-nav--toggle\" class=\"main-nav--burger\">
  349.         <span></span>
  350.     </label>
  351.     <div class=\"mobile-menu-top\">
  352.         <div class=\"mobile-menu--contact\">
  353.             <a href=\"tel:{{ pimcore_website_config('phone')|replace({' ': ''}) }}\">
  354.                 <i class=\"iconfont-phone\"></i>
  355.                 <span>{{ pimcore_website_config('phone') }}</span>
  356.             </a>
  357.         </div>
  358.         <div class=\"mobile-menu--language\">
  359.             {% for key, lang in get_localized_links(document) %}
  360.                 {% if app.request.locale != key %}
  361.                     <a href=\"{{ lang.link }}\">{{ key|upper }}</a>
  362.                 {% endif %}
  363.             {% endfor %}
  364.         </div>
  365.     </div>
  366. </div>
  367. <nav class=\"main-nav\" role=\"navigation\">
  368.     <div class=\"scroll-wrapper\">
  369.         <ul class=\"contact--first-level\">
  370.             {% if pimcore_website_config('phone') %}
  371.                 <li>
  372.                     <a href=\"tel:{{ pimcore_website_config('phone')|replace({' ': ''}) }}\">
  373.                         <i class=\"iconfont-phone\"></i>
  374.                         <span>{{ pimcore_website_config('phone') }}</span>
  375.                     </a>
  376.                 </li>
  377.             {% endif %}
  378.             {% if pimcore_website_config('email') %}
  379.                 <li class=\"mobile-hidden\">
  380.                     <a href=\"mailto:{{ pimcore_website_config('email') }}\">
  381.                         <i class=\"iconfont-envelope\"></i>
  382.                         <span>{{ pimcore_website_config('email') }}</span>
  383.                     </a>
  384.                 </li>
  385.             {% endif %}
  386.         </ul>
  387.         {% if not document is defined or not document %}
  388.             {% set document = pimcore_document(1) %}
  389.         {% endif %}
  390.         {% set mainNavStartNode = document.getProperty('mainnavStartNode') %}
  391.         {% set mainNav = conecto_build_nav(document, mainNavStartNode) %}
  392.         {% set renderer = pimcore_nav_renderer('menu') %}
  393.         <ul class=\"main-nav--first-level\">
  394.             {% for key, page in mainNav %}
  395.                 {% if page.isVisible() and renderer.accept(page) %}
  396.                     {% set activeClass = '' %}
  397.                     {% set hiddenClass = '' %}
  398.                     {% set buttonClass = '' %}
  399.                     {% if page.getActive(true) %}
  400.                         {% set activeClass = 'main-nav--active' %}
  401.                     {% endif %}
  402.                     {% if page.getCustomSetting('menuAsButton') %}
  403.                         {% set hiddenClass = 'desktop-down-hidden' %}
  404.                         {% set buttonClass = 'btn btn--flat btn--outline-negative' %}
  405.                     {% endif %}
  406.                     <li class=\"{{ activeClass }} {{ hiddenClass }}\">
  407.                         {% if page.hasVisiblePages %}
  408.                             <input type=\"checkbox\" id=\"plusminus-{{ key }}\" class=\"dropdown\">
  409.                         {% endif %}
  410.                         <a class=\"{{ buttonClass }}\" href=\"{{ page.href }}\" target=\"{{ page.getTarget() }}\">
  411.                             {{ page.label }}
  412.                         </a>
  413.                         {% if page.hasVisiblePages %}
  414.                             <label for=\"plusminus-{{ key }}\" class=\"next\"><span class=\"next--arrow\"></span></label>
  415.                             <ul class=\"main-nav--sub\" aria=\"submenu\">
  416.                                 {% for child in page.pages %}
  417.                                     {% if child.isVisible() and renderer.accept(child) %}
  418.                                         <li {% if child.getActive(true) %} class=\"main-nav--sub-active\"{% endif %}>
  419.                                             <a href=\"{{ child.href }}\" target=\"{{ child.getTarget() }}\">{{ child.label }}</a>
  420.                                             {% if child.hasPages %}
  421.                                                 <ul class=\"main-nav--third-level\">
  422.                                                     {% for childPages in child.pages %}
  423.                                                         <li><i class=\"iconfont-arrow-right\"></i><a href=\"{{ childPages.href }}\" target=\"{{ childPages.getTarget() }}\">{{ childPages.label }}</a></li>
  424.                                                     {% endfor %}
  425.                                                 </ul>
  426.                                             {% endif %}
  427.                                         </li>
  428.                                     {% endif %}
  429.                                 {% endfor %}
  430.                             </ul>
  431.                         {% endif %}
  432.                     </li>
  433.                 {% endif %}
  434.             {% endfor %}
  435.         </ul>
  436.         <div class=\"mobile-menu-bottom\">
  437.             <ul class=\"mobile-menu-bottom--buttons\">
  438.                 {% if pimcore_website_config('anfragen') %}
  439.                     <li><a href=\"{{ pimcore_website_config('anfragen') }}\" class=\"btn btn--flat btn--outline-negative\">{{ 'mobileNav.Anfragen'|trans }}</a></li>
  440.                 {% endif %}
  441.                 {% if pimcore_website_config('buchen') %}
  442.                     <li><a href=\"{{ pimcore_website_config('buchen') }}\" class=\"btn btn--flat btn--outline-negative--variant\">{{ 'mobileNav.Buchen'|trans }}</a></li>
  443.                 {% endif %}
  444.             </ul>
  445.             <ul class=\"page-header--social\">
  446.                 {{ include('includes/layout/header/social-media-icons.html.twig') }}
  447.             </ul>
  448.         </div>
  449.     </div>
  450. </nav>
  451. <label class=\"main-nav--overlay\" for=\"main-nav--toggle\"></label>", "includes/layout/header/mainnav/mainnav.html.twig", "/html/pimcore/templates/includes/layout/header/mainnav/mainnav.html.twig");
  452.     }
  453.     
  454.     public function checkSecurity()
  455.     {
  456.         static $tags = array("for" => 16, "if" => 17, "set" => 47);
  457.         static $filters = array("escape" => 10, "replace" => 10, "upper" => 18, "trans" => 99);
  458.         static $functions = array("pimcore_website_config" => 10, "get_localized_links" => 16, "pimcore_document" => 47, "conecto_build_nav" => 50, "pimcore_nav_renderer" => 51, "include" => 106);
  459.         try {
  460.             $this->sandbox->checkSecurity(
  461.                 ['for', 'if', 'set'],
  462.                 ['escape', 'replace', 'upper', 'trans'],
  463.                 ['pimcore_website_config', 'get_localized_links', 'pimcore_document', 'conecto_build_nav', 'pimcore_nav_renderer', 'include']
  464.             );
  465.         } catch (SecurityError $e) {
  466.             $e->setSourceContext($this->source);
  467.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  468.                 $e->setTemplateLine($tags[$e->getTagName()]);
  469.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  470.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  471.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  472.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  473.             }
  474.             throw $e;
  475.         }
  476.     }
  477. }