root / drupal7 / sites / all / themes / bootstrap / templates / poll / poll-bar--block.tpl.php @ eefc2ac0
1 |
<?php
|
---|---|
2 |
|
3 |
/**
|
4 |
* @file
|
5 |
* Default theme implementation to display bar for a single choice in a poll.
|
6 |
*
|
7 |
* Variables available:
|
8 |
* - $title: The title of the poll.
|
9 |
* - $votes: The number of votes for this choice
|
10 |
* - $total_votes: The number of votes for this choice
|
11 |
* - $percentage: The percentage of votes for this choice.
|
12 |
* - $vote: The choice number of the current user's vote.
|
13 |
* - $voted: Set to TRUE if the user voted for this choice.
|
14 |
*
|
15 |
* @see template_preprocess_poll_bar()
|
16 |
*
|
17 |
* @ingroup templates
|
18 |
*/
|
19 |
?>
|
20 |
<div class="text"><?php print $title; ?></div> |
21 |
<div class="progress"> |
22 |
<div class="progress-bar" role="progressbar" aria-valuenow="<?php print $percentage; ?>" aria-valuemin="0" aria-valuemax="100" style="width: <?php print $percentage; ?>%;"> |
23 |
<?php print $percentage; ?>% |
24 |
</div>
|
25 |
</div>
|