theme_progress_bar
- Versions
- 4.7 – 6
theme_progress_bar($percent,$message)- 7
theme_progress_bar($variables)
Return a themed progress bar.
Parameters
$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 1650
<?php
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;
}
?>Login or register to post comments 