Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/22/2011 10:13:25 AM (14 years ago)
Author:
johnjamesjacoby
Message:

First pass at normalizing bp-default template files. This includes:

A ton of code cleanup
Using new functions found in BP 1.3
Template header documentation
Improve pagination style and position on root component templates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/members/single/profile.php

    r3808 r3810  
     1<?php
     2
     3/**
     4 * BuddyPress - Users Profile
     5 *
     6 * @package BuddyPress
     7 * @subpackage bp-default
     8 */
     9
     10?>
     11
    112<?php if ( bp_is_my_profile() ) : ?>
    213
     
    1627
    1728    <?php
     29        // Profile Edit
    1830        if ( bp_is_current_action( 'edit' ) )
    1931            locate_template( array( 'members/single/profile/edit.php' ), true );
     32
     33        // Change Avatar
    2034        elseif ( bp_is_current_action( 'change-avatar' ) )
    2135            locate_template( array( 'members/single/profile/change-avatar.php' ), true );
     36
     37        // Display XProfile
    2238        elseif ( bp_is_active( 'profile' ) )
    2339            locate_template( array( 'members/single/profile/profile-loop.php' ), true );
     40
     41        // Display WordPress profile (fallback)
    2442        else
    2543            locate_template( array( 'members/single/profile/profile-wp.php' ), true );
Note: See TracChangeset for help on using the changeset viewer.