/bp-templates/bp-legacy/buddypress/members/single/home.php

  1. <?php 
  2. /** 
  3. * BuddyPress - Members Home 
  4. * 
  5. * @package BuddyPress 
  6. * @subpackage bp-legacy 
  7. */ 
  8.  
  9. ?> 
  10.  
  11. <div id="buddypress"> 
  12.  
  13. <?php 
  14.  
  15. /** 
  16. * Fires before the display of member home content. 
  17. * 
  18. * @since 1.2.0 
  19. */ 
  20. do_action( 'bp_before_member_home_content' ); ?> 
  21.  
  22. <div id="item-header" role="complementary"> 
  23.  
  24. <?php 
  25. /** 
  26. * If the cover image feature is enabled, use a specific header 
  27. */ 
  28. if ( bp_displayed_user_use_cover_image_header() ) : 
  29. bp_get_template_part( 'members/single/cover-image-header' ); 
  30. else : 
  31. bp_get_template_part( 'members/single/member-header' ); 
  32. endif; 
  33. ?> 
  34.  
  35. </div><!-- #item-header --> 
  36.  
  37. <div id="item-nav"> 
  38. <div class="item-list-tabs no-ajax" id="object-nav" aria-label="<?php esc_attr_e( 'Member primary navigation', 'buddypress' ); ?>" role="navigation"> 
  39. <ul> 
  40.  
  41. <?php bp_get_displayed_user_nav(); ?> 
  42.  
  43. <?php 
  44.  
  45. /** 
  46. * Fires after the display of member options navigation. 
  47. * 
  48. * @since 1.2.4 
  49. */ 
  50. do_action( 'bp_member_options_nav' ); ?> 
  51.  
  52. </ul> 
  53. </div> 
  54. </div><!-- #item-nav --> 
  55.  
  56. <div id="item-body"> 
  57.  
  58. <?php 
  59.  
  60. /** 
  61. * Fires before the display of member body content. 
  62. * 
  63. * @since 1.2.0 
  64. */ 
  65. do_action( 'bp_before_member_body' ); 
  66.  
  67. if ( bp_is_user_front() ) : 
  68. bp_displayed_user_front_template_part(); 
  69.  
  70. elseif ( bp_is_user_activity() ) : 
  71. bp_get_template_part( 'members/single/activity' ); 
  72.  
  73. elseif ( bp_is_user_blogs() ) : 
  74. bp_get_template_part( 'members/single/blogs' ); 
  75.  
  76. elseif ( bp_is_user_friends() ) : 
  77. bp_get_template_part( 'members/single/friends' ); 
  78.  
  79. elseif ( bp_is_user_groups() ) : 
  80. bp_get_template_part( 'members/single/groups' ); 
  81.  
  82. elseif ( bp_is_user_messages() ) : 
  83. bp_get_template_part( 'members/single/messages' ); 
  84.  
  85. elseif ( bp_is_user_profile() ) : 
  86. bp_get_template_part( 'members/single/profile' ); 
  87.  
  88. elseif ( bp_is_user_forums() ) : 
  89. bp_get_template_part( 'members/single/forums' ); 
  90.  
  91. elseif ( bp_is_user_notifications() ) : 
  92. bp_get_template_part( 'members/single/notifications' ); 
  93.  
  94. elseif ( bp_is_user_settings() ) : 
  95. bp_get_template_part( 'members/single/settings' ); 
  96.  
  97. // If nothing sticks, load a generic template 
  98. else : 
  99. bp_get_template_part( 'members/single/plugins' ); 
  100.  
  101. endif; 
  102.  
  103. /** 
  104. * Fires after the display of member body content. 
  105. * 
  106. * @since 1.2.0 
  107. */ 
  108. do_action( 'bp_after_member_body' ); ?> 
  109.  
  110. </div><!-- #item-body --> 
  111.  
  112. <?php 
  113.  
  114. /** 
  115. * Fires after the display of member home content. 
  116. * 
  117. * @since 1.2.0 
  118. */ 
  119. do_action( 'bp_after_member_home_content' ); ?> 
  120.  
  121. </div><!-- #buddypress --> 
.