/[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.5, Thu Aug 13 08:28:39 2009 UTC revision 1.1.2.6, Sun Aug 16 19:22:05 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: widget.tpl.php,v 1.1.2.4 2009/08/10 13:26:46 lut4rp Exp $  // $Id: widget.tpl.php,v 1.1.2.5 2009/08/13 08:28:39 lut4rp Exp $
3    
4  /**  /**
5   * @file widget.tpl.php   * @file
6     * widget.tpl.php
7   *   *
8   * UpDown widget theme for Vote Up/Down   * UpDown widget theme for Vote Up/Down
9   */   */
10  $unsignpoints = (int) $points;  $unsignpoints = (int) $points;
11    if ($unsignpoints > 1 || $unsignpoints < -1) { $lbl = "votes"; } else { $lbl = "vote"; }
12  ?>  ?>
13  <div class="vud-widget-updown">  <div class="vud-widget-updown">
14    <div class="updown-score"><span class="updown-current-score" id="total-votes-<?php print $type; ?>-<?php print $cid; ?>"><?php print $unsignpoints; ?></span> votes</div>    <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>
15    <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>
16    <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>
17  </div>  </div>

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

  ViewVC Help
Powered by ViewVC 1.1.2