Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/20/2011 10:53:49 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Second pass at huge component refactor.

Move component files out of root directory and append '-loader' to the file names. Split those files up into smaller pieces.

Abstract 'settings' component out of 'core' and into its own component for future extension, including new template files in bp-default.

Append '-sa' to bbPress bridge file for 'Stand Alone' compatibility, to make room for bbPress plugin compatibility layer.

Various bug fixes through-out all components. Various code clean-up and documentation through-out all components.

Still more refactoring to do.

File:
1 edited

Legend:

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

    r3460 r3757  
    11<?php if ( bp_is_my_profile() ) : ?>
     2
    23    <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    34        <ul>
    4             <?php bp_get_options_nav() ?>
     5
     6            <?php bp_get_options_nav(); ?>
     7
    58        </ul>
    69    </div><!-- .item-list-tabs -->
     10
    711<?php endif; ?>
    812
    9 <?php do_action( 'bp_before_profile_content' ) ?>
     13<?php do_action( 'bp_before_profile_content' ); ?>
    1014
    1115<div class="profile" role="main">
    12     <?php if ( 'edit' == bp_current_action() ) : ?>
    13         <?php locate_template( array( 'members/single/profile/edit.php' ), true ) ?>
    1416
    15     <?php elseif ( 'change-avatar' == bp_current_action() ) : ?>
    16         <?php locate_template( array( 'members/single/profile/change-avatar.php' ), true ) ?>
     17    <?php
     18        if ( 'edit' == bp_current_action() ) :
     19            locate_template( array( 'members/single/profile/edit.php' ), true );
    1720
    18     <?php else : ?>
    19         <?php locate_template( array( 'members/single/profile/profile-loop.php' ), true ) ?>
     21        elseif ( 'change-avatar' == bp_current_action() ) :
     22            locate_template( array( 'members/single/profile/change-avatar.php' ), true );
    2023
    21     <?php endif; ?>
     24        else :
     25            locate_template( array( 'members/single/profile/profile-loop.php' ), true );
     26
     27        endif;
     28    ?>
     29
    2230</div><!-- .profile -->
    2331
    24 <?php do_action( 'bp_after_profile_content' ) ?>
     32<?php do_action( 'bp_after_profile_content' ); ?>
Note: See TracChangeset for help on using the changeset viewer.