]> git.mxchange.org Git - friendica.git/commitdiff
module to show system down message
authorZach Prezkuta <fermion@gmx.com>
Mon, 14 Jan 2013 23:48:01 +0000 (16:48 -0700)
committerZach Prezkuta <fermion@gmx.com>
Mon, 14 Jan 2013 23:48:01 +0000 (16:48 -0700)
mod/maintenance.php [new file with mode: 0644]
view/maintenance.tpl [new file with mode: 0644]
view/smarty3/maintenance.tpl [new file with mode: 0644]

diff --git a/mod/maintenance.php b/mod/maintenance.php
new file mode 100644 (file)
index 0000000..b50c94c
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+
+function maintenance_content(&$a) {
+       return replace_macros(get_markup_template('maintenance.tpl'), array(
+               '$sysdown' => t('System down for maintenance')
+       ));
+}
diff --git a/view/maintenance.tpl b/view/maintenance.tpl
new file mode 100644 (file)
index 0000000..bbe15d4
--- /dev/null
@@ -0,0 +1 @@
+<div id="maintenance-message">$sysdown</div>
diff --git a/view/smarty3/maintenance.tpl b/view/smarty3/maintenance.tpl
new file mode 100644 (file)
index 0000000..f0ea084
--- /dev/null
@@ -0,0 +1,6 @@
+{{*
+ *     AUTOMATICALLY GENERATED TEMPLATE
+ *     DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
+ *
+ *}}
+<div id="maintenance-message">{{$sysdown}}</div>