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/groups.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        <?php if ( 'invites' != bp_current_action() ) : ?>
     8        <li id="members-order-select" class="last filter">
    49
    5     <div id="content">
    6         <div class="padder">
     10            <?php _e( 'Order By:', 'buddypress' ) ?>
     11            <select id="groups-all">
     12                <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>
     13                <option value="popular"><?php _e( 'Most Members', 'buddypress' ) ?></option>
     14                <option value="newest"><?php _e( 'Newly Created', 'buddypress' ) ?></option>
     15                <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option>
    716
    8             <?php locate_template( array( 'members/single/member-header.php' ), true ) ?>
     17                <?php do_action( 'bp_groups_directory_order_options' ) ?>
     18            </select>
     19        </li>
     20        <?php endif; ?>
     21    </ul>
     22</div>
    923
    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; ?>
     24<?php if ( 'invites' == bp_current_action() ) : ?>
     25    <?php locate_template( array( 'members/single/groups/invites.php' ), true ) ?>
    1526
    16                     <?php if ( 'invites' != bp_current_action() ) : ?>
    17                     <li id="members-order-select" class="last filter">
     27<?php else : ?>
    1828
    19                         <?php _e( 'Order By:', 'buddypress' ) ?>
    20                         <select id="groups-all">
    21                             <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>
    22                             <option value="popular"><?php _e( 'Most Members', 'buddypress' ) ?></option>
    23                             <option value="newest"><?php _e( 'Newly Created', 'buddypress' ) ?></option>
    24                             <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option>
     29    <div class="groups mygroups">
     30        <?php // 'members/members-loop.php' loaded here via AJAX. ?>
     31    </div>
    2532
    26                             <?php do_action( 'bp_groups_directory_order_options' ) ?>
    27                         </select>
    28                     </li>
    29                     <?php endif; ?>
    30                 </ul>
    31             </div>
     33<?php endif; ?>
    3234
    33             <?php if ( 'invites' == bp_current_action() ) : ?>
    34                 <?php locate_template( array( 'members/single/groups/invites.php' ), true ) ?>
    35 
    36             <?php else : ?>
    37 
    38                 <div class="groups mygroups">
    39                     <?php // 'members/members-loop.php' loaded here via AJAX. ?>
    40                 </div>
    41 
    42             <?php endif; ?>
    43 
    44             <?php do_action( 'bp_directory_members_content' ) ?>
    45 
    46         </div><!-- .padder -->
    47     </div><!-- #content -->
    48 
    49     <?php locate_template( array( 'sidebar.php' ), true ) ?>
    50 
    51     <?php do_action( 'bp_after_directory_members_content' ) ?>
    52 
    53 <?php get_footer() ?>
     35<?php do_action( 'bp_directory_members_content' ) ?>
Note: See TracChangeset for help on using the changeset viewer.