Changeset 3912 for trunk/bp-themes/bp-default/groups/single/home.php
- Timestamp:
- 01/24/2011 02:45:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/groups/single/home.php
r3771 r3912 1 <?php get_header() ?>1 <?php get_header(); ?> 2 2 3 3 <div id="content"> 4 4 <div class="padder"> 5 5 6 <?php if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group(); ?> 6 7 … … 8 9 9 10 <div id="item-header" role="complementary"> 10 <?php locate_template( array( 'groups/single/group-header.php' ), true ) ?> 11 12 <?php locate_template( array( 'groups/single/group-header.php' ), true ); ?> 13 11 14 </div><!-- #item-header --> 12 15 … … 14 17 <div class="item-list-tabs no-ajax" id="object-nav" role="navigation"> 15 18 <ul> 16 <?php bp_get_options_nav() ?>17 19 18 <?php do_action( 'bp_group_options_nav' ) ?> 20 <?php bp_get_options_nav(); ?> 21 22 <?php do_action( 'bp_group_options_nav' ); ?> 23 19 24 </ul> 20 25 </div> … … 22 27 23 28 <div id="item-body"> 24 <?php do_action( 'bp_before_group_body' ) ?>25 29 26 <?php if ( bp_is_group_admin_page() && bp_group_is_visible() ) : ?> 27 <?php locate_template( array( 'groups/single/admin.php' ), true ) ?> 30 <?php do_action( 'bp_before_group_body' ); 28 31 29 <?php elseif ( bp_is_group_members() && bp_group_is_visible() ) : ?>30 <?php locate_template( array( 'groups/single/members.php' ), true ) ?>32 if ( bp_is_group_admin_page() && bp_group_is_visible() ) : 33 locate_template( array( 'groups/single/admin.php' ), true ); 31 34 32 <?php elseif ( bp_is_group_invites() && bp_group_is_visible() ) : ?>33 <?php locate_template( array( 'groups/single/send-invites.php' ), true ) ?>35 elseif ( bp_is_group_members() && bp_group_is_visible() ) : 36 locate_template( array( 'groups/single/members.php' ), true ); 34 37 35 <?php elseif ( bp_is_group_forum() && bp_group_is_visible() ) : ?>36 <?php locate_template( array( 'groups/single/forum.php' ), true ) ?>38 elseif ( bp_is_group_invites() && bp_group_is_visible() ) : 39 locate_template( array( 'groups/single/send-invites.php' ), true ); 37 40 38 <?php elseif ( bp_is_group_membership_request() ) : ?>39 <?php locate_template( array( 'groups/single/request-membership.php' ), true ) ?>41 elseif ( bp_is_group_forum() && bp_group_is_visible() ) : 42 locate_template( array( 'groups/single/forum.php' ), true ); 40 43 41 <?php elseif ( bp_group_is_visible() && bp_is_active( 'activity' ) ) : ?>42 <?php locate_template( array( 'groups/single/activity.php' ), true ) ?>44 elseif ( bp_is_group_membership_request() ) : 45 locate_template( array( 'groups/single/request-membership.php' ), true ); 43 46 44 <?php elseif ( !bp_group_is_visible() ) : ?>45 <?php /* The group is not visible, show the status message */ ?>47 elseif ( bp_group_is_visible() && bp_is_active( 'activity' ) ) : 48 locate_template( array( 'groups/single/activity.php' ), true ); 46 49 47 <?php do_action( 'bp_before_group_status_message' ) ?> 50 elseif ( !bp_group_is_visible() ) : 51 // The group is not visible, show the status message 52 53 do_action( 'bp_before_group_status_message' ); ?> 48 54 49 55 <div id="message" class="info"> 50 <p><?php bp_group_status_message() ?></p>56 <p><?php bp_group_status_message(); ?></p> 51 57 </div> 52 58 53 <?php do_action( 'bp_after_group_status_message' ) ?>59 <?php do_action( 'bp_after_group_status_message' ); 54 60 55 <?php else : ?> 56 <?php 57 /* If nothing sticks, just load a group front template if one exists. */ 58 locate_template( array( 'groups/single/front.php' ), true ); 59 ?> 60 <?php endif; ?> 61 else : 62 // If nothing sticks, just load a group front template if one exists. 63 locate_template( array( 'groups/single/front.php' ), true ); 61 64 62 <?php do_action( 'bp_after_group_body' ) ?> 65 endif; 66 67 do_action( 'bp_after_group_body' ); ?> 68 63 69 </div><!-- #item-body --> 64 70 65 <?php do_action( 'bp_after_group_home_content' ) ?>71 <?php do_action( 'bp_after_group_home_content' ); ?> 66 72 67 73 <?php endwhile; endif; ?> 74 68 75 </div><!-- .padder --> 69 76 </div><!-- #content --> 70 77 71 <?php get_sidebar() ?> 72 73 <?php get_footer() ?> 78 <?php get_sidebar(); ?> 79 <?php get_footer(); ?>
Note: See TracChangeset
for help on using the changeset viewer.