summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2014-09-03 16:41:47 +0200
committerSimon Rettberg2014-09-03 16:41:47 +0200
commit605ab5c6c188aafa29d1ce81d61fffc23fb3304e (patch)
treee46d72c305457508e230ecd328a174d35cc27360
parent[i18n] Remove empty tags from json output (diff)
downloadslx-admin-605ab5c6c188aafa29d1ce81d61fffc23fb3304e.tar.gz
slx-admin-605ab5c6c188aafa29d1ce81d61fffc23fb3304e.tar.xz
slx-admin-605ab5c6c188aafa29d1ce81d61fffc23fb3304e.zip
Add CONFIG_FOOTER option; if set, it will be appended to the bottom of the page, via templates/footer.html
-rw-r--r--index.php4
-rw-r--r--templates/footer.html2
2 files changed, 6 insertions, 0 deletions
diff --git a/index.php b/index.php
index e3d220fc..3b1effa6 100644
--- a/index.php
+++ b/index.php
@@ -139,5 +139,9 @@ if (defined('CONFIG_DEBUG') && CONFIG_DEBUG) {
Render::closeTag('div');
}
+if (defined('CONFIG_FOOTER')) {
+ Render::addTemplate('footer', array('text' => CONFIG_FOOTER));
+}
+
// Send page to client.
Render::output();
diff --git a/templates/footer.html b/templates/footer.html
new file mode 100644
index 00000000..a89a4338
--- /dev/null
+++ b/templates/footer.html
@@ -0,0 +1,2 @@
+<hr>
+<div class="pull-right">{{text}}</div>