From 605ab5c6c188aafa29d1ce81d61fffc23fb3304e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 3 Sep 2014 16:41:47 +0200 Subject: Add CONFIG_FOOTER option; if set, it will be appended to the bottom of the page, via templates/footer.html --- index.php | 4 ++++ templates/footer.html | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 templates/footer.html 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 @@ +
+
{{text}}
-- cgit v1.2.3-55-g7522