Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/13/2009 01:24:21 AM (17 years ago)
Author:
apeatling
Message:

Add first revision of new default BuddyPress parent theme. This theme is designed to be extended from with child themes, not used directly. The original default themes from the old two theme system are deprecated, but will remain compatible with 1.1. Still more work to do there.

File:
1 edited

Legend:

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

    r1577 r1655  
    3333        $status = get_usermeta( $user_id, 'bp_status' );
    3434       
    35         if ( empty($status) || '' == $status || !$status )
     35        if ( empty($status) )
    3636            return bp_get_update_status_button( 'text=' . $new_button_text );
    3737       
    3838        $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'] );
    4040       
    4141        if ( !(int)$no_anchor && $user_id == $bp->loggedin_user->id )
     
    4545        $content .= ' ' . bp_get_clear_status_button( 'text=' . $clear_button_text );
    4646       
    47         return $content;
     47        return apply_filters( 'bp_get_the_status', $content );
    4848    }
    4949   
     
    6868            return false;
    6969       
    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>' );
    7171    }
    7272
     
    9191            return false;
    9292       
    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>' );
    9494    }
    9595
     
    100100        $user_id = $bp->loggedin_user->id;
    101101       
    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' );
    103103}
    104104
Note: See TracChangeset for help on using the changeset viewer.