Initial code using Drupal 6.38
This commit is contained in:
commit
4824608a33
467 changed files with 90887 additions and 0 deletions
25
modules/poll/poll-bar-block.tpl.php
Normal file
25
modules/poll/poll-bar-block.tpl.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file poll-bar-block.tpl.php
|
||||
* 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>
|
Reference in a new issue