forked from mirror/_s
_s: Use comment_reply_link arguments to wrap reply link
Avoid empty div if no reply link
This commit is contained in:
parent
a462ad5720
commit
966d649f3c
|
@ -99,9 +99,15 @@ function _s_comment( $comment, $args, $depth ) {
|
||||||
<?php comment_text(); ?>
|
<?php comment_text(); ?>
|
||||||
</div><!-- .comment-content -->
|
</div><!-- .comment-content -->
|
||||||
|
|
||||||
<div class="reply">
|
<?php
|
||||||
<?php comment_reply_link( array_merge( $args, array( 'add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
|
comment_reply_link( array_merge( $args, array(
|
||||||
</div><!-- .reply -->
|
'add_below' => 'div-comment',
|
||||||
|
'depth' => $depth,
|
||||||
|
'max_depth' => $args['max_depth'],
|
||||||
|
'before' => '<div class="reply">',
|
||||||
|
'after' => '</div>',
|
||||||
|
) ) );
|
||||||
|
?>
|
||||||
</article><!-- .comment-body -->
|
</article><!-- .comment-body -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
Reference in New Issue