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/profile.php

    r2170 r2179  
    1 <?php get_header() ?>
     1<?php if ( bp_is_my_profile() ) : ?>
     2    <div class="item-list-tabs no-ajax" id="user-subnav">
     3        <ul>
     4            <?php bp_get_options_nav() ?>
     5        </ul>
     6    </div>
     7<?php endif; ?>
    28
    3     <?php do_action( 'bp_before_directory_members_content' ) ?>
     9<div class="profile">
     10    <?php if ( 'edit' == bp_current_action() ) : ?>
     11        <?php locate_template( array( 'members/single/profile/edit.php' ), true ) ?>
    412
    5     <div id="content">
    6         <div class="padder">
     13    <?php elseif ( 'change-avatar' == bp_current_action() ) : ?>
     14        <?php locate_template( array( 'members/single/profile/change-avatar.php' ), true ) ?>
    715
    8             <?php locate_template( array( 'members/single/member-header.php' ), true ) ?>
     16    <?php else : ?>
     17        <?php locate_template( array( 'members/single/profile/profile-loop.php' ), true ) ?>
    918
    10             <?php if ( bp_is_my_profile() ) : ?>
    11                 <div class="item-list-tabs no-ajax" id="user-subnav">
    12                     <ul>
    13                         <?php bp_get_options_nav() ?>
    14                     </ul>
    15                 </div>
    16             <?php endif; ?>
     19    <?php endif; ?>
     20</div>
    1721
    18             <div class="profile">
    19                 <?php if ( 'edit' == bp_current_action() ) : ?>
    20                     <?php locate_template( array( 'members/single/profile/edit.php' ), true ) ?>
    21 
    22                 <?php elseif ( 'change-avatar' == bp_current_action() ) : ?>
    23                     <?php locate_template( array( 'members/single/profile/change-avatar.php' ), true ) ?>
    24 
    25                 <?php else : ?>
    26                     <?php locate_template( array( 'members/single/profile/profile-loop.php' ), true ) ?>
    27 
    28                 <?php endif; ?>
    29             </div>
    30 
    31             <?php do_action( 'bp_directory_members_content' ) ?>
    32 
    33         </div><!-- .padder -->
    34     </div><!-- #content -->
    35 
    36     <?php locate_template( array( 'sidebar.php' ), true ) ?>
    37 
    38     <?php do_action( 'bp_after_directory_members_content' ) ?>
    39 
    40 <?php get_footer() ?>
     22<?php do_action( 'bp_directory_members_content' ) ?>
Note: See TracChangeset for help on using the changeset viewer.