vote_up_down_points.tpl.php in Vote Up/Down 6
vote_up_down_points.tpl.php This template can be overriden by vote_up_down_points_$style.tpl.php
This template handles voting points output. 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;
3 theme calls to vote_up_down_points.tpl.php
- template_preprocess_vote_up_down_widget in ./
vote_up_down.module - Preprocessing function for +1/-1 style.
- vote_up_down_link in ./
vote_up_down.module - Implementation of hook_link().
- vote_up_down_vote in ./
vote_up_down.module - Function for the main voting handler with Ajax support.
File
theme/vote_up_down_points.tpl.phpView source
<?php
/**
* @file vote_up_down_points.tpl.php
* This template can be overriden by vote_up_down_points_$style.tpl.php
*
* This template handles voting points output. 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;
*/
?>
<span id="vote_points_<?php
print $cid;
?>" class="vote-points"><span class="<?php
print $class;
?>"><?php
print $points_labelled;
?></span></span>