Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/20/2011 10:53:49 AM (14 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/messages.php

    r3460 r3757  
    11<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    22    <ul>
    3         <?php bp_get_options_nav() ?>
     3
     4        <?php bp_get_options_nav(); ?>
     5
    46    </ul>
    57</div><!-- .item-list-tabs -->
    68
    7 <?php if ( 'compose' == bp_current_action() ) : ?>
    8     <?php locate_template( array( 'members/single/messages/compose.php' ), true ) ?>
     9<?php
    910
    10 <?php elseif ( 'view' == bp_current_action() ) : ?>
    11     <?php locate_template( array( 'members/single/messages/single.php' ), true ) ?>
     11    if ( 'compose' == bp_current_action() ) :
     12        locate_template( array( 'members/single/messages/compose.php' ), true );
    1213
    13 <?php else : ?>
     14    elseif ( 'view' == bp_current_action() ) :
     15        locate_template( array( 'members/single/messages/single.php' ), true );
    1416
    15     <?php do_action( 'bp_before_member_messages_content' ) ?>
     17    else :
     18        do_action( 'bp_before_member_messages_content' ); ?>
    1619
    1720    <div class="messages" role="main">
    18         <?php if ( 'notices' == bp_current_action() ) : ?>
    19             <?php locate_template( array( 'members/single/messages/notices-loop.php' ), true ) ?>
    2021
    21         <?php else : ?>
    22             <?php locate_template( array( 'members/single/messages/messages-loop.php' ), true ) ?>
     22        <?php
     23            if ( 'notices' == bp_current_action() ) :
     24                locate_template( array( 'members/single/messages/notices-loop.php' ), true );
    2325
    24         <?php endif; ?>
     26            else :
     27                locate_template( array( 'members/single/messages/messages-loop.php' ), true );
     28
     29            endif;
     30        ?>
     31
    2532    </div><!-- .messages -->
    2633
    27     <?php do_action( 'bp_after_member_messages_content' ) ?>
     34    <?php do_action( 'bp_after_member_messages_content' ); ?>
    2835
    2936<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.