Skip to content

Commit

Permalink
MDL-70310 user: Remove yahoo icon since domain no longer exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyatregubov committed Jan 7, 2021
1 parent 56fd8c5 commit 0511eb9
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions lib/myprofilelib.php
Expand Up @@ -339,34 +339,19 @@ function core_myprofile_navigation(core_user\output\myprofile\tree $tree, $user,
}

if ($user->skype && !isset($hiddenfields['skypeid'])) {
$imurl = 'skype:'.urlencode($user->skype).'?call';
$iconurl = new moodle_url('http://mystatus.skype.com/smallicon/'.urlencode($user->skype));
if (is_https()) {
// Bad luck, skype devs are lazy to set up SSL on their servers - see MDL-37233.
$statusicon = '';
} else {
$statusicon = html_writer::empty_tag('img',
array('src' => $iconurl, 'class' => 'icon icon-post', 'alt' => get_string('status')));
}

$imurl = 'skype:' . urlencode($user->skype) . '?call';
$node = new core_user\output\myprofile\node('contact', 'skypeid', get_string('skypeid'), null, null,
html_writer::link($imurl, s($user->skype) . $statusicon));
html_writer::link($imurl, s($user->skype)));
$tree->add_node($node);
}
if ($user->yahoo && !isset($hiddenfields['yahooid'])) {
$imurl = new moodle_url('https://edit.yahoo.com/config/send_webmesg', array('.target' => $user->yahoo, '.src' => 'pg'));
$iconurl = new moodle_url('http://opi.yahoo.com/online', array('u' => $user->yahoo, 'm' => 'g', 't' => '0'));
$statusicon = html_writer::tag('img', '',
array('src' => $iconurl, 'class' => 'iconsmall icon-post', 'alt' => get_string('status')));

$node = new core_user\output\myprofile\node('contact', 'yahooid', get_string('yahooid'), null, null,
html_writer::link($imurl, s($user->yahoo) . $statusicon));
s($user->yahoo));
$tree->add_node($node);
}
if ($user->aim && !isset($hiddenfields['aimid'])) {
$imurl = 'aim:goim?screenname='.urlencode($user->aim);
$node = new core_user\output\myprofile\node('contact', 'aimid', get_string('aimid'), null, null,
html_writer::link($imurl, s($user->aim)));
s($user->aim));
$tree->add_node($node);
}
if ($user->msn && !isset($hiddenfields['msnid'])) {
Expand Down

0 comments on commit 0511eb9

Please sign in to comment.