mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Fixed how extra user help is displayed
This commit is contained in:
parent
64fdfa6672
commit
a1157dda6a
1 changed files with 35 additions and 35 deletions
|
@ -77,16 +77,12 @@ function message_print_contacts() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($countonlinecontacts + $countofflinecontacts == 0) {
|
if ($countonlinecontacts + $countofflinecontacts == 0) {
|
||||||
|
echo '<div class="message_heading">';
|
||||||
echo '<p class="message_heading">';
|
|
||||||
print_string('contactlistempty', 'message');
|
print_string('contactlistempty', 'message');
|
||||||
echo '</p>';
|
echo '</div>';
|
||||||
echo '<p style="text-align: justify;">';
|
echo '<div class="message_text">';
|
||||||
print_string('addsomecontacts', 'message', $CFG->wwwroot.'/message/index.php?tab=search');
|
print_string('addsomecontacts', 'message', $CFG->wwwroot.'/message/index.php?tab=search');
|
||||||
echo '</p>';
|
echo '</div>';
|
||||||
echo '<p style="text-align: justify;">';
|
|
||||||
print_string('addsomecontactsincoming', 'message');
|
|
||||||
echo '</p>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!empty($onlinecontacts) || !empty($offlinecontacts) || !empty($unknownmessages)) {
|
if(!empty($onlinecontacts) || !empty($offlinecontacts) || !empty($unknownmessages)) {
|
||||||
|
@ -135,7 +131,6 @@ function message_print_contacts() {
|
||||||
echo get_string('offlinecontacts', 'message', $countofflinecontacts);
|
echo get_string('offlinecontacts', 'message', $countofflinecontacts);
|
||||||
echo '</td></tr>';
|
echo '</td></tr>';
|
||||||
|
|
||||||
if (!empty($offlinecontacts)) {
|
|
||||||
foreach ($offlinecontacts as $contact) {
|
foreach ($offlinecontacts as $contact) {
|
||||||
if ($contact->blocked == 1) continue;
|
if ($contact->blocked == 1) continue;
|
||||||
$fullname = fullname($contact);
|
$fullname = fullname($contact);
|
||||||
|
@ -159,7 +154,6 @@ function message_print_contacts() {
|
||||||
echo '<td class="message_link">'.$strcontact.' '.$strhistory.'</td>';
|
echo '<td class="message_link">'.$strcontact.' '.$strhistory.'</td>';
|
||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
echo '<tr><td colspan="3"> </td></tr>';
|
echo '<tr><td colspan="3"> </td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -170,6 +164,12 @@ function message_print_contacts() {
|
||||||
echo get_string('incomingcontacts', 'message', count($unknownmessages));
|
echo get_string('incomingcontacts', 'message', count($unknownmessages));
|
||||||
echo '</td></tr>';
|
echo '</td></tr>';
|
||||||
|
|
||||||
|
if ($countonlinecontacts + $countofflinecontacts == 0) { // Extra help
|
||||||
|
echo '<tr><td colspan="3" class="message_text">';
|
||||||
|
print_string('addsomecontactsincoming', 'message');
|
||||||
|
echo '</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($unknownmessages as $messageuser) {
|
foreach ($unknownmessages as $messageuser) {
|
||||||
$fullname = fullname($messageuser);
|
$fullname = fullname($messageuser);
|
||||||
$fullnamelink = $fullname;
|
$fullnamelink = $fullname;
|
||||||
|
@ -199,7 +199,7 @@ function message_print_contacts() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<p align="center" class="message_small_note">'.get_string('pagerefreshes', 'message', $CFG->message_contacts_refresh).'</p>';
|
echo '<br /><p align="center" class="message_small_note">'.get_string('pagerefreshes', 'message', $CFG->message_contacts_refresh).'</p>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue