From 34b5847a1addfedf06642bfcd99e912b8bbcd7ae Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 30 Sep 2004 08:42:34 +0000 Subject: [PATCH] Some changes for XHTML and accessibility compliance --- course/lib.php | 9 +++++---- mod/glossary/filter.php | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/course/lib.php b/course/lib.php index 8ceea5b608..d25bfb167a 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1261,11 +1261,11 @@ function print_course($course, $width="100%") { echo ""; echo ''; echo '"; echo "
'; - echo '

'. - $course->fullname.'

'; + $course->fullname.'
'; if ($teachers = get_course_teachers($course->id)) { - echo "

\n"; + echo "\n"; foreach ($teachers as $teacher) { if ($teacher->authority > 0) { if (!$teacher->role) { @@ -1276,7 +1276,7 @@ function print_course($course, $width="100%") { '&course='.SITEID.'">'.$fullname.'
'; } } - echo "

"; + echo "\n"; } echo $enrol->get_access_icons($course); @@ -1284,6 +1284,7 @@ function print_course($course, $width="100%") { echo '
'; $options = NULL; $options->noclean = true; + $options->para = false; echo format_text($course->summary, FORMAT_MOODLE, $options, $course->id); echo "
"; diff --git a/mod/glossary/filter.php b/mod/glossary/filter.php index 5ded39bd71..f3900a9172 100644 --- a/mod/glossary/filter.php +++ b/mod/glossary/filter.php @@ -78,7 +78,7 @@ $encodedconcept = urlencode($concept->concept); $title = str_replace('"', "'", strip_tags("$glossary->name: $concept->concept")); $href_tag_begin = "wwwroot/mod/glossary/showentry.php?courseid=$courseid&concept=$encodedconcept\" ". - "onClick=\"return openpopup('/mod/glossary/showentry.php?courseid=$courseid\&concept=$encodedconcept', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);\">"; + "onclick=\"return openpopup('/mod/glossary/showentry.php?courseid=$courseid\&concept=$encodedconcept', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);\">"; } $currentconcept = $concept->concept; if ( $currentconcept = trim(strip_tags($currentconcept)) ) { -- 2.39.5