summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index c7f585853..279015b71 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -974,6 +974,16 @@ function theme_username($object) {
return $output;
}
+function theme_progress_bar($percent, $message) {
+ $output = '<div id="progress" class="progress">';
+ $output .= '<div class="percentage">'. $percent .'%</div>';
+ $output .= '<div class="status">'. $message .'</div>';
+ $output .= '<div class="bar"><div class="filled" style="width: '. $percent .'%"></div></div>';
+ $output .= '</div>';
+
+ return $output;
+}
+
/**
* @} End of "defgroup themeable".
*/