diff options
author | Philip Häusler <msquare@notrademark.de> | 2014-08-23 01:55:18 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2014-08-23 01:55:18 +0200 |
commit | f5a094fd8b32d44767f7fc30a65f407f4e1d9945 (patch) | |
tree | eac9a223e103c3066ef6e0b57e0bf215eaa89a72 /includes/sys_template.php | |
parent | 74647e16d37fac9425a4561b49618b52cdc3e75c (diff) |
add user view, better bootstrap
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r-- | includes/sys_template.php | 7 |
1 files changed, 6 insertions, 1 deletions
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 '<div' . $id . ' class="' . $class . '">' . join("\n", $content) . '</div>'; +} + /** * Render a toolbar. * @@ -273,7 +278,7 @@ function button($href, $label, $class = "") { * Rendert eine Toolbar mit Knöpfen */ function buttons($buttons = array ()) { - return '<div class="form-group">' . join(' ', $buttons) . '</div>'; + return '<div class="form-group"><div class="btn-group">' . join(' ', $buttons) . '</div></div>'; } // Load and render template |