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" />';
}
$command = $linktype.'contact';
$string = $str->{$command};
+ $alttext = $text ? '' : $string;
$text = $text ? ' '.$string : '';
switch ($linktype) {
$output = '<span class="'.$linktype.'">'.
'<a href="'.$script.'&'.$command.'='.$userid.
'&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) {
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 .= ' '.$strmessagehistory;
} else if ($linktext) { // Custom name
$fulllink = $linktext;