abdulawal39

member-header.php

Jun 28th, 2013
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 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_user_link(); ?>">
  16.  
  17. <?php bp_displayed_user_avatar( 'type=full' ); ?>
  18.  
  19. </a>
  20. </div><!-- #item-header-avatar -->
  21.  
  22. <div id="item-header-content">
  23.  
  24. <h2>
  25. <a href="<?php bp_displayed_user_link(); ?>"><?php bp_displayed_user_fullname(); ?></a>
  26. </h2>
  27.  
  28. <span class="user-nicename">@<?php bp_displayed_user_username(); ?></span>
  29. <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
  30.  
  31. <?php
  32. /** This is the variable
  33. Its for getting value of a user field
  34. **/
  35.  
  36. $layout_member = bp_get_profile_field_data('field=Layout');
  37.  
  38. /** Echo is just for testing **/
  39. echo $layout_member;
  40. ?>
  41.  
  42.  
  43.  
  44. <?php do_action( 'bp_before_member_header_meta' ); ?>
  45.  
  46. <div id="item-meta">
  47.  
  48. <?php if ( bp_is_active( 'activity' ) ) : ?>
  49.  
  50. <div id="latest-update">
  51.  
  52. <?php bp_activity_latest_update( bp_displayed_user_id() ); ?>
  53.  
  54. </div>
  55.  
  56. <?php endif; ?>
  57.  
  58. <div id="item-buttons">
  59.  
  60. <?php do_action( 'bp_member_header_actions' ); ?>
  61.  
  62. </div><!-- #item-buttons -->
  63.  
  64. <?php
  65. /***
  66. * If you'd like to show specific profile fields here use:
  67. * bp_profile_field_data( 'field=About Me' ); -- Pass the name of the field
  68. */
  69. do_action( 'bp_profile_header_meta' );
  70.  
  71. ?>
  72.  
  73. </div><!-- #item-meta -->
  74.  
  75. </div><!-- #item-header-content -->
  76.  
  77. <?php do_action( 'bp_after_member_header' ); ?>
  78.  
  79. <?php do_action( 'template_notices' ); ?>
Advertisement
Add Comment
Please, Sign In to add comment