Initial commit
This commit is contained in:
commit
1ff19bf38f
830 changed files with 159212 additions and 0 deletions
11
kirby/views/fatal.php
Normal file
11
kirby/views/fatal.php
Normal 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/system/options/debug">debug mode</a> to get further information about the error.
|
||||
</p>
|
||||
|
||||
<?php include __DIR__ . '/snippets/footer.php' ?>
|
60
kirby/views/panel.php
Normal file
60
kirby/views/panel.php
Normal file
|
@ -0,0 +1,60 @@
|
|||
<?php
|
||||
/**
|
||||
* @var \Kirby\Cms\App $kirby
|
||||
* @var array<string, mixed> $config
|
||||
* @var string $assetUrl
|
||||
* @var string|false $customCss
|
||||
* @var string $icons
|
||||
* @var string $pluginCss
|
||||
* @var string $pluginJs
|
||||
* @var string $panelUrl
|
||||
* @var string $nonce
|
||||
* @var array<string, mixed> $options
|
||||
*/ ?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<meta name="referrer" content="same-origin">
|
||||
|
||||
<title>Kirby Panel</title>
|
||||
|
||||
<link nonce="<?= $nonce ?>" rel="stylesheet" href="<?= $assetUrl ?>/css/app.css">
|
||||
<link nonce="<?= $nonce ?>" rel="stylesheet" href="<?= $pluginCss ?>">
|
||||
|
||||
<?php if ($customCss) : ?>
|
||||
<link nonce="<?= $nonce ?>" rel="stylesheet" href="<?= $customCss ?>">
|
||||
<?php endif ?>
|
||||
|
||||
<link nonce="<?= $nonce ?>" rel="apple-touch-icon" href="<?= $assetUrl ?>/apple-touch-icon.png" />
|
||||
<link nonce="<?= $nonce ?>" rel="icon" href="<?= $assetUrl ?>/favicon.svg" type="image/svg+xml">
|
||||
<link nonce="<?= $nonce ?>" rel="alternate icon" href="<?= $assetUrl ?>/favicon.png" type="image/png">
|
||||
|
||||
<base href="<?= $panelUrl ?>">
|
||||
</head>
|
||||
<body>
|
||||
<svg aria-hidden="true" class="k-icons" xmlns="http://www.w3.org/2000/svg" overflow="hidden" nonce="<?= $nonce ?>">
|
||||
<defs />
|
||||
</svg>
|
||||
|
||||
<div id="app"></div>
|
||||
|
||||
<noscript>
|
||||
Please enable JavaScript in your browser
|
||||
</noscript>
|
||||
|
||||
<?= $icons ?>
|
||||
|
||||
<script nonce="<?= $nonce ?>">window.panel = <?= json_encode($options, JSON_UNESCAPED_SLASHES) ?></script>
|
||||
<script nonce="<?= $nonce ?>" src="<?= $assetUrl ?>/js/plugins.js" defer></script>
|
||||
<script nonce="<?= $nonce ?>" src="<?= $assetUrl ?>/js/vendor.js" defer></script>
|
||||
<script nonce="<?= $nonce ?>" src="<?= $pluginJs ?>" defer></script>
|
||||
<?php if (isset($config['js'])) : ?>
|
||||
<script nonce="<?= $nonce ?>" src="<?= Url::to($config['js']) ?>" defer></script>
|
||||
<?php endif ?>
|
||||
<script nonce="<?= $nonce ?>" src="<?= $assetUrl ?>/js/app.js" defer></script>
|
||||
|
||||
</body>
|
||||
</html>
|
11
kirby/views/php.php
Normal file
11
kirby/views/php.php
Normal 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>
|
||||
Change the PHP version to 7.3, 7.4 or 8.0 (PHP 7.4 is recommended)
|
||||
</p>
|
||||
|
||||
<?php include __DIR__ . '/snippets/footer.php' ?>
|
2
kirby/views/snippets/footer.php
Normal file
2
kirby/views/snippets/footer.php
Normal file
|
@ -0,0 +1,2 @@
|
|||
</body>
|
||||
</html>
|
39
kirby/views/snippets/header.php
Normal file
39
kirby/views/snippets/header.php
Normal file
|
@ -0,0 +1,39 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<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>
|
Loading…
Add table
Add a link
Reference in a new issue