From eb030cb9d8839bd08cb2bd1e4f954efe37047303 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 15 Jun 2003 19:06:25 +0000 Subject: - Improvements: XHTML-ifications. Patch by GmbH. --- modules/forum/forum.module | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'modules/forum') diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 268746f30..cb6b15886 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -92,7 +92,7 @@ function forum_block($op = "list", $delta = 0) { $content .= node_title_list(db_query_range("SELECT n.nid, n.title, u.uid, u.name FROM node n LEFT JOIN forum f ON n.nid = f.nid LEFT JOIN users u ON n.uid = u.uid WHERE n.type = 'forum' ORDER BY n.nid DESC", 0, variable_get("forum_block_num", "5")), t("New forum topics:")); if ($content) { - $content .= "
". l(t("more"), "forum", array("title" => t("Read the latest forum topics."))) ."
"; + $content .= "
". l(t("more"), "forum", array("title" => t("Read the latest forum topics."))) ."
"; } cache_set("forum:block", $content, time() + variable_get("cache_clear", 120)); @@ -214,7 +214,7 @@ function forum_form(&$node, &$help, &$error) { while($icon = readdir($dir)) { if ($icon == '.' || $icon == '..') {continue;} if ($node->icon == $icon) {$checked = "checked";} else {$checked = "";} - $radio .= "\"\" \n"; + $radio .= "\"\" \n"; $icon_num++; } closedir($dir); @@ -226,7 +226,7 @@ function forum_form(&$node, &$help, &$error) { while($icon = readdir($dir)) { if ($icon == '.' || $icon == '..') {continue;} if ($node->icon_num == $icon_num) {$checked = "checked";} else {$checked = "";} - $radio .= "\"\" \n"; + $radio .= "\"\" \n"; $icon_num++; } closedir($dir); @@ -535,7 +535,7 @@ function forum_theme_list($forums, $parents, $tid) { $t[] = l(t("Discussion forum"), "forum"); $output .= "\n"; - $output .= " "; + $output .= " "; if ($forums) { $output .= ""; @@ -548,7 +548,7 @@ function forum_theme_list($forums, $parents, $tid) { if ($user->uid) $new_topics = $forum->num_topics - $forum->old_topics; $icon = _forum_get_folder_icon($new_topics); $output .= " "; - $output .= "
".implode(" : ", array_reverse($t)) ."
".implode(" : ", array_reverse($t)) ."". t("topics") ."". t("posts") ."". t("last post") ."
 $icon"; - $output .= ""; + $output .= ""; } } } @@ -615,8 +615,8 @@ function forum_theme_topic_list($tid, $topics, $sortby, $forum_per_page, $offset - - + + "; } else { @@ -624,10 +624,10 @@ function forum_theme_topic_list($tid, $topics, $sortby, $forum_per_page, $offset - - - - + + + + "; } } @@ -636,12 +636,12 @@ function forum_theme_topic_list($tid, $topics, $sortby, $forum_per_page, $offset } $output .= "
"; - $output .= "
" .t("%a topics, %b topics per page, page %c of %d", array("%a" => $pager_total[0], "%b" => $forum_per_page, "%c" => $offset, "%d" => ceil($pager_total[0]/$forum_per_page))) ."
"; + $output .= "
" .t("%a topics, %b topics per page, page %c of %d", array("%a" => $pager_total[0], "%b" => $forum_per_page, "%c" => $offset, "%d" => ceil($pager_total[0]/$forum_per_page))) ."
"; $output .= (($pager = pager_display(NULL, $forum_per_page, 0, "default")) ? "$pager" : ""); if (user_access("create forum topics")) { - $output .= "
". l(t("create new forum topic"), "node/add/forum/$tid") ."
"; + $output .= "
". l(t("create new forum topic"), "node/add/forum/$tid") ."
"; } return $output; @@ -677,7 +677,7 @@ function _forum_get_folder_icon($new_posts, $num_posts = 0, $comment_mode = 0) { // default $file = $base_path."/".$icon.".gif"; - return "\"\""; + return "\"\""; } else { return " "; -- cgit v1.2.3
depth * 20) ."\"> ". l($forum->name, "forum/$forum->tid") ."
". check_output($forum->description); + $output .= "
depth * 20) ."px;\"> ". l($forum->name, "forum/$forum->tid") ."
". check_output($forum->description); $links = array(); if ($forum->last_post) { @@ -563,7 +563,7 @@ function forum_theme_list($forums, $parents, $tid) { } $output .= "
".$forum->num_topics.($new_topics ? "
(".t("%a new", array("%a" => $new_topics)).")" : "")."
".$forum->num_posts.""._forum_format($forum->last_post)."
".$forum->num_topics.($new_topics ? "
(".t("%a new", array("%a" => $new_topics)).")" : "")."
".$forum->num_posts.""._forum_format($forum->last_post)."
"._forum_get_folder_icon($topic->new, $topic->num_comments, $topic->comment_mode)." "._forum_get_icon($topic)."$topic->title". l(t("This topic has been moved"), "forum/$topic->tid")."$topic->title". l(t("This topic has been moved"), "forum/$topic->tid")."
"._forum_get_folder_icon($topic->new, $topic->num_comments, $topic->comment_mode)." "._forum_get_icon($topic)."". l($topic->title, "node/view/$topic->nid") ."".$topic->num_comments.($topic->new_replies ? " (".t("%a new", array("%a" => $topic->new_replies)).")" : "").""._forum_format($topic).""._forum_format($topic->last_reply)."". l($topic->title, "node/view/$topic->nid") ."".$topic->num_comments.($topic->new_replies ? " (".t("%a new", array("%a" => $topic->new_replies)).")" : "").""._forum_format($topic).""._forum_format($topic->last_reply)."