Mercurial > defr > drupal > core
annotate modules/poll/poll-results.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.tpl.php,v 1.2 2007/08/07 08:39:35 goba Exp $ |
webmaster@1 | 3 |
webmaster@1 | 4 /** |
webmaster@1 | 5 * @file poll-results-block.tpl.php |
webmaster@1 | 6 * Display the poll results in a block. |
webmaster@1 | 7 * |
webmaster@1 | 8 * Variables available: |
webmaster@1 | 9 * - $title: The title of the poll. |
webmaster@1 | 10 * - $results: The results of the poll. |
webmaster@1 | 11 * - $votes: The total results in the poll. |
webmaster@1 | 12 * - $links: Links in the poll. |
webmaster@1 | 13 * - $nid: The nid of the poll |
webmaster@1 | 14 * - $cancel_form: A form to cancel the user's vote, if allowed. |
webmaster@1 | 15 * - $raw_links: The raw array of links. |
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 <div class="poll"> |
webmaster@1 | 22 <?php print $results; ?> |
webmaster@1 | 23 <div class="total"> |
webmaster@1 | 24 <?php print t('Total votes: @votes', array('@votes' => $votes)); ?> |
webmaster@1 | 25 </div> |
webmaster@1 | 26 <?php if (!empty($cancel_form)): ?> |
webmaster@1 | 27 <?php print $cancel_form; ?> |
webmaster@1 | 28 <?php endif; ?> |
webmaster@1 | 29 </div> |