- Timestamp:
- 03/15/2023 08:16:46 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-notifications/bp-notifications-template.php
r13433 r13436 61 61 if ( 0 === $user_id ) { 62 62 $user_id = bp_loggedin_user_id(); 63 $domain = bp_loggedin_user_domain();64 } else {65 $domain = bp_members_get_user_url( (int) $user_id );66 63 } 67 64 68 $retval = trailingslashit( $domain . bp_get_notifications_slug() ); 65 $retval = bp_members_get_user_url( 66 $user_id, 67 array( 68 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_notifications', bp_get_notifications_slug() ), 69 ) 70 ); 69 71 70 72 /** … … 102 104 if ( 0 === $user_id ) { 103 105 $user_id = bp_loggedin_user_id(); 104 $domain = bp_loggedin_user_domain();105 } else {106 $domain = bp_members_get_user_url( (int) $user_id );107 106 } 108 107 109 $retval = trailingslashit( $domain . bp_get_notifications_slug() . '/unread' ); 108 $retval = bp_members_get_user_url( 109 $user_id, 110 array( 111 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_notifications', bp_get_notifications_slug() ), 112 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_notifications_unread', 'unread' ), 113 ) 114 ); 110 115 111 116 /** … … 142 147 if ( 0 === $user_id ) { 143 148 $user_id = bp_loggedin_user_id(); 144 $domain = bp_loggedin_user_domain();145 } else {146 $domain = bp_members_get_user_url( (int) $user_id );147 149 } 148 150 149 $retval = trailingslashit( $domain . bp_get_notifications_slug() . '/read' ); 151 $retval = bp_members_get_user_url( 152 $user_id, 153 array( 154 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_notifications', bp_get_notifications_slug() ), 155 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_notifications_read', 'read' ), 156 ) 157 ); 150 158 151 159 /**
Note: See TracChangeset
for help on using the changeset viewer.