2013-06-14 13:51:44 +02:00
|
|
|
<?php
|
2014-02-25 11:13:36 +01:00
|
|
|
|
2014-03-04 11:52:37 +01:00
|
|
|
use Icinga\Web\Url;
|
|
|
|
use Icinga\Web\Menu;
|
2014-07-03 15:46:46 +02:00
|
|
|
use Icinga\Web\MenuRenderer;
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
2014-03-09 23:30:37 +01:00
|
|
|
<div id="menu" data-base-target="_main">
|
2014-06-20 15:02:19 +02:00
|
|
|
<form action="<?= $this->href('search') ?>" method="get" role="search">
|
2014-05-27 23:47:13 +02:00
|
|
|
<input type="text" name="q" class="search autofocus" placeholder="<?= $this->translate('Search...') ?>" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />
|
2014-03-04 11:52:37 +01:00
|
|
|
</form>
|
2014-08-22 11:10:17 +02:00
|
|
|
<?= new MenuRenderer(Menu::load(), Url::fromRequest()->without('renderLayout')->getRelativeUrl()); ?>
|
2014-02-18 19:16:03 +01:00
|
|
|
</div>
|