advpoll-results.tpl.php in Advanced Poll 7.2
Same filename and directory in other branches
Default template for wrapping bar results - includes count of votes.
Variables available:
- $nid: The nid of the poll
- $cancel_form: Provides a form for deleting user's votes when they have permission to do so.
- $bars: The output of all styled bars displaying votes.
- $total: Total number of votes.
- $voted: An array indicating which unique choice ids were selected by the user.
2 theme calls to advpoll-results.tpl.php
- advpoll_display_borda_results in advpoll_ranking/
advpoll_ranking.module - advpoll_display_results in ./
advpoll.module
File
templates/advpoll-results.tpl.phpView source
<?php
/**
* @file
* Default template for wrapping bar results - includes count of votes.
*
* Variables available:
* - $nid: The nid of the poll
* - $cancel_form: Provides a form for deleting user's votes when they have
* permission to do so.
* - $bars: The output of all styled bars displaying votes.
* - $total: Total number of votes.
* - $voted: An array indicating which unique choice ids were selected by the user.
*
*/
?>
<div class="poll" id="advpoll-<?php
print $nid;
?>">
<?php
print $bars;
?>
<div class="total"><?php
print t('Total votes: @total', array(
'@total' => $total,
));
?></div>
<?php
if ($voted) {
?>
<div class="poll-message"><?php
print t('Thank you for voting.');
?></div>
<?php
}
?>
<?php
print $cancel_form;
?>
</div>