Project

General

Profile

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

root / drupal7 / modules / poll / poll-bar--block.tpl.php @ c7768a53

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; ?>%
26
</div>