Advertisement
Guest User

member-header.php

a guest
Sep 21st, 2010
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. <?php do_action( 'bp_before_member_header' ) ?>
  2.  
  3. <div id="item-header-avatar">
  4. <a href="<?php bp_user_link() ?>">
  5. <?php bp_displayed_user_avatar( 'type=full' ) ?>
  6. </a>
  7. </div><!-- #item-header-avatar -->
  8.  
  9. <div id="item-header-content">
  10.  
  11. <h2 class="fn"><a href="<?php bp_displayed_user_link() ?>"><?php bp_displayed_user_fullname() ?></a> <span class="highlight">@<?php bp_displayed_user_username() ?> <span>?</span></span></h2>
  12. <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ) ?></span>
  13.  
  14. <?php if ( is_user_logged_in() ) : ?>
  15.  
  16. <?php do_action( 'bp_before_member_header_meta' ) ?>
  17.  
  18. <div id="item-meta">
  19. <?php if ( function_exists( 'bp_activity_latest_update' ) ) : ?>
  20. <div id="latest-update">
  21. <?php bp_activity_latest_update( bp_displayed_user_id() ) ?>
  22. </div>
  23. <?php endif; ?>
  24.  
  25. <div id="item-buttons">
  26. <?php if ( function_exists( 'bp_add_friend_button' ) ) : ?>
  27. <?php bp_add_friend_button() ?>
  28. <?php endif; ?>
  29.  
  30. <?php if ( is_user_logged_in() && !bp_is_my_profile() && function_exists( 'bp_send_public_message_link' ) ) : ?>
  31. <div class="generic-button" id="post-mention">
  32. <a href="<?php bp_send_public_message_link() ?>" title="<?php _e( 'Mention this user in a new public message, this will send the user a notification to get their attention.', 'buddypress' ) ?>"><?php _e( 'Mention this User', 'buddypress' ) ?></a>
  33. </div>
  34. <?php endif; ?>
  35.  
  36. <?php if ( is_user_logged_in() && !bp_is_my_profile() && function_exists( 'bp_send_private_message_link' ) ) : ?>
  37. <div class="generic-button" id="send-private-message">
  38. <a href="<?php bp_send_private_message_link() ?>" title="<?php _e( 'Send a private message to this user.', 'buddypress' ) ?>"><?php _e( 'Send Private Message', 'buddypress' ) ?></a>
  39. </div>
  40. <?php endif; ?>
  41. </div><!-- #item-buttons -->
  42.  
  43. <?php
  44. /***
  45. * If you'd like to show specific profile fields here use:
  46. * bp_profile_field_data( 'field=About Me' ); -- Pass the name of the field
  47. */
  48. ?>
  49.  
  50. <?php do_action( 'bp_profile_header_meta' ) ?>
  51.  
  52. </div><!-- #item-meta -->
  53.  
  54. <?php else : ?>
  55.  
  56. <h4>You must be logged in to view member data</h4>
  57.  
  58. <?php endif; ?>
  59.  
  60. </div><!-- #item-header-content -->
  61.  
  62. <?php do_action( 'bp_after_member_header' ) ?>
  63.  
  64. <?php do_action( 'template_notices' ) ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement