File: menu.phtml

package info (click to toggle)
icingaweb2 2.12.4-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 15,156 kB
  • sloc: php: 73,914; javascript: 4,987; sql: 333; xml: 75; sh: 72; makefile: 5
file content (20 lines) | stat: -rw-r--r-- 869 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

use Icinga\Web\Navigation\ConfigMenu;
use Icinga\Web\Widget\SearchDashboard;

$searchDashboard = new SearchDashboard();
$searchDashboard->setUser($this->Auth()->getUser());

if ($searchDashboard->search('dummy')->getPane('search')->hasDashlets()): ?>
    <form action="<?= $this->href('search') ?>" method="get" role="search" class="search-control">
        <input type="text" name="q" id="search" class="search search-input" required
               placeholder="<?= $this->translate('Search') ?> &hellip;"
               autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
        <button class="search-reset icon-cancel" type="reset"></button>
    </form>
<?php endif; ?>
<?= $menuRenderer->setCssClass('primary-nav')->setElementTag('nav')->setHeading(t('Navigation')); ?>
<nav class="config-menu">
    <?= new ConfigMenu() ?>
</nav>