vote_up_down_points_alt.tpl.php in Vote Up/Down 6
vote_up_down_points_alt.tpl.php
This template handles voting points output for alternative voting widget. Available variables:
- $points: points in +1 or -1 format;
- $label: translated points label without numbers ("point" or "points");
- $points_labelled: translated points label with numbers ("1 point" or "N points");
- $class: "positive", "negarive" or "neutral" regarding the points amout;
- $cid: $node->nid or $comment->cid;
2 theme calls to vote_up_down_points_alt.tpl.php
- template_preprocess_vote_up_down_widget_alt in ./
vote_up_down.module - Preprocessing function for the widget in the alternate +1 style.
- vote_up_down_vote in ./
vote_up_down.module - Function for the main voting handler with Ajax support.
File
theme/vote_up_down_points_alt.tpl.phpView source
<?php
/**
* @file vote_up_down_points_alt.tpl.php
*
* This template handles voting points output for alternative voting widget. Available variables:
* - $points: points in +1 or -1 format;
* - $label: translated points label without numbers ("point" or "points");
* - $points_labelled: translated points label with numbers ("1 point" or "N points");
* - $class: "positive", "negarive" or "neutral" regarding the points amout;
* - $cid: $node->nid or $comment->cid;
*/
?>
<div id="vote_points_<?php
print $cid;
?>" class="vote-points"><div class="<?php
print $class;
?>"><?php
print $points;
?><div class="vote-points-label"><?php
print $label;
?></div></div></div>