MDL-82629 output: switch to named message/contact mapped icons.

This commit is contained in:
Paul Holden
2024-07-29 09:05:28 +01:00
parent 1a33da6637
commit 31163d5e02
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -4080,7 +4080,7 @@ EOD;
'buttontype' => 'message',
'title' => get_string('message', 'message'),
'url' => new moodle_url('/message/index.php', ['id' => $user->id]),
'image' => 'message',
'image' => 't/message',
'linkattributes' => \core_message\helper::messageuser_link_params($user->id),
'page' => $this->page,
],
@@ -4117,12 +4117,12 @@ EOD;
$contacttitle = 'addtoyourcontacts';
$contacturlaction = 'addcontact';
}
$contactimage = 'addcontact';
$contactimage = 't/addcontact';
} else {
// If the user is a contact.
$contacttitle = 'removefromyourcontacts';
$contacturlaction = 'removecontact';
$contactimage = 'removecontact';
$contactimage = 't/removecontact';
}
$userbuttons['togglecontact'] = [
'buttontype' => 'togglecontact',
+3 -3
View File
@@ -121,7 +121,7 @@ class core_renderer extends \core_renderer {
'buttontype' => 'message',
'title' => get_string('message', 'message'),
'url' => new moodle_url('/message/index.php', array('id' => $user->id)),
'image' => 'message',
'image' => 't/message',
'linkattributes' => \core_message\helper::messageuser_link_params($user->id),
'page' => $this->page
)
@@ -158,12 +158,12 @@ class core_renderer extends \core_renderer {
$contacttitle = 'addtoyourcontacts';
$contacturlaction = 'addcontact';
}
$contactimage = 'addcontact';
$contactimage = 't/addcontact';
} else {
// If the user is a contact.
$contacttitle = 'removefromyourcontacts';
$contacturlaction = 'removecontact';
$contactimage = 'removecontact';
$contactimage = 't/removecontact';
}
$userbuttons['togglecontact'] = array(
'buttontype' => 'togglecontact',