From f5681411642b7da1b175fa153d3c234ba97b472a Mon Sep 17 00:00:00 2001 From: msquare Date: Mon, 14 Nov 2016 17:58:15 +0100 Subject: add shift legend and fix dark theme --- includes/sys_template.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'includes/sys_template.php') diff --git a/includes/sys_template.php b/includes/sys_template.php index 5d450493..bd53ecaa 100644 --- a/includes/sys_template.php +++ b/includes/sys_template.php @@ -19,6 +19,18 @@ function mute($text) { return '' . $text . ''; } +/** + * Renders a bootstrap label with given content and class. + * + * @param string $content + * The text + * @param string $class + * default, primary, info, success, warning, danger + */ +function label($content, $class = 'default') { + return '' . $content . ''; +} + function progress_bar($valuemin, $valuemax, $valuenow, $class = '', $content = '') { return '
' . $content . '
'; } -- cgit v1.2.3-54-g00ecf