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
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 }
Changelog Changelog
Version | Description |
---|---|
BuddyPress (1.5) | Introduced. |