MDL-7948 some more messaging accessiblity fixes

This commit is contained in:
skodak 2006-12-30 11:20:26 +00:00
parent 54bb345831
commit d53f1cdb82
2 changed files with 7 additions and 2 deletions

View File

@ -281,9 +281,13 @@
if (empty($allmessages)) {
echo get_string('nomessagesfound', 'message');
} else {
echo '<ul class="messagelist">';
foreach ($allmessages as $message) {
echo '<li>';
echo $message;
echo '</li>';
}
echo '</ul>';
if ($playbeep and get_user_preferences('message_beepnewmessage', 0)) {
echo '<embed src="bell.wav" autostart="true" hidden="true" name="bell" />';
}

View File

@ -586,6 +586,7 @@ function message_contact_link($userid, $linktype='add', $return=false, $script="
$command = $linktype.'contact';
$string = $str->{$command};
$alttext = $text ? '' : $string;
$text = $text ? '&nbsp;'.$string : '';
switch ($linktype) {
@ -606,7 +607,7 @@ function message_contact_link($userid, $linktype='add', $return=false, $script="
$output = '<span class="'.$linktype.'">'.
'<a href="'.$script.'&amp;'.$command.'='.$userid.
'&amp;sesskey='.sesskey().'" title="'.s($string).'">'.
'<img src="'.$CFG->pixpath.$icon.'" height="11" width="11" border="0" alt="'.s($string).'" />'.
'<img src="'.$CFG->pixpath.$icon.'" height="11" width="11" border="0" alt="'.s($alttext).'" />'.
$text.'</a></span>';
if ($return) {
@ -639,7 +640,7 @@ function message_history_link($userid1, $userid2=0, $returnstr=false, $keywords=
if ($linktext == 'icon') { // Icon only
$fulllink = '<img src="'.$CFG->pixpath.'/t/log.gif" height="11" width="11" border="0" alt="'.$strmessagehistory.'" />';
} else if ($linktext == 'both') { // Icon and standard name
$fulllink = '<img src="'.$CFG->pixpath.'/t/log.gif" height="11" width="11" border="0" alt="'.$strmessagehistory.'" />';
$fulllink = '<img src="'.$CFG->pixpath.'/t/log.gif" height="11" width="11" border="0" alt="" />';
$fulllink .= '&nbsp;'.$strmessagehistory;
} else if ($linktext) { // Custom name
$fulllink = $linktext;