Changeset 4961 for trunk/bp-groups/bp-groups-activity.php
- Timestamp:
- 08/10/2011 06:32:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-activity.php
r4954 r4961 94 94 $filter = 'bp_groups_multiple_new_membership_requests_notification'; 95 95 $notification_link = $group_link . 'admin/membership-requests/?n=1'; 96 96 97 97 if ( 'string' == $format ) { 98 98 return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . __( 'Group Membership Requests', 'buddypress' ) . '">' . $text . '</a>', $group_link, $total_items, $group->name, $text, $notification_link ); … … 108 108 $filter = 'bp_groups_single_new_membership_request_notification'; 109 109 $notification_link = $group_link . 'admin/membership-requests/?n=1'; 110 110 111 111 if ( 'string' == $format ) { 112 112 return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . sprintf( __( '%s requests group membership', 'buddypress' ), $user_fullname ) . '">' . $text . '</a>', $group_link, $user_fullname, $group->name, $text, $notification_link ); … … 118 118 } 119 119 } 120 120 121 121 break; 122 122 … … 129 129 if ( (int)$total_items > 1 ) { 130 130 $text = sprintf( __( '%d accepted group membership requests', 'buddypress' ), (int)$total_items, $group->name ); 131 $filter = 'bp_groups_multiple_membership_request_accepted_notification'; 131 $filter = 'bp_groups_multiple_membership_request_accepted_notification'; 132 132 $notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '/?n=1'; 133 133 134 134 if ( 'string' == $format ) { 135 135 return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . __( 'Groups', 'buddypress' ) . '">' . $text . '</a>', $total_items, $group->name, $text, $notification_link ); … … 144 144 $filter = 'bp_groups_single_membership_request_accepted_notification'; 145 145 $notification_link = $group_link . '?n=1'; 146 146 147 147 if ( 'string' == $format ) { 148 148 return apply_filters( $filter, '<a href="' . $notification_link . '">' . $text . '</a>', $group_link, $group->name, $text, $notification_link ); … … 162 162 $group = new BP_Groups_Group( $group_id ); 163 163 $group_link = bp_get_group_permalink( $group ); 164 164 165 165 if ( (int)$total_items > 1 ) { 166 166 $text = sprintf( __( '%d rejected group membership requests', 'buddypress' ), (int)$total_items, $group->name ); 167 167 $filter = 'bp_groups_multiple_membership_request_rejected_notification'; 168 168 $notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '/?n=1'; 169 169 170 170 if ( 'string' == $format ) { 171 171 return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . __( 'Groups', 'buddypress' ) . '">' . $text . '</a>', $total_items, $group->name ); … … 180 180 $filter = 'bp_groups_single_membership_request_rejected_notification'; 181 181 $notification_link = $group_link . '?n=1'; 182 182 183 183 if ( 'string' == $format ) { 184 184 return apply_filters( $filter, '<a href="' . $notification_link . '">' . $text . '</a>', $group_link, $group->name, $text, $notification_link ); … … 203 203 $filter = 'bp_groups_multiple_member_promoted_to_admin_notification'; 204 204 $notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '?n=1'; 205 205 206 206 if ( 'string' == $format ) { 207 207 return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . __( 'Groups', 'buddypress' ) . '">' . $text . '</a>', $total_items, $text, $notification_link ); … … 216 216 $filter = 'bp_groups_single_member_promoted_to_admin_notification'; 217 217 $notification_link = $group_link . '?n=1'; 218 218 219 219 if ( 'string' == $format ) { 220 220 return apply_filters( $filter, '<a href="' . $notification_link . '">' . $text . '</a>', $group_link, $group->name, $text, $notification_link ); … … 239 239 $filter = 'bp_groups_multiple_member_promoted_to_mod_notification'; 240 240 $notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '?n=1'; 241 241 242 242 if ( 'string' == $format ) { 243 243 return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . __( 'Groups', 'buddypress' ) . '">' . $text . '</a>', $total_items, $text, $notification_link ); … … 252 252 $filter = 'bp_groups_single_member_promoted_to_mod_notification'; 253 253 $notification_link = $group_link . '?n=1'; 254 254 255 255 if ( 'string' == $format ) { 256 256 return apply_filters( $filter, '<a href="' . $notification_link . '">' . $text . '</a>', $group_link, $group->name, $text, $notification_link ); … … 267 267 case 'group_invite': 268 268 $group_id = $item_id; 269 $group = new BP_Groups_Group( $group_id ); 270 $group_link = bp_get_group_permalink( $group ); 271 269 $group = new BP_Groups_Group( $group_id ); 270 $group_link = bp_get_group_permalink( $group ); 271 272 272 $notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '/invites/?n=1'; 273 273 … … 275 275 $text = sprintf( __( 'You have %d new group invitations', 'buddypress' ), (int)$total_items ); 276 276 $filter = 'bp_groups_multiple_group_invite_notification'; 277 277 278 278 if ( 'string' == $format ) { 279 279 return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . __( 'Group Invites', 'buddypress' ) . '">' . $text . '</a>', $total_items, $text, $notification_link ); … … 287 287 $text = sprintf( __( 'You have an invitation to the group: %s', 'buddypress' ), $group->name ); 288 288 $filter = 'bp_groups_single_group_invite_notification'; 289 289 290 290 if ( 'string' == $format ) { 291 291 return apply_filters( $filter, '<a href="' . $notification_link . '">' . $text . '</a>', $group_link, $group->name, $text, $notification_link );
Note: See TracChangeset
for help on using the changeset viewer.