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/groups/single/home.php

    r2170 r2179  
    1111            <?php locate_template( array( 'groups/single/group-header.php' ), true ) ?>
    1212
    13             <?php if ( 'admin' == bp_current_action() ) : ?>
    14                 <?php locate_template( array( 'groups/single/admin.php' ), true ) ?>
     13            <div id="item-body">
    1514
    16             <?php elseif ( 'members' == bp_current_action() ) : ?>
    17                 <?php locate_template( array( 'groups/single/members.php' ), true ) ?>
     15                <?php if ( 'admin' == bp_current_action() ) : ?>
     16                    <?php locate_template( array( 'groups/single/admin.php' ), true ) ?>
    1817
    19             <?php elseif ( 'send-invites' == bp_current_action() ) : ?>
    20                 <?php locate_template( array( 'groups/single/send-invites.php' ), true ) ?>
     18                <?php elseif ( 'members' == bp_current_action() ) : ?>
     19                    <?php locate_template( array( 'groups/single/members.php' ), true ) ?>
    2120
    22             <?php elseif ( 'request-membership' == bp_current_action() ) : ?>
    23                 <?php locate_template( array( 'groups/single/request-membership.php' ), true ) ?>
     21                <?php elseif ( 'send-invites' == bp_current_action() ) : ?>
     22                    <?php locate_template( array( 'groups/single/send-invites.php' ), true ) ?>
    2423
    25             <?php elseif ( 'forum' == bp_current_action() ) : ?>
    26                 <?php locate_template( array( 'groups/single/forum.php' ), true ) ?>
     24                <?php elseif ( 'request-membership' == bp_current_action() ) : ?>
     25                    <?php locate_template( array( 'groups/single/request-membership.php' ), true ) ?>
    2726
    28             <?php else : ?>
    29                 <?php locate_template( array( 'groups/single/activity.php' ), true ) ?>
     27                <?php elseif ( 'forum' == bp_current_action() ) : ?>
     28                    <?php locate_template( array( 'groups/single/forum.php' ), true ) ?>
    3029
    31             <?php endif; ?>
     30                <?php else : ?>
     31                    <?php locate_template( array( 'groups/single/activity.php' ), true ) ?>
    3232
    33             <?php do_action( 'bp_directory_members_content' ) ?>
     33                <?php endif; ?>
     34
     35                <?php do_action( 'bp_directory_members_content' ) ?>
     36
     37            </div>
     38
     39            <div id="item-menu">
     40                <?php bp_group_avatar() ?>
     41
     42                <?php if ( bp_group_is_visible() ) : ?>
     43
     44                    <?php if ( bp_group_has_news() ) : ?>
     45                        <?php do_action( 'bp_before_group_news' ) ?>
     46
     47                        <h3><?php _e( 'Latest News', 'buddypress' ); ?></h3>
     48                        <p><?php bp_group_news() ?></p>
     49
     50                        <?php do_action( 'bp_after_group_news' ) ?>
     51                    <?php endif; ?>
     52
     53                    <h3><?php _e( 'Group Admins', 'buddypress' ) ?></h3>
     54                    <?php bp_group_list_admins() ?>
     55
     56                    <?php do_action( 'bp_after_group_menu_admins' ) ?>
     57
     58                    <?php if ( bp_group_has_moderators() ) : ?>
     59                        <?php do_action( 'bp_before_group_menu_mods' ) ?>
     60
     61                        <h3><?php _e( 'Group Mods' , 'buddypress' ) ?></h3>
     62                        <?php bp_group_list_mods() ?>
     63
     64                        <?php do_action( 'bp_after_group_menu_mods' ) ?>
     65                    <?php endif; ?>
     66
     67                <?php endif; ?>
     68            </div>
    3469
    3570            <?php endwhile; endif; ?>
Note: See TracChangeset for help on using the changeset viewer.