<?php
/**
 * BuddyPress - Users Cover Image Header
 *
 * @since 3.0.0
 * @version 3.0.0
 */
?>

<div id="cover-image-container">
	<div id="header-cover-image"></div>

	<div id="item-header-cover-image" class="d-flex justify-content-center align-items-end">
		<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><!-- #item-header-cover-image -->
</div><!-- #cover-image-container -->

<div id="item-header-content">
	<div class="bb-user-content-wrap text-center">
		
		<h2 class="mt-0 mb-0 user-nicename"><?php bp_user_fullname(); ?></h2>

		<?php bp_nouveau_member_hook( 'before', 'header_meta' ); ?>

		<?php if ( bp_nouveau_member_has_meta() ) : ?>
			<div class="item-meta mt-0 mb-0 pb-0">
				<span class="mention-name">@<?php bp_displayed_user_mentionname(); ?></span>
				<span class="separator">•</span>
				<?php bp_nouveau_member_meta(); ?>
			</div><!-- #item-meta -->
		<?php endif; ?>
	</div>
	<div class="member-header-actions d-flex justify-content-center mt-3">
		<?php
		bp_nouveau_member_header_buttons(
			array(
				'container'         => 'ul',
				'button_element'    => 'button',
				'container_classes' => array( 'member-header-actions' ),
			)
		);
		?>
	</div>
	<?php 
		if( function_exists('GamiPress') ) {
			echo '<div class="edumodo-gamipress-points">';
				echo do_shortcode('[gamipress_points user_id="'.bp_displayed_user_id().'"]');
			echo '</div>';
		}
	?>
</div><!-- #item-header-content -->
