From ed05b89c5553e3e94cb6b377f4efad8705f3c4e1 Mon Sep 17 00:00:00 2001
From: Marco Villegas <marvil07@gmail.com>
Date: Thu, 11 Nov 2010 03:45:43 -0500
Subject: [PATCH] Two more variables to specify vote link statuses.

---
 vud.theme.inc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git vud.theme.inc vud.theme.inc
index db53654..b273852 100644
--- vud.theme.inc
+++ vud.theme.inc
@@ -230,6 +230,8 @@ function vud_widget_proxy($content_id, $type, $tag, $widget_theme, $readonly=NUL
   $link_down = url("vote/$type/$content_id/-1/$tag/$widget_theme/$token_down");
   $message_on_deny = variable_get('vud_message_on_deny', FALSE);
   $variables['show_links'] = !$readonly || $message_on_deny;
+  $variables['show_up_as_link'] = $variables['show_links'] && ($user_vote <= 0);
+  $variables['show_down_as_link'] = $variables['show_links'] && ($user_vote >= 0);
   if ($readonly) {
     $variables['link_class_up'] .= ' denied';
     $variables['link_class_down'] .= ' denied';
-- 
1.7.2.3

