Commit 9bafc473 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Display username in profile sideblock

parent bb807f87
......@@ -1718,6 +1718,8 @@ function profile_sideblock() {
require_once('group.php');
$data = array(
'id' => $USER->get('id'),
'myname' => display_name($USER, null, true),
'username' => $USER->get('username'),
'profileicon' => $USER->get('profileicon') ? $USER->get('profileicon') : 0,
);
......
<h3><a href="{$WWWROOT}user/view.php?id={$data.id}">{$data.id|display_name|escape}</a></h3>
<h3><a href="{$WWWROOT}user/view.php?id={$data.id}">{$data.myname|escape}</a> <span class="s">(<a href="{$WWWROOT}user/view.php?id={$data.id}">{$data.username|escape}</a>)</span></h3>
<div class="fr"><a href="{$WWWROOT}user/view.php?id={$data.id}"><div class="center" style="width: 50px; height: 50px;"><img src="{$WWWROOT}thumb.php?type=profileiconbyid&amp;maxwidth=50&amp;maxheight=50&amp;id={$data.profileicon}" alt=""></div></a></div>
{if $data.mnetloggedinfrom}<p>{$data.mnetloggedinfrom}</p>{/if}
<ul class="sidebar-ul-title">
......
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