summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-05-05 15:07:22 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-05-05 15:07:22 +0100
commita6410500f0872b957a8d89f116e3328475633a80 (patch)
tree50412b96720819179cde186850a7b7d2b38c4c25 /resources
parent0f471f918d56a990950c039f6e0c4e38a26cc84a (diff)
downloadwebtrees-a6410500f0872b957a8d89f116e3328475633a80.tar.gz
webtrees-a6410500f0872b957a8d89f116e3328475633a80.tar.bz2
webtrees-a6410500f0872b957a8d89f116e3328475633a80.zip
Move site-offline to new framework
Diffstat (limited to 'resources')
-rw-r--r--resources/views/layouts/offline.php66
1 files changed, 66 insertions, 0 deletions
diff --git a/resources/views/layouts/offline.php b/resources/views/layouts/offline.php
new file mode 100644
index 0000000000..2e03d4da53
--- /dev/null
+++ b/resources/views/layouts/offline.php
@@ -0,0 +1,66 @@
+<?php use Fisharebest\Webtrees\I18N; ?>
+<!DOCTYPE html>
+<html <?= I18N::htmlAttributes() ?>>
+ <head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+ <title><?= WT_WEBTREES ?></title>
+
+ <link rel="icon" href="favicon.ico" type="image/x-icon">
+ <style type="text/css">
+ body {
+ color: gray;
+ background-color: white;
+ font: 14px tahoma, arial, helvetica, sans-serif;
+ padding: 10px;
+ }
+
+ a {
+ color: #81A9CB;
+ font-weight: bold;
+ text-decoration: none;
+ }
+
+ a:hover {
+ text-decoration: underline;
+ }
+
+ h1 {
+ color: #81A9CB;
+ font-weight: normal;
+ text-align: center;
+ }
+
+ li {
+ line-height: 2;
+ }
+
+ blockquote {
+ color: red;
+ }
+
+ .content { /*margin:auto; width:800px;*/
+ border: 1px solid gray;
+ padding: 15px;
+ border-radius: 15px;
+ }
+
+ .good {
+ color: green;
+ }
+ </style>
+ </head>
+
+ <body class="container">
+ <h1><?= I18N::translate('This website is temporarily unavailable') ?></h1>
+ <div class="content">
+ <p>
+ <?= str_replace('index.php', e($url), I18N::translate('This website is down for maintenance. You should <a href="index.php">try again</a> in a few minutes.')) ?>
+ </p>
+ <p>
+ <?= $message ?>
+ </p>
+ </div>
+ </body>
+</html>