Advertisement
Guest User

home.php

a guest
Sep 21st, 2010
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. <?php get_header() ?>
  2.  
  3. <div id="content">
  4. <div class="padder">
  5.  
  6. <?php do_action( 'bp_before_member_home_content' ) ?>
  7.  
  8. <div id="item-header">
  9. <?php locate_template( array( 'members/single/member-header.php' ), true ) ?>
  10. </div><!-- #item-header -->
  11.  
  12. <?php if ( is_user_logged_in() ) : ?>
  13.  
  14. <div id="item-nav">
  15. <div class="item-list-tabs no-ajax" id="object-nav">
  16. <ul>
  17. <?php bp_get_displayed_user_nav() ?>
  18.  
  19. <?php do_action( 'bp_member_options_nav' ) ?>
  20. </ul>
  21. </div>
  22. </div><!-- #item-nav -->
  23.  
  24. <div id="item-body">
  25. <?php do_action( 'bp_before_member_body' ) ?>
  26.  
  27. <?php if ( bp_is_user_activity() || !bp_current_component() ) : ?>
  28. <?php locate_template( array( 'members/single/activity.php' ), true ) ?>
  29.  
  30. <?php elseif ( bp_is_user_blogs() ) : ?>
  31. <?php locate_template( array( 'members/single/blogs.php' ), true ) ?>
  32.  
  33. <?php elseif ( bp_is_user_friends() ) : ?>
  34. <?php locate_template( array( 'members/single/friends.php' ), true ) ?>
  35.  
  36. <?php elseif ( bp_is_user_groups() ) : ?>
  37. <?php locate_template( array( 'members/single/groups.php' ), true ) ?>
  38.  
  39. <?php elseif ( bp_is_user_messages() ) : ?>
  40. <?php locate_template( array( 'members/single/messages.php' ), true ) ?>
  41.  
  42. <?php elseif ( bp_is_user_profile() ) : ?>
  43. <?php locate_template( array( 'members/single/profile.php' ), true ) ?>
  44.  
  45. <?php else : ?>
  46. <?php
  47. /* If nothing sticks, just load a member front template if one exists. */
  48. locate_template( array( 'members/single/front.php' ), true );
  49. ?>
  50. <?php endif; ?>
  51.  
  52. <?php do_action( 'bp_after_member_body' ) ?>
  53.  
  54. </div><!-- #item-body -->
  55.  
  56. <?php endif; ?>
  57.  
  58. <?php do_action( 'bp_after_member_home_content' ) ?>
  59.  
  60. </div><!-- .padder -->
  61. </div><!-- #content -->
  62.  
  63. <?php locate_template( array( 'sidebar.php' ), true ) ?>
  64.  
  65. <?php get_footer() ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement