theme_progress_bar($percent, $message)
drupal/includes/theme.inc, line 1705
Return a themed progress bar.
$percent The percentage of the progress.
$message A string containing information to be displayed.
A themed HTML string representing the progress bar.
| Name | Description |
|---|---|
| Default theme implementations | Functions and templates that present output to the user, and can be implemented by themes. |
function theme_progress_bar($percent, $message) {
$output = '<div id="progress" class="progress">';
$output .= '<div class="bar"><div class="filled" style="width: ' . $percent . '%"></div></div>';
$output .= '<div class="percentage">' . $percent . '%</div>';
$output .= '<div class="message">' . $message . '</div>';
$output .= '</div>';
return $output;
}