MOON
Server: Apache
System: Linux vps.erhabenn.com.br 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64
User: machen (1008)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /disk001/machen/www/support/wp-content/themes/wp-moose/comments.php
<?php
/**
 * The template for displaying comments.
 *
 * This is the template that displays the area of the page that contains both the current comments
 * and the comment form.
 *
 * @see https://developer.wordpress.org/themes/basics/template-hierarchy/
 * @package Moose
 */

/*
 * If the current post is protected by a password and
 * the visitor has not yet entered the password we will
 * return early without loading the comments.
 */
if ( post_password_required() ) {
	return;
}
?>

<div id="comments" class="comments-area form-controls form-default form-primary pt-gutter">

	<?php
	// Check for have_comments().
	if ( have_comments() ): ?>
        <h2 class="comments-title text-h4 mb-gutter">
			<?php
			$comment_count = get_comments_number();
			if ( 1 == $comment_count ) {
				echo esc_html__( 'One Comment', 'wp-moose' );
			} else {
				/* translators: %s: The count of comments */
				printf( esc_html__( '%s Comments', 'wp-moose' ), $comment_count );
			}
			?>
        </h2>

		<?php the_comments_navigation(); ?>

        <ol class="comment-list mb-gutter">
			<?php
			wp_list_comments( [
				'style'      => 'ol',
				'short_ping' => true,
			] );
			?>
        </ol><!-- .comment-list -->

		<?php the_comments_navigation();

		// If comments are closed and there are comments, let's leave a little note, shall we?
		if ( ! comments_open() ): ?>
            <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'wp-moose' ); ?></p>
		<?php
		endif;
	endif;

	comment_form();
	?>

</div><!-- #comments -->