/[drupal]/contributions/modules/vote_up_down/widgets/updown/widget.tpl.php
ViewVC logotype

Diff of /contributions/modules/vote_up_down/widgets/updown/widget.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.6, Sun Aug 16 19:22:05 2009 UTC revision 1.1.2.7, Wed Aug 19 05:38:46 2009 UTC
# Line 1  Line 1 
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
# Line 7  Line 7 
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>

Legend:
Removed from v.1.1.2.6  
changed lines
  Added in v.1.1.2.7

  ViewVC Help
Powered by ViewVC 1.1.2