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/comment/comment.module | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 17e687a29..40a8b4408 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -140,7 +140,7 @@ function comment_access($op, $comment) { function comment_form($edit) { global $user; - $form .= "\n"; + $form .= "\n"; // name field: $form .= form_item(t("Your name"), format_name($user)); @@ -414,10 +414,10 @@ function comment_view($comment, $links = "", $visible = 1) { if (node_is_new($comment->nid, $comment->timestamp)) { $comment->new = 1; - print "\n"; + print "\n"; } - print "cid\">\n"; + print "cid\">\n"; if ($visible) { $comment->comment = check_output($comment->comment); @@ -469,7 +469,7 @@ function comment_render($node, $cid = 0) { $comments_per_page = $user->comments_per_page ? $user->comments_per_page : variable_get("comment_default_per_page", "50"); } - print "\n"; + print "\n"; if ($cid) { @@ -478,7 +478,7 @@ function comment_render($node, $cid = 0) { ** Single comment view */ - print "
\n"; + print "
\n"; print form_hidden("nid", $nid); $result = db_query("SELECT c.cid, c.pid, c.nid, c.subject, c.comment, c.timestamp, u.uid, u.name, u.data, c.score, c.users FROM comments c LEFT JOIN users u ON c.uid = u.uid WHERE c.cid = %d AND c.status = 0 GROUP BY c.cid, c.pid, c.nid, c.subject, c.comment, c.timestamp, u.uid, u.name, u.data, c.score, c.users", $cid); @@ -488,9 +488,9 @@ function comment_render($node, $cid = 0) { } if ((comment_user_can_moderate($node)) && $user->uid != $comment->uid && !(comment_already_moderated($user->uid, $comment->users))) { - print "
". form_submit(t("Moderate comment")) ."

"; + print "
". form_submit(t("Moderate comment")) ."

"; } - print ""; + print "
"; } else { @@ -521,13 +521,13 @@ function comment_render($node, $cid = 0) { $comment_num = db_num_rows($result); if ($comment_num && ((variable_get("comment_controls", 0) == 0) || (variable_get("comment_controls", 0) == 2))) { - print "
\n"; + print "
\n"; theme("box", "", theme("comment_controls", $threshold, $mode, $order, $nid, $comment_page, $comment_num, $comments_per_page)); print form_hidden("nid", $nid); - print ""; + print "
"; } - print "
\n"; + print "
\n"; print form_hidden("nid", $nid); if ($comment_num) { @@ -582,7 +582,7 @@ function comment_render($node, $cid = 0) { theme("comment_flat_expanded", $comments, $threshold_min); if (comment_user_can_moderate($node) && $show_moderate_button) { - print "
". form_submit(t("Moderate comments")) ."

"; + print "
". form_submit(t("Moderate comments")) ."

"; } } else if ($mode == 3) { @@ -635,18 +635,18 @@ function comment_render($node, $cid = 0) { } if (comment_user_can_moderate($node) && $show_moderate_button) { - print "
". form_submit(t("Moderate comments")) ."

"; + print "
". form_submit(t("Moderate comments")) ."

"; } } } - print ""; + print "
"; if ($comment_num && ((variable_get("comment_controls", 0) == 1) || (variable_get("comment_controls", 0) == 2))) { - print "
\n"; + print "
\n"; theme("box", t("Control panel"), theme("comment_controls", $threshold, $mode, $order, $nid, $comment_page, $comment_num, $comments_per_page)); print form_hidden("nid", $nid); - print ""; + print "
"; } } @@ -1293,7 +1293,7 @@ function comment_thread_max($comment, $threshold, $level = 0) { */ if ($level) { - print "
 \n"; + print "
 \n"; } comment_view($comment, comment_links($comment, 0), comment_visible($comment, $threshold)); -- cgit v1.2.3