Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/10/2011 06:32:02 AM (14 years ago)
Author:
djpaul
Message:

Tidy up whitespace. Fixes #3466, props cnorris23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-activity.php

    r4954 r4961  
    9494                $filter = 'bp_groups_multiple_new_membership_requests_notification';
    9595                $notification_link = $group_link . 'admin/membership-requests/?n=1';
    96                
     96
    9797                if ( 'string' == $format ) {
    9898                    return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . __( 'Group Membership Requests', 'buddypress' ) . '">' . $text . '</a>', $group_link, $total_items, $group->name, $text, $notification_link );
     
    108108                $filter = 'bp_groups_single_new_membership_request_notification';
    109109                $notification_link = $group_link . 'admin/membership-requests/?n=1';
    110                
     110
    111111                if ( 'string' == $format ) {
    112112                    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 );
     
    118118                }
    119119            }
    120            
     120
    121121            break;
    122122
     
    129129            if ( (int)$total_items > 1 ) {
    130130                $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';
    132132                $notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '/?n=1';
    133                
     133
    134134                if ( 'string' == $format ) {
    135135                    return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . __( 'Groups', 'buddypress' ) . '">' . $text . '</a>', $total_items, $group->name, $text, $notification_link );
     
    144144                $filter = 'bp_groups_single_membership_request_accepted_notification';
    145145                $notification_link = $group_link . '?n=1';
    146                
     146
    147147                if ( 'string' == $format ) {
    148148                    return apply_filters( $filter, '<a href="' . $notification_link . '">' . $text . '</a>', $group_link, $group->name, $text, $notification_link );
     
    162162            $group = new BP_Groups_Group( $group_id );
    163163            $group_link = bp_get_group_permalink( $group );
    164            
     164
    165165            if ( (int)$total_items > 1 ) {
    166166                $text = sprintf( __( '%d rejected group membership requests', 'buddypress' ), (int)$total_items, $group->name );
    167167                $filter = 'bp_groups_multiple_membership_request_rejected_notification';
    168168                $notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '/?n=1';
    169                
     169
    170170                if ( 'string' == $format ) {
    171171                    return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . __( 'Groups', 'buddypress' ) . '">' . $text . '</a>', $total_items, $group->name );
     
    180180                $filter = 'bp_groups_single_membership_request_rejected_notification';
    181181                $notification_link = $group_link . '?n=1';
    182                
     182
    183183                if ( 'string' == $format ) {
    184184                    return apply_filters( $filter, '<a href="' . $notification_link . '">' . $text . '</a>', $group_link, $group->name, $text, $notification_link );
     
    203203                $filter = 'bp_groups_multiple_member_promoted_to_admin_notification';
    204204                $notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '?n=1';
    205                
     205
    206206                if ( 'string' == $format ) {
    207207                    return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . __( 'Groups', 'buddypress' ) . '">' . $text . '</a>', $total_items, $text, $notification_link );
     
    216216                $filter = 'bp_groups_single_member_promoted_to_admin_notification';
    217217                $notification_link = $group_link . '?n=1';
    218                
     218
    219219                if ( 'string' == $format ) {
    220220                    return apply_filters( $filter, '<a href="' . $notification_link . '">' . $text . '</a>', $group_link, $group->name, $text, $notification_link );
     
    239239                $filter = 'bp_groups_multiple_member_promoted_to_mod_notification';
    240240                $notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '?n=1';
    241                
     241
    242242                if ( 'string' == $format ) {
    243243                    return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . __( 'Groups', 'buddypress' ) . '">' . $text . '</a>', $total_items, $text, $notification_link );
     
    252252                $filter = 'bp_groups_single_member_promoted_to_mod_notification';
    253253                $notification_link = $group_link . '?n=1';
    254                
     254
    255255                if ( 'string' == $format ) {
    256256                    return apply_filters( $filter, '<a href="' . $notification_link . '">' . $text . '</a>', $group_link, $group->name, $text, $notification_link );
     
    267267        case 'group_invite':
    268268            $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
    272272            $notification_link = bp_loggedin_user_domain() . bp_get_groups_slug() . '/invites/?n=1';
    273273
     
    275275                $text = sprintf( __( 'You have %d new group invitations', 'buddypress' ), (int)$total_items );
    276276                $filter = 'bp_groups_multiple_group_invite_notification';
    277                
     277
    278278                if ( 'string' == $format ) {
    279279                    return apply_filters( $filter, '<a href="' . $notification_link . '" title="' . __( 'Group Invites', 'buddypress' ) . '">' . $text . '</a>', $total_items, $text, $notification_link );
     
    287287                $text = sprintf( __( 'You have an invitation to the group: %s', 'buddypress' ), $group->name );
    288288                $filter = 'bp_groups_single_group_invite_notification';
    289                
     289
    290290                if ( 'string' == $format ) {
    291291                    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.