From e1d02e7e0fa3379383fa66aea08e6a46ef61059d Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Wed, 18 Jul 2007 21:06:40 +0000 Subject: [PATCH] corrected an error in the sideblock structure for custom corners --- lib/weblib.php | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 8ccb1ac395..dd7295775f 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -5822,25 +5822,33 @@ function print_side_block_start($heading='', $attributes = array()) { } echo '
'; - + + if (!empty($THEME->customcorners)) { + echo '
'."\n"; + } if ($heading) { //Accessibility: replaced
with H2; no, H2 more appropriate in moodleblock.class.php: _title_html. // echo '
'.$heading.'
'; echo '
'; - if (!empty($THEME->customcorners)) print_custom_corners_start(); + if (!empty($THEME->customcorners)) { + echo '
'; + echo '
'; + echo '
'; + } echo $heading; if (!empty($THEME->customcorners)) { - echo '
'; + echo '
'; } echo ''; } else { if (!empty($THEME->customcorners)) { - echo '
'; + echo '
'; } } if (!empty($THEME->customcorners)) { - echo '
'; + echo '
'; + echo '
'; } echo '
'; @@ -5858,10 +5866,10 @@ function print_side_block_end($attributes = array()) { if (!empty($THEME->customcorners)) { require_once($CFG->dirroot.'/lib/custom_corners_lib.php'); print_custom_corners_end(); - } else { - echo '
'; } + echo '
'; + // IE workaround: if I do it THIS way, it works! WTF? if (!empty($CFG->allowuserblockhiding) && isset($attributes['id'])) { echo '