From 7cd266e9b18eae86cc659572b7a9ec83e472a8d4 Mon Sep 17 00:00:00 2001 From: urs_hunkler <urs_hunkler> Date: Fri, 16 Nov 2007 07:29:14 +0000 Subject: [PATCH] merged from 1.9 :: MDL-12045 :: the extra "clearer" div broke the custom_corners theme on IE7. I removed the "clearer" div and added the class "clerafix" to the surrounding coursebox. --- course/lib.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/course/lib.php b/course/lib.php index c3e520fd0a..d18844a94c 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1836,7 +1836,7 @@ function print_course($course) { $linkcss = $course->visible ? '' : ' class="dimmed" '; - echo '<div class="coursebox">'; + echo '<div class="coursebox clearfix">'; echo '<div class="info">'; echo '<div class="name"><a title="'.get_string('entercourse').'"'. $linkcss.' href="'.$CFG->wwwroot.'/course/view.php?id='.$course->id.'">'. @@ -1893,7 +1893,6 @@ function print_course($course) { echo format_text($course->summary, FORMAT_MOODLE, $options, $course->id); echo '</div>'; echo '</div>'; - echo '<div class="clearer"></div>'; } @@ -2013,7 +2012,7 @@ function print_remote_course($course, $width="100%") { $url = "{$CFG->wwwroot}/auth/mnet/jump.php?hostid={$course->hostid}&wantsurl=/course/view.php?id={$course->remoteid}"; - echo '<div class="coursebox remotecoursebox">'; + echo '<div class="coursebox remotecoursebox clearfix">'; echo '<div class="info">'; echo '<div class="name"><a title="'.get_string('entercourse').'"'. $linkcss.' href="'.$url.'">' @@ -2028,7 +2027,6 @@ function print_remote_course($course, $width="100%") { echo format_text($course->summary, FORMAT_MOODLE, $options); echo '</div>'; echo '</div>'; - echo '<div class="clearer"></div>'; } function print_remote_host($host, $width="100%") { @@ -2037,7 +2035,7 @@ function print_remote_host($host, $width="100%") { $linkcss = ''; - echo '<div class="coursebox">'; + echo '<div class="coursebox clearfix">'; echo '<div class="info">'; echo '<div class="name">'; echo '<img src="'.$CFG->pixpath.'/i/mnethost.gif" class="icon" alt="'.get_string('course').'" />'; @@ -2047,7 +2045,6 @@ function print_remote_host($host, $width="100%") { echo '</div>'; echo '</div>'; echo '</div>'; - echo '<div class="clearer"></div>'; } -- 2.39.5