Skip to content
Browse files

Localize maintenance mode.

Signed-off-by: Thomas Hochstein <>
  • Loading branch information...
th-h committed Apr 27, 2019
1 parent eda8f71 commit ceaee85d3b9ff17911f9abbe2ac8f142e7e25b47
Showing with 18 additions and 7 deletions.
  1. +7 −0 lang/addlang.txt
  2. +11 −7 templates/2k11/admin/
@@ -0,0 +1,7 @@
@define('MAINTENANCE_MODE', 'Maintenance Mode');
@define('MAINTENANCE_MODE_DESC', 'Activate maintenance mode to prevent access from users that are not logged in.');
@define('MAINTENANCE_MODE_WARNING', "Do not log out, as you won't be able to log in again until maintenance mode expires!");
@define('MAINTENANCE_MODE_DURATION', 'Duration (in hours):';
@define('MAINTENANCE_MODE_TIME', 'Will be active until');
@define('MAINTENANCE_MODE_ACTIVATE', 'Activate');
@define('MAINTENANCE_MODE_DEACTIVATE', 'Deactivate');
@@ -96,16 +96,18 @@
<section id="maintenance_mode" class="equal_heights quick_list">

<span class="msg_notice"><span class="icon-info-circled" aria-hidden="true"></span>{$CONST.MAINTENANCE_MODE_WARNING}</span>

<form method="POST" target="?">
<input type="hidden" name="adminAction" value="maintenanceMode"/>
<p>Activate maintenance mode to prevent access from users that are not logged in.</p>
{if $maintenance_mode_active}
Will be active till: {$maintenance_mode_end}
<button type="submit">Deactivate</button>
<p>{$CONST.MAINTENANCE_MODE_TIME}: {$maintenance_mode_end}
<button type="submit">{$CONST.MAINTENANCE_MODE_DEACTIVATE}</button></p>
<label>How many hours shall it be active?</label>
<input type="number" name="hours" value="1"/>
<button type="submit">Activate</button>
<input type="number" name="hours" min="0" value="1" style="width: 3em;/>
<button type="submit">{$CONST.MAINTENANCE_MODE_ACTIVATE}</button>
@@ -114,4 +116,6 @@
{serendipity_hookPlugin hook="backend_maintenance" hookAll="true"}

0 comments on commit ceaee85

Please sign in to comment.
You can’t perform that action at this time.