| 1 |
<?php
|
| 2 |
// $Id: poll-vote.tpl.php,v 1.3 2008/10/13 12:31:42 dries Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 6 |
* Default theme implementation to display voting form for a poll.
|
| 7 |
*
|
| 8 |
* - $choice: The radio buttons for the choices in the poll.
|
| 9 |
* - $title: The title of the poll.
|
| 10 |
* - $block: True if this is being displayed as a block.
|
| 11 |
* - $vote: The vote button
|
| 12 |
* - $rest: Anything else in the form that may have been added via
|
| 13 |
* form_alter hooks.
|
| 14 |
*
|
| 15 |
* @see template_preprocess_poll_vote()
|
| 16 |
*/
|
| 17 |
?>
|
| 18 |
<div class="poll">
|
| 19 |
<div class="vote-form">
|
| 20 |
<div class="choices">
|
| 21 |
<?php if ($block): ?>
|
| 22 |
<div class="title"><?php print $title; ?></div>
|
| 23 |
<?php endif; ?>
|
| 24 |
<?php print $choice; ?>
|
| 25 |
</div>
|
| 26 |
<?php print $vote; ?>
|
| 27 |
</div>
|
| 28 |
<?php // This is the 'rest' of the form, in case items have been added. ?>
|
| 29 |
<?php print $rest ?>
|
| 30 |
</div>
|