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
|
|
|
|
2015-05-29 14:17:12 +02:00
|
|
|
?>
|
2015-08-12 16:47:31 +02:00
|
|
|
<div id="header">
|
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',
|
|
|
|
'id' => 'header-logo',
|
2015-08-12 16:47:31 +02:00
|
|
|
'tabindex' => -1
|
|
|
|
)
|
|
|
|
); ?>
|
|
|
|
</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">
|
|
|
|
<div id="col1" class="container<?= $moduleClass ?>"<?php if ($moduleName): ?> data-icinga-module="<?= $moduleName ?>" <?php endif ?> data-icinga-url="<?= Url::fromRequest()->without('renderLayout'); ?>"<?= $refresh; ?> style="display: block">
|
|
|
|
<?= $this->render('inline.phtml') ?>
|
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">
|
|
|
|
<ul id="notifications"><?php
|
|
|
|
|
|
|
|
$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>
|
2015-10-01 17:11:54 +02:00
|
|
|
</div>
|