From 593bc22bf5bcaf8172acbd5b3c5265fd4c396279 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 4 Jan 2007 15:16:31 +0000 Subject: [PATCH] Various XHTML Strict fixes for popup links and simple box --- lib/weblib.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index c42222cce9..ec43b4cd3a 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -564,8 +564,8 @@ function link_to_popup_window ($url, $name='popup', $linkname='click here', $url = substr($url, strlen($CFG->wwwroot)); } - $link = '$linkname"; + $link = '$linkname"; if ($return) { return $link; } else { @@ -2812,7 +2812,7 @@ function print_navigation ($navigation, $separator=0, $return=false) { * @param int $size The size to set the font for text display. */ function print_headline($text, $size=2, $return=false) { - $output = print_heading($text, 'left', $size, true); + $output = print_heading($text, '', $size, true); if ($return) { return $output; } else { @@ -2948,20 +2948,23 @@ function print_simple_box_start($align='', $width='', $color='', $padding=5, $cl $output = ''; - if ($color) { - $color = 'bgcolor="'. $color .'"'; - } + $tableclasses = $class; + if ($align) { - $align = 'align="'. $align .'"'; + $tableclasses .= ' boxalign'.$align; // Implement alignment using a class } if ($width) { - $width = 'width="'. $width .'"'; + $width = ' style="width:'.$width.'"'; } if ($id) { - $id = 'id="'. $id .'"'; + $id = 'id="'.$id.'"'; } - $output .= "". - "'; if ($return) { return $output; -- 2.39.5
"; + if ($color) { + $color = ' style="background:'.$color.'"'; + } + + $output .= ''. + '