* refactor codes.

This commit is contained in:
Catouse
2018-05-15 14:22:32 +08:00
parent b4d9442e94
commit 9e8eb90896
7 changed files with 11 additions and 7 deletions
+2 -2
View File
@@ -245,8 +245,8 @@ class commonModel extends model
if(!$isGuest)
{
echo '<li class="user-profile-item">';
echo '<a href="###">';
echo "<div class='avatar avatar-sm bg-info avatar-circle'>" . strtoupper($app->user->account{0}) . "</div>\n";
echo "<a href='". helper::createLink('my', 'profile', '', '', true) . "' class='iframe" . (!empty($app->user->role) && isset($lang->user->roleList[$app->user->role]) ? '' : ' no-role') . "'>";
echo "<div class='avatar avatar bg-info avatar-circle'>" . strtoupper($app->user->account{0}) . "</div>\n";
echo '<div class="user-profile-name">' . (empty($app->user->realname) ? $app->user->account : $app->user->realname) . '</div>';
if(isset($lang->user->roleList[$app->user->role])) echo '<div class="user-profile-role">' . $lang->user->roleList[$app->user->role] . '</div>';
echo '</a></li><li class="divider"></li>';