annotate modules/poll/poll-results-block.tpl.php @ 1:c1f4ac30525a 6.0

Drupal 6.0
author Franck Deroche <webmaster@defr.org>
date Tue, 23 Dec 2008 14:28:28 +0100
parents
children
rev   line source
webmaster@1 1 <?php
webmaster@1 2 // $Id: poll-results-block.tpl.php,v 1.2 2007/08/02 20:08:53 dries Exp $
webmaster@1 3 /**
webmaster@1 4 * @file poll-results-block.tpl.php
webmaster@1 5 * Display the poll results in a block.
webmaster@1 6 *
webmaster@1 7 * Variables available:
webmaster@1 8 * - $title: The title of the poll.
webmaster@1 9 * - $results: The results of the poll.
webmaster@1 10 * - $votes: The total results in the poll.
webmaster@1 11 * - $links: Links in the poll.
webmaster@1 12 * - $nid: The nid of the poll
webmaster@1 13 * - $cancel_form: A form to cancel the user's vote, if allowed.
webmaster@1 14 * - $raw_links: The raw array of links. Should be run through theme('links')
webmaster@1 15 * if used.
webmaster@1 16 * - $vote: The choice number of the current user's vote.
webmaster@1 17 *
webmaster@1 18 * @see template_preprocess_poll_results()
webmaster@1 19 */
webmaster@1 20 ?>
webmaster@1 21
webmaster@1 22 <div class="poll">
webmaster@1 23 <div class="title"><?php print $title ?></div>
webmaster@1 24 <?php print $results ?>
webmaster@1 25 <div class="total">
webmaster@1 26 <?php print t('Total votes: @votes', array('@votes' => $votes)); ?>
webmaster@1 27 </div>
webmaster@1 28 </div>
webmaster@1 29 <div class="links"><?php print $links; ?></div>