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">
|
|
|
|
<div id="logo">
|
|
|
|
<?php if (Auth::getInstance()->isAuthenticated()): ?>
|
|
|
|
<?= $this->qlink(
|
|
|
|
'',
|
2015-09-22 14:12:08 +02:00
|
|
|
'dashboard',
|
2015-08-12 16:47:31 +02:00
|
|
|
null,
|
|
|
|
array(
|
|
|
|
'icon' => '../logo_icinga-inv.png',
|
|
|
|
'data-base-target' => '_main',
|
|
|
|
'aria-hidden' => 'true',
|
|
|
|
'tabindex' => -1
|
|
|
|
)
|
|
|
|
); ?>
|
|
|
|
<?php else: ?>
|
|
|
|
<?= $this->icon('../logo_icinga-inv.png'); ?>
|
|
|
|
<?php endif ?>
|
|
|
|
</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>
|
|
|
|
</div>
|