Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/02/2011 07:35:08 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Graceful degradation of groups home component when various components are deactivated on a live site.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/groups/single/home.php

    r3912 r4009  
    4848                    locate_template( array( 'groups/single/activity.php' ), true );
    4949
     50                elseif ( bp_group_is_visible() && bp_is_active( 'forums' ) ) :
     51                    locate_template( array( 'groups/single/forum.php' ), true );
     52
     53                elseif ( bp_group_is_visible() ) :
     54                    locate_template( array( 'groups/single/members.php' ), true );
     55
    5056                elseif ( !bp_group_is_visible() ) :
    5157                    // The group is not visible, show the status message
Note: See TracChangeset for help on using the changeset viewer.