poll-vote.tpl.php 772 B

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