[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/modules/poll/ -> poll-results-block.tpl.php (source)

   1  <?php
   2  /**
   3   * @file poll-results-block.tpl.php
   4   * Display the poll results in a block.
   5   *
   6   * Variables available:
   7   * - $title: The title of the poll.
   8   * - $results: The results of the poll.
   9   * - $votes: The total results in the poll.
  10   * - $links: Links in the poll.
  11   * - $nid: The nid of the poll
  12   * - $cancel_form: A form to cancel the user's vote, if allowed.
  13   * - $raw_links: The raw array of links. Should be run through theme('links')
  14   *   if used.
  15   * - $vote: The choice number of the current user's vote.
  16   *
  17   * @see template_preprocess_poll_results()
  18   */
  19  ?>
  20  
  21  <div class="poll">
  22    <div class="title"><?php print $title ?></div>
  23    <?php print $results ?>
  24    <div class="total">
  25      <?php print t('Total votes: @votes', array('@votes' => $votes)); ?>
  26    </div>
  27  </div>
  28  <div class="links"><?php print $links; ?></div>


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7