diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-06-12 17:24:06 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-06-12 17:24:06 +0000 |
commit | 1a2576036b3377ec83a08b7238f59dc474053543 (patch) | |
tree | b425f4f254ae6f148e44c1f37e47ac3093b9bdc9 /modules/forum.module | |
parent | 97c4c603d56799e674d3b5c81ce262d6c66cd518 (diff) | |
download | brdo-1a2576036b3377ec83a08b7238f59dc474053543.tar.gz brdo-1a2576036b3377ec83a08b7238f59dc474053543.tar.bz2 |
- Bugfix: charset fixes/clean-up. Patch #52 by Al.
- Improvement: renamed some theme functions of the forum module for sake of consistency/readability. Patch #2 by Kristjan.
- Improvement: usability improvements to the Xtemplate theme. Patch #3 by Kristjan.
- Improvement: CSS'ified the book module pages. Patch #3 by Al. (I simplified the "l
ocation" part. Al's approach gave you a bit more power but I'm not sure anyone wants
to change that. Besides, this will change as soon we integrate the menu system so I kept it easy for now.)
Diffstat (limited to 'modules/forum.module')
-rw-r--r-- | modules/forum.module | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/forum.module b/modules/forum.module index 23232b85d..268746f30 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -484,7 +484,7 @@ function forum_page() { $topics = forum_get_topics($tid, $sortby, $forum_per_page); } - theme("forum_render", $forums, $topics, $parents, $tid, $sortby, $forum_per_page, $offset); + theme("forum_theme_display", $forums, $topics, $parents, $tid, $sortby, $forum_per_page, $offset); } else { theme("header"); @@ -500,27 +500,27 @@ function forum_page() { } /* -** Render functions. +** Theme functions */ -function forum_render($forums, $topics, $parents, $tid, $sortby, $forum_per_page, $offset) { +function forum_theme_display($forums, $topics, $parents, $tid, $sortby, $forum_per_page, $offset) { // forum list, topics list, topic browser and "add new topic" link - $output .= theme("forum_forum_list", $forums, $parents, $tid); + $output .= theme("forum_theme_list", $forums, $parents, $tid); if ($tid && !in_array($tid, variable_get("forum_containers", array()))) { - $output .= theme("forum_topic_list", $tid, $topics, $sortby, $forum_per_page, $offset); + $output .= theme("forum_theme_topic_list", $tid, $topics, $sortby, $forum_per_page, $offset); } theme("header"); theme("box", t("Discussion forum"), $output); if ($tid && !in_array($tid, variable_get("forum_containers", array()))) { - theme("box", t("Control panel"), theme("forum_topic_browser", $sortby, $forum_per_page, $offset)); + theme("box", t("Control panel"), theme("forum_theme_topic_browser", $sortby, $forum_per_page, $offset)); } theme("footer"); } -function forum_forum_list($forums, $parents, $tid) { +function forum_theme_list($forums, $parents, $tid) { global $user; if ($parents) { foreach($parents as $p) { @@ -572,7 +572,7 @@ function forum_forum_list($forums, $parents, $tid) { return $output; } -function forum_topic_browser() { +function forum_theme_topic_browser() { global $tid, $sortby, $forum_per_page, $offset; if (empty($sortby)) { @@ -601,7 +601,7 @@ function forum_topic_browser() { return form(form_item(t("Topic viewing options"), $output, t("Select your preferred way to display the topics and click 'Update settings'."))); } -function forum_topic_list($tid, $topics, $sortby, $forum_per_page, $offset) { +function forum_theme_topic_list($tid, $topics, $sortby, $forum_per_page, $offset) { global $id, $status, $user, $pager_total; if ($topics) { |