Browse Source

module to show system down message

pull/585/head
Zach Prezkuta 8 years ago
parent
commit
28c9123ac8
3 changed files with 14 additions and 0 deletions
  1. +7
    -0
      mod/maintenance.php
  2. +1
    -0
      view/maintenance.tpl
  3. +6
    -0
      view/smarty3/maintenance.tpl

+ 7
- 0
mod/maintenance.php View File

@ -0,0 +1,7 @@
<?php
function maintenance_content(&$a) {
return replace_macros(get_markup_template('maintenance.tpl'), array(
'$sysdown' => t('System down for maintenance')
));
}

+ 1
- 0
view/maintenance.tpl View File

@ -0,0 +1 @@
<div id="maintenance-message">$sysdown</div>

+ 6
- 0
view/smarty3/maintenance.tpl View File

@ -0,0 +1,6 @@
{{*
* AUTOMATICALLY GENERATED TEMPLATE
* DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
*
*}}
<div id="maintenance-message">{{$sysdown}}</div>

Loading…
Cancel
Save