theme_progress_bar
function theme_progress_bar
theme_progress_bar($variables)
Returns HTML for a progress bar.
Note that the core Batch API uses this only for non-JavaScript batch jobs.
Parameters
$variables: An associative array containing:
- percent: The percentage of the progress.
- message: A string containing information to be displayed.
Related topics
File
- includes/theme.inc, line 2353
- The theme system, which controls the output of Drupal.
Code
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!theme.inc/function/theme_progress_bar/7.x