2013-06-14 13:51:44 +02:00
|
|
|
<?php
|
2014-02-25 11:13:36 +01:00
|
|
|
|
2018-04-30 10:26:00 +02:00
|
|
|
use Icinga\Web\Menu;
|
2014-03-04 11:52:37 +01:00
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
2015-02-16 10:57:31 +01:00
|
|
|
<div class="skip-links">
|
2016-01-18 12:00:12 +01:00
|
|
|
<h1 class="sr-only"><?= t('Accessibility Skip Links') ?></h1>
|
2015-02-16 10:57:31 +01:00
|
|
|
<ul>
|
|
|
|
<li>
|
2016-01-18 12:00:12 +01:00
|
|
|
<a href="#main"><?= t('Skip to Content') ?></a>
|
2015-02-16 10:57:31 +01:00
|
|
|
</li>
|
2015-02-16 12:04:54 +01:00
|
|
|
<li>
|
|
|
|
<?= $this->layout()->autoRefreshForm ?>
|
|
|
|
</li>
|
2015-02-16 10:57:31 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
2019-12-06 15:32:07 +01:00
|
|
|
<div id="menu" data-last-update="-1" data-base-target="_main" class="container"
|
2019-07-03 16:20:10 +02:00
|
|
|
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>
|