summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-04-29 20:48:50 +0000
committerDries Buytaert <dries@buytaert.net>2003-04-29 20:48:50 +0000
commit2d6408dff3931d7daee818eb07f74875e074b522 (patch)
treed95d6e2018b09c1b1f6ccdd43cf7925c06c15116
parent5ce6e015d0d8d080927c65a4cf692577c059b65c (diff)
downloadbrdo-2d6408dff3931d7daee818eb07f74875e074b522.tar.gz
brdo-2d6408dff3931d7daee818eb07f74875e074b522.tar.bz2
- Committed Adrian's item patch. It would be nice if one or more of the
standard themes could be updated to demonstrate the possibilities.
-rw-r--r--modules/node.module6
-rw-r--r--modules/node/node.module6
-rw-r--r--modules/user.module18
-rw-r--r--modules/user/user.module18
4 files changed, 36 insertions, 12 deletions
diff --git a/modules/node.module b/modules/node.module
index 4b27955ed..f45f17002 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -34,7 +34,11 @@ function node_title_list($result, $title = NULL) {
$items[] = l($node->title, "node/view/$node->nid", array("title" => t("Comments: %number", array("%number" => $number))));
}
- return theme("theme_item_list", $items, $title);
+ return theme("theme_node_list", $items, $title);
+}
+
+function theme_node_list($items, $title) {
+ return theme("theme_item_list",$items,$title);
}
// Update the 'last viewed' timestamp of the specified node for current user.
diff --git a/modules/node/node.module b/modules/node/node.module
index 4b27955ed..f45f17002 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -34,7 +34,11 @@ function node_title_list($result, $title = NULL) {
$items[] = l($node->title, "node/view/$node->nid", array("title" => t("Comments: %number", array("%number" => $number))));
}
- return theme("theme_item_list", $items, $title);
+ return theme("theme_node_list", $items, $title);
+}
+
+function theme_node_list($items, $title) {
+ return theme("theme_item_list",$items,$title);
}
// Update the 'last viewed' timestamp of the specified node for current user.
diff --git a/modules/user.module b/modules/user.module
index 66bcd51a3..860c64f28 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -351,10 +351,10 @@ function user_block($op = "list", $delta = 0) {
break;
case 1:
if ($user->uid) {
- $content[] = theme("theme_item_list", module_invoke_all("link", "menu.create"));
- $content[] = theme("theme_item_list", module_invoke_all("link", "menu.view"));
- $content[] = theme("theme_item_list", module_invoke_all("link", "menu.settings"));
- $content[] = theme("theme_item_list", module_invoke_all("link", "menu.misc"));
+ $content[] = theme("theme_menu_list", module_invoke_all("link", "menu.create"));
+ $content[] = theme("theme_menu_list", module_invoke_all("link", "menu.view"));
+ $content[] = theme("theme_menu_list", module_invoke_all("link", "menu.settings"));
+ $content[] = theme("theme_menu_list", module_invoke_all("link", "menu.misc"));
$output = implode($content, "<br />");
@@ -370,7 +370,7 @@ function user_block($op = "list", $delta = 0) {
$items[] = l((strlen($account->name) > 15 ? substr($account->name, 0, 15) . '...' : $account->name), "user/view/$account->uid");
}
- $output = theme("theme_item_list", $items);
+ $output = theme("theme_user_list", $items);
$block["subject"] = t("Who's new");
$block["content"] = $output;
@@ -379,6 +379,14 @@ function user_block($op = "list", $delta = 0) {
}
}
+function theme_user_list($items, $title = '') {
+ return theme("theme_item_list",$items, $title);
+}
+
+function theme_menu_list($items, $title = '') {
+ return theme("theme_item_list",$items, $title);
+}
+
function user_link($type) {
$links = array();
diff --git a/modules/user/user.module b/modules/user/user.module
index 66bcd51a3..860c64f28 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -351,10 +351,10 @@ function user_block($op = "list", $delta = 0) {
break;
case 1:
if ($user->uid) {
- $content[] = theme("theme_item_list", module_invoke_all("link", "menu.create"));
- $content[] = theme("theme_item_list", module_invoke_all("link", "menu.view"));
- $content[] = theme("theme_item_list", module_invoke_all("link", "menu.settings"));
- $content[] = theme("theme_item_list", module_invoke_all("link", "menu.misc"));
+ $content[] = theme("theme_menu_list", module_invoke_all("link", "menu.create"));
+ $content[] = theme("theme_menu_list", module_invoke_all("link", "menu.view"));
+ $content[] = theme("theme_menu_list", module_invoke_all("link", "menu.settings"));
+ $content[] = theme("theme_menu_list", module_invoke_all("link", "menu.misc"));
$output = implode($content, "<br />");
@@ -370,7 +370,7 @@ function user_block($op = "list", $delta = 0) {
$items[] = l((strlen($account->name) > 15 ? substr($account->name, 0, 15) . '...' : $account->name), "user/view/$account->uid");
}
- $output = theme("theme_item_list", $items);
+ $output = theme("theme_user_list", $items);
$block["subject"] = t("Who's new");
$block["content"] = $output;
@@ -379,6 +379,14 @@ function user_block($op = "list", $delta = 0) {
}
}
+function theme_user_list($items, $title = '') {
+ return theme("theme_item_list",$items, $title);
+}
+
+function theme_menu_list($items, $title = '') {
+ return theme("theme_item_list",$items, $title);
+}
+
function user_link($type) {
$links = array();