| 1 |
<?php |
<?php |
| 2 |
// $Id: widget.tpl.php,v 1.1.2.5 2009/08/13 08:28:39 lut4rp Exp $ |
// $Id: widget.tpl.php,v 1.1.2.6 2009/08/16 19:22:05 lut4rp Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 7 |
* |
* |
| 8 |
* UpDown widget theme for Vote Up/Down |
* UpDown widget theme for Vote Up/Down |
| 9 |
*/ |
*/ |
|
$unsignpoints = (int) $points; |
|
|
if ($unsignpoints > 1 || $unsignpoints < -1) { $lbl = "votes"; } else { $lbl = "vote"; } |
|
| 10 |
?> |
?> |
| 11 |
<div class="vud-widget-updown"> |
<div class="vud-widget-updown"> |
| 12 |
<div class="updown-score"><span class="updown-current-score" id="total-votes-<?php print $type; ?>-<?php print $cid; ?>"><?php print $unsignpoints; ?></span><?php print $lbl; ?></div> |
<div class="updown-score"><span class="updown-current-score" id="total-votes-<?php print $type; ?>-<?php print $cid; ?>"><?php print $unsigned_points; ?></span><?php print $vote_label; ?></div> |
| 13 |
<a href="<?php print $link_up; ?>"><div class="<?php print $class_up; ?>" id="updown-up-<?php print $type; ?>-<?php print $cid; ?>" title="Vote up!">+</div></a> |
<a href="<?php print $link_up; ?>"><div class="<?php print $class_up; ?>" id="updown-up-<?php print $type; ?>-<?php print $cid; ?>" title="Vote up!">+</div></a> |
| 14 |
<a href="<?php print $link_down; ?>"><div class="<?php print $class_down; ?>" id="updown-down-<?php print $type; ?>-<?php print $cid; ?>" title="Vote down!">-</div></a> |
<a href="<?php print $link_down; ?>"><div class="<?php print $class_down; ?>" id="updown-down-<?php print $type; ?>-<?php print $cid; ?>" title="Vote down!">-</div></a> |
| 15 |
</div> |
</div> |