Mercurial > defr > drupal > core
comparison modules/poll/poll-bar.tpl.php @ 1:c1f4ac30525a 6.0
Drupal 6.0
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:28:28 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:5a113a1c4740 | 1:c1f4ac30525a |
---|---|
1 <?php | |
2 // $Id: poll-bar.tpl.php,v 1.2 2007/08/07 08:39:35 goba Exp $ | |
3 | |
4 /** | |
5 * @file poll-bar.tpl.php | |
6 * Display the bar for a single choice in a 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> |