summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2001-07-25 08:31:53 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2001-07-25 08:31:53 +0000
commit1e5afb398e3cdd53c221ff0c94ab6d79ceeaae75 (patch)
tree77518f494afc74dfe272732e5adc81332ca4671a /includes/theme.inc
parent6fbd8403df60e3afcf6ca2569c4ba1c7908c52f8 (diff)
downloadbrdo-1e5afb398e3cdd53c221ff0c94ab6d79ceeaae75.tar.gz
brdo-1e5afb398e3cdd53c221ff0c94ab6d79ceeaae75.tar.bz2
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).
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc15
1 files changed, 15 insertions, 0 deletions
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 .= "<DIV ALIGN=\"CENTER\">\n";
+ $output .= "<FORM METHOD=\"post\" ACTION=\"$REQUEST_URI\">\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 .= "<INPUT TYPE=\"submit\" NAME=\"op\" VALUE=\"". t("Update settings") ."\">\n";
+ $output .= "<INPUT TYPE=\"submit\" NAME=\"op\" VALUE=\"". t("Add comment") ."\">\n";
+ $output .= "</FORM>\n";
+ $output .= "</DIV>\n";
+ return $output;
+ }
+
}
function theme_init() {