Changeset 1655 for trunk/bp-status/bp-status-templatetags.php
- Timestamp:
- 08/13/2009 01:24:21 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-status/bp-status-templatetags.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-status/bp-status-templatetags.php
r1577 r1655 33 33 $status = get_usermeta( $user_id, 'bp_status' ); 34 34 35 if ( empty($status) || '' == $status || !$status)35 if ( empty($status) ) 36 36 return bp_get_update_status_button( 'text=' . $new_button_text ); 37 37 38 38 $time_since = sprintf( __( '%s ago', 'buddypress' ), bp_core_time_since( $status['recorded_time'] ) ); 39 $content = apply_filters( ' bp_get_the_status', $status['content'] );39 $content = apply_filters( 'the_status_content', $status['content'] ); 40 40 41 41 if ( !(int)$no_anchor && $user_id == $bp->loggedin_user->id ) … … 45 45 $content .= ' ' . bp_get_clear_status_button( 'text=' . $clear_button_text ); 46 46 47 return $content;47 return apply_filters( 'bp_get_the_status', $content ); 48 48 } 49 49 … … 68 68 return false; 69 69 70 return '<div class="generic-button"><a href="' . bp_core_get_user_domain( $user_id ) . '?status=new" id="status-new-status">' . $text . '</a></div>';70 return apply_filters( 'bp_get_update_status_button', '<div class="generic-button"><a href="' . bp_core_get_user_domain( $user_id ) . '?status=new" id="status-new-status">' . $text . '</a></div>' ); 71 71 } 72 72 … … 91 91 return false; 92 92 93 return '<a href="' . bp_core_get_user_domain( $user_id ) . '?status=clear" id="status-clear-status">' . $text . '</a>';93 return apply_filters( 'bp_get_clear_status_button', '<a href="' . bp_core_get_user_domain( $user_id ) . '?status=clear" id="status-clear-status">' . $text . '</a>' ); 94 94 } 95 95 … … 100 100 $user_id = $bp->loggedin_user->id; 101 101 102 echo bp_core_get_user_domain( $user_id ) . BP_STATUS_SLUG . '/add';102 echo apply_filters( 'bp_status_form_action', bp_core_get_user_domain( $user_id ) . BP_STATUS_SLUG . '/add' ); 103 103 } 104 104
Note: See TracChangeset
for help on using the changeset viewer.