data-icinga-module="" data-icinga-url="" style="display: block"> render('inline.phtml') ?>
diff --git a/application/layouts/scripts/parts/menu.phtml b/application/layouts/scripts/parts/menu.phtml index 7174ddd8e..7a4f84ef3 100644 --- a/application/layouts/scripts/parts/menu.phtml +++ b/application/layouts/scripts/parts/menu.phtml @@ -1,4 +1,9 @@ -
    +level) { + $this->level = 0; +} +?> +level === 0 ? ' role="navigation"' : '' ?>> items as $item) { @@ -17,7 +22,7 @@ foreach ($this->items as $item) { if ($item->hasChildren()) { echo $this->partial( 'parts/menu.phtml', - array('items' => $item->getChildren(), 'url' => $this->url) + array('items' => $item->getChildren(), 'url' => $this->url, 'level' => $this->level + 1) ); } diff --git a/application/layouts/scripts/parts/navigation.phtml b/application/layouts/scripts/parts/navigation.phtml index 0e47d5358..05d9582ce 100644 --- a/application/layouts/scripts/parts/navigation.phtml +++ b/application/layouts/scripts/parts/navigation.phtml @@ -13,7 +13,7 @@ $url = Url::fromRequest()->remove('_render')->getRelativeUrl(); $menu = Menu::fromConfig(); ?>