Code coverage for /20081101/modules/poll/poll-bar.tpl.php

Line #Times calledCode
1
<?php
2
// $Id: poll-bar.tpl.php,v 1.3 2008/10/13 12:31:42 dries Exp $
3
4
/**
5
 * @file
6
 * Default theme implementation to display the bar for a single choice in a
7
 * poll.
8
 *
9
 * Variables available:
10
 * - $title: The title of the poll.
11
 * - $votes: The number of votes for this choice
12
 * - $total_votes: The number of votes for this choice
13
 * - $percentage: The percentage of votes for this choice.
14
 * - $vote: The choice number of the current user's vote.
15
 * - $voted: Set to TRUE if the user voted for this choice.
16
 *
17
 * @see template_preprocess_poll_bar()
18
 */
19
?>
20
217
<div class="text"><?php print $title; ?></div>
22
<div class="bar">
237
  <div style="width: <?php print $percentage; ?>%;"
class="foreground"></div>
24
</div>
25
<div class="percent">
267
  <?php print $percentage; ?>% (<?php print format_plural($votes, '1 vote',
'@count votes'); ?>)
27
</div>
287