diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:39:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:39:39 +0000 |
commit | 8ca6cc32b2c789a3149861159ad258f2cb9491e3 (patch) | |
tree | 2492de6f1528dd44eaa169a5c1555026d9cb75ec /application/layouts/scripts/external-logout.phtml | |
parent | Initial commit. (diff) | |
download | icingaweb2-upstream.tar.xz icingaweb2-upstream.zip |
Adding upstream version 2.11.4.upstream/2.11.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | application/layouts/scripts/external-logout.phtml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/application/layouts/scripts/external-logout.phtml b/application/layouts/scripts/external-logout.phtml new file mode 100644 index 0000000..19b7e32 --- /dev/null +++ b/application/layouts/scripts/external-logout.phtml @@ -0,0 +1,34 @@ +<?php + +use ipl\I18n\Locale; +use ipl\I18n\GettextTranslator; +use ipl\I18n\StaticTranslator; + +/** @var GettextTranslator $translator */ +$translator = StaticTranslator::$instance; + +$lang = (new Locale())->parseLocale($translator->getLocale())->language; +$showFullscreen = $this->layout()->showFullscreen; +$innerLayoutScript = $this->layout()->innerLayout . '.phtml'; + +?><!DOCTYPE html> +<html class="no-js" lang="<?= $lang ?>"> +<head> + <meta charset="utf-8"> + <meta name="google" value="notranslate"> + <meta http-equiv="cleartype" content="on"> + <title><?= $this->title ? $this->escape($this->title) : $this->defaultTitle ?></title> + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"> + <meta name="apple-mobile-web-app-capable" content="yes"> + <meta name="application-name" content="Icinga Web 2"> + <meta name="apple-mobile-web-app-title" content="Icinga"> + <link rel="mask-icon" href="<?= $this->baseUrl('img/website-icon.svg') ?>" color="#0096BF"> + <link type="image/png" rel="shortcut icon" href="<?= $this->baseUrl('img/favicon.png') ?>" /> + <link rel="apple-touch-icon" href="<?= $this->baseUrl('img/touch-icon.png') ?>"> +</head> +<body id="body"> +<div id="layout" class="default-layout<?php if ($showFullscreen): ?> fullscreen-layout<?php endif ?>"> + <?= $this->render($innerLayoutScript); ?> +</div> +</body> +</html> |