theme_progress_bar

5 theme.inc theme_progress_bar($percent, $message)
6 theme.inc theme_progress_bar($percent, $message)
7 theme.inc theme_progress_bar($variables)
8 theme.inc 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

1 theme call to theme_progress_bar()

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;
}
Login or register to post comments