2014-03-06 10:19:48 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Icinga\Web\Url;
|
2014-03-08 00:15:51 +01:00
|
|
|
use Icinga\Web\Notification;
|
2015-07-28 17:08:55 +02:00
|
|
|
use Icinga\Authentication\Auth;
|
2014-03-06 10:19:48 +01:00
|
|
|
|
2015-08-12 16:47:31 +02:00
|
|
|
$moduleName = $this->layout()->moduleName;
|
2015-08-19 13:39:37 +02:00
|
|
|
if ($moduleName !== 'default') {
|
2015-08-12 16:47:31 +02:00
|
|
|
$moduleClass = ' icinga-module module-' . $moduleName;
|
|
|
|
} else {
|
|
|
|
$moduleClass = '';
|
|
|
|
}
|
2014-03-17 17:11:56 +01:00
|
|
|
|
2015-08-12 16:47:31 +02:00
|
|
|
$refresh = '';
|
|
|
|
if ($this->layout()->autorefreshInterval) {
|
|
|
|
$refresh = ' data-icinga-refresh="' . $this->layout()->autorefreshInterval . '"';
|
|
|
|
}
|
2014-06-21 01:54:32 +02:00
|
|
|
|
2017-11-21 13:30:58 +01:00
|
|
|
if ($this->layout()->inlineLayout) {
|
|
|
|
$inlineLayoutScript = $this->layout()->inlineLayout . '.phtml';
|
|
|
|
} else {
|
|
|
|
$inlineLayoutScript = 'inline.phtml';
|
|
|
|
}
|
2017-06-28 11:14:01 +02:00
|
|
|
|
2015-05-29 14:17:12 +02:00
|
|
|
?>
|
2015-08-12 16:47:31 +02:00
|
|
|
<div id="header">
|
2016-11-29 15:12:33 +01:00
|
|
|
<div id="announcements" class="container">
|
|
|
|
<?= $this->widget('announcements') ?>
|
|
|
|
</div>
|
2015-12-10 13:16:55 +01:00
|
|
|
<div id="header-logo-container">
|
2015-08-12 16:47:31 +02:00
|
|
|
<?= $this->qlink(
|
|
|
|
'',
|
2015-12-07 13:52:14 +01:00
|
|
|
Auth::getInstance()->isAuthenticated() ? 'dashboard' : '',
|
2015-08-12 16:47:31 +02:00
|
|
|
null,
|
|
|
|
array(
|
|
|
|
'aria-hidden' => 'true',
|
2015-12-10 13:16:55 +01:00
|
|
|
'data-base-target' => '_main',
|
2016-01-18 11:37:11 +01:00
|
|
|
'id' => 'header-logo'
|
2015-08-12 16:47:31 +02:00
|
|
|
)
|
|
|
|
); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php if (! $this->layout()->isIframe): ?>
|
|
|
|
<div id="sidebar">
|
|
|
|
<?= $this->render('parts/navigation.phtml'); ?>
|
|
|
|
</div>
|
2014-06-22 16:30:06 +02:00
|
|
|
<?php endif ?>
|
2015-08-12 16:47:31 +02:00
|
|
|
<div id="main" role="main">
|
2018-07-11 13:10:57 +02:00
|
|
|
<div id="col1" class="container<?= $moduleClass ?>"<?php if ($moduleName): ?> data-icinga-module="<?= $moduleName ?>" <?php endif ?> data-icinga-url="<?= $this->escape(Url::fromRequest()->without('renderLayout')->getAbsoluteUrl()); ?>"<?= $refresh; ?> style="display: block">
|
2017-06-28 11:14:01 +02:00
|
|
|
<?= $this->render($inlineLayoutScript) ?>
|
2013-08-21 16:11:22 +02:00
|
|
|
</div>
|
2014-02-18 19:06:27 +01:00
|
|
|
<div id="col2" class="container">
|
2013-06-14 13:51:44 +02:00
|
|
|
</div>
|
2014-02-18 19:06:27 +01:00
|
|
|
<div id="col3" class="container">
|
2013-09-03 18:43:17 +02:00
|
|
|
</div>
|
2015-08-12 16:47:31 +02:00
|
|
|
</div>
|
|
|
|
<div id="footer">
|
2016-01-22 13:35:51 +01:00
|
|
|
<ul role="alert" id="notifications"><?php
|
2015-08-12 16:47:31 +02:00
|
|
|
|
|
|
|
$notifications = Notification::getInstance();
|
|
|
|
if ($notifications->hasMessages()) {
|
|
|
|
foreach ($notifications->popMessages() as $m) {
|
|
|
|
echo '<li class="' . $m->type . '">' . $this->escape($m->message) . '</li>';
|
|
|
|
}
|
2015-05-29 14:17:12 +02:00
|
|
|
}
|
2015-08-12 16:47:31 +02:00
|
|
|
?></ul>
|
2018-07-09 15:33:20 +02:00
|
|
|
<div id="application-state-summary" class="container" data-icinga-url="<?= $this->url('application-state/summary') ?>" data-last-update="-1" data-icinga-refresh="60"></div>
|
2015-10-01 17:11:54 +02:00
|
|
|
</div>
|