Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/23/2008 12:56:37 PM (17 years ago)
Author:
apeatling
Message:

Removed home base requirement

File:
1 edited

Legend:

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

    r391 r394  
    133133
    134134// Begin template tags:
     135function xprofile_get_profile() {
     136    load_template( TEMPLATEPATH . '/profile/profile-loop.php');
     137}
    135138
    136139function bp_has_profile() {
    137140    global $bp, $profile_template;
    138    
     141
    139142    $profile_template = new BP_XProfile_Template($bp['current_userid']);
    140143   
     
    222225}
    223226
    224 function bp_the_avatar() {
    225     global $bp;
    226     echo bp_core_get_avatar( $bp['current_userid'], 2 );
    227 }
    228 
    229 function bp_the_avatar_thumbnail() {
    230     global $bp;
    231     echo bp_core_get_avatar( $bp['current_userid'], 1 );
    232 }
    233 
    234 function bp_loggedinuser_avatar_thumbnail( $width = false, $height = false ) {
    235     global $bp;
    236    
    237     if ( $width && $height )
    238         echo bp_core_get_avatar( $bp['loggedin_userid'], 1, false, $width, $height );
    239     else
    240         echo bp_core_get_avatar( $bp['loggedin_userid'], 1 );
    241 }
    242 
    243 function bp_fetch_user_fullname( $user_id = false, $echo = true ) {
    244     global $bp;
    245    
    246     if ( !$user_id )
    247         $user_id = $bp['current_userid'];
    248    
    249     $data = bp_get_field_data( array( 'First Name', 'Last Name' ), $user_id );
    250    
    251     if ( $echo )
    252         echo ucfirst($data['First Name']) . ' ' . ucfirst($data['Last Name']);
    253     else
    254         return ucfirst($data['First Name']) . ' ' . ucfirst($data['Last Name']);       
    255 }
    256 
    257227function bp_get_field_data( $field, $user_id = null ) {
    258228    return BP_XProfile_ProfileData::get_value_byfieldname( $field, $user_id );
    259 }
    260 
    261 function bp_user_link() {
    262     echo '';
    263 }
    264 
    265 function bp_user_status() {
    266     // TODO: dummy function now, until status component is developed.
    267     return false;
    268229}
    269230
     
    321282}
    322283
    323 function bp_profile_last_updated_date( $user_id = false, $echo = true ) {
    324     global $bp;
    325    
    326     if ( !$user_id )
    327         $user_id = $bp['current_userid'];
    328    
    329     $last_updated = BP_XProfile_ProfileData::get_last_updated( $user_id );
    330 
    331     if ( $echo )
    332         echo $last_updated;
    333     else
    334         return $last_updated;
    335 }
    336 
    337284function bp_profile_last_updated() {
    338285    global $bp;
Note: See TracChangeset for help on using the changeset viewer.