registerCss( $css ); ?>
$post->comments_count ] ) ?>
user->isGuest ): ?>
0 ): ?>
render( '_comment', [ 'item' => $item, 'child' => 0 ] ) ?>
user->isGuest ): ?>
[ 'comment', 'id' => $post->id ], ] ); ?> field( $commentForm, 'text' )->textarea( [ 'rows' => 5 ] )->label( Yii::t( 'post', 'Comment' ) ) ?>
'btn btn-primary' ] ) ?>
Html::a(Yii::t('auth', 'Log in'), ['/auth/auth/login'])]) ?>
registerJs( " jQuery(document).on('click', '.blog-post-comments .comment-reply', function () { var link = jQuery(this); var form = jQuery('#reply-block'); var comment = link.closest('.post-comment'); jQuery('#postcommentform-parentid').val(comment.data('id')); form.detach().appendTo(comment.find('.reply-block:first')); return false; }); jQuery(document).on('click', '#send-comment', function () { var form = jQuery('#reply-block'); jQuery('#postcommentform-parentid').val(''); form.detach().appendTo('#reply-container'); //return false; }); " ); ?>