Changeset 5704 for trunk/bp-friends/bp-friends-template.php
- Timestamp:
- 02/11/2012 02:45:59 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends/bp-friends-template.php
r5416 r5704 60 60 global $bp; ?> 61 61 62 <li<?php if ( !bp_action_variable( 0 ) || bp_is_action_variable( 'recently-active', 0 ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( $bp->displayed_user->domain. bp_get_friends_slug() . '/my-friends/recently-active' ) ?>"><?php _e( 'Recently Active', 'buddypress' ) ?></a></li>63 <li<?php if ( bp_is_action_variable( 'newest', 0 ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( $bp->displayed_user->domain. bp_get_friends_slug() . '/my-friends/newest' ) ?>"><?php _e( 'Newest', 'buddypress' ) ?></a></li>64 <li<?php if ( bp_is_action_variable( 'alphabetically', 0 ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( $bp->displayed_user->domain. bp_get_friends_slug() . '/my-friends/alphabetically' ) ?>"><?php _e( 'Alphabetically', 'buddypress' ) ?></a></li>62 <li<?php if ( !bp_action_variable( 0 ) || bp_is_action_variable( 'recently-active', 0 ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_friends_slug() . '/my-friends/recently-active' ) ?>"><?php _e( 'Recently Active', 'buddypress' ) ?></a></li> 63 <li<?php if ( bp_is_action_variable( 'newest', 0 ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_friends_slug() . '/my-friends/newest' ) ?>"><?php _e( 'Newest', 'buddypress' ) ?></a></li> 64 <li<?php if ( bp_is_action_variable( 'alphabetically', 0 ) ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_friends_slug() . '/my-friends/alphabetically' ) ?>"><?php _e( 'Alphabetically', 'buddypress' ) ?></a></li> 65 65 66 66 <?php … … 99 99 100 100 <div class="info-group"> 101 <h4><?php bp_word_or_name( __( "My Friends", 'buddypress' ), __( "%s's Friends", 'buddypress' ) ) ?> (<?php echo BP_Friends_Friendship::total_friend_count( bp_displayed_user_id() ) ?>) <span><a href="<?php echo trailingslashit( $bp->displayed_user->domain. bp_get_friends_slug() ) ?>"><?php _e('See All', 'buddypress') ?></a></span></h4>101 <h4><?php bp_word_or_name( __( "My Friends", 'buddypress' ), __( "%s's Friends", 'buddypress' ) ) ?> (<?php echo BP_Friends_Friendship::total_friend_count( bp_displayed_user_id() ) ?>) <span><a href="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_friends_slug() ) ?>"><?php _e('See All', 'buddypress') ?></a></span></h4> 102 102 103 103 <?php if ( $friend_ids ) { ?> … … 198 198 global $friends_template, $bp; 199 199 200 $action = $bp->displayed_user->domain. bp_get_friends_slug() . '/my-friends/search/';200 $action = bp_displayed_user_domain() . bp_get_friends_slug() . '/my-friends/search/'; 201 201 $label = __( 'Filter Friends', 'buddypress' ); ?> 202 202 … … 320 320 'wrapper_class' => 'friendship-button pending', 321 321 'wrapper_id' => 'friendship-button-' . $potential_friend_id, 322 'link_href' => trailingslashit( $bp->loggedin_user->domain. bp_get_friends_slug() . '/requests' ),322 'link_href' => trailingslashit( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests' ), 323 323 'link_text' => __( 'Friendship Requested', 'buddypress' ), 324 324 'link_title' => __( 'Friendship Requested', 'buddypress' ), … … 335 335 'wrapper_class' => 'friendship-button is_friend', 336 336 'wrapper_id' => 'friendship-button-' . $potential_friend_id, 337 'link_href' => wp_nonce_url( $bp->loggedin_user->domain. bp_get_friends_slug() . '/remove-friend/' . $potential_friend_id . '/', 'friends_remove_friend' ),337 'link_href' => wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/remove-friend/' . $potential_friend_id . '/', 'friends_remove_friend' ), 338 338 'link_text' => __( 'Cancel Friendship', 'buddypress' ), 339 339 'link_title' => __( 'Cancel Friendship', 'buddypress' ), … … 352 352 'wrapper_class' => 'friendship-button not_friends', 353 353 'wrapper_id' => 'friendship-button-' . $potential_friend_id, 354 'link_href' => wp_nonce_url( $bp->loggedin_user->domain. bp_get_friends_slug() . '/add-friend/' . $potential_friend_id . '/', 'friends_add_friend' ),354 'link_href' => wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/add-friend/' . $potential_friend_id . '/', 'friends_add_friend' ), 355 355 'link_text' => __( 'Add Friend', 'buddypress' ), 356 356 'link_title' => __( 'Add Friend', 'buddypress' ), … … 410 410 } 411 411 412 return apply_filters( 'bp_get_friend_accept_request_link', wp_nonce_url( $bp->loggedin_user->domain. bp_get_friends_slug() . '/requests/accept/' . $friendship_id, 'friends_accept_friendship' ) );412 return apply_filters( 'bp_get_friend_accept_request_link', wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/accept/' . $friendship_id, 'friends_accept_friendship' ) ); 413 413 } 414 414 … … 424 424 } 425 425 426 return apply_filters( 'bp_get_friend_reject_request_link', wp_nonce_url( $bp->loggedin_user->domain. bp_get_friends_slug() . '/requests/reject/' . $friendship_id, 'friends_reject_friendship' ) );426 return apply_filters( 'bp_get_friend_reject_request_link', wp_nonce_url( bp_loggedin_user_domain() . bp_get_friends_slug() . '/requests/reject/' . $friendship_id, 'friends_reject_friendship' ) ); 427 427 } 428 428
Note: See TracChangeset
for help on using the changeset viewer.