Changeset 13503 for trunk/src/bp-templates/bp-nouveau/includes/ajax.php
- Timestamp:
- 06/18/2023 04:11:04 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/ajax.php
r13442 r13503 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 59 56 // We need to calculate and return the feed URL for each scope. 60 57 switch ( $scope ) { 61 58 case 'friends': 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 ); 59 $feed_url = bp_loggedin_user_url( bp_members_get_path_chunks( array( bp_nouveau_get_component_slug( 'activity' ), 'friends', array( 'feed' ) ) ) ); 69 60 break; 70 61 case 'groups': 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 ); 62 $feed_url = bp_loggedin_user_url( bp_members_get_path_chunks( array( bp_nouveau_get_component_slug( 'activity' ), 'groups', array( 'feed' ) ) ) ); 78 63 break; 79 64 case 'favorites': 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 ); 65 $feed_url = bp_loggedin_user_url( bp_members_get_path_chunks( array( bp_nouveau_get_component_slug( 'activity' ), 'favorites', array( 'feed' ) ) ) ); 87 66 break; 88 67 case 'mentions': 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 ); 68 $feed_url = bp_loggedin_user_url( bp_members_get_path_chunks( array( bp_nouveau_get_component_slug( 'activity' ), 'mentions', array( 'feed' ) ) ) ); 96 69 97 70 // Get user new mentions
Note: See TracChangeset
for help on using the changeset viewer.