From: moodler Date: Mon, 13 Aug 2007 06:21:35 +0000 (+0000) Subject: Some XHTML strict fixes X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b7ff675cac4f56b134dcda2a90c175b12b1560eb;p=moodle.git Some XHTML strict fixes --- diff --git a/tag/lib.php b/tag/lib.php index 42ed4da3e5..1693a72aae 100644 --- a/tag/lib.php +++ b/tag/lib.php @@ -1217,7 +1217,7 @@ function print_user_list($userlist) { * @param $user user object (contains the following fields: id, firstname, lastname and picture) */ function print_user_box($user) { - + global $CFG; $usercontext = get_context_instance(CONTEXT_USER, $user->id); @@ -1227,27 +1227,30 @@ function print_user_box($user) { $profilelink = $CFG->wwwroot.'/user/view.php?id='.$user->id; } - print_box_start('user-box', $user->id); + print_box_start('user-box', 'user'.$user->id); - if (!empty($profilelink)) echo ''; - - //print user image - if ($user->picture) { - echo ''; - } - else { - echo ''; - } - - echo '
'; - - if (!empty($profilelink)) echo '
'; - - $fullname = fullname($user); - //truncate name if it's too big - if (strlen($fullname) > 26) $fullname = substr($fullname,0,26) . '...'; - - echo '' . $fullname . ''; + if (!empty($profilelink)) { + echo ''; + } + + //print user image + if ($user->picture) { + echo ''; + } else { + echo ''; + } + + echo '
'; + + if (!empty($profilelink)) { + echo '
'; + } + + $fullname = fullname($user); + //truncate name if it's too big + if (strlen($fullname) > 26) $fullname = substr($fullname,0,26) . '...'; + + echo '' . $fullname . ''; print_box_end();