From abcaf2cfa570a3b97168bd5bf9fe320a4674614d Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 5 Jan 2007 16:40:04 +0000 Subject: [PATCH] XHTML Strict fixes --- course/format/social/format.php | 11 ++++------- course/format/topics/format.php | 21 ++++++++++----------- theme/standard/styles_fonts.css | 3 ++- theme/standard/styles_layout.css | 3 ++- 4 files changed, 18 insertions(+), 20 deletions(-) diff --git a/course/format/social/format.php b/course/format/social/format.php index f917e08e65..ddb2512bf3 100644 --- a/course/format/social/format.php +++ b/course/format/social/format.php @@ -30,17 +30,14 @@ echo ''; if ($forum = forum_get_course_forum($course->id, 'social')) { + print_heading_block(get_string('socialheadline')); if (forum_is_forcesubscribed($forum->id)) { - $subtext = ''; + echo ''; } else if (forum_is_subscribed($USER->id, $forum->id)) { - $subtext = ''; + echo ''; } else { - $subtext = ''; + echo ''; } - $headertext = ''. - ''. - '
'.get_string('socialheadline').'
'.$subtext.'
'; - print_heading_block($headertext); forum_print_latest_discussions($course, $forum, 10, 'plain', '', false); diff --git a/course/format/topics/format.php b/course/format/topics/format.php index 92616da7be..7485e77a72 100644 --- a/course/format/topics/format.php +++ b/course/format/topics/format.php @@ -107,11 +107,10 @@ $summaryformatoptions->noclean = true; echo format_text($thissection->summary, FORMAT_HTML, $summaryformatoptions); - //Accessibility: added Alt, filled empty Alt-link text. if (isediting($course->id)) { echo ''.$streditsummary.'

'; + ' alt="'.$streditsummary.'" />

'; } echo ''; @@ -192,7 +191,7 @@ if (isediting($course->id)) { echo ' '. - ''.$streditsummary.'

'; + ''.$streditsummary.'

'; } echo ''; @@ -207,38 +206,38 @@ echo ''; if ($displaysection == $section) { // Show the zoom boxes echo ''. - ''.$strshowalltopics.'
'; + ''.$strshowalltopics.'
'; } else { $strshowonlytopic = get_string('showonlytopic', '', $section); echo ''. - ''.$strshowonlytopic.'
'; + ''.$strshowonlytopic.'
'; } if (isediting($course->id)) { if ($course->marker == $section) { // Show the "light globe" on/off echo ''. - ''.$strmarkedthistopic.'
'; + ''.$strmarkedthistopic.'
'; } else { echo ''. - ''.$strmarkthistopic.'
'; + ''.$strmarkthistopic.'
'; } if ($thissection->visible) { // Show the hide/show eye echo ''. - ''.$strtopichide.'
'; + ''.$strtopichide.'
'; } else { echo ''. - ''.$strtopicshow.'
'; + ''.$strtopicshow.'
'; } if ($section > 1) { // Add a arrow to move section up echo ''. - ''.$strmoveup.'
'; + ''.$strmoveup.'
'; } if ($section < $course->numsections) { // Add a arrow to move section down echo ''. - ''.$strmovedown.'
'; + ''.$strmovedown.'
'; } } diff --git a/theme/standard/styles_fonts.css b/theme/standard/styles_fonts.css index e42b54aa28..bd5a3b65a9 100644 --- a/theme/standard/styles_fonts.css +++ b/theme/standard/styles_fonts.css @@ -124,7 +124,8 @@ h4 { font-weight: bold; } -#site-index .subscribelink { +#site-index .subscribelink, +#course-view .subscribelink { font-size: 0.8em; } diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 814fcae94f..01c83c7af2 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -1318,7 +1318,8 @@ body#course-user .section h2 { margin:0; } -#site-index .subscribelink { +#site-index .subscribelink, +#course-view .subscribelink { text-align:right; } -- 2.39.5