From d41c4f23f16e12c05616761486f55481a9b38edf Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Fri, 8 Jun 2001 20:11:11 +0000 Subject: - Added "dirty" support for theming the poll-bars... uses $theme->pollfill and $theme->pollempty for now. --- modules/poll.module | 10 +++++----- modules/poll/poll.module | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'modules') diff --git a/modules/poll.module b/modules/poll.module index 8f2c53465..f4caebe8c 100644 --- a/modules/poll.module +++ b/modules/poll.module @@ -91,9 +91,9 @@ function poll_help() { " . ($p ? " " : "") . ($p < 100 ? " ":"") . ""; + return "" . ($p ? "" : "") . ($p < 100 ? "":"") . "
  
"; } function poll_view($node, $main = 0, $block = 0) { @@ -125,9 +125,9 @@ function poll_view($node, $main = 0, $block = 0) { foreach ($node->choice as $key => $value) { if ($value) { if ($block) { - $output .= (!$block ? "
" : "") . check_output($value) . "
" . poll_graph($node->chvotes[$key] / $node->maxvotes) . "" . round(($node->chvotes[$key] / $node->totalvotes) * 100) . "%
"; + $output .= (!$block ? "
" : "") . check_output($value) . "
" . poll_graph($node->chvotes[$key] / $node->maxvotes, $theme->pollfill, $theme->pollempty) . "" . round(($node->chvotes[$key] / $node->totalvotes) * 100) . "%
"; } else { - $output .= "
" . check_output($value) . "" . poll_graph($node->chvotes[$key] / $node->maxvotes) . "" . round(($node->chvotes[$key] / $node->totalvotes) * 100) . "%
"; + $output .= "
" . check_output($value) . "" . poll_graph($node->chvotes[$key] / $node->maxvotes, $theme->pollfill, $theme->pollempty) . "" . round(($node->chvotes[$key] / $node->totalvotes) * 100) . "%
"; } } } @@ -279,4 +279,4 @@ function poll_user() { } } -?> \ No newline at end of file +?> diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 8f2c53465..f4caebe8c 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -91,9 +91,9 @@ function poll_help() { " . ($p ? " " : "") . ($p < 100 ? " ":"") . ""; + return "" . ($p ? "" : "") . ($p < 100 ? "":"") . "
  
"; } function poll_view($node, $main = 0, $block = 0) { @@ -125,9 +125,9 @@ function poll_view($node, $main = 0, $block = 0) { foreach ($node->choice as $key => $value) { if ($value) { if ($block) { - $output .= (!$block ? "
" : "") . check_output($value) . "
" . poll_graph($node->chvotes[$key] / $node->maxvotes) . "" . round(($node->chvotes[$key] / $node->totalvotes) * 100) . "%
"; + $output .= (!$block ? "
" : "") . check_output($value) . "
" . poll_graph($node->chvotes[$key] / $node->maxvotes, $theme->pollfill, $theme->pollempty) . "" . round(($node->chvotes[$key] / $node->totalvotes) * 100) . "%
"; } else { - $output .= "
" . check_output($value) . "" . poll_graph($node->chvotes[$key] / $node->maxvotes) . "" . round(($node->chvotes[$key] / $node->totalvotes) * 100) . "%
"; + $output .= "
" . check_output($value) . "" . poll_graph($node->chvotes[$key] / $node->maxvotes, $theme->pollfill, $theme->pollempty) . "" . round(($node->chvotes[$key] / $node->totalvotes) * 100) . "%
"; } } } @@ -279,4 +279,4 @@ function poll_user() { } } -?> \ No newline at end of file +?> -- cgit v1.2.3