added headings template function

(cherry picked from commit 02457f00b809282d5fa4be19239a33afb3e927c3)
This commit is contained in:
Felix Favre 2014-12-16 03:38:30 +01:00
parent 807e420883
commit 8a51e5d822
1 changed files with 4 additions and 0 deletions

View File

@ -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.
*