SHARE
TWEET

member-header.php

a guest Mar 8th, 2015 320 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. /**
  4.  * BuddyPress - User Header
  5.  *
  6.  * @package BuddyPress
  7.  * @subpackage BuddyBoss
  8.  */
  9.  
  10. ?>
  11.  
  12. <?php do_action( 'bp_before_member_header' ); ?>
  13.  
  14. <div id=&quot;item-header-avatar&quot;>
  15.         <a href=&quot;<?php bp_displayed_user_link(); ?>&quot;>
  16.  
  17.                 <?php bp_displayed_user_avatar( 'type=full' ); ?>
  18.  
  19.         </a>
  20. </div><!-- #item-header-avatar -->
  21.  
  22. <div id=&quot;item-header-content&quot;>
  23.  
  24.         <h2 class=&quot;user-nicename&quot;>
  25.  
  26.                 @<?php bp_displayed_user_username(); ?>
  27.                
  28.                 <?php
  29.         global $bp;
  30.         $currentuser = get_userdata( $bp->displayed_user->id );
  31.         $joined= date('F jS, Y', strtotime($currentuser ->user_registered));
  32.         echo $joined;
  33.         ?>
  34.  
  35.         </h2>
  36.         <span class=&quot;activity&quot;><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
  37.  
  38.         <?php do_action( 'bp_before_member_header_meta' ); ?>    
  39.  
  40. </div><!-- #item-header-content -->
  41.  
  42. <div id=&quot;item-buttons&quot; class=&quot;profile&quot;>
  43.  
  44.         <?php do_action( 'bp_member_header_actions' ); ?>
  45.  
  46. </div><!-- #item-buttons -->
  47.  
  48. <?php
  49. /***
  50.  * If you'd like to show specific profile fields here use:
  51.  * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field
  52.  */
  53.  do_action( 'bp_profile_header_meta' );
  54.  
  55. ?>
  56.  
  57. <?php do_action( 'bp_after_member_header' ); ?>
  58.  
  59. <?php
  60. global $bp;
  61. $currentuser = get_userdata( $bp->displayed_user->id );
  62. $joined= date(&quot;F jS, Y&quot;, strtotime($currentuser ->user_registered));
  63. echo '' . $joined . '';
  64. ?>
  65.  
  66. <?php do_action( 'template_notices' ); ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top