Changeset 3778 for trunk/bp-activity/bp-activity-loader.php
- Timestamp:
- 01/21/2011 12:03:25 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity/bp-activity-loader.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-loader.php
r3764 r3778 44 44 $this->table_name = $bp->table_prefix . 'bp_activity'; 45 45 $this->table_name_meta = $bp->table_prefix . 'bp_activity_meta'; 46 47 // Register this in the active components array 48 $bp->active_components[$this->id] = $this->id; 49 50 // The default text for the blogs directory search box 51 $bp->default_search_strings[$this->id] = __( 'Search Activity...', 'buddypress' ); 46 52 } 47 53 … … 69 75 bp_core_new_nav_item( array( 70 76 'name' => __( 'Activity', 'buddypress' ), 71 'slug' => $ bp->activity->slug,77 'slug' => $this->slug, 72 78 'position' => 10, 73 79 'screen_function' => 'bp_activity_screen_my_activity', 74 80 'default_subnav_slug' => 'just-me', 75 'item_css_id' => $ bp->activity->id )81 'item_css_id' => $this->id ) 76 82 ); 77 83 … … 83 89 $user_domain = ( isset( $bp->displayed_user->domain ) ) ? $bp->displayed_user->domain : $bp->loggedin_user->domain; 84 90 $user_login = ( isset( $bp->displayed_user->userdata->user_login ) ) ? $bp->displayed_user->userdata->user_login : $bp->loggedin_user->userdata->user_login; 85 $activity_link = $user_domain . $ bp->activity->slug . '/';91 $activity_link = $user_domain . $this->slug . '/'; 86 92 87 93 // Add the subnav items to the activity nav item if we are using a theme that supports this … … 90 96 'slug' => 'just-me', 91 97 'parent_url' => $activity_link, 92 'parent_slug' => $ bp->activity->slug,98 'parent_slug' => $this->slug, 93 99 'screen_function' => 'bp_activity_screen_my_activity', 94 100 'position' => 10 … … 101 107 'slug' => BP_FRIENDS_SLUG, 102 108 'parent_url' => $activity_link, 103 'parent_slug' => $ bp->activity->slug,109 'parent_slug' => $this->slug, 104 110 'screen_function' => 'bp_activity_screen_friends', 105 111 'position' => 20, … … 114 120 'slug' => BP_GROUPS_SLUG, 115 121 'parent_url' => $activity_link, 116 'parent_slug' => $ bp->activity->slug,122 'parent_slug' => $this->slug, 117 123 'screen_function' => 'bp_activity_screen_groups', 118 124 'position' => 30, … … 126 132 'slug' => 'favorites', 127 133 'parent_url' => $activity_link, 128 'parent_slug' => $ bp->activity->slug,134 'parent_slug' => $this->slug, 129 135 'screen_function' => 'bp_activity_screen_favorites', 130 136 'position' => 40, … … 137 143 'slug' => 'mentions', 138 144 'parent_url' => $activity_link, 139 'parent_slug' => $ bp->activity->slug,145 'parent_slug' => $this->slug, 140 146 'screen_function' => 'bp_activity_screen_mentions', 141 147 'position' => 50,
Note: See TracChangeset
for help on using the changeset viewer.