Projet

Général

Profil

Paste
Télécharger (789 octets) Statistiques
| Branche: | Révision:

root / drupal7 / modules / poll / poll-results.tpl.php @ 76597ebf

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