bp_dtheme_before_comment_form()

Adds the user’s avatar before the comment form box.


Description Description

The ‘comment_form_top’ action is used to insert our HTML within

so that the nested comments comment-reply javascript moves the entirety of the comment reply area.

See also See also


Top ↑

Source Source

File: bp-themes/bp-default/functions.php

function bp_dtheme_before_comment_form() {
?>
	<div class="comment-avatar-box">
		<div class="avb">
			<?php if ( bp_loggedin_user_id() ) : ?>
				<a href="<?php echo bp_loggedin_user_domain(); ?>">
					<?php echo get_avatar( bp_loggedin_user_id(), 50 ); ?>
				</a>
			<?php else : ?>
				<?php echo get_avatar( 0, 50 ); ?>
			<?php endif; ?>
		</div>
	</div>

	<div class="comment-content standard-form">
<?php
}


Top ↑

Changelog Changelog

Changelog
Version Description
BuddyPress (1.5) Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.