Advertisement
Guest User

member-header.php

a guest
Mar 27th, 2015
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * BuddyPress - Users Header
  5. *
  6. * @package BuddyPress
  7. * @subpackage bp-legacy
  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' ); ?>
  18.  
  19. </a>
  20. </div><!-- #item-header-avatar -->
  21. <?php
  22. global $bp;
  23. if(is_user_online($bp->displayed_user->id)){
  24. echo "<div class=\"online\">";
  25. echo "Online: <i class=\"fa fa-wifi\"></i>";
  26. echo "</div>";
  27. }
  28. else{
  29. echo "<div class=\"offline\">";
  30. echo "Offline: <i class=\"fa fa-wifi\"></i>";
  31. echo "</div>";
  32. }
  33. ?>
  34. <div id="item-header-content">
  35.  
  36. <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
  37. <h2 class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></h2>
  38. <?php endif; ?>
  39.  
  40. <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
  41.  
  42. <?php do_action( 'bp_before_member_header_meta' ); ?>
  43.  
  44. <div id="item-meta">
  45.  
  46. <?php if ( bp_is_active( 'activity' ) ) : ?>
  47.  
  48. <div id="latest-update">
  49.  
  50. <?php bp_activity_latest_update( bp_displayed_user_id() ); ?>
  51.  
  52. </div>
  53.  
  54. <?php endif; ?>
  55.  
  56. <div id="item-buttons">
  57.  
  58. <?php do_action( 'bp_member_header_actions' ); ?>
  59.  
  60. </div><!-- #item-buttons -->
  61.  
  62. <?php
  63. /***
  64. * If you'd like to show specific profile fields here use:
  65. * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field
  66. */
  67. do_action( 'bp_profile_header_meta' );
  68.  
  69. ?>
  70.  
  71. </div><!-- #item-meta -->
  72.  
  73. </div><!-- #item-header-content -->
  74.  
  75. <?php do_action( 'bp_after_member_header' ); ?>
  76.  
  77. <?php do_action( 'template_notices' ); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement