Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/09/2011 05:40:12 PM (14 years ago)
Author:
djpaul
Message:

Adds additional arguments to the BP_Button class to allow for greater customisation in themes. Fixes #2711, props johnjamesjacoby.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-templatetags.php

    r3523 r3685  
    220220                    'wrapper_class'     => 'friendship-button pending',
    221221                    'wrapper_id'        => 'friendship-button-' . $potential_friend_id,
    222                     'link_class'        => 'requested',
    223222                    'link_href'         => trailingslashit( $bp->loggedin_user->domain . $bp->friends->slug . '/requests' ),
    224223                    'link_text'         => __( 'Friendship Requested', 'buddypress' ),
    225                     'link_title'        => __( 'Friendship Requested', 'buddypress' )
     224                    'link_title'        => __( 'Friendship Requested', 'buddypress' ),
     225                    'link_class'        => 'friendship-button pending requested'
    226226                );
    227227                break;
     
    235235                    'wrapper_class'     => 'friendship-button is_friend',
    236236                    'wrapper_id'        => 'friendship-button-' . $potential_friend_id,
    237                     'link_class'        => '',
    238237                    'link_href'         => wp_nonce_url( $bp->loggedin_user->domain . $bp->friends->slug . '/remove-friend/' . $potential_friend_id . '/', 'friends_remove_friend' ),
    239238                    'link_text'         => __( 'Cancel Friendship', 'buddypress' ),
     
    241240                    'link_id'           => 'friend-' . $potential_friend_id,
    242241                    'link_rel'          => 'remove',
    243                     'link_class'        => 'remove'
     242                    'link_class'        => 'friendship-button is_friend remove'
    244243                );
    245244                break;
     
    253252                    'wrapper_class'     => 'friendship-button not_friends',
    254253                    'wrapper_id'        => 'friendship-button-' . $potential_friend_id,
    255                     'link_class'        => '',
    256254                    'link_href'         => wp_nonce_url( $bp->loggedin_user->domain . $bp->friends->slug . '/add-friend/' . $potential_friend_id . '/', 'friends_add_friend' ),
    257255                    'link_text'         => __( 'Add Friend', 'buddypress' ),
     
    259257                    'link_id'           => 'friend-' . $potential_friend_id,
    260258                    'link_rel'          => 'add',
    261                     'link_class'        => 'add'
     259                    'link_class'        => 'friendship-button not_friends add'
    262260                );
    263261                break;
Note: See TracChangeset for help on using the changeset viewer.