summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Favre <gnomus@gnomus.de>2014-12-16 03:38:30 +0100
committerFelix Favre <gnomus@gnomus.de>2014-12-16 03:39:43 +0100
commit8a51e5d822ce4276e266fefa62c8973344609471 (patch)
treed388a27ec5eb905078460cd899abd30e7baeccf8
parent807e4208832288dbbd876056621a36f58e836d42 (diff)
added headings template function
(cherry picked from commit 02457f00b809282d5fa4be19239a33afb3e927c3)
-rw-r--r--includes/sys_template.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php
index 8a06fff9..d7017bd9 100644
--- a/includes/sys_template.php
+++ b/includes/sys_template.php
@@ -32,6 +32,10 @@ function div($class, $content = array(), $id = "") {
return '<div' . $id . ' class="' . $class . '">' . join("\n", $content) . '</div>';
}
+function heading($content, $number = 1) {
+ return "<h" . $number . ">" . $content . "</h" . $number . ">";
+}
+
/**
* Render a toolbar.
*