Skip to content

Instantly share code, notes, and snippets.

@cesasol
Created May 23, 2016 23:11
Show Gist options
  • Save cesasol/c4696ef027bb3303201683608494f2d2 to your computer and use it in GitHub Desktop.
Save cesasol/c4696ef027bb3303201683608494f2d2 to your computer and use it in GitHub Desktop.
Draft for index for bp, PH Estético
<?php
/**
* BuddyPress - Members Index
*
* @package BuddyPress
* @subpackage bp-legacy
*/
?>
<?php
/*Get HEader*/
get_header(); ?>
<!-- Start buddy profile -->
<div id="buddypress" class="spa_profile">
<?php
/*Get header for user*/
do_action( 'bp_before_member_home_content' ); ?>
<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-spas' );
else :
bp_get_template_part( 'members/single/member-header' );
endif;
?>
</div>
<!-- #item-header -->
<div class="spa_name">
<h1><?php bp_displayed_user_mentionname(); ?></h1>
</div>
<!-- Icons social -->
<?php if ( bp_has_profile('profile_group_id=3') ) : ?>
<?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
<div id="spa-social" class="button-group">
<?php if ( bp_profile_group_has_fields() ) : ?>
<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
<?php if ( bp_field_has_data() ) : ?>
<a class="button" href="<?php echo strip_tags( bp_get_the_profile_field_value() ) ?>">
<?php bp_the_profile_field_name() ?>
</a>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
</div>
<?php endwhile; ?>
<?php else: ?>
<div id="message" class="info">
<p>This user does not have a profile.</p>
</div>
<?php endif;?>
</div>
<!-- End #BuddyPress -->
<?php get_footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment