annotate modules/poll/poll-results.tpl.php @ 0:ff03f76ab3fe

initial version
author danieleb <danielebarchiesi@me.com>
date Wed, 21 Aug 2013 18:51:11 +0100
parents
children
rev   line source
danielebarchiesi@0 1 <?php
danielebarchiesi@0 2
danielebarchiesi@0 3 /**
danielebarchiesi@0 4 * @file
danielebarchiesi@0 5 * Default theme implementation to display the poll results in a block.
danielebarchiesi@0 6 *
danielebarchiesi@0 7 * Variables available:
danielebarchiesi@0 8 * - $title: The title of the poll.
danielebarchiesi@0 9 * - $results: The results of the poll.
danielebarchiesi@0 10 * - $votes: The total results in the poll.
danielebarchiesi@0 11 * - $links: Links in the poll.
danielebarchiesi@0 12 * - $nid: The nid of the poll
danielebarchiesi@0 13 * - $cancel_form: A form to cancel the user's vote, if allowed.
danielebarchiesi@0 14 * - $raw_links: The raw array of links.
danielebarchiesi@0 15 * - $vote: The choice number of the current user's vote.
danielebarchiesi@0 16 *
danielebarchiesi@0 17 * @see template_preprocess_poll_results()
danielebarchiesi@0 18 *
danielebarchiesi@0 19 * @ingroup themeable
danielebarchiesi@0 20 */
danielebarchiesi@0 21 ?>
danielebarchiesi@0 22 <div class="poll">
danielebarchiesi@0 23 <?php print $results; ?>
danielebarchiesi@0 24 <div class="total">
danielebarchiesi@0 25 <?php print t('Total votes: @votes', array('@votes' => $votes)); ?>
danielebarchiesi@0 26 </div>
danielebarchiesi@0 27 <?php if (!empty($cancel_form)): ?>
danielebarchiesi@0 28 <?php print $cancel_form; ?>
danielebarchiesi@0 29 <?php endif; ?>
danielebarchiesi@0 30 </div>