mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-06 14:35:56 +02:00
[ticket/11921] Improve appearance of PM notifications in linklist
PHPBB3-11921
This commit is contained in:
parent
9363986f43
commit
8608204097
@ -5225,7 +5225,7 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
|
||||
$l_online_time = $user->lang('VIEW_ONLINE_TIMES', (int) $config['load_online_time']);
|
||||
}
|
||||
|
||||
$l_privmsgs_text = $l_privmsgs_text_unread = '';
|
||||
$l_privmsgs_count = '';
|
||||
$s_privmsg_new = false;
|
||||
|
||||
// Obtain number of new private messages if user is logged in
|
||||
@ -5233,7 +5233,7 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
|
||||
{
|
||||
if ($user->data['user_new_privmsg'])
|
||||
{
|
||||
$l_privmsgs_text = $user->lang('NEW_PMS', (int) $user->data['user_new_privmsg']);
|
||||
$l_privmsgs_count = (int) $user->data['user_new_privmsg'];
|
||||
|
||||
if (!$user->data['user_last_privmsg'] || $user->data['user_last_privmsg'] > $user->data['session_last_visit'])
|
||||
{
|
||||
@ -5251,15 +5251,13 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
|
||||
}
|
||||
else
|
||||
{
|
||||
$l_privmsgs_text = $user->lang('NEW_PMS', 0);
|
||||
$l_privmsgs_count = 0;
|
||||
$s_privmsg_new = false;
|
||||
}
|
||||
|
||||
$l_privmsgs_text_unread = '';
|
||||
|
||||
if ($user->data['user_unread_privmsg'] && $user->data['user_unread_privmsg'] != $user->data['user_new_privmsg'])
|
||||
{
|
||||
$l_privmsgs_text_unread = $user->lang('UNREAD_PMS', (int) $user->data['user_unread_privmsg']);
|
||||
$l_privmsgs_count = (int) $user->data['user_unread_privmsg'];
|
||||
}
|
||||
}
|
||||
|
||||
@ -5350,8 +5348,7 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
|
||||
'TOTAL_USERS_ONLINE' => $l_online_users,
|
||||
'LOGGED_IN_USER_LIST' => $online_userlist,
|
||||
'RECORD_USERS' => $l_online_record,
|
||||
'PRIVATE_MESSAGE_INFO' => $l_privmsgs_text,
|
||||
'PRIVATE_MESSAGE_INFO_UNREAD' => $l_privmsgs_text_unread,
|
||||
'PRIVATE_MESSAGE_COUNT' => $l_privmsgs_count,
|
||||
'HIDDEN_FIELDS_FOR_JUMPBOX' => $hidden_fields_for_jumpbox,
|
||||
|
||||
'UNREAD_NOTIFICATIONS_COUNT' => ($notifications !== false) ? $notifications['unread_count'] : '',
|
||||
|
@ -401,10 +401,6 @@ $lang = array_merge($lang, array(
|
||||
'NEWEST_USER' => 'Our newest member <strong>%s</strong>',
|
||||
'NEW_MESSAGE' => 'New message',
|
||||
'NEW_MESSAGES' => 'New messages',
|
||||
'NEW_PMS' => array(
|
||||
1 => '<strong>%d</strong> new message',
|
||||
2 => '<strong>%d</strong> new messages',
|
||||
),
|
||||
'NEW_POST' => 'New post', // Not used anymore
|
||||
'NEW_POSTS' => 'New posts', // Not used anymore
|
||||
'NEXT' => 'Next', // Used in pagination
|
||||
@ -753,10 +749,6 @@ $lang = array_merge($lang, array(
|
||||
'UNKNOWN_BROWSER' => 'Unknown browser',
|
||||
'UNMARK_ALL' => 'Unmark all',
|
||||
'UNREAD_MESSAGES' => 'Unread messages',
|
||||
'UNREAD_PMS' => array(
|
||||
1 => '<strong>%d</strong> unread message',
|
||||
2 => '<strong>%d</strong> unread messages',
|
||||
),
|
||||
'UNREAD_POST' => 'Unread post',
|
||||
'UNREAD_POSTS' => 'Unread posts',
|
||||
'UNWATCH_FORUM_CONFIRM' => 'Are you sure you wish to unsubscribe from this forum?',
|
||||
|
@ -135,9 +135,13 @@
|
||||
</div>
|
||||
</li>
|
||||
<!-- ENDIF -->
|
||||
<!-- IF S_DISPLAY_PM -->
|
||||
<li class="icon-pm">
|
||||
<a href="{U_PRIVATEMSGS}">{L_PRIVATE_MESSAGES} (<strong>{PRIVATE_MESSAGE_COUNT}</strong>)</a>
|
||||
</li>
|
||||
<!-- ENDIF -->
|
||||
<li class="icon-ucp">
|
||||
<a href="{U_PROFILE}" title="{L_PROFILE}" accesskey="e">{L_PROFILE}</a>
|
||||
<!-- IF S_DISPLAY_PM --> (<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a>)<!-- ENDIF -->
|
||||
</li>
|
||||
<!-- IF S_DISPLAY_SEARCH -->
|
||||
<li class="icon-search-self"><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></li>
|
||||
|
@ -535,7 +535,7 @@
|
||||
/* Icon images
|
||||
---------------------------------------- */
|
||||
.rtl .sitehome, .rtl .icon-faq, .rtl .icon-members, .rtl .icon-home, .rtl .icon-ucp, .rtl .icon-register, .rtl .icon-logout,
|
||||
.rtl .icon-bookmark, .rtl .icon-bump, .rtl .icon-subscribe, .rtl .icon-unsubscribe, .rtl .icon-pages, .rtl .icon-search, .rtl .icon-notification {
|
||||
.rtl .icon-bookmark, .rtl .icon-bump, .rtl .icon-subscribe, .rtl .icon-unsubscribe, .rtl .icon-pages, .rtl .icon-search, .rtl .icon-notification, .rtl .icon-pm {
|
||||
background-position: 100% 50%;
|
||||
padding: 1px 17px 0 0;
|
||||
}
|
||||
|
@ -91,14 +91,14 @@ a.sendemail {
|
||||
/* Icon images
|
||||
---------------------------------------- */
|
||||
.sitehome, .icon-faq, .icon-members, .icon-home, .icon-ucp, .icon-register, .icon-logout,
|
||||
.icon-bookmark, .icon-bump, .icon-subscribe, .icon-unsubscribe, .icon-pages, .icon-search, .icon-notification {
|
||||
.icon-bookmark, .icon-bump, .icon-subscribe, .icon-unsubscribe, .icon-pages, .icon-search, .icon-notification, .icon-pm {
|
||||
background-position: 0 50%;
|
||||
background-repeat: no-repeat;
|
||||
background-image: none;
|
||||
padding: 1px 0 0 17px;
|
||||
}
|
||||
|
||||
ul.linklist.bulletin li.icon-home:before, ul.linklist.bulletin li.icon-ucp:before, ul.linklist.bulletin li.icon-notification:before,
|
||||
ul.linklist.bulletin li.icon-home:before, ul.linklist.bulletin li.icon-ucp:before, ul.linklist.bulletin li.icon-notification:before, ul.linklist.bulletin li.icon-pm:before,
|
||||
ul.linklist.bulletin li.icon-bookmark:before, ul.linklist.bulletin li.icon-bump:before, ul.linklist.bulletin li.icon-subscribe:before, ul.linklist.bulletin li.icon-unsubscribe:before {
|
||||
display: none;
|
||||
}
|
||||
|
@ -708,6 +708,7 @@ a.sendemail {
|
||||
.icon-pages { background-image: url("./images/icon_pages.gif"); }
|
||||
.icon-search { background-image: url("./images/icon_search.gif"); }
|
||||
.icon-notification { background-image: url("./images/icon_notification.gif"); }
|
||||
.icon-pm { background-image: url("./images/icon_pm.gif"); }
|
||||
|
||||
/* Profile & navigation icons */
|
||||
.email-icon, .email-icon a { background-image: url("./images/icon_contact_email.gif"); }
|
||||
|
BIN
phpBB/styles/prosilver/theme/images/icon_pm.gif
Normal file
BIN
phpBB/styles/prosilver/theme/images/icon_pm.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 576 B |
@ -193,7 +193,7 @@ function marklist(id, name, state)
|
||||
<!-- ENDIF -->
|
||||
<!-- IF not S_IS_BOT -->
|
||||
<!-- IF S_USER_LOGGED_IN -->
|
||||
<!-- IF S_DISPLAY_PM --> <a href="{U_PRIVATEMSGS}"><img src="{T_THEME_PATH}/images/icon_mini_message.gif" width="12" height="13" alt="*" /> {PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a><!-- ENDIF -->
|
||||
<!-- IF S_DISPLAY_PM --> <a href="{U_PRIVATEMSGS}"><img src="{T_THEME_PATH}/images/icon_mini_message.gif" width="12" height="13" alt="*" /> {L_PRIVATE_MESSAGES} (<strong>{PRIVATE_MESSAGE_COUNT}</strong>)</a><!-- ENDIF -->
|
||||
<!-- ELSEIF S_REGISTER_ENABLED and not (S_SHOW_COPPA or S_REGISTRATION) --> <a href="{U_REGISTER}"><img src="{T_THEME_PATH}/images/icon_mini_register.gif" width="12" height="13" alt="*" /> {L_REGISTER}</a>
|
||||
<!-- ENDIF -->
|
||||
<!-- ENDIF -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user