Mercurial > hg > rr-repo
annotate modules/poll/poll-bar--block.tpl.php @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
rev | line source |
---|---|
danielebarchiesi@0 | 1 <?php |
danielebarchiesi@0 | 2 |
danielebarchiesi@0 | 3 /** |
danielebarchiesi@0 | 4 * @file |
danielebarchiesi@0 | 5 * Default theme implementation to display the bar for a single choice in a |
danielebarchiesi@0 | 6 * poll. |
danielebarchiesi@0 | 7 * |
danielebarchiesi@0 | 8 * Variables available: |
danielebarchiesi@0 | 9 * - $title: The title of the poll. |
danielebarchiesi@0 | 10 * - $votes: The number of votes for this choice |
danielebarchiesi@0 | 11 * - $total_votes: The number of votes for this choice |
danielebarchiesi@0 | 12 * - $percentage: The percentage of votes for this choice. |
danielebarchiesi@0 | 13 * - $vote: The choice number of the current user's vote. |
danielebarchiesi@0 | 14 * - $voted: Set to TRUE if the user voted for this choice. |
danielebarchiesi@0 | 15 * |
danielebarchiesi@0 | 16 * @see template_preprocess_poll_bar() |
danielebarchiesi@0 | 17 */ |
danielebarchiesi@0 | 18 ?> |
danielebarchiesi@0 | 19 |
danielebarchiesi@0 | 20 <div class="text"><?php print $title; ?></div> |
danielebarchiesi@0 | 21 <div class="bar"> |
danielebarchiesi@0 | 22 <div style="width: <?php print $percentage; ?>%;" class="foreground"></div> |
danielebarchiesi@0 | 23 </div> |
danielebarchiesi@0 | 24 <div class="percent"> |
danielebarchiesi@0 | 25 <?php print $percentage; ?>% |
danielebarchiesi@0 | 26 </div> |