From 72b4e283530be4d21549e8298753c2c7c68e58c8 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 28 Sep 2004 09:47:14 +0000 Subject: [PATCH] Some changes for XHTML and accessibility compliance --- lib/weblib.php | 13 +++++++++++-- mod/forum/discuss.php | 2 +- mod/forum/lib.php | 4 ++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index aa332914c9..44196c2711 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -667,9 +667,15 @@ function popup_form($common, $options, $formname, $selected='', $nothing='choose $output .= " \n"; } + $inoptgroup = false; foreach ($options as $value => $label) { if (substr($label,0,2) == '--') { - $output .= ' '; // Plain labels + if ($inoptgroup) { + $output .= ' '; + } else { + $inoptgroup = true; + } + $output .= ' '; // Plain labels continue; } else { $output .= ' ' . "\n"; } } + if ($inoptgroup) { + $output .= ' '; + } $output .= ''; $output .= '' . "\n"; @@ -3390,4 +3399,4 @@ function print_speller_button () { echo ''."\n"; } // vim:autoindent:expandtab:shiftwidth=4:tabstop=4:tw=140: -?> \ No newline at end of file +?> diff --git a/mod/forum/discuss.php b/mod/forum/discuss.php index b4c6613766..f2ca6b69ea 100644 --- a/mod/forum/discuss.php +++ b/mod/forum/discuss.php @@ -103,7 +103,7 @@ if ($course->category) { print_header("$course->shortname: $discussion->name", "$course->fullname", - "id>$course->shortname -> + "id\">$course->shortname -> $navmiddle -> $navtail", "", "", true, $searchform, navmenu($course, $cm)); } else { print_header("$course->shortname: $discussion->name", "$course->fullname", diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 0b7a8cab86..17f304d3a1 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -1816,7 +1816,7 @@ function forum_print_search_form($course, $search="", $return=false, $type="") { $output = "
"; $output .= "
wwwroot/mod/forum/search.php\">"; $output .= ""; - $output .= ""; + $output .= ""; $output .= ""; $output .= ""; $output .= "id\" />"; @@ -1826,7 +1826,7 @@ function forum_print_search_form($course, $search="", $return=false, $type="") { $output = "
"; $output .= "wwwroot/mod/forum/search.php\">"; $output .= ""; - $output .= "
"; + $output .= "
"; $output .= ""; $output .= "
"; $output .= "id\" />"; -- 2.39.5