From 1e5afb398e3cdd53c221ff0c94ab6d79ceeaae75 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Wed, 25 Jul 2001 08:31:53 +0000 Subject: comment.inc - removed comment_controls(). - modified comment_render() to use $theme->comment_controls(). theme.inc - added BaseTheme->comment_controls(). locale.module - can now search for status independant of language. - string is now a regular expression. For wildcard searches do .*text.*. - can search in modules + pages, all modules or a specific module. account.php - fixed viewing other accounts info would show the active users name in the real name field. - now shows users recent contributions and comments (if the user has access to them). --- includes/theme.inc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'includes/theme.inc') diff --git a/includes/theme.inc b/includes/theme.inc index e1d32fdc2..6950e9712 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -8,6 +8,21 @@ class BaseTheme { function image($name) { return "misc/$name"; } + + function comment_controls($threshold = 1, $mode = 3, $order = 1) { + global $REQUEST_URI, $user; + $output .= "
\n"; + $output .= "
\n"; + $output .= comment_mode(($user->id ? $user->mode : $mode)); + $output .= comment_order(($user->id ? $user->sort : $order)); + $output .= comment_threshold(($user->id ? $user->threshold : $threshold)); + $output .= "\n"; + $output .= "\n"; + $output .= "
\n"; + $output .= "
\n"; + return $output; + } + } function theme_init() { -- cgit v1.2.3