file progress-bar.tpl.php

Template implementation to display a progress bar.

Available variables:

  • $percent: The percentage of the progress.
  • $message: A string containing information to be displayed.
  1. <?php
  2. /**
  3. * @file
  4. * Template implementation to display a progress bar.
  5. *
  6. * Available variables:
  7. * - $percent: The percentage of the progress.
  8. * - $message: A string containing information to be displayed.
  9. *
  10. * @see theme_progress_bar()
  11. *
  12. * @ingroup templates
  13. */
  14. ?>
  15. <div class="progress-wrapper" aria-live="polite">
  16. <div id="progress" class="progress progress-striped active">
  17. <div class="progress-bar" role="progressbar" style="width: <?php print $percent; ?>%" aria-valuemin="0" aria-valuemax="100" aria-valuenow="<?php print $percent; ?>">
  18. <div class="percentage sr-only"><?php print $percent; ?>%</div>
  19. </div>
  20. </div>
  21. <div class="percentage pull-right"><?php print $percent; ?>%</div>
  22. <div class="message"><?php print $message; ?></div>
  23. </div>

Related topics