From f5a094fd8b32d44767f7fc30a65f407f4e1d9945 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Sat, 23 Aug 2014 01:55:18 +0200 Subject: add user view, better bootstrap --- includes/sys_template.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'includes/sys_template.php') diff --git a/includes/sys_template.php b/includes/sys_template.php index bb3d5731..9fc87ef3 100644 --- a/includes/sys_template.php +++ b/includes/sys_template.php @@ -8,6 +8,11 @@ $themes = array( "1" => "Engelsystem dark" ); +function div($class, $content = array(), $id = "") { + $id = $id != '' ? ' id="' . $id . '"' : ''; + return '' . join("\n", $content) . ''; +} + /** * Render a toolbar. * @@ -273,7 +278,7 @@ function button($href, $label, $class = "") { * Rendert eine Toolbar mit Knöpfen */ function buttons($buttons = array ()) { - return '
' . join(' ', $buttons) . '
'; + return '
' . join(' ', $buttons) . '
'; } // Load and render template -- cgit v1.2.3-54-g00ecf