Commit fba67d6d authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Make the user's own profile icon a link to the Profile Icon content tab"

parents 497d24e7 62f87c3f
......@@ -246,6 +246,7 @@ $string['profileicons'] = 'Profile pictures';
$string['Default'] = 'Default';
$string['defaultprofileicon'] = 'This is currently set as your default profile picture.';
$string['deleteselectedicons'] = 'Delete selected profile pictures';
$string['editprofileicon'] = 'Edit profile picture';
$string['profileicon'] = 'Profile picture';
$string['noimagesfound'] = 'No images found';
$string['profileiconaddedtoimagesfolder'] = "Your profile picture has been uploaded to your '%s' folder.";
......
......@@ -2475,6 +2475,7 @@ function profile_sideblock() {
'myname' => display_name($USER, null, true),
'username' => $USER->get('username'),
'url' => profile_url($USER),
'profileiconurl' => get_config('wwwroot') . 'artefact/file/profileicons.php',
);
$authinstance = $SESSION->get('mnetuser') ? $SESSION->get('authinstance') : $USER->get('authinstance');
......
<div class="sidebar-header">
<div id="user-profileicon">
<a href="{$sbdata.url}"><img src="{profile_icon_url user=$sbdata.id maxheight=50 maxwidth=50}" alt=""></a>
<a href="{$sbdata.profileiconurl}" title="{str tag="editprofileicon" section="artefact.file"}"><img src="{profile_icon_url user=$sbdata.id maxheight=50 maxwidth=50}" alt=""></a>
</div>
<h3><a href="{$sbdata.url}">{$sbdata.myname}</a></h3>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment