Last active
June 3, 2018 06:51
-
-
Save aalimran07/5bdea4c090baaee200ac9ff26abe5198 to your computer and use it in GitHub Desktop.
Raw
WordPress Comment list Style Bootstrap Format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
<article id="div-comment-<?php comment_ID(); ?>" class="media"> | |
<a class="pull-left" href="#" onclick="return false;"> | |
<?php if ( 0 != $args['avatar_size'] ) echo get_avatar( $comment, $args['avatar_size'] ); ?> | |
</a> | |
<div class="media-body"> | |
<h4 class="media-heading"> | |
<?php | |
/* translators: %s: comment author link */ | |
printf( __( '%s' ), | |
sprintf( '<b class="fn">%s</b>', get_comment_author_link( $comment ) ) | |
); | |
?><?php edit_comment_link( __( 'Edit' ), '<span class="edit-link">', '</span>' ); ?> | |
</h4> | |
<span> | |
<time datetime="<?php comment_time( 'c' ); ?>"> | |
<?php | |
/* translators: 1: comment date, 2: comment time */ | |
printf( __( '%1$s at %2$s' ), get_comment_date( '', $comment ), get_comment_time() ); | |
?> | |
</time> | |
</span> | |
<?php | |
comment_reply_link( array_merge( $args, array( | |
'add_below' => 'div-comment', | |
'depth' => $depth, | |
'max_depth' => $args['max_depth'], | |
'before' => '<div class="reply btn-primary">', | |
'after' => '</div>' | |
) ) ); | |
?> | |
<?php comment_text(); ?> | |
<?php if ( '0' == $comment->comment_approved ) : ?> | |
<p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.' ); ?></p> | |
<?php endif; ?> | |
</div> | |
</article> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment