summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-13 17:50:52 +0100
committermsquare <msquare@notrademark.de>2017-12-13 17:50:52 +0100
commitc70e268a2e25855391a53240a9ca783c3a7a94dd (patch)
tree8e8386044cf6d0baadaf55882538da603c6628ec /includes/sys_template.php
parenta8cf4b9ddf1b9ac68866db97372c14f6ceca1b12 (diff)
add fullscreen button to dashboard and update translation to german
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r--includes/sys_template.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php
index b5846e9b..48ec7e8c 100644
--- a/includes/sys_template.php
+++ b/includes/sys_template.php
@@ -355,6 +355,19 @@ function button($href, $label, $class = '')
}
/**
+ * Rendert einen Knopf mit JavaScript onclick Handler
+ *
+ * @param string $javascript
+ * @param string $label
+ * @param string $class
+ * @return string
+ */
+function button_js($javascript, $label, $class = '')
+{
+ return '<a onclick="' . $javascript . '" href="#" class="btn btn-default ' . $class . '">' . $label . '</a>';
+}
+
+/**
* Rendert einen Knopf mit Glyph
*
* @param string $href