Changeset 601 for trunk/bp-xprofile.php
- Timestamp:
- 12/02/2008 09:04:12 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile.php
r574 r601 15 15 /* Functions for handling the admin area tabs for administrators */ 16 16 require_once( 'bp-xprofile/bp-xprofile-admin.php' ); 17 18 /* Functions for applying filters to Xprofile specfic output */ 19 require_once( 'bp-xprofile/bp-xprofile-filters.php' ); 17 20 18 21 /* Functions to handle the modification and saving of signup pages */ … … 421 424 422 425 if ( ( $wire_post->item_id == $bp['loggedin_userid'] && $wire_post->user_id == $bp['loggedin_userid'] ) || ( $wire_post->item_id == $bp['current_userid'] && $wire_post->user_id == $bp['current_userid'] ) ) { 426 423 427 $content = sprintf( __('%s wrote on their own wire', 'buddypress'), bp_core_get_userlink($wire_post->user_id) ) . ': <span class="time-since">%s</span>'; 428 $return_values['primary_link'] = bp_core_get_userlink( $wire_post->user_id, false, true ); 429 424 430 } else if ( ( $wire_post->item_id != $bp['loggedin_userid'] && $wire_post->user_id == $bp['loggedin_userid'] ) || ( $wire_post->item_id != $bp['current_userid'] && $wire_post->user_id == $bp['current_userid'] ) ) { 425 $content = sprintf( __('%s wrote on %s wire', 'buddypress'), bp_core_get_userlink($wire_post->user_id), bp_core_get_userlink( $wire_post->item_id, false, false, true, true ) ) . ': <span class="time-since">%s</span>'; 431 432 $content = sprintf( __('%s wrote on %s wire', 'buddypress'), bp_core_get_userlink($wire_post->user_id), bp_core_get_userlink( $wire_post->item_id, false, false, true, true ) ) . ': <span class="time-since">%s</span>'; 433 $return_values['primary_link'] = bp_core_get_userlink( $wire_post->item_id, false, true ); 434 426 435 } 427 436 428 437 $content .= '<blockquote>' . bp_create_excerpt($wire_post->content) . '</blockquote>'; 429 return $content; 438 $return_values['content'] = $content; 439 440 return $return_values; 430 441 break; 431 442 case 'updated_profile': … … 434 445 if ( !$profile_group ) 435 446 return false; 436 437 return sprintf( __('%s updated the "%s" information on their profile', 'buddypress'), bp_core_get_userlink($user_id), '<a href="' . $bp['current_domain'] . $bp['profile']['slug'] . '">' . $profile_group->name . '</a>' ) . ' <span class="time-since">%s</span>'; 447 448 return array( 449 'primary_link' => bp_core_get_userlink( $user_id, false, true ), 450 'content' => sprintf( __('%s updated the "%s" information on their profile', 'buddypress'), bp_core_get_userlink($user_id), '<a href="' . $bp['current_domain'] . $bp['profile']['slug'] . '">' . $profile_group->name . '</a>' ) . ' <span class="time-since">%s</span>' 451 ); 438 452 break; 439 453 }
Note: See TracChangeset
for help on using the changeset viewer.