2007-08-02 10:46:53 +00:00
|
|
|
<?php
|
2007-08-07 08:39:36 +00:00
|
|
|
|
2007-08-02 10:46:53 +00:00
|
|
|
/**
|
2008-10-13 12:31:43 +00:00
|
|
|
* @file
|
|
|
|
* Default theme implementation to display voting form for a poll.
|
2007-08-02 10:46:53 +00:00
|
|
|
*
|
|
|
|
* - $choice: The radio buttons for the choices in the poll.
|
|
|
|
* - $title: The title of the poll.
|
|
|
|
* - $block: True if this is being displayed as a block.
|
|
|
|
* - $vote: The vote button
|
|
|
|
* - $rest: Anything else in the form that may have been added via
|
|
|
|
* form_alter hooks.
|
|
|
|
*
|
|
|
|
* @see template_preprocess_poll_vote()
|
2012-08-28 18:31:58 +00:00
|
|
|
*
|
|
|
|
* @ingroup themeable
|
2007-08-02 10:46:53 +00:00
|
|
|
*/
|
|
|
|
?>
|
2012-04-19 03:18:54 +00:00
|
|
|
<div class="poll">
|
2007-08-02 10:46:53 +00:00
|
|
|
<div class="vote-form">
|
2012-01-29 21:47:33 +00:00
|
|
|
|
|
|
|
<?php if ($block): ?>
|
|
|
|
<h3 class="poll-title"><?php print $title; ?></h3>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php print $choice; ?>
|
|
|
|
|
2007-08-02 10:46:53 +00:00
|
|
|
<?php print $vote; ?>
|
|
|
|
</div>
|
|
|
|
<?php // This is the 'rest' of the form, in case items have been added. ?>
|
|
|
|
<?php print $rest ?>
|
2012-04-19 03:18:54 +00:00
|
|
|
</div>
|