From 175d83146e1485b4fcb92cd82bc9fc6cbf2ed4d1 Mon Sep 17 00:00:00 2001 From: Crizzo Date: Sun, 23 Mar 2014 15:39:09 +0100 Subject: [PATCH] [ticket/9758] Adding impr. for overall_header display of avatar and username PHPBB3-9758 --- phpBB/includes/functions.php | 3 ++- phpBB/styles/prosilver/template/overall_header.html | 3 ++- phpBB/styles/prosilver/theme/common.css | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index c6ae3828f5..c805a9fe67 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -4772,7 +4772,7 @@ function page_header($page_title = '', $display_online_list = false, $item_id = if ($user->data['user_id'] != ANONYMOUS) { $u_login_logout = append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=logout', true, $user->session_id); - $l_login_logout = sprintf($user->lang['LOGOUT_USER'], $user->data['username']); + $l_login_logout = sprintf($user->lang['LOGOUT'], $user->data['username']); } else { @@ -4946,6 +4946,7 @@ function page_header($page_title = '', $display_online_list = false, $item_id = 'SESSION_ID' => $user->session_id, 'ROOT_PATH' => $web_path, 'BOARD_URL' => $board_url, + 'USERNAME_FULL' => get_username_string('full', $user->data['user_id'], $user->data['username'], $user->data['user_colour']), 'L_LOGIN_LOGOUT' => $l_login_logout, 'L_INDEX' => ($config['board_index_text'] !== '') ? $config['board_index_text'] : $user->lang['FORUM_INDEX'], diff --git a/phpBB/styles/prosilver/template/overall_header.html b/phpBB/styles/prosilver/template/overall_header.html index 84449efc14..c9daccb4ff 100644 --- a/phpBB/styles/prosilver/template/overall_header.html +++ b/phpBB/styles/prosilver/template/overall_header.html @@ -89,6 +89,7 @@ +
  • {CURRENT_USER_AVATAR} {USERNAME_FULL}
  • {L_EMAIL_TOPIC}
  • {L_EMAIL_PM}
  • {L_PRINT_TOPIC}
  • @@ -163,7 +164,7 @@ -
  • {L_LOGIN_LOGOUT} {CURRENT_USER_AVATAR}
  • +
  • {L_LOGIN_LOGOUT}
  • {L_REGISTER}
  • {L_MEMBERLIST}
  • diff --git a/phpBB/styles/prosilver/theme/common.css b/phpBB/styles/prosilver/theme/common.css index 6665e605f3..3fbd6659d4 100644 --- a/phpBB/styles/prosilver/theme/common.css +++ b/phpBB/styles/prosilver/theme/common.css @@ -446,8 +446,9 @@ ul.linklist.bulletin li.no-bulletin:before { /* Avatar in overall_header.html */ span.avatar-overall-header img { + margin-bottom: 2px; max-height: 25px; - vertical-align: top; + vertical-align: middle; width: auto; }