var/cache/dev/twig/51/5152c6c6a9ede9db4e42cac7ac16fa6a1ced9b84a679a52deac35041931547c9.php line 33

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/main-nav.html.twig */
  14. class __TwigTemplate_dc7b71e2aafcb7ad80809a3f188d8cc65c397a61bd50e66cac5707d9da318275 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.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/main-nav.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/main-nav.html.twig"));
  33.         // line 6
  34.         echo "
  35. ";
  36.         // line 7
  37.         $context["navStartNode"] = 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.'7$this->source); })()), "getProperty", [=> "mainNavStartNode"], "method"falsefalsefalse7);
  38.         // line 8
  39.         echo "
  40. ";
  41.         // line 9
  42.         $context["mainNavigation"] = $this->extensions['Pimcore\Twig\Extension\NavigationExtension']->buildNavigation(["active" => (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'9$this->source); })()), "root" => (isset($context["navStartNode"]) || array_key_exists("navStartNode"$context) ? $context["navStartNode"] : (function () { throw new RuntimeError('Variable "navStartNode" does not exist.'9$this->source); })())]);
  43.         // line 10
  44.         echo "
  45. ";
  46.         // line 11
  47.         $context["menuRenderer"] = $this->extensions['Pimcore\Twig\Extension\NavigationExtension']->getRenderer("menu");
  48.         // line 12
  49.         echo "
  50. <ul class=\"uk-navbar-nav apk-menu\">
  51.     ";
  52.         // line 14
  53.         $context['_parent'] = $context;
  54.         $context['_seq'] = twig_ensure_traversable((isset($context["mainNavigation"]) || array_key_exists("mainNavigation"$context) ? $context["mainNavigation"] : (function () { throw new RuntimeError('Variable "mainNavigation" does not exist.'14$this->source); })()));
  55.         foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
  56.             // line 15
  57.             echo "
  58.         ";
  59.             // line 16
  60.             if ((twig_get_attribute($this->env$this->source$context["page"], "isVisible", [], "method"falsefalsefalse16) && twig_get_attribute($this->env$this->source, (isset($context["menuRenderer"]) || array_key_exists("menuRenderer"$context) ? $context["menuRenderer"] : (function () { throw new RuntimeError('Variable "menuRenderer" does not exist.'16$this->source); })()), "accept", [=> $context["page"]], "method"falsefalsefalse16))) {
  61.                 // line 17
  62.                 echo "
  63.             ";
  64.                 // line 18
  65.                 $context["hasChildren"] = 0;
  66.                 // line 19
  67.                 echo "
  68.             ";
  69.                 // line 20
  70.                 if (twig_get_attribute($this->env$this->source$context["page"], "hasPages", [], "method"falsefalsefalse20)) {
  71.                     // line 21
  72.                     echo "                ";
  73.                     $context['_parent'] = $context;
  74.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["page"], "getPages", [], "method"falsefalsefalse21));
  75.                     foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  76.                         // line 22
  77.                         echo "                    ";
  78.                         if ((twig_get_attribute($this->env$this->source$context["page"], "isVisible", [], "method"falsefalsefalse22) && twig_get_attribute($this->env$this->source, (isset($context["menuRenderer"]) || array_key_exists("menuRenderer"$context) ? $context["menuRenderer"] : (function () { throw new RuntimeError('Variable "menuRenderer" does not exist.'22$this->source); })()), "accept", [=> $context["child"]], "method"falsefalsefalse22))) {
  79.                             // line 23
  80.                             echo "                        ";
  81.                             $context["hasChildren"] = ((isset($context["hasChildren"]) || array_key_exists("hasChildren"$context) ? $context["hasChildren"] : (function () { throw new RuntimeError('Variable "hasChildren" does not exist.'23$this->source); })()) + 1);
  82.                             // line 24
  83.                             echo "                    ";
  84.                         }
  85.                         // line 25
  86.                         echo "                ";
  87.                     }
  88.                     $_parent $context['_parent'];
  89.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  90.                     $context array_intersect_key($context$_parent) + $_parent;
  91.                     // line 26
  92.                     echo "            ";
  93.                 }
  94.                 // line 27
  95.                 echo "
  96.             ";
  97.                 // line 28
  98.                 if (((isset($context["hasChildren"]) || array_key_exists("hasChildren"$context) ? $context["hasChildren"] : (function () { throw new RuntimeError('Variable "hasChildren" does not exist.'28$this->source); })()) == 0)) {
  99.                     // line 29
  100.                     echo "
  101.                 ";
  102.                     // line 30
  103.                     if ( !twig_get_attribute($this->env$this->source$context["page"], "getClass", [=> "apk-highlight-link"], "method"falsefalsefalse30)) {
  104.                         // line 31
  105.                         echo "                
  106.                     <li class=\"";
  107.                         // line 32
  108.                         if (twig_get_attribute($this->env$this->source$context["page"], "getActive", [=> true], "method"falsefalsefalse32)) {
  109.                             echo "uk-active";
  110.                         }
  111.                         echo " apk-highlight-link-container\">
  112.                         <a href=\"";
  113.                         // line 33
  114.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "getHref", [], "method"falsefalsefalse33), "html"nulltrue);
  115.                         echo "\" class=\"";
  116.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "getClass", [], "method"falsefalsefalse33), "html"nulltrue);
  117.                         echo "\" ";
  118.                         if ((twig_get_attribute($this->env$this->source$context["page"], "getTarget", [], "method"falsefalsefalse33) != null)) {
  119.                             echo " ";
  120.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "getTarget", [], "method"falsefalsefalse33), "html"nulltrue);
  121.                             echo " ";
  122.                         }
  123.                         echo ">
  124.                             <div class=\"uk-flex uk-flex-bottom\">
  125.                                 ";
  126.                         // line 35
  127.                         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["page"], "document", [], "any"falsefalsefalse35), "getProperty", [=> "navImage"], "method"falsefalsefalse35)) {
  128.                             // line 36
  129.                             echo "                                <div class=\"apk-media\">
  130.                                     <img height=\"35\" width=\"35\" uk-svg src=\"";
  131.                             // line 37
  132.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["page"], "document", [], "any"falsefalsefalse37), "getProperty", [=> "navImage"], "method"falsefalsefalse37), "html"nulltrue);
  133.                             echo "\" alt=\"";
  134.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["page"], "getLabel", [], "method"falsefalsefalse37)), "html"nulltrue);
  135.                             echo "\">
  136.                                 </div>
  137.                                 ";
  138.                         }
  139.                         // line 40
  140.                         echo "                                <div>
  141.                                     ";
  142.                         // line 41
  143.                         echo twig_get_attribute($this->env$this->source$context["page"], "getLabel", [], "method"falsefalsefalse41);
  144.                         echo "
  145.                                 </div>
  146.                             </div>
  147.                         </a>
  148.                     </li>
  149.                 ";
  150.                     } else {
  151.                         // line 47
  152.                         echo "                    <li class=\"";
  153.                         if (twig_get_attribute($this->env$this->source$context["page"], "getActive", [=> true], "method"falsefalsefalse47)) {
  154.                             echo "uk-active";
  155.                         }
  156.                         echo "\">
  157.                         <a href=\"";
  158.                         // line 48
  159.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "getHref", [], "method"falsefalsefalse48), "html"nulltrue);
  160.                         echo "\" class=\"";
  161.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "getClass", [], "method"falsefalsefalse48), "html"nulltrue);
  162.                         echo "\" ";
  163.                         if ((twig_get_attribute($this->env$this->source$context["page"], "getTarget", [], "method"falsefalsefalse48) != null)) {
  164.                             echo " ";
  165.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "getTarget", [], "method"falsefalsefalse48), "html"nulltrue);
  166.                             echo " ";
  167.                         }
  168.                         echo ">
  169.                             <div class=\"uk-flex uk-flex-bottom\">
  170.                                 ";
  171.                         // line 50
  172.                         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["page"], "document", [], "any"falsefalsefalse50), "getProperty", [=> "navImage"], "method"falsefalsefalse50)) {
  173.                             // line 51
  174.                             echo "                                <div class=\"apk-media\">
  175.                                     <img height=\"35\" width=\"35\" uk-svg src=\"";
  176.                             // line 52
  177.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["page"], "document", [], "any"falsefalsefalse52), "getProperty", [=> "navImage"], "method"falsefalsefalse52), "html"nulltrue);
  178.                             echo "\" alt=\"";
  179.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["page"], "getLabel", [], "method"falsefalsefalse52)), "html"nulltrue);
  180.                             echo "\">
  181.                                 </div>
  182.                                 ";
  183.                         }
  184.                         // line 55
  185.                         echo "                                <div>
  186.                                     ";
  187.                         // line 56
  188.                         echo twig_get_attribute($this->env$this->source$context["page"], "getLabel", [], "method"falsefalsefalse56);
  189.                         echo "
  190.                                 </div>
  191.                             </div>
  192.                         </a>
  193.                     </li>
  194.                 ";
  195.                     }
  196.                     // line 62
  197.                     echo "
  198.             ";
  199.                 } else {
  200.                     // line 64
  201.                     echo "                ";
  202.                     if ( !twig_get_attribute($this->env$this->source$context["page"], "getClass", [=> "apk-highlight-link"], "method"falsefalsefalse64)) {
  203.                         // line 65
  204.                         echo "                    <li class=\"uk-parent apk-highlight-link-type ";
  205.                         if (twig_get_attribute($this->env$this->source$context["page"], "getActive", [=> true], "method"falsefalsefalse65)) {
  206.                             echo "uk-active";
  207.                         }
  208.                         echo "\">
  209.                 ";
  210.                     } else {
  211.                         // line 67
  212.                         echo "                    <li class=\"uk-parent ";
  213.                         if (twig_get_attribute($this->env$this->source$context["page"], "getActive", [=> true], "method"falsefalsefalse67)) {
  214.                             echo "uk-active";
  215.                         }
  216.                         echo "\">
  217.                 ";
  218.                     }
  219.                     // line 69
  220.                     echo "
  221.                     ";
  222.                     // line 70
  223.                     if (twig_get_attribute($this->env$this->source$context["page"], "getClass", [=> "apk-highlight-link"], "method"falsefalsefalse70)) {
  224.                         // line 71
  225.                         echo "                        <a href=\"";
  226.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "getHref", [], "method"falsefalsefalse71), "html"nulltrue);
  227.                         echo "\" class=\"";
  228.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "getClass", [], "method"falsefalsefalse71), "html"nulltrue);
  229.                         echo " apk-highlight-link-container\" ";
  230.                         if ((twig_get_attribute($this->env$this->source$context["page"], "getTarget", [], "method"falsefalsefalse71) != null)) {
  231.                             echo " ";
  232.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "getTarget", [], "method"falsefalsefalse71), "html"nulltrue);
  233.                             echo " ";
  234.                         }
  235.                         echo ">
  236.                             <div class=\"uk-flex uk-flex-bottom\">
  237.                                 ";
  238.                         // line 73
  239.                         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["page"], "document", [], "any"falsefalsefalse73), "getProperty", [=> "navImage"], "method"falsefalsefalse73)) {
  240.                             // line 74
  241.                             echo "                                <div class=\"apk-media\">
  242.                                     <img height=\"35\" width=\"35\" uk-svg src=\"";
  243.                             // line 75
  244.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["page"], "document", [], "any"falsefalsefalse75), "getProperty", [=> "navImage"], "method"falsefalsefalse75), "html"nulltrue);
  245.                             echo "\" alt=\"";
  246.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["page"], "getLabel", [], "method"falsefalsefalse75)), "html"nulltrue);
  247.                             echo "\">
  248.                                 </div>
  249.                                 ";
  250.                         }
  251.                         // line 78
  252.                         echo "                                <div>
  253.                                     ";
  254.                         // line 79
  255.                         echo twig_get_attribute($this->env$this->source$context["page"], "getLabel", [], "method"falsefalsefalse79);
  256.                         echo "
  257.                                 </div>
  258.                             </div>
  259.                         </a>
  260.                     ";
  261.                     } else {
  262.                         // line 84
  263.                         echo "                        <a href=\"";
  264.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "getHref", [], "method"falsefalsefalse84), "html"nulltrue);
  265.                         echo "\" class=\"";
  266.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "getClass", [], "method"falsefalsefalse84), "html"nulltrue);
  267.                         echo "\" ";
  268.                         if ((twig_get_attribute($this->env$this->source$context["page"], "getTarget", [], "method"falsefalsefalse84) != null)) {
  269.                             echo " ";
  270.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "getTarget", [], "method"falsefalsefalse84), "html"nulltrue);
  271.                             echo " ";
  272.                         }
  273.                         echo ">
  274.                             <div class=\"uk-flex uk-flex-bottom\">
  275.                                 ";
  276.                         // line 86
  277.                         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["page"], "document", [], "any"falsefalsefalse86), "getProperty", [=> "navImage"], "method"falsefalsefalse86)) {
  278.                             // line 87
  279.                             echo "                                <div class=\"apk-media\">
  280.                                     <img height=\"35\" width=\"35\" uk-svg src=\"";
  281.                             // line 88
  282.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["page"], "document", [], "any"falsefalsefalse88), "getProperty", [=> "navImage"], "method"falsefalsefalse88), "html"nulltrue);
  283.                             echo "\" alt=\"";
  284.                             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source$context["page"], "getLabel", [], "method"falsefalsefalse88)), "html"nulltrue);
  285.                             echo "\">
  286.                                 </div>
  287.                                 ";
  288.                         }
  289.                         // line 91
  290.                         echo "                                <div>
  291.                                     ";
  292.                         // line 92
  293.                         echo twig_get_attribute($this->env$this->source$context["page"], "getLabel", [], "method"falsefalsefalse92);
  294.                         echo "
  295.                                 </div>
  296.                             </div>
  297.                         </a>
  298.                     ";
  299.                     }
  300.                     // line 97
  301.                     echo "                        ";
  302.                     $context["navBreakPoint"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("main-nav-breakpoint");
  303.                     // line 98
  304.                     echo "                        ";
  305.                     if ( !twig_test_empty((isset($context["navBreakPoint"]) || array_key_exists("navBreakPoint"$context) ? $context["navBreakPoint"] : (function () { throw new RuntimeError('Variable "navBreakPoint" does not exist.'98$this->source); })()))) {
  306.                         // line 99
  307.                         echo "                            ";
  308.                         $context["countPage"] = twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["page"], "getPages", [], "method"falsefalsefalse99));
  309.                         // line 100
  310.                         echo "                            ";
  311.                         if (((isset($context["countPage"]) || array_key_exists("countPage"$context) ? $context["countPage"] : (function () { throw new RuntimeError('Variable "countPage" does not exist.'100$this->source); })()) > (isset($context["breakpointChild"]) || array_key_exists("breakpointChild"$context) ? $context["breakpointChild"] : (function () { throw new RuntimeError('Variable "breakpointChild" does not exist.'100$this->source); })()))) {
  312.                             // line 101
  313.                             echo "                                ";
  314.                             $context["countChild"] = twig_round(((isset($context["countPage"]) || array_key_exists("countPage"$context) ? $context["countPage"] : (function () { throw new RuntimeError('Variable "countPage" does not exist.'101$this->source); })()) / 2));
  315.                             // line 102
  316.                             echo "                            ";
  317.                         } else {
  318.                             // line 103
  319.                             echo "                                ";
  320.                             $context["countChild"] = null;
  321.                             // line 104
  322.                             echo "                            ";
  323.                         }
  324.                         // line 105
  325.                         echo "                        ";
  326.                     } else {
  327.                         // line 106
  328.                         echo "                            ";
  329.                         $context["countChild"] = null;
  330.                         // line 107
  331.                         echo "                        ";
  332.                     }
  333.                     // line 108
  334.                     echo "                        <div class=\"uk-navbar-dropdown ";
  335.                     if (((isset($context["countChild"]) || array_key_exists("countChild"$context) ? $context["countChild"] : (function () { throw new RuntimeError('Variable "countChild" does not exist.'108$this->source); })()) == null)) {
  336.                         echo "uk-navbar-dropdown-width-2";
  337.                     }
  338.                     echo " uk-border-rounded\">
  339.                             <div class=\"uk-navbar-dropdown-grid ";
  340.                     // line 110
  341.                     if (((isset($context["countChild"]) || array_key_exists("countChild"$context) ? $context["countChild"] : (function () { throw new RuntimeError('Variable "countChild" does not exist.'110$this->source); })()) == null)) {
  342.                         echo "uk-child-width-1-1";
  343.                     } else {
  344.                         echo "uk-child-width-1-2";
  345.                     }
  346.                     echo " uk-grid\" uk-grid>
  347.                                 <div>
  348.                                     <ul class=\"uk-nav uk-navbar-dropdown-nav uk-list-divider uk-text-uppercase\">
  349.                                         ";
  350.                     // line 113
  351.                     $context["i"] = 1;
  352.                     // line 114
  353.                     echo "                                        ";
  354.                     $context['_parent'] = $context;
  355.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["page"], "getPages", [], "method"falsefalsefalse114));
  356.                     foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  357.                         // line 115
  358.                         echo "                                            ";
  359.                         if ((twig_get_attribute($this->env$this->source$context["child"], "isVisible", [], "method"falsefalsefalse115) && twig_get_attribute($this->env$this->source, (isset($context["menuRenderer"]) || array_key_exists("menuRenderer"$context) ? $context["menuRenderer"] : (function () { throw new RuntimeError('Variable "menuRenderer" does not exist.'115$this->source); })()), "accept", [=> $context["child"]], "method"falsefalsefalse115))) {
  360.                             // line 116
  361.                             echo "                                                <li class=\"";
  362.                             if (twig_get_attribute($this->env$this->source$context["child"], "getActive", [=> true], "method"falsefalsefalse116)) {
  363.                                 echo "uk-active";
  364.                             }
  365.                             echo "\">
  366.                                                     <a href=\"";
  367.                             // line 117
  368.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["child"], "getHref", [], "method"falsefalsefalse117), "html"nulltrue);
  369.                             echo "\" class=\"";
  370.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["child"], "getClass", [], "method"falsefalsefalse117), "html"nulltrue);
  371.                             echo "\" ";
  372.                             if ((twig_get_attribute($this->env$this->source$context["child"], "getTarget", [], "method"falsefalsefalse117) != null)) {
  373.                                 echo " ";
  374.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["child"], "getTarget", [], "method"falsefalsefalse117), "html"nulltrue);
  375.                                 echo " ";
  376.                             }
  377.                             echo ">
  378.                                                         ";
  379.                             // line 118
  380.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["child"], "getLabel", [], "method"falsefalsefalse118), "html"nulltrue);
  381.                             echo "
  382.                                                     </a>
  383.                                                 </li>
  384.                                             ";
  385.                         }
  386.                         // line 122
  387.                         echo "                                            ";
  388.                         if ((((isset($context["countChild"]) || array_key_exists("countChild"$context) ? $context["countChild"] : (function () { throw new RuntimeError('Variable "countChild" does not exist.'122$this->source); })()) != null) && ((isset($context["p"]) || array_key_exists("p"$context) ? $context["p"] : (function () { throw new RuntimeError('Variable "p" does not exist.'122$this->source); })()) == (isset($context["countChild"]) || array_key_exists("countChild"$context) ? $context["countChild"] : (function () { throw new RuntimeError('Variable "countChild" does not exist.'122$this->source); })())))) {
  389.                             // line 123
  390.                             echo "                                                </ul>
  391.                                             </div>
  392.                                             <div>
  393.                                                 <ul class=\"uk-nav uk-navbar-dropdown-nav uk-list-divider uk-text-uppercase\">
  394.                                             ";
  395.                         }
  396.                         // line 128
  397.                         echo "                                            ";
  398.                         $context["i"] = ((isset($context["i"]) || array_key_exists("i"$context) ? $context["i"] : (function () { throw new RuntimeError('Variable "i" does not exist.'128$this->source); })()) + 1);
  399.                         // line 129
  400.                         echo "                                        ";
  401.                     }
  402.                     $_parent $context['_parent'];
  403.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
  404.                     $context array_intersect_key($context$_parent) + $_parent;
  405.                     // line 130
  406.                     echo "                                    </ul>
  407.                                 </div>
  408.                             </div>
  409.                         </div>
  410.                     </li>
  411.             ";
  412.                 }
  413.                 // line 136
  414.                 echo "        ";
  415.             }
  416.             // line 137
  417.             echo "    ";
  418.         }
  419.         $_parent $context['_parent'];
  420.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
  421.         $context array_intersect_key($context$_parent) + $_parent;
  422.         // line 138
  423.         echo "
  424.     ";
  425.         // line 142
  426.         echo "    ";
  427.         if (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.'142$this->source); })()), "user", [], "any"falsefalsefalse142)) {
  428.             echo 
  429.     ";
  430.             // line 143
  431.             $context["current_path"] = twig_get_attribute($this->env$this->sourcetwig_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.'143$this->source); })()), "request", [], "any"falsefalsefalse143), "get", [=> "_route"], "method"falsefalsefalse143);
  432.             // line 144
  433.             echo "    <li class=\"";
  434.             echo ((((isset($context["current_path"]) || array_key_exists("current_path"$context) ? $context["current_path"] : (function () { throw new RuntimeError('Variable "current_path" does not exist.'144$this->source); })()) == "bookmark")) ? ("active") : (""));
  435.             echo "\">
  436.         <a href=\"";
  437.             // line 145
  438.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bookmark");
  439.             echo "\" class=\"apk-highlight-link\" >
  440.             <div class=\"uk-flex uk-flex-bottom\">
  441.                 
  442.                 <div class=\"apk-media\">
  443.                     <img height=\"35\" width=\"35\" uk-svg src=\"/navigation-svg/selection.svg\" alt=\"";
  444.             // line 149
  445.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Votre sélection"), "html"nulltrue);
  446.             echo "\">
  447.                 </div>
  448.                 
  449.                 <div>
  450.                     ";
  451.             // line 153
  452.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span>Votre</span><br/>sélection");
  453.             echo "
  454.                 </div>
  455.             </div>
  456.         </a>
  457.     </li>
  458.     ";
  459.         }
  460.         // line 159
  461.         echo "</ul>
  462. ";
  463.         
  464.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  465.         
  466.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  467.     }
  468.     public function getTemplateName()
  469.     {
  470.         return "includes/main-nav.html.twig";
  471.     }
  472.     public function isTraitable()
  473.     {
  474.         return false;
  475.     }
  476.     public function getDebugInfo()
  477.     {
  478.         return array (  473 => 159,  464 => 153,  457 => 149,  450 => 145,  445 => 144,  443 => 143,  438 => 142,  433 => 138,  427 => 137,  424 => 136,  416 => 130,  410 => 129,  407 => 128,  400 => 123,  397 => 122,  390 => 118,  378 => 117,  371 => 116,  368 => 115,  363 => 114,  361 => 113,  351 => 110,  343 => 108,  340 => 107,  337 => 106,  334 => 105,  331 => 104,  328 => 103,  325 => 102,  322 => 101,  319 => 100,  316 => 99,  313 => 98,  310 => 97,  302 => 92,  299 => 91,  291 => 88,  288 => 87,  286 => 86,  272 => 84,  264 => 79,  261 => 78,  253 => 75,  250 => 74,  248 => 73,  234 => 71,  232 => 70,  229 => 69,  221 => 67,  213 => 65,  210 => 64,  206 => 62,  197 => 56,  194 => 55,  186 => 52,  183 => 51,  181 => 50,  168 => 48,  161 => 47,  152 => 41,  149 => 40,  141 => 37,  138 => 36,  136 => 35,  123 => 33,  117 => 32,  114 => 31,  112 => 30,  109 => 29,  107 => 28,  104 => 27,  101 => 26,  95 => 25,  92 => 24,  89 => 23,  86 => 22,  81 => 21,  79 => 20,  76 => 19,  74 => 18,  71 => 17,  69 => 16,  66 => 15,  62 => 14,  58 => 12,  56 => 11,  53 => 10,  51 => 9,  48 => 8,  46 => 7,  43 => 6,);
  479.     }
  480.     public function getSourceContext()
  481.     {
  482.         return new Source("{# 
  483.         
  484. On utilise le name de la page 
  485.     
  486. #}
  487. {% set navStartNode = document.getProperty(\"mainNavStartNode\") %}
  488. {% set mainNavigation = pimcore_build_nav({active: document, root: navStartNode}) %}
  489. {% set menuRenderer = pimcore_nav_renderer('menu') %}
  490. <ul class=\"uk-navbar-nav apk-menu\">
  491.     {% for page in mainNavigation %}
  492.         {% if page.isVisible() and menuRenderer.accept(page) %}
  493.             {% set hasChildren = 0 %}
  494.             {% if page.hasPages() %}
  495.                 {% for child in page.getPages() %}
  496.                     {% if page.isVisible() and menuRenderer.accept(child) %}
  497.                         {% set hasChildren = hasChildren + 1 %}
  498.                     {% endif %}
  499.                 {% endfor %}
  500.             {% endif %}
  501.             {% if hasChildren == 0 %}
  502.                 {% if not page.getClass('apk-highlight-link') %}
  503.                 
  504.                     <li class=\"{% if page.getActive(true) %}uk-active{% endif %} apk-highlight-link-container\">
  505.                         <a href=\"{{ page.getHref() }}\" class=\"{{ page.getClass() }}\" {% if page.getTarget() != NULL %} {{ page.getTarget() }} {% endif %}>
  506.                             <div class=\"uk-flex uk-flex-bottom\">
  507.                                 {% if page.document.getProperty('navImage') %}
  508.                                 <div class=\"apk-media\">
  509.                                     <img height=\"35\" width=\"35\" uk-svg src=\"{{ page.document.getProperty('navImage') }}\" alt=\"{{ page.getLabel()|trans }}\">
  510.                                 </div>
  511.                                 {% endif %}
  512.                                 <div>
  513.                                     {{ page.getLabel()|raw }}
  514.                                 </div>
  515.                             </div>
  516.                         </a>
  517.                     </li>
  518.                 {% else %}
  519.                     <li class=\"{% if page.getActive(true) %}uk-active{% endif %}\">
  520.                         <a href=\"{{ page.getHref() }}\" class=\"{{ page.getClass() }}\" {% if page.getTarget() != NULL %} {{ page.getTarget() }} {% endif %}>
  521.                             <div class=\"uk-flex uk-flex-bottom\">
  522.                                 {% if page.document.getProperty('navImage') %}
  523.                                 <div class=\"apk-media\">
  524.                                     <img height=\"35\" width=\"35\" uk-svg src=\"{{ page.document.getProperty('navImage') }}\" alt=\"{{ page.getLabel()|trans }}\">
  525.                                 </div>
  526.                                 {% endif %}
  527.                                 <div>
  528.                                     {{ page.getLabel()|raw }}
  529.                                 </div>
  530.                             </div>
  531.                         </a>
  532.                     </li>
  533.                 {% endif %}
  534.             {% else %}
  535.                 {% if not page.getClass('apk-highlight-link') %}
  536.                     <li class=\"uk-parent apk-highlight-link-type {% if page.getActive(true) %}uk-active{% endif %}\">
  537.                 {% else %}
  538.                     <li class=\"uk-parent {% if page.getActive(true) %}uk-active{% endif %}\">
  539.                 {% endif %}
  540.                     {% if page.getClass('apk-highlight-link') %}
  541.                         <a href=\"{{ page.getHref() }}\" class=\"{{ page.getClass() }} apk-highlight-link-container\" {% if page.getTarget() != NULL %} {{ page.getTarget() }} {% endif %}>
  542.                             <div class=\"uk-flex uk-flex-bottom\">
  543.                                 {% if page.document.getProperty('navImage') %}
  544.                                 <div class=\"apk-media\">
  545.                                     <img height=\"35\" width=\"35\" uk-svg src=\"{{ page.document.getProperty('navImage') }}\" alt=\"{{ page.getLabel()|trans }}\">
  546.                                 </div>
  547.                                 {% endif %}
  548.                                 <div>
  549.                                     {{ page.getLabel()|raw }}
  550.                                 </div>
  551.                             </div>
  552.                         </a>
  553.                     {% else %}
  554.                         <a href=\"{{ page.getHref() }}\" class=\"{{ page.getClass() }}\" {% if page.getTarget() != NULL %} {{ page.getTarget() }} {% endif %}>
  555.                             <div class=\"uk-flex uk-flex-bottom\">
  556.                                 {% if page.document.getProperty('navImage') %}
  557.                                 <div class=\"apk-media\">
  558.                                     <img height=\"35\" width=\"35\" uk-svg src=\"{{ page.document.getProperty('navImage') }}\" alt=\"{{ page.getLabel()|trans }}\">
  559.                                 </div>
  560.                                 {% endif %}
  561.                                 <div>
  562.                                     {{ page.getLabel()|raw }}
  563.                                 </div>
  564.                             </div>
  565.                         </a>
  566.                     {% endif %}
  567.                         {% set navBreakPoint = pimcore_website_config('main-nav-breakpoint') %}
  568.                         {% if navBreakPoint is not empty  %}
  569.                             {% set countPage = page.getPages()|length %}
  570.                             {% if countPage > breakpointChild %}
  571.                                 {% set countChild = (countPage / 2)|round %}
  572.                             {% else %}
  573.                                 {% set countChild = null %}
  574.                             {% endif %}
  575.                         {% else %}
  576.                             {% set countChild = null %}
  577.                         {% endif %}
  578.                         <div class=\"uk-navbar-dropdown {% if countChild == null %}uk-navbar-dropdown-width-2{% endif %} uk-border-rounded\">
  579.                             <div class=\"uk-navbar-dropdown-grid {% if countChild == null %}uk-child-width-1-1{% else %}uk-child-width-1-2{% endif %} uk-grid\" uk-grid>
  580.                                 <div>
  581.                                     <ul class=\"uk-nav uk-navbar-dropdown-nav uk-list-divider uk-text-uppercase\">
  582.                                         {% set i = 1 %}
  583.                                         {% for child in page.getPages() %}
  584.                                             {% if child.isVisible() and menuRenderer.accept(child) %}
  585.                                                 <li class=\"{% if child.getActive(true) %}uk-active{% endif %}\">
  586.                                                     <a href=\"{{ child.getHref() }}\" class=\"{{ child.getClass() }}\" {% if child.getTarget() != NULL %} {{ child.getTarget() }} {% endif %}>
  587.                                                         {{ child.getLabel() }}
  588.                                                     </a>
  589.                                                 </li>
  590.                                             {% endif %}
  591.                                             {% if (countChild != null) and (p == countChild) %}
  592.                                                 </ul>
  593.                                             </div>
  594.                                             <div>
  595.                                                 <ul class=\"uk-nav uk-navbar-dropdown-nav uk-list-divider uk-text-uppercase\">
  596.                                             {% endif %}
  597.                                             {% set i = i + 1 %}
  598.                                         {% endfor %}
  599.                                     </ul>
  600.                                 </div>
  601.                             </div>
  602.                         </div>
  603.                     </li>
  604.             {% endif %}
  605.         {% endif %}
  606.     {% endfor %}
  607.     {# JE METS ICI LE MENU MA SELECTION POUR LES USERS CONNECTE #}
  608.     {% if app.user %} 
  609.     {% set current_path = app.request.get('_route') %}
  610.     <li class=\"{{current_path == 'bookmark' ? 'active' : ''}}\">
  611.         <a href=\"{{ path('bookmark') }}\" class=\"apk-highlight-link\" >
  612.             <div class=\"uk-flex uk-flex-bottom\">
  613.                 
  614.                 <div class=\"apk-media\">
  615.                     <img height=\"35\" width=\"35\" uk-svg src=\"/navigation-svg/selection.svg\" alt=\"{{ 'Votre sélection'|trans }}\">
  616.                 </div>
  617.                 
  618.                 <div>
  619.                     {{ '<span>Votre</span><br/>sélection'|trans|raw }}
  620.                 </div>
  621.             </div>
  622.         </a>
  623.     </li>
  624.     {% endif %}
  625. </ul>
  626. ""includes/main-nav.html.twig""/var/www/mynursery.apik-pp.be/www/templates/includes/main-nav.html.twig");
  627.     }
  628. }