first version
This commit is contained in:
11
kirby/views/fatal.php
Executable file
11
kirby/views/fatal.php
Executable file
@@ -0,0 +1,11 @@
|
||||
<?php include __DIR__ . '/snippets/header.php' ?>
|
||||
|
||||
<p class="notice">
|
||||
This page is currently offline due to an unexpected error. We are very sorry for the inconvenience and will fix it as soon as possible.
|
||||
</p>
|
||||
<p class="admin-advice">
|
||||
Advice for developers and administrators:<br>
|
||||
Enable <a href="https://getkirby.com/docs/reference/options/debug">debug mode</a> to get further information about the error.
|
||||
</p>
|
||||
|
||||
<?php include __DIR__ . '/snippets/footer.php' ?>
|
37
kirby/views/panel.php
Executable file
37
kirby/views/panel.php
Executable file
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
|
||||
<title>Kirby Panel</title>
|
||||
|
||||
<link rel="stylesheet" href="<?= $assetUrl ?>/css/app.css">
|
||||
<link rel="stylesheet" href="<?= $pluginCss ?>">
|
||||
|
||||
<?php if (isset($config['css'])) : ?>
|
||||
<link rel="stylesheet" href="<?= Url::to($config['css']) ?>">
|
||||
<?php endif ?>
|
||||
|
||||
<link rel="apple-touch-icon" href="<?= $assetUrl ?>/apple-touch-icon.png" />
|
||||
<link rel="shortcut icon" href="<?= $assetUrl ?>/favicon.png">
|
||||
|
||||
<base href="<?= $panelUrl ?>">
|
||||
</head>
|
||||
<body>
|
||||
<?= $icons ?>
|
||||
<div id="app"></div>
|
||||
|
||||
<script>window.panel = <?= json_encode($options, JSON_UNESCAPED_SLASHES) ?></script>
|
||||
|
||||
<script src="<?= $assetUrl ?>/js/plugins.js"></script>
|
||||
<script src="<?= $assetUrl ?>/js/vendor.js"></script>
|
||||
<script src="<?= $pluginJs ?>"></script>
|
||||
<?php if (isset($config['js'])) : ?>
|
||||
<script src="<?= Url::to($config['js']) ?>"></script>
|
||||
<?php endif ?>
|
||||
<script src="<?= $assetUrl ?>/js/app.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
11
kirby/views/php.php
Executable file
11
kirby/views/php.php
Executable file
@@ -0,0 +1,11 @@
|
||||
<?php include __DIR__ . '/snippets/header.php' ?>
|
||||
|
||||
<p class="notice">
|
||||
This page is currently offline. We are very sorry for the inconvenience and will fix it as soon as possible.
|
||||
</p>
|
||||
<p class="admin-advice">
|
||||
Advice for developers and administrators:<br>
|
||||
Upgrade PHP to 7.1+
|
||||
</p>
|
||||
|
||||
<?php include __DIR__ . '/snippets/footer.php' ?>
|
2
kirby/views/snippets/footer.php
Executable file
2
kirby/views/snippets/footer.php
Executable file
@@ -0,0 +1,2 @@
|
||||
</body>
|
||||
</html>
|
36
kirby/views/snippets/header.php
Executable file
36
kirby/views/snippets/header.php
Executable file
@@ -0,0 +1,36 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Error</title>
|
||||
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||||
padding: 10%;
|
||||
text-align: center;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
a:hover,
|
||||
a:focus {
|
||||
color: #000;
|
||||
}
|
||||
p {
|
||||
max-width: 30em;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.notice {
|
||||
font-weight: bold;
|
||||
}
|
||||
.admin-advice {
|
||||
font-size: .8em;
|
||||
font-style: italic;
|
||||
color: #999;
|
||||
padding-top: 3rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
Reference in New Issue
Block a user