Changeset 3751 for trunk/bp-themes/bp-default/_inc/ajax.php
- Timestamp:
- 01/20/2011 03:56:04 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/_inc/ajax.php
r3698 r3751 95 95 add_action( 'wp_ajax_forums_filter', 'bp_dtheme_object_template_loader' ); 96 96 97 / * This function will load the activity loop template when activity is requested via AJAX */97 // This function will load the activity loop template when activity is requested via AJAX 98 98 function bp_dtheme_activity_template_loader() { 99 99 global $bp; 100 100 101 / * We need to calculate and return the feed URL for each scope */102 $feed_url = site_url( BP_ACTIVITY_SLUG. '/feed/' );101 // We need to calculate and return the feed URL for each scope 102 $feed_url = home_url( bp_get_activity_root_slug() . '/feed/' ); 103 103 104 104 switch ( $_POST['scope'] ) { 105 105 case 'friends': 106 $feed_url = $bp->loggedin_user->domain . BP_ACTIVITY_SLUG. '/friends/feed/';106 $feed_url = $bp->loggedin_user->domain . bp_get_activity_slug() . '/friends/feed/'; 107 107 break; 108 108 case 'groups': 109 $feed_url = $bp->loggedin_user->domain . BP_ACTIVITY_SLUG. '/groups/feed/';109 $feed_url = $bp->loggedin_user->domain . bp_get_activity_slug() . '/groups/feed/'; 110 110 break; 111 111 case 'favorites': 112 $feed_url = $bp->loggedin_user->domain . BP_ACTIVITY_SLUG. '/favorites/feed/';112 $feed_url = $bp->loggedin_user->domain . bp_get_activity_slug() . '/favorites/feed/'; 113 113 break; 114 114 case 'mentions': 115 $feed_url = $bp->loggedin_user->domain . BP_ACTIVITY_SLUG. '/mentions/feed/';115 $feed_url = $bp->loggedin_user->domain . bp_get_activity_slug() . '/mentions/feed/'; 116 116 delete_user_meta( $bp->loggedin_user->id, 'bp_new_mention_count' ); 117 117 break;
Note: See TracChangeset
for help on using the changeset viewer.