/[drupal]/drupal/modules/poll/poll-bar-block.tpl.php
ViewVC logotype

Contents of /drupal/modules/poll/poll-bar-block.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Mon Oct 13 12:31:42 2008 UTC (13 months, 2 weeks ago) by dries
Branch: MAIN
CVS Tags: DRUPAL-7-0-UNSTABLE-6, DRUPAL-7-0-UNSTABLE-7, DRUPAL-7-0-UNSTABLE-10, DRUPAL-7-0-UNSTABLE-3, DRUPAL-7-0-UNSTABLE-4, DRUPAL-7-0-UNSTABLE-5, DRUPAL-7-0-UNSTABLE-8, DRUPAL-7-0-UNSTABLE-9, HEAD
Changes since 1.2: +4 -3 lines
File MIME type: text/x-php
- Patch #320000 by lilou: unify doxygen @file documentation in tpl.
1 <?php
2 // $Id: poll-bar-block.tpl.php,v 1.2 2007/08/07 08:39:35 goba 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
21 <div class="text"><?php print $title; ?></div>
22 <div class="bar">
23 <div style="width: <?php print $percentage; ?>%;" class="foreground"></div>
24 </div>
25 <div class="percent">
26 <?php print $percentage; ?>%
27 </div>

  ViewVC Help
Powered by ViewVC 1.1.2