/bp-templates/bp-legacy/buddypress/members/single/member-header.php

  1. <?php 
  2. /** 
  3. * BuddyPress - Users Header 
  4. * 
  5. * @package BuddyPress 
  6. * @subpackage bp-legacy 
  7. */ 
  8.  
  9. ?> 
  10.  
  11. <?php 
  12.  
  13. /** 
  14. * Fires before the display of a member's header. 
  15. * 
  16. * @since 1.2.0 
  17. */ 
  18. do_action( 'bp_before_member_header' ); ?> 
  19.  
  20. <div id="item-header-avatar"> 
  21. <a href="<?php bp_displayed_user_link(); ?>"> 
  22.  
  23. <?php bp_displayed_user_avatar( 'type=full' ); ?> 
  24.  
  25. </a> 
  26. </div><!-- #item-header-avatar --> 
  27.  
  28. <div id="item-header-content"> 
  29.  
  30. <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?> 
  31. <h2 class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></h2> 
  32. <?php endif; ?> 
  33.  
  34. <span class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_user_last_activity( bp_displayed_user_id() ) ); ?>"><?php bp_last_activity( bp_displayed_user_id() ); ?></span> 
  35.  
  36. <?php 
  37.  
  38. /** 
  39. * Fires before the display of the member's header meta. 
  40. * 
  41. * @since 1.2.0 
  42. */ 
  43. do_action( 'bp_before_member_header_meta' ); ?> 
  44.  
  45. <div id="item-meta"> 
  46.  
  47. <?php if ( bp_is_active( 'activity' ) ) : ?> 
  48.  
  49. <div id="latest-update"> 
  50.  
  51. <?php bp_activity_latest_update( bp_displayed_user_id() ); ?> 
  52.  
  53. </div> 
  54.  
  55. <?php endif; ?> 
  56.  
  57. <div id="item-buttons"> 
  58.  
  59. <?php 
  60.  
  61. /** 
  62. * Fires in the member header actions section. 
  63. * 
  64. * @since 1.2.6 
  65. */ 
  66. do_action( 'bp_member_header_actions' ); ?> 
  67.  
  68. </div><!-- #item-buttons --> 
  69.  
  70. <?php 
  71.  
  72. /** 
  73. * Fires after the group header actions section. 
  74. * 
  75. * If you'd like to show specific profile fields here use: 
  76. * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field 
  77. * 
  78. * @since 1.2.0 
  79. */ 
  80. do_action( 'bp_profile_header_meta' ); 
  81.  
  82. ?> 
  83.  
  84. </div><!-- #item-meta --> 
  85.  
  86. </div><!-- #item-header-content --> 
  87.  
  88. <?php 
  89.  
  90. /** 
  91. * Fires after the display of a member's header. 
  92. * 
  93. * @since 1.2.0 
  94. */ 
  95. do_action( 'bp_after_member_header' ); ?> 
  96.  
  97. <div id="template-notices" role="alert" aria-atomic="true"> 
  98. <?php 
  99.  
  100. /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */ 
  101. do_action( 'template_notices' ); ?> 
  102.  
  103. </div> 
.