Guest User

Untitled

a guest
Apr 7th, 2017
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * BuddyPress - Users Header
  5. *
  6. * @package BuddyPress
  7. * @subpackage bp-default
  8. */
  9.  
  10. ?>
  11.  
  12. <?php do_action( 'bp_before_member_header' ); ?>
  13.  
  14. <div id="item-header-avatar">
  15. <a href="<?php bp_displayed_user_link(); ?>">
  16.  
  17. <?php bp_displayed_user_avatar( 'type=full&width=150&height=150' ); ?>
  18.  
  19. </a>
  20. </div><!-- #item-header-avatar -->
  21.  
  22. <div id="item-header-content">
  23.  
  24. <h2 class="profile-<?php bp_member_profile_data( 'field=Gender' ); ?> ">
  25. <a href="<?php bp_displayed_user_link(); ?>"><?php bp_displayed_user_fullname(); ?></a>
  26. </h2>
  27.  
  28. <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
  29.  
  30. <span class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></span>
  31.  
  32. <?php endif; ?>
  33.  
  34. <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
  35.  
  36. <?php do_action( 'bp_before_member_header_meta' ); ?>
  37.  
  38. <div id="item-meta">
  39.  
  40. <?php if ( bp_is_active( 'activity' ) ) : ?>
  41.  
  42. <div id="latest-update">
  43.  
  44. <?php bp_activity_latest_update( bp_displayed_user_id() ); ?>
  45.  
  46. </div>
  47.  
  48. <?php endif; ?>
  49.  
  50. <div id="item-buttons">
  51.  
  52. <?php do_action( 'bp_member_header_actions' ); ?>
  53.  
  54. </div><!-- #item-buttons -->
  55.  
  56. <?php
  57. /***
  58. * If you'd like to show specific profile fields here use:
  59. * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field
  60. */
  61. do_action( 'bp_profile_header_meta' );
  62.  
  63. ?>
  64.  
  65. </div><!-- #item-meta -->
  66.  
  67. </div><!-- #item-header-content -->
  68.  
  69. <?php do_action( 'bp_after_member_header' ); ?>
  70.  
  71. <?php do_action( 'template_notices' ); ?>
Add Comment
Please, Sign In to add comment