theme_progress_bar
- Versions
- 4.7 – 6
theme_progress_bar($percent,$message)- 7
theme_progress_bar($variables)
Return a themed progress bar.
Parameters
$variables An associative array containing:
- percent: The percentage of the progress.
- message: A string containing information to be displayed.
Return value
A themed HTML string representing the progress bar.
Related topics
Code
includes/theme.inc, line 2086
<?php
function theme_progress_bar($variables) {
$output = '<div id="progress" class="progress">';
$output .= '<div class="bar"><div class="filled" style="width: ' . $variables['percent'] . '%"></div></div>';
$output .= '<div class="percentage">' . $variables['percent'] . '%</div>';
$output .= '<div class="message">' . $variables['message'] . '</div>';
$output .= '</div>';
return $output;
}
?>Login or register to post comments 