mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-04-06 01:35:50 -04:00
Add SPDX license headers and mark source files as GPL-3.0-or-later to preserve the option to relicense under later GPL versions.
30 lines
655 B
PHP
30 lines
655 B
PHP
<?php
|
|
|
|
// SPDX-FileCopyrightText: 2018 Icinga GmbH <https://icinga.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
namespace Icinga\Controllers;
|
|
|
|
use Icinga\Web\Controller\ActionController;
|
|
use Icinga\Web\Menu;
|
|
|
|
/**
|
|
* Create complex layout parts
|
|
*/
|
|
class LayoutController extends ActionController
|
|
{
|
|
/**
|
|
* Render the menu
|
|
*/
|
|
public function menuAction()
|
|
{
|
|
$this->setAutorefreshInterval(15);
|
|
$this->_helper->layout()->disableLayout();
|
|
$this->view->menuRenderer = (new Menu())->getRenderer();
|
|
}
|
|
|
|
public function announcementsAction()
|
|
{
|
|
$this->_helper->layout()->disableLayout();
|
|
}
|
|
}
|