Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/13/2012 07:10:22 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Allow custom front.php in single group theme compat, for feature parity with bp-default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-templates/bp-legacy/buddypress/groups/single/home.php

    r6514 r6516  
    4040            if ( bp_is_group_home() ) :
    4141
     42                // Use custom front if one exists
     43                $custom_front = bp_locate_template( array( 'groups/single/front.php' ), false, true );
     44                if     ( ! empty( $custom_front   ) ) : load_template( $custom_front, true );
     45
    4246                // Default to activity
    43                 if    ( bp_is_active( 'activity' ) ) : bp_get_template_part( 'groups/single/activity' );
     47                elseif ( bp_is_active( 'activity' ) ) : bp_get_template_part( 'groups/single/activity' );
    4448
    4549                // Otherwise show members
Note: See TracChangeset for help on using the changeset viewer.