Permalink
Browse files

Update template to match bp-default

  • Loading branch information...
1 parent bd3ef25 commit 3b9940a6de98118e556896d00ccdda62f6698a73 @davidtcarson committed Oct 1, 2011
Showing with 10 additions and 9 deletions.
  1. +10 −9 members/single/home.php
View
@@ -40,30 +40,31 @@
<div id="item-body">
<?php do_action( 'bp_before_member_body' );
-
+
if ( bp_is_user_activity() || !bp_current_component() ) :
- locate_template( array( 'members/single/activity.php' ), true );
+ locate_template( array( 'members/single/activity.php' ), true );
elseif ( bp_is_user_blogs() ) :
- locate_template( array( 'members/single/blogs.php' ), true );
+ locate_template( array( 'members/single/blogs.php' ), true );
elseif ( bp_is_user_friends() ) :
- locate_template( array( 'members/single/friends.php' ), true );
+ locate_template( array( 'members/single/friends.php' ), true );
elseif ( bp_is_user_groups() ) :
- locate_template( array( 'members/single/groups.php' ), true );
+ locate_template( array( 'members/single/groups.php' ), true );
elseif ( bp_is_user_messages() ) :
- locate_template( array( 'members/single/messages.php' ), true );
+ locate_template( array( 'members/single/messages.php' ), true );
elseif ( bp_is_user_profile() ) :
- locate_template( array( 'members/single/profile.php' ), true );
+ locate_template( array( 'members/single/profile.php' ), true );
elseif ( bp_is_user_forums() ) :
- locate_template( array( 'members/single/forums.php' ), true );
-
+ locate_template( array( 'members/single/forums.php' ), true );
+
elseif ( bp_is_user_settings() ) :
locate_template( array( 'members/single/settings.php' ), true );
+
// If nothing sticks, load a generic template
else :
locate_template( array( 'members/single/plugins.php' ), true );

0 comments on commit 3b9940a

Please sign in to comment.