<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* includes/main-nav.html.twig */
class __TwigTemplate_dc7b71e2aafcb7ad80809a3f188d8cc65c397a61bd50e66cac5707d9da318275 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/main-nav.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/main-nav.html.twig"));
// line 6
echo "
";
// line 7
$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", [0 => "mainNavStartNode"], "method", false, false, false, 7);
// line 8
echo "
";
// line 9
$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); })())]);
// line 10
echo "
";
// line 11
$context["menuRenderer"] = $this->extensions['Pimcore\Twig\Extension\NavigationExtension']->getRenderer("menu");
// line 12
echo "
<ul class=\"uk-navbar-nav apk-menu\">
";
// line 14
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
// line 15
echo "
";
// line 16
if ((twig_get_attribute($this->env, $this->source, $context["page"], "isVisible", [], "method", false, false, false, 16) && 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", [0 => $context["page"]], "method", false, false, false, 16))) {
// line 17
echo "
";
// line 18
$context["hasChildren"] = 0;
// line 19
echo "
";
// line 20
if (twig_get_attribute($this->env, $this->source, $context["page"], "hasPages", [], "method", false, false, false, 20)) {
// line 21
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["page"], "getPages", [], "method", false, false, false, 21));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 22
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["page"], "isVisible", [], "method", false, false, false, 22) && 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", [0 => $context["child"]], "method", false, false, false, 22))) {
// line 23
echo " ";
$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);
// line 24
echo " ";
}
// line 25
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 26
echo " ";
}
// line 27
echo "
";
// line 28
if (((isset($context["hasChildren"]) || array_key_exists("hasChildren", $context) ? $context["hasChildren"] : (function () { throw new RuntimeError('Variable "hasChildren" does not exist.', 28, $this->source); })()) == 0)) {
// line 29
echo "
";
// line 30
if ( !twig_get_attribute($this->env, $this->source, $context["page"], "getClass", [0 => "apk-highlight-link"], "method", false, false, false, 30)) {
// line 31
echo "
<li class=\"";
// line 32
if (twig_get_attribute($this->env, $this->source, $context["page"], "getActive", [0 => true], "method", false, false, false, 32)) {
echo "uk-active";
}
echo " apk-highlight-link-container\">
<a href=\"";
// line 33
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "getHref", [], "method", false, false, false, 33), "html", null, true);
echo "\" class=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "getClass", [], "method", false, false, false, 33), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["page"], "getTarget", [], "method", false, false, false, 33) != null)) {
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "getTarget", [], "method", false, false, false, 33), "html", null, true);
echo " ";
}
echo ">
<div class=\"uk-flex uk-flex-bottom\">
";
// line 35
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["page"], "document", [], "any", false, false, false, 35), "getProperty", [0 => "navImage"], "method", false, false, false, 35)) {
// line 36
echo " <div class=\"apk-media\">
<img height=\"35\" width=\"35\" uk-svg src=\"";
// line 37
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["page"], "document", [], "any", false, false, false, 37), "getProperty", [0 => "navImage"], "method", false, false, false, 37), "html", null, true);
echo "\" alt=\"";
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", false, false, false, 37)), "html", null, true);
echo "\">
</div>
";
}
// line 40
echo " <div>
";
// line 41
echo twig_get_attribute($this->env, $this->source, $context["page"], "getLabel", [], "method", false, false, false, 41);
echo "
</div>
</div>
</a>
</li>
";
} else {
// line 47
echo " <li class=\"";
if (twig_get_attribute($this->env, $this->source, $context["page"], "getActive", [0 => true], "method", false, false, false, 47)) {
echo "uk-active";
}
echo "\">
<a href=\"";
// line 48
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "getHref", [], "method", false, false, false, 48), "html", null, true);
echo "\" class=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "getClass", [], "method", false, false, false, 48), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["page"], "getTarget", [], "method", false, false, false, 48) != null)) {
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "getTarget", [], "method", false, false, false, 48), "html", null, true);
echo " ";
}
echo ">
<div class=\"uk-flex uk-flex-bottom\">
";
// line 50
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["page"], "document", [], "any", false, false, false, 50), "getProperty", [0 => "navImage"], "method", false, false, false, 50)) {
// line 51
echo " <div class=\"apk-media\">
<img height=\"35\" width=\"35\" uk-svg src=\"";
// line 52
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["page"], "document", [], "any", false, false, false, 52), "getProperty", [0 => "navImage"], "method", false, false, false, 52), "html", null, true);
echo "\" alt=\"";
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", false, false, false, 52)), "html", null, true);
echo "\">
</div>
";
}
// line 55
echo " <div>
";
// line 56
echo twig_get_attribute($this->env, $this->source, $context["page"], "getLabel", [], "method", false, false, false, 56);
echo "
</div>
</div>
</a>
</li>
";
}
// line 62
echo "
";
} else {
// line 64
echo " ";
if ( !twig_get_attribute($this->env, $this->source, $context["page"], "getClass", [0 => "apk-highlight-link"], "method", false, false, false, 64)) {
// line 65
echo " <li class=\"uk-parent apk-highlight-link-type ";
if (twig_get_attribute($this->env, $this->source, $context["page"], "getActive", [0 => true], "method", false, false, false, 65)) {
echo "uk-active";
}
echo "\">
";
} else {
// line 67
echo " <li class=\"uk-parent ";
if (twig_get_attribute($this->env, $this->source, $context["page"], "getActive", [0 => true], "method", false, false, false, 67)) {
echo "uk-active";
}
echo "\">
";
}
// line 69
echo "
";
// line 70
if (twig_get_attribute($this->env, $this->source, $context["page"], "getClass", [0 => "apk-highlight-link"], "method", false, false, false, 70)) {
// line 71
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "getHref", [], "method", false, false, false, 71), "html", null, true);
echo "\" class=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "getClass", [], "method", false, false, false, 71), "html", null, true);
echo " apk-highlight-link-container\" ";
if ((twig_get_attribute($this->env, $this->source, $context["page"], "getTarget", [], "method", false, false, false, 71) != null)) {
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "getTarget", [], "method", false, false, false, 71), "html", null, true);
echo " ";
}
echo ">
<div class=\"uk-flex uk-flex-bottom\">
";
// line 73
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["page"], "document", [], "any", false, false, false, 73), "getProperty", [0 => "navImage"], "method", false, false, false, 73)) {
// line 74
echo " <div class=\"apk-media\">
<img height=\"35\" width=\"35\" uk-svg src=\"";
// line 75
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["page"], "document", [], "any", false, false, false, 75), "getProperty", [0 => "navImage"], "method", false, false, false, 75), "html", null, true);
echo "\" alt=\"";
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", false, false, false, 75)), "html", null, true);
echo "\">
</div>
";
}
// line 78
echo " <div>
";
// line 79
echo twig_get_attribute($this->env, $this->source, $context["page"], "getLabel", [], "method", false, false, false, 79);
echo "
</div>
</div>
</a>
";
} else {
// line 84
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "getHref", [], "method", false, false, false, 84), "html", null, true);
echo "\" class=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "getClass", [], "method", false, false, false, 84), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["page"], "getTarget", [], "method", false, false, false, 84) != null)) {
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "getTarget", [], "method", false, false, false, 84), "html", null, true);
echo " ";
}
echo ">
<div class=\"uk-flex uk-flex-bottom\">
";
// line 86
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["page"], "document", [], "any", false, false, false, 86), "getProperty", [0 => "navImage"], "method", false, false, false, 86)) {
// line 87
echo " <div class=\"apk-media\">
<img height=\"35\" width=\"35\" uk-svg src=\"";
// line 88
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["page"], "document", [], "any", false, false, false, 88), "getProperty", [0 => "navImage"], "method", false, false, false, 88), "html", null, true);
echo "\" alt=\"";
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", false, false, false, 88)), "html", null, true);
echo "\">
</div>
";
}
// line 91
echo " <div>
";
// line 92
echo twig_get_attribute($this->env, $this->source, $context["page"], "getLabel", [], "method", false, false, false, 92);
echo "
</div>
</div>
</a>
";
}
// line 97
echo " ";
$context["navBreakPoint"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("main-nav-breakpoint");
// line 98
echo " ";
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); })()))) {
// line 99
echo " ";
$context["countPage"] = twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["page"], "getPages", [], "method", false, false, false, 99));
// line 100
echo " ";
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); })()))) {
// line 101
echo " ";
$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));
// line 102
echo " ";
} else {
// line 103
echo " ";
$context["countChild"] = null;
// line 104
echo " ";
}
// line 105
echo " ";
} else {
// line 106
echo " ";
$context["countChild"] = null;
// line 107
echo " ";
}
// line 108
echo " <div class=\"uk-navbar-dropdown ";
if (((isset($context["countChild"]) || array_key_exists("countChild", $context) ? $context["countChild"] : (function () { throw new RuntimeError('Variable "countChild" does not exist.', 108, $this->source); })()) == null)) {
echo "uk-navbar-dropdown-width-2";
}
echo " uk-border-rounded\">
<div class=\"uk-navbar-dropdown-grid ";
// line 110
if (((isset($context["countChild"]) || array_key_exists("countChild", $context) ? $context["countChild"] : (function () { throw new RuntimeError('Variable "countChild" does not exist.', 110, $this->source); })()) == null)) {
echo "uk-child-width-1-1";
} else {
echo "uk-child-width-1-2";
}
echo " uk-grid\" uk-grid>
<div>
<ul class=\"uk-nav uk-navbar-dropdown-nav uk-list-divider uk-text-uppercase\">
";
// line 113
$context["i"] = 1;
// line 114
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["page"], "getPages", [], "method", false, false, false, 114));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 115
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["child"], "isVisible", [], "method", false, false, false, 115) && 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", [0 => $context["child"]], "method", false, false, false, 115))) {
// line 116
echo " <li class=\"";
if (twig_get_attribute($this->env, $this->source, $context["child"], "getActive", [0 => true], "method", false, false, false, 116)) {
echo "uk-active";
}
echo "\">
<a href=\"";
// line 117
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["child"], "getHref", [], "method", false, false, false, 117), "html", null, true);
echo "\" class=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["child"], "getClass", [], "method", false, false, false, 117), "html", null, true);
echo "\" ";
if ((twig_get_attribute($this->env, $this->source, $context["child"], "getTarget", [], "method", false, false, false, 117) != null)) {
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["child"], "getTarget", [], "method", false, false, false, 117), "html", null, true);
echo " ";
}
echo ">
";
// line 118
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["child"], "getLabel", [], "method", false, false, false, 118), "html", null, true);
echo "
</a>
</li>
";
}
// line 122
echo " ";
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); })())))) {
// line 123
echo " </ul>
</div>
<div>
<ul class=\"uk-nav uk-navbar-dropdown-nav uk-list-divider uk-text-uppercase\">
";
}
// line 128
echo " ";
$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);
// line 129
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 130
echo " </ul>
</div>
</div>
</div>
</li>
";
}
// line 136
echo " ";
}
// line 137
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['page'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 138
echo "
";
// line 142
echo " ";
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", false, false, false, 142)) {
echo "
";
// line 143
$context["current_path"] = 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.', 143, $this->source); })()), "request", [], "any", false, false, false, 143), "get", [0 => "_route"], "method", false, false, false, 143);
// line 144
echo " <li class=\"";
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") : (""));
echo "\">
<a href=\"";
// line 145
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bookmark");
echo "\" class=\"apk-highlight-link\" >
<div class=\"uk-flex uk-flex-bottom\">
<div class=\"apk-media\">
<img height=\"35\" width=\"35\" uk-svg src=\"/navigation-svg/selection.svg\" alt=\"";
// line 149
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Votre sélection"), "html", null, true);
echo "\">
</div>
<div>
";
// line 153
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<span>Votre</span><br/>sélection");
echo "
</div>
</div>
</a>
</li>
";
}
// line 159
echo "</ul>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "includes/main-nav.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{#
On utilise le name de la page
#}
{% set navStartNode = document.getProperty(\"mainNavStartNode\") %}
{% set mainNavigation = pimcore_build_nav({active: document, root: navStartNode}) %}
{% set menuRenderer = pimcore_nav_renderer('menu') %}
<ul class=\"uk-navbar-nav apk-menu\">
{% for page in mainNavigation %}
{% if page.isVisible() and menuRenderer.accept(page) %}
{% set hasChildren = 0 %}
{% if page.hasPages() %}
{% for child in page.getPages() %}
{% if page.isVisible() and menuRenderer.accept(child) %}
{% set hasChildren = hasChildren + 1 %}
{% endif %}
{% endfor %}
{% endif %}
{% if hasChildren == 0 %}
{% if not page.getClass('apk-highlight-link') %}
<li class=\"{% if page.getActive(true) %}uk-active{% endif %} apk-highlight-link-container\">
<a href=\"{{ page.getHref() }}\" class=\"{{ page.getClass() }}\" {% if page.getTarget() != NULL %} {{ page.getTarget() }} {% endif %}>
<div class=\"uk-flex uk-flex-bottom\">
{% if page.document.getProperty('navImage') %}
<div class=\"apk-media\">
<img height=\"35\" width=\"35\" uk-svg src=\"{{ page.document.getProperty('navImage') }}\" alt=\"{{ page.getLabel()|trans }}\">
</div>
{% endif %}
<div>
{{ page.getLabel()|raw }}
</div>
</div>
</a>
</li>
{% else %}
<li class=\"{% if page.getActive(true) %}uk-active{% endif %}\">
<a href=\"{{ page.getHref() }}\" class=\"{{ page.getClass() }}\" {% if page.getTarget() != NULL %} {{ page.getTarget() }} {% endif %}>
<div class=\"uk-flex uk-flex-bottom\">
{% if page.document.getProperty('navImage') %}
<div class=\"apk-media\">
<img height=\"35\" width=\"35\" uk-svg src=\"{{ page.document.getProperty('navImage') }}\" alt=\"{{ page.getLabel()|trans }}\">
</div>
{% endif %}
<div>
{{ page.getLabel()|raw }}
</div>
</div>
</a>
</li>
{% endif %}
{% else %}
{% if not page.getClass('apk-highlight-link') %}
<li class=\"uk-parent apk-highlight-link-type {% if page.getActive(true) %}uk-active{% endif %}\">
{% else %}
<li class=\"uk-parent {% if page.getActive(true) %}uk-active{% endif %}\">
{% endif %}
{% if page.getClass('apk-highlight-link') %}
<a href=\"{{ page.getHref() }}\" class=\"{{ page.getClass() }} apk-highlight-link-container\" {% if page.getTarget() != NULL %} {{ page.getTarget() }} {% endif %}>
<div class=\"uk-flex uk-flex-bottom\">
{% if page.document.getProperty('navImage') %}
<div class=\"apk-media\">
<img height=\"35\" width=\"35\" uk-svg src=\"{{ page.document.getProperty('navImage') }}\" alt=\"{{ page.getLabel()|trans }}\">
</div>
{% endif %}
<div>
{{ page.getLabel()|raw }}
</div>
</div>
</a>
{% else %}
<a href=\"{{ page.getHref() }}\" class=\"{{ page.getClass() }}\" {% if page.getTarget() != NULL %} {{ page.getTarget() }} {% endif %}>
<div class=\"uk-flex uk-flex-bottom\">
{% if page.document.getProperty('navImage') %}
<div class=\"apk-media\">
<img height=\"35\" width=\"35\" uk-svg src=\"{{ page.document.getProperty('navImage') }}\" alt=\"{{ page.getLabel()|trans }}\">
</div>
{% endif %}
<div>
{{ page.getLabel()|raw }}
</div>
</div>
</a>
{% endif %}
{% set navBreakPoint = pimcore_website_config('main-nav-breakpoint') %}
{% if navBreakPoint is not empty %}
{% set countPage = page.getPages()|length %}
{% if countPage > breakpointChild %}
{% set countChild = (countPage / 2)|round %}
{% else %}
{% set countChild = null %}
{% endif %}
{% else %}
{% set countChild = null %}
{% endif %}
<div class=\"uk-navbar-dropdown {% if countChild == null %}uk-navbar-dropdown-width-2{% endif %} uk-border-rounded\">
<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>
<div>
<ul class=\"uk-nav uk-navbar-dropdown-nav uk-list-divider uk-text-uppercase\">
{% set i = 1 %}
{% for child in page.getPages() %}
{% if child.isVisible() and menuRenderer.accept(child) %}
<li class=\"{% if child.getActive(true) %}uk-active{% endif %}\">
<a href=\"{{ child.getHref() }}\" class=\"{{ child.getClass() }}\" {% if child.getTarget() != NULL %} {{ child.getTarget() }} {% endif %}>
{{ child.getLabel() }}
</a>
</li>
{% endif %}
{% if (countChild != null) and (p == countChild) %}
</ul>
</div>
<div>
<ul class=\"uk-nav uk-navbar-dropdown-nav uk-list-divider uk-text-uppercase\">
{% endif %}
{% set i = i + 1 %}
{% endfor %}
</ul>
</div>
</div>
</div>
</li>
{% endif %}
{% endif %}
{% endfor %}
{# JE METS ICI LE MENU MA SELECTION POUR LES USERS CONNECTE #}
{% if app.user %}
{% set current_path = app.request.get('_route') %}
<li class=\"{{current_path == 'bookmark' ? 'active' : ''}}\">
<a href=\"{{ path('bookmark') }}\" class=\"apk-highlight-link\" >
<div class=\"uk-flex uk-flex-bottom\">
<div class=\"apk-media\">
<img height=\"35\" width=\"35\" uk-svg src=\"/navigation-svg/selection.svg\" alt=\"{{ 'Votre sélection'|trans }}\">
</div>
<div>
{{ '<span>Votre</span><br/>sélection'|trans|raw }}
</div>
</div>
</a>
</li>
{% endif %}
</ul>
", "includes/main-nav.html.twig", "/var/www/mynursery.apik-pp.be/www/templates/includes/main-nav.html.twig");
}
}