summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-08-23 01:55:18 +0200
committerPhilip Häusler <msquare@notrademark.de>2014-08-23 01:55:18 +0200
commitf5a094fd8b32d44767f7fc30a65f407f4e1d9945 (patch)
treeeac9a223e103c3066ef6e0b57e0bf215eaa89a72 /includes/sys_template.php
parent74647e16d37fac9425a4561b49618b52cdc3e75c (diff)
add user view, better bootstrap
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r--includes/sys_template.php7
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