]> git.mjollnir.org Git - moodle.git/commitdiff
Accessibility: added title to envelope link, replaced img width/height (OU-Bugz:...
authornfreear <nfreear>
Wed, 15 Mar 2006 10:42:50 +0000 (10:42 +0000)
committernfreear <nfreear>
Wed, 15 Mar 2006 10:42:50 +0000 (10:42 +0000)
blocks/online_users/block_online_users.php

index 4a981b7f33ddb122832cab3c739ebfcb775938b8..b7f38bd0bd936441242d671c519d49d6ad43882a 100644 (file)
@@ -112,8 +112,8 @@ class block_online_users extends block_base {
                 $this->content->text .= print_user_picture($user->id, $this->instance->pageid, $user->picture, 16, true).' ';
                 $this->content->text .= '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&amp;course='.$this->instance->pageid.'" title="'.$timeago.'">'.$user->fullname.'</a>';
                 if (!empty($USER->id) and ($USER->id != $user->id) and !empty($CFG->messaging) and !isguest()) {  // Only when logged in
-                    $this->content->text .= '&nbsp;<a title="" target="message_'.$user->id.'" href="'.$CFG->wwwroot.'/message/discussion.php?id='.$user->id.'" onclick="return openpopup(\'/message/discussion.php?id='.$user->id.'\', \'message_'.$user->id.'\', \'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500\', 0);">'
-                        .'<img height="11" width="11" src="'.$CFG->pixpath.'/t/message.gif" alt="'. get_string('messageselectadd') .'" /></a>';
+                    $this->content->text .= "\n".' <a title="'.get_string('messageselectadd').'" target="message_'.$user->id.'" href="'.$CFG->wwwroot.'/message/discussion.php?id='.$user->id.'" onclick="return openpopup(\'/message/discussion.php?id='.$user->id.'\', \'message_'.$user->id.'\', \'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500\', 0);">'
+                        .'<img class="icon message" src="'.$CFG->pixpath.'/t/message.gif" alt="'. get_string('messageselectadd') .'" /></a>';
                 }
                 $this->content->text .= "</li>\n";
             }