';
if ( post_password_required() ) {
echo '
';
_e( 'This post is password protected. Enter the password to view any comments.', 'chatroom');
echo '
';
echo '';
return;
}
echo '';
if ( have_comments() || ! have_comments()) {
echo '';
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) {
echo '';
echo '
';
previous_comments_link( __( '← Older Comments','chatroom' ) );
echo '
';
echo '
';
next_comments_link( __( 'Newer Comments →','chatroom' ) );
echo '
';
echo '
';
}
echo '';
wp_list_comments( array( 'callback' => 'chatroom_comment' ) );
echo '
';
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) {
echo '';
echo '
';
previous_comments_link( __( '← Older Comments','chatroom') );
echo '
';
echo '
';
next_comments_link( __( 'Newer Comments →','chatroom') );
echo '
';
echo '
';
} else {
if ( ! comments_open() ) {
echo '';
}
}
}
comment_form();