Skip to content

Instantly share code, notes, and snippets.

@marcelo2605
Created June 16, 2016 19:49
Show Gist options
  • Save marcelo2605/a0d7cb73902c22af4ca01516269f0cf8 to your computer and use it in GitHub Desktop.
Save marcelo2605/a0d7cb73902c22af4ca01516269f0cf8 to your computer and use it in GitHub Desktop.
<?php
/**
* BuddyPress - Members Home
*
* @package BuddyPress
* @subpackage bp-legacy
*/
?>
<div id="buddypress" class="row">
<?php
/**
* Fires before the display of member home content.
*
* @since 1.2.0
*/
do_action( 'bp_before_member_home_content' ); ?>
<div class="col-md-10">
<div id="item-header" role="complementary">
<?php
/**
* If the cover image feature is enabled, use a specific header
*/
if ( bp_displayed_user_use_cover_image_header() ) :
bp_get_template_part( 'members/single/cover-image-header' );
else :
bp_get_template_part( 'members/single/member-header' );
endif;
?>
</div><!-- #item-header -->
<div id="item-nav">
<div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
<ul>
<?php bp_get_displayed_user_nav(); ?>
<?php
/**
* Fires after the display of member options navigation.
*
* @since 1.2.4
*/
do_action( 'bp_member_options_nav' ); ?>
</ul>
</div>
</div><!-- #item-nav -->
<div id="item-body">
<?php
/**
* Fires before the display of member body content.
*
* @since 1.2.0
*/
do_action( 'bp_before_member_body' );
if ( bp_is_user_activity() || !bp_current_component() ) :
bp_get_template_part( 'members/single/activity' );
elseif ( bp_is_user_blogs() ) :
bp_get_template_part( 'members/single/blogs' );
elseif ( bp_is_user_friends() ) :
bp_get_template_part( 'members/single/friends' );
elseif ( bp_is_user_groups() ) :
bp_get_template_part( 'members/single/groups' );
elseif ( bp_is_user_messages() ) :
bp_get_template_part( 'members/single/messages' );
elseif ( bp_is_user_profile() ) :
bp_get_template_part( 'members/single/profile' );
elseif ( bp_is_user_forums() ) :
bp_get_template_part( 'members/single/forums' );
elseif ( bp_is_user_notifications() ) :
bp_get_template_part( 'members/single/notifications' );
elseif ( bp_is_user_settings() ) :
bp_get_template_part( 'members/single/settings' );
// If nothing sticks, load a generic template
else :
bp_get_template_part( 'members/single/plugins' );
endif;
/**
* Fires after the display of member body content.
*
* @since 1.2.0
*/
do_action( 'bp_after_member_body' ); ?>
</div><!-- #item-body -->
</div>
<div class="col-md-2">
<aside id="profile-aside">
<div id="item-header-avatar">
<a href="<?php bp_displayed_user_link(); ?>">
<?php bp_displayed_user_avatar( 'type=full' ); ?>
</a>
</div><!-- #item-header-avatar -->
<div class="active-time"><?php bp_last_activity( bp_displayed_user_id() ); ?></div>
<div id="item-buttons"><?php
/**
* Fires in the member header actions section.
*
* @since 1.2.6
*/
do_action( 'bp_member_header_actions' ); ?>
</div><!-- #item-buttons -->
<div class="about">
<?= wpautop(xprofile_get_field_data("About me", bp_displayed_user_id() ) ); ?>
</div>
</aside>
</div>
<?php
/**
* Fires after the display of member home content.
*
* @since 1.2.0
*/
do_action( 'bp_after_member_home_content' ); ?>
</div><!-- #buddypress -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment