Fix for vote_up_down_widget.tpl.php

  1. <?php
  2. // $Id: vote_up_down_widget.tpl.php,v 1.1.2.1 2009/03/25 20:55:38 lut4rp Exp $
  3. /**
  4.  * @file vote_up_down_widget.tpl.php
  5.  *
  6.  * This template handles default voting widget output. Available variables:
  7.  * - $points: voting points of a same style as widget;
  8.  * - $class1: "vote-up-act", "vote-up-inact";
  9.  * - $class2: "vote-down-act", "vote-down-inact";
  10.  * - $title1, $title1: Contains a voting URL, should not be removed;
  11.  * - $link1, $link2: Voting links for users with disabled JS;
  12.  * - $cid: $node->nid or $comment->cid;
  13.  */
  14. ?>
  15. <div class="vote-up-down-widget">
  16.   <?php if ($class1) : ?>
  17.     <span id="vote_up_<?php print $cid; ?>" class="<?php print $class1; ?>" title="<?php print $title1; ?>"><?php print $link1; ?></span>
  18.     <span id="vote_down_<?php print $cid; ?>" class="<?php print $class2; ?>" title="<?php print $title2; ?>"><?php print $link2; ?></span>
  19.   <?php endif; ?>
  20. </div>

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.