Changeset 13442 for trunk/src/bp-templates/bp-nouveau/includes/ajax.php
- Timestamp:
- 03/27/2023 06:19:06 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/ajax.php
r13136 r13442 4 4 * 5 5 * @since 3.0.0 6 * @version 1 0.0.06 * @version 12.0.0 7 7 */ 8 8 … … 54 54 } 55 55 56 $activity_slug = bp_nouveau_get_component_slug( 'activity' ); 57 $custom_activity_slug = bp_rewrites_get_slug( 'members', 'member_' . $activity_slug, $activity_slug ); 58 56 59 // We need to calculate and return the feed URL for each scope. 57 60 switch ( $scope ) { 58 61 case 'friends': 59 $feed_url = bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/friends/feed/'; 62 $feed_url = bp_loggedin_user_url( 63 array( 64 'single_item_component' => $custom_activity_slug, 65 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $activity_slug . '_friends', 'friends' ), 66 'single_item_action_variables' => array( 'feed' ), 67 ) 68 ); 60 69 break; 61 70 case 'groups': 62 $feed_url = bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/groups/feed/'; 71 $feed_url = bp_loggedin_user_url( 72 array( 73 'single_item_component' => $custom_activity_slug, 74 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $activity_slug . '_groups', 'groups' ), 75 'single_item_action_variables' => array( 'feed' ), 76 ) 77 ); 63 78 break; 64 79 case 'favorites': 65 $feed_url = bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/favorites/feed/'; 80 $feed_url = bp_loggedin_user_url( 81 array( 82 'single_item_component' => $custom_activity_slug, 83 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $activity_slug . '_favorites', 'favorites' ), 84 'single_item_action_variables' => array( 'feed' ), 85 ) 86 ); 66 87 break; 67 88 case 'mentions': 68 $feed_url = bp_loggedin_user_domain() . bp_nouveau_get_component_slug( 'activity' ) . '/mentions/feed/'; 89 $feed_url = bp_loggedin_user_url( 90 array( 91 'single_item_component' => $custom_activity_slug, 92 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $activity_slug . '_mentions', 'mentions' ), 93 'single_item_action_variables' => array( 'feed' ), 94 ) 95 ); 69 96 70 97 // Get user new mentions
Note: See TracChangeset
for help on using the changeset viewer.