Project

General

Profile

Paste
Download (775 Bytes) Statistics
| Branch: | Revision:

root / drupal7 / modules / poll / poll-bar.tpl.php @ 582db59d

1
<?php
2

    
3
/**
4
 * @file
5
 * Default theme implementation to display the bar for a single choice in a
6
 * poll.
7
 *
8
 * Variables available:
9
 * - $title: The title of the poll.
10
 * - $votes: The number of votes for this choice
11
 * - $total_votes: The number of votes for this choice
12
 * - $percentage: The percentage of votes for this choice.
13
 * - $vote: The choice number of the current user's vote.
14
 * - $voted: Set to TRUE if the user voted for this choice.
15
 *
16
 * @see template_preprocess_poll_bar()
17
 */
18
?>
19

    
20
<div class="text"><?php print $title; ?></div>
21
<div class="bar">
22
  <div style="width: <?php print $percentage; ?>%;" class="foreground"></div>
23
</div>
24
<div class="percent">
25
  <?php print $percentage; ?>% (<?php print format_plural($votes, '1 vote', '@count votes'); ?>)
26
</div>