Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/17/2016 03:30:29 PM (3 years ago)
Author:
imath
Message:

Introduce the support for a custom home page template for single members profiles.

  • Themes can now include a front.php template to customize the home page of members.
  • Introduce a template hierarchy for this template so that it is possible to have different front pages according to the ID, the nicename or the member type of the displayed user.

Props hnla, dcavins, DJPaul, imath.

Fixes #6769

File:
1 edited

Legend:

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

    r10181 r10774  
    6565        do_action( 'bp_before_member_body' );
    6666
    67         if ( bp_is_user_activity() || !bp_current_component() ) :
     67        if ( bp_is_user_front() ) :
     68            bp_displayed_user_front_template_part();
     69
     70        elseif ( bp_is_user_activity() ) :
    6871            bp_get_template_part( 'members/single/activity' );
    6972
Note: See TracChangeset for help on using the changeset viewer.