Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/15/2009 01:20:07 PM (16 years ago)
Author:
apeatling
Message:

Added left hand menu's to single item pages. This will allow extra space for custom content and other pieces of missing information.

Moved template file selection for groups and members pages into a home.php template file. This will give greater control over the template names and locations.

File:
1 edited

Legend:

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

    r2170 r2179  
    1 <?php get_header() ?>
     1<div class="item-list-tabs no-ajax" id="user-subnav">
     2    <ul>
     3        <?php if ( bp_is_my_profile() ) : ?>
     4            <?php bp_get_options_nav() ?>
     5        <?php endif; ?>
    26
    3     <?php do_action( 'bp_before_directory_members_content' ) ?>
     7        <li id="members-order-select" class="last filter">
    48
    5     <div id="content">
    6         <div class="padder">
     9            <?php _e( 'Order By:', 'buddypress' ) ?>
     10            <select id="members-all">
     11                <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>
     12                <option value="newest"><?php _e( 'Newest Registered', 'buddypress' ) ?></option>
     13                <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option>
    714
    8             <?php locate_template( array( 'members/single/member-header.php' ), true ) ?>
     15                <?php do_action( 'bp_members_directory_order_options' ) ?>
     16            </select>
     17        </li>
     18    </ul>
     19</div>
    920
    10             <div class="item-list-tabs no-ajax" id="user-subnav">
    11                 <ul>
    12                     <?php if ( bp_is_my_profile() ) : ?>
    13                         <?php bp_get_options_nav() ?>
    14                     <?php endif; ?>
     21<?php if ( 'requests' == bp_current_action() ) : ?>
     22    <?php locate_template( array( 'members/single/friends/requests.php' ), true ) ?>
    1523
    16                     <li id="members-order-select" class="last filter">
     24<?php else : ?>
    1725
    18                         <?php _e( 'Order By:', 'buddypress' ) ?>
    19                         <select id="members-all">
    20                             <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>
    21                             <option value="newest"><?php _e( 'Newest Registered', 'buddypress' ) ?></option>
    22                             <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option>
     26    <div class="members friends">
     27        <?php // 'members/members-loop.php' loaded here via AJAX. ?>
     28    </div>
    2329
    24                             <?php do_action( 'bp_members_directory_order_options' ) ?>
    25                         </select>
    26                     </li>
    27                 </ul>
    28             </div>
     30<?php endif; ?>
    2931
    30             <?php if ( 'requests' == bp_current_action() ) : ?>
    31                 <?php locate_template( array( 'members/single/friends/requests.php' ), true ) ?>
    32 
    33             <?php else : ?>
    34 
    35                 <div class="members friends">
    36                     <?php // 'members/members-loop.php' loaded here via AJAX. ?>
    37                 </div>
    38 
    39             <?php endif; ?>
    40 
    41             <?php do_action( 'bp_directory_members_content' ) ?>
    42 
    43         </div><!-- .padder -->
    44     </div><!-- #content -->
    45 
    46     <?php locate_template( array( 'sidebar.php' ), true ) ?>
    47 
    48     <?php do_action( 'bp_after_directory_members_content' ) ?>
    49 
    50 <?php get_footer() ?>
     32<?php do_action( 'bp_directory_members_content' ) ?>
Note: See TracChangeset for help on using the changeset viewer.