From 4a0e498f52106b29d4adae0aaf7e1a6d55f8fd68 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 27 Sep 2001 20:51:26 +0000 Subject: - a batch of updates, including some experimental changes to the moderation of comments and nodes. --- includes/theme.inc | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'includes/theme.inc') diff --git a/includes/theme.inc b/includes/theme.inc index 1a582cf3d..7b9d58055 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -10,16 +10,18 @@ class BaseTheme { } function comment_controls($threshold = 1, $mode = 3, $order = 1) { - global $REQUEST_URI, $user; - $output .= "
\n"; - $output .= "
\n"; - $output .= comment_mode(($user->uid ? $user->mode : $mode)); - $output .= comment_order(($user->uid ? $user->sort : $order)); - $output .= comment_threshold(($user->uid ? $user->threshold : $threshold)); - $output .= "\n"; - $output .= "\n"; - $output .= "
\n"; - $output .= "
\n"; + global $user, $id; + + if ($user->uid) { + $output .= form_item(t("Node rating"), node_moderation($id) ." ", t("Nodes and comments can be moderated by assigning them a score: content with a high rating is made more visible.")); + } + + $output .= form_item(t("Comment viewing options"), comment_mode($mode) . comment_order($order) . comment_threshold($threshold) ." ", t("Select your prefered way to display the comments and click 'Update settings' to active your changes.")); + + if (user_access("post comment")) { + $output .= form_item(t("Add a comment"), "", t("Click 'Add comment' to start a new thread in the discussion.")); + } + return $output; } -- cgit v1.2.3