Guest User

Untitled

a guest
Oct 4th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * BuddyPress - Users Profile
  5. *
  6. * @package BuddyPress
  7. * @subpackage bp-default
  8. */
  9.  
  10. ?>
  11.  
  12. <div class="item-list-tabs no-ajax" id="subnav" role="navigation">
  13. <ul>
  14. <?php bp_get_options_nav(); ?>
  15. </ul>
  16. </div><!-- .item-list-tabs -->
  17.  
  18. <?php do_action( 'bp_before_profile_content' ); ?>
  19.  
  20. <div class="profile">
  21.  
  22. <?php switch ( bp_current_action() ) :
  23.  
  24. // Edit
  25. case 'edit' :
  26. bp_get_template_part( 'members/single/profile/edit' );
  27. break;
  28.  
  29. // Change Avatar
  30. case 'change-avatar' :
  31. bp_get_template_part( 'members/single/profile/change-avatar' );
  32. break;
  33.  
  34. // Change Cover Image
  35. case 'change-cover-image' :
  36. bp_get_template_part( 'members/single/profile/change-cover-image' );
  37. break;
  38.  
  39. // Compose
  40. case 'public' :
  41.  
  42. // Display XProfile
  43. if ( bp_is_active( 'xprofile' ) )
  44. bp_get_template_part( 'members/single/profile/profile-loop' );
  45.  
  46. // Display WordPress profile (fallback)
  47. else
  48. bp_get_template_part( 'members/single/profile/profile-wp' );
  49.  
  50. break;
  51.  
  52. // Any other
  53. default :
  54. bp_get_template_part( 'members/single/plugins' );
  55. break;
  56. endswitch; ?>
  57. </div><!-- .profile -->
  58.  
  59. <?php do_action( 'bp_after_profile_content' ); ?>
Advertisement
Add Comment
Please, Sign In to add comment