Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * BuddyPress - Users Header
- *
- * @package BuddyPress
- * @subpackage bp-legacy
- */
- ?>
- <?php do_action( 'bp_before_member_header' ); ?>
- <div id="item-header-avatar" class="rounded">
- <a href="<?php bp_displayed_user_link(); ?>">
- <?php bp_displayed_user_avatar( 'type=full' ); ?>
- </a>
- <?php do_action('bp_member_online_status', bp_displayed_user_id()); ?>
- </div><!-- #item-header-avatar -->
- <div id="item-header-content" <?php if (isset($_COOKIE['bp-profile-header']) && $_COOKIE['bp-profile-header'] == 'small') {echo 'style="display:none;"';} ?>>
- <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
- <h4 class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></h4>
- <?php endif; ?>
- <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
- <?php do_action( 'bp_before_member_header_meta' ); ?>
- <div id="item-meta">
- <?php if ( bp_is_active( 'activity' ) ) : ?>
- <div id="latest-update">
- <?php bp_activity_latest_update( bp_displayed_user_id() ); ?>
- <!-- addedbyval -->
- <?php global $bp, $wpdb; $user_id = bp_displayed_user_id();
- $member_genre = str_replace("local.","http://",get_user_meta($user_id, 'genre', true));
- $user_info = get_userdata( $user_id);
- $username = $user_info->user_login;
- if ($member_genre != network_site_url() ) {
- $data = '<a href="'.$member_genre.'members/'.$username.'/profile/'.'">Home Place Profile</a>';
- echo $data;
- }
- ?>
- </div>
- <?php endif; ?>
- <div id="item-buttons">
- <?php do_action( 'bp_member_header_actions' ); ?>
- </div><!-- #item-buttons -->
- <?php
- /***
- * If you'd like to show specific profile fields here use:
- * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field
- */
- do_action( 'bp_profile_header_meta' );
- ?>
- </div><!-- #item-meta -->
- </div><!-- #item-header-content -->
- <?php do_action( 'bp_after_member_header' ); ?>
- <?php do_action( 'template_notices' ); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement