2014-02-18 19:06:27 +01:00
|
|
|
<?php
|
|
|
|
|
2014-06-20 13:14:14 +02:00
|
|
|
use Icinga\Util\Translator;
|
2014-02-18 19:06:27 +01:00
|
|
|
|
2014-04-07 14:04:23 +02:00
|
|
|
if (array_key_exists('_dev', $_GET)) {
|
|
|
|
$jsfile = 'js/icinga.dev.js';
|
|
|
|
$cssfile = 'css/icinga.css';
|
|
|
|
} else {
|
|
|
|
$jsfile = 'js/icinga.min.js';
|
|
|
|
$cssfile = 'css/icinga.min.css';
|
|
|
|
}
|
|
|
|
|
2014-06-12 19:33:28 +02:00
|
|
|
$ie8jsfile = 'js/icinga.ie8.js';
|
2014-06-25 10:42:09 +02:00
|
|
|
$lang = Translator::splitLocaleCode()->language;
|
2014-06-22 16:30:06 +02:00
|
|
|
$isIframe = $this->layout()->isIframe;
|
2015-06-17 14:14:07 +02:00
|
|
|
$showFullscreen = $this->layout()->showFullscreen;
|
2014-06-12 19:25:48 +02:00
|
|
|
$iframeClass = $isIframe ? ' iframe' : '';
|
2015-08-13 08:12:30 +02:00
|
|
|
$innerLayoutScript = $this->layout()->innerLayout . '.phtml';
|
2014-04-07 14:04:23 +02:00
|
|
|
|
2014-02-18 19:06:27 +01:00
|
|
|
?><!DOCTYPE html>
|
2013-08-20 20:12:40 +02:00
|
|
|
<!--[if IE 8]>
|
2014-06-20 13:14:14 +02:00
|
|
|
<html class="no-js ie8<?= $iframeClass ?>" lang="<?= $lang ?>"> <![endif]-->
|
2013-06-14 13:51:44 +02:00
|
|
|
<!--[if gt IE 8]><!-->
|
2014-06-20 13:14:14 +02:00
|
|
|
<html class="no-js<?= $iframeClass ?>" lang="<?= $lang ?>"> <!--<![endif]-->
|
2013-06-14 13:51:44 +02:00
|
|
|
<head>
|
2013-08-20 20:12:40 +02:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
|
2014-05-21 00:41:34 +02:00
|
|
|
<meta name="google" value="notranslate">
|
2013-08-20 20:12:40 +02:00
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
2015-06-15 23:54:12 +02:00
|
|
|
<meta http-equiv="cleartype" content="on">
|
2014-03-04 14:20:10 +01:00
|
|
|
<title><?= $this->title ? $this->escape($this->title) : 'Icinga Web' ?></title>
|
|
|
|
<!-- TODO: viewport and scale settings make no sense for us, fix this -->
|
2013-08-21 16:11:22 +02:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
2014-10-23 10:44:54 +02:00
|
|
|
<?php if ($isIframe): ?>
|
2014-06-22 16:30:06 +02:00
|
|
|
<base target="_parent"/>
|
2014-09-05 13:21:29 +02:00
|
|
|
<?php else: ?>
|
2014-05-26 15:46:14 +02:00
|
|
|
<script type="text/javascript">
|
|
|
|
(function() {
|
|
|
|
var html = document.getElementsByTagName('html')[0];
|
|
|
|
html.className = html.className.replace(/no-js/, 'js');
|
|
|
|
}());
|
|
|
|
</script>
|
2014-09-05 13:21:29 +02:00
|
|
|
<?php endif ?>
|
2015-12-10 12:05:48 +01:00
|
|
|
<link rel="stylesheet" href="<?= $this->href($cssfile) ?>" media="all" type="text/css" />
|
2014-02-18 19:06:27 +01:00
|
|
|
<!-- Respond.js IE8 support of media queries -->
|
2013-08-21 16:11:22 +02:00
|
|
|
<!--[if lt IE 9]>
|
2013-09-11 17:19:18 +02:00
|
|
|
<script src="<?= $this->baseUrl('js/vendor/respond.min.js');?>"></script>
|
2013-08-20 20:12:40 +02:00
|
|
|
<![endif]-->
|
2014-08-19 12:25:14 +02:00
|
|
|
<link type="image/png" rel="shortcut icon" href="<?= $this->baseUrl('img/favicon.png') ?>" />
|
2013-06-14 13:51:44 +02:00
|
|
|
</head>
|
2015-12-15 13:29:30 +01:00
|
|
|
<body id="body" class="loading">
|
2014-03-04 11:52:37 +01:00
|
|
|
<pre id="responsive-debug"></pre>
|
2015-06-17 14:14:07 +02:00
|
|
|
<div id="layout" class="default-layout<?php if ($showFullscreen): ?> fullscreen-layout<?php endif ?>">
|
2015-08-13 08:12:30 +02:00
|
|
|
<?= $this->render($innerLayoutScript); ?>
|
2014-03-04 11:52:37 +01:00
|
|
|
</div>
|
2015-07-20 10:14:55 +02:00
|
|
|
<iframe id="fileupload-frame-target" name="fileupload-frame-target"></iframe>
|
2014-06-12 19:33:28 +02:00
|
|
|
<!--[if IE 8]>
|
|
|
|
<script type="text/javascript" src="<?= $this->href($ie8jsfile) ?>"></script>
|
|
|
|
<![endif]-->
|
|
|
|
<!--[if gt IE 8]><!-->
|
2014-04-07 14:04:23 +02:00
|
|
|
<script type="text/javascript" src="<?= $this->href($jsfile) ?>"></script>
|
2014-06-12 19:33:28 +02:00
|
|
|
<!--<![endif]-->
|
2014-02-18 19:06:27 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
var icinga = new Icinga({
|
2015-09-22 14:12:08 +02:00
|
|
|
baseUrl: '<?= $this->baseUrl(); ?>'
|
2014-02-18 19:06:27 +01:00
|
|
|
});
|
|
|
|
</script>
|
2013-06-14 13:51:44 +02:00
|
|
|
</body>
|
|
|
|
</html>
|