summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/modules/poll/poll-bar--block.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/modules/poll/poll-bar--block.tpl.php')
-rw-r--r--kolab.org/www/drupal-7.26/modules/poll/poll-bar--block.tpl.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/modules/poll/poll-bar--block.tpl.php b/kolab.org/www/drupal-7.26/modules/poll/poll-bar--block.tpl.php
new file mode 100644
index 0000000..3b91afc
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/modules/poll/poll-bar--block.tpl.php
@@ -0,0 +1,26 @@
+<?php
+
+/**
+ * @file
+ * Default theme implementation to display the bar for a single choice in a
+ * poll.
+ *
+ * Variables available:
+ * - $title: The title of the poll.
+ * - $votes: The number of votes for this choice
+ * - $total_votes: The number of votes for this choice
+ * - $percentage: The percentage of votes for this choice.
+ * - $vote: The choice number of the current user's vote.
+ * - $voted: Set to TRUE if the user voted for this choice.
+ *
+ * @see template_preprocess_poll_bar()
+ */
+?>
+
+<div class="text"><?php print $title; ?></div>
+<div class="bar">
+ <div style="width: <?php print $percentage; ?>%;" class="foreground"></div>
+</div>
+<div class="percent">
+ <?php print $percentage; ?>%
+</div>