Same name and namespace in other branches
  1. 4.7.x includes/theme.inc \theme_progress_bar()
  2. 5.x includes/theme.inc \theme_progress_bar()
  3. 7.x includes/theme.inc \theme_progress_bar()

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

1 theme call to theme_progress_bar()
_batch_progress_page_nojs in includes/batch.inc
Batch processing page without JavaScript support.

File

includes/theme.inc, line 1725
The theme system, which controls the output of Drupal.

Code

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;
}