/bp-themes/bp-default/members/single/home.php

  1. <?php 
  2.  
  3. /** 
  4. * BuddyPress - Users Home 
  5. * 
  6. * @package BuddyPress 
  7. * @subpackage bp-default 
  8. */ 
  9.  
  10. get_header( 'buddypress' ); ?> 
  11.  
  12. <div id="content"> 
  13. <div class="padder"> 
  14.  
  15. <?php do_action( 'bp_before_member_home_content' ); ?> 
  16.  
  17. <div id="item-header" role="complementary"> 
  18.  
  19. <?php locate_template( array( 'members/single/member-header.php' ), true ); ?> 
  20.  
  21. </div><!-- #item-header --> 
  22.  
  23. <div id="item-nav"> 
  24. <div class="item-list-tabs no-ajax" id="object-nav" role="navigation"> 
  25. <ul> 
  26.  
  27. <?php bp_get_displayed_user_nav(); ?> 
  28.  
  29. <?php do_action( 'bp_member_options_nav' ); ?> 
  30.  
  31. </ul> 
  32. </div> 
  33. </div><!-- #item-nav --> 
  34.  
  35. <div id="item-body"> 
  36.  
  37. <?php do_action( 'bp_before_member_body' ); 
  38.  
  39. if ( bp_is_user_activity() || !bp_current_component() ) : 
  40. locate_template( array( 'members/single/activity.php' ), true ); 
  41.  
  42. elseif ( bp_is_user_blogs() ) : 
  43. locate_template( array( 'members/single/blogs.php' ), true ); 
  44.  
  45. elseif ( bp_is_user_friends() ) : 
  46. locate_template( array( 'members/single/friends.php' ), true ); 
  47.  
  48. elseif ( bp_is_user_groups() ) : 
  49. locate_template( array( 'members/single/groups.php' ), true ); 
  50.  
  51. elseif ( bp_is_user_messages() ) : 
  52. locate_template( array( 'members/single/messages.php' ), true ); 
  53.  
  54. elseif ( bp_is_user_profile() ) : 
  55. locate_template( array( 'members/single/profile.php' ), true ); 
  56.  
  57. elseif ( bp_is_user_forums() ) : 
  58. locate_template( array( 'members/single/forums.php' ), true ); 
  59.  
  60. elseif ( bp_is_user_settings() ) : 
  61. locate_template( array( 'members/single/settings.php' ), true ); 
  62.  
  63. elseif ( bp_is_user_notifications() ) : 
  64. locate_template( array( 'members/single/notifications.php' ), true ); 
  65.  
  66. // If nothing sticks, load a generic template 
  67. else : 
  68. locate_template( array( 'members/single/plugins.php' ), true ); 
  69.  
  70. endif; 
  71.  
  72. do_action( 'bp_after_member_body' ); ?> 
  73.  
  74. </div><!-- #item-body --> 
  75.  
  76. <?php do_action( 'bp_after_member_home_content' ); ?> 
  77.  
  78. </div><!-- .padder --> 
  79. </div><!-- #content --> 
  80.  
  81. <?php get_sidebar( 'buddypress' ); ?> 
  82. <?php get_footer( 'buddypress' ); ?> 
.