[ticket/11103] Add Notification Settings link in flyout menu

PHPBB3-11103
This commit is contained in:
Nathan Guse 2013-02-15 16:02:33 -06:00
parent cdc766c90f
commit 7ad577a86a
5 changed files with 15 additions and 0 deletions

View file

@ -5277,6 +5277,7 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
'UNREAD_NOTIFICATIONS_COUNT' => ($notifications !== false) ? $notifications['unread_count'] : '', 'UNREAD_NOTIFICATIONS_COUNT' => ($notifications !== false) ? $notifications['unread_count'] : '',
'NOTIFICATIONS_COUNT' => ($notifications !== false) ? $user->lang('NOTIFICATIONS_COUNT', $notifications['unread_count']) : '', 'NOTIFICATIONS_COUNT' => ($notifications !== false) ? $user->lang('NOTIFICATIONS_COUNT', $notifications['unread_count']) : '',
'U_VIEW_ALL_NOTIFICATIONS' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=ucp_notifications'), 'U_VIEW_ALL_NOTIFICATIONS' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=ucp_notifications'),
'U_NOTIFICATION_SETTINGS' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=ucp_notifications&mode=notification_options'),
'S_NOTIFICATIONS_DISPLAY' => $config['load_notifications'], 'S_NOTIFICATIONS_DISPLAY' => $config['load_notifications'],
'S_USER_NEW_PRIVMSG' => $user->data['user_new_privmsg'], 'S_USER_NEW_PRIVMSG' => $user->data['user_new_privmsg'],

View file

@ -143,6 +143,7 @@
<div class="pointer"><div class="pointer_inner"></div></div> <div class="pointer"><div class="pointer_inner"></div></div>
<div class="header"> <div class="header">
{L_NOTIFICATIONS} {L_NOTIFICATIONS}
<span class="header_settings"><a href="{U_NOTIFICATION_SETTINGS}">{L_SETTINGS}</a></span>
</div> </div>
<ul> <ul>

View file

@ -713,6 +713,12 @@ p.rules a {
border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0;
} }
#notification_list > .header > .header_settings {
float: right;
font-weight: normal;
text-transform: none;
}
#notification_list > .footer { #notification_list > .footer {
text-align: center; text-align: center;
font-size: 1.2em; font-size: 1.2em;

View file

@ -157,6 +157,7 @@ function marklist(id, name, state)
<div id="notification_list" class="notification_list"> <div id="notification_list" class="notification_list">
<div class="row1 header"> <div class="row1 header">
{L_NOTIFICATIONS} {L_NOTIFICATIONS}
<span class="header_settings"><a href="{U_NOTIFICATION_SETTINGS}">{L_SETTINGS}</a></span>
</div> </div>
<div class="notification_scroll"> <div class="notification_scroll">

View file

@ -1167,6 +1167,12 @@ a.imageset {
border-bottom: 0; border-bottom: 0;
} }
#notification_list > .header > .header_settings {
float: right;
font-weight: normal;
text-transform: none;
}
#notification_list .footer { #notification_list .footer {
width: 300px; width: 300px;
text-align: center; text-align: center;