icingaweb2/application/layouts/scripts/parts/navigation.phtml

36 lines
1023 B
PHTML
Raw Normal View History

<?php
2014-02-25 11:13:36 +01:00
use Icinga\Web\Menu;
2014-02-25 11:13:36 +01:00
// Don't render a menu for unauthenticated users unless menu is auth aware
if (! $this->auth()->isAuthenticated()) {
return;
}
?>
<div class="skip-links">
<h1 class="sr-only"><?= t('Accessibility Skip Links') ?></h1>
<ul>
<li>
<a href="#main"><?= t('Skip to Content') ?></a>
</li>
<li>
<?= $this->layout()->autoRefreshForm ?>
</li>
</ul>
</div>
2019-12-06 15:32:07 +01:00
<div id="menu" data-last-update="-1" data-base-target="_main" class="container"
data-icinga-url="<?= $this->href('layout/menu') ?>" data-icinga-refresh="15">
<?= $this->partial(
'layout/menu.phtml',
'default',
array(
'menuRenderer' => (new Menu())->getRenderer()->setUseStandardItemRenderer()
)
) ?>
2014-02-18 19:16:03 +01:00
</div>
2017-11-27 13:01:43 +01:00
<button id="toggle-sidebar" title="<?= $this->translate('Toggle Menu') ?>">
<i id="close-sidebar" class="icon-angle-double-left"></i>
<i id="open-sidebar" class="icon-angle-double-right"></i>
</button>