Skip to content

Commit 8952a72

Browse files
committed
Add additional tips to maintenance error page
1 parent b087100 commit 8952a72

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/Templates/Core/Maintenance.phtml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php /* vim: set colorcolumn= expandtab shiftwidth=2 softtabstop=2 tabstop=4 smarttab: */
22
namespace BNETDocs\Templates\Core;
3+
use \CarlBennett\MVC\Libraries\Common;
34
$title = 'Maintenance';
45
$description = $this->getContext()->message;
56
$_header_maintenance = true;
@@ -9,5 +10,25 @@ require('./Includes/header.inc.phtml'); ?>
910
<h4 class="alert-heading"><?=$title?></h4>
1011
<p class="mb-0"><?=$description?></p>
1112
</div>
13+
<div class="alert alert-primary" role="suggestion">
14+
<p><strong>This page</strong> is currently unavailable from our website.</p>
15+
<ul>
16+
<li>You could try <strong>refreshing</strong> the page again later.</li>
17+
<li>You might try loading this page from the
18+
<a href="https://web.archive.org/web/*/<?=Common::relativeUrlToAbsolute(getenv('REQUEST_URI'))?>">
19+
Wayback Machine Internet Archive</a>.
20+
</li>
21+
<?php if (isset(Common::$config) && isset(Common::$config->discord) && isset(Common::$config->discord->invite_code)) { ?>
22+
<li>You could use <a href="https://discord.gg/<?=Common::$config->discord->invite_code?>">Discord</a> to contact an administrator.</li>
23+
<?php } else { ?>
24+
<li>You could use social media to contact an administrator.</li>
25+
<?php } ?>
26+
<?php if (isset(Common::$config) && isset(Common::$config->email) && isset(Common::$config->email->recipient_reply_to)) { ?>
27+
<li>You could use an
28+
<a href="mailto:<?=Common::$config->email->recipient_reply_to[1]?> &lt;<?=Common::$config->email->recipient_reply_to[0]?>&gt;">email message</a>
29+
to contact an administrator.</li>
30+
<?php } ?>
31+
</ul>
32+
</div>
1233
</div>
1334
<?php require('./Includes/footer.inc.phtml'); ?>

0 commit comments

Comments
 (0)