PHP 8.1.33
Preview: comments.php Size: 2.05 KB
/home/jambtst2015/public_html/qasandra.com/wp-content/themes/water-news/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.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package National News
 */

/*
 * 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">

	<?php
	// You can start editing here -- including this comment!
	if ( have_comments() ) :
		?>
		<h2 class="comments-title">
			<?php
			$national_news_comment_count = get_comments_number();
			if ( '1' === $national_news_comment_count ) {
				printf(
					/* translators: 1: title. */
					esc_html__( 'One thought on &ldquo;%1$s&rdquo;', 'national-news' ),
					'<span>' . wp_kses_post( get_the_title() ) . '</span>'
				);
			} else {
				printf(
					/* translators: 1: comment count number, 2: title. */
					esc_html( _nx( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $national_news_comment_count, 'comments title', 'national-news' ) ),
					number_format_i18n( $national_news_comment_count ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
					'<span>' . wp_kses_post( get_the_title() ) . '</span>'
				);
			}
			?>
		</h2><!-- .comments-title -->

		<?php the_comments_navigation(); ?>

		<ol class="comment-list">
			<?php
			wp_list_comments(
				array(
					'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.', 'national-news' ); ?></p>
			<?php
		endif;

	endif; // Check for have_comments().

	comment_form();
	?>

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

Directory Contents

Dirs: 4 × Files: 16

Name Size Perms Modified Actions
assets DIR
- drwxr-xr-x 2024-12-06 18:03:22
Edit Download
inc DIR
- drwxr-xr-x 2024-12-06 18:03:22
Edit Download
languages DIR
- drwxr-xr-x 2024-12-06 18:03:22
Edit Download
- drwxr-xr-x 2024-12-06 18:03:22
Edit Download
1.08 KB lrw-r--r-- 2024-12-06 18:03:22
Edit Download
1.72 KB lrw-r--r-- 2024-12-06 18:03:22
Edit Download
2.05 KB lrw-r--r-- 2024-12-06 18:03:22
Edit Download
2.08 KB lrw-r--r-- 2024-12-06 18:03:22
Edit Download
935 B lrw-r--r-- 2024-12-06 18:03:22
Edit Download
11.28 KB lrw-r--r-- 2024-12-06 18:03:22
Edit Download
6.19 KB lrw-r--r-- 2024-12-06 18:03:22
Edit Download
1.82 KB lrw-r--r-- 2024-12-06 18:03:22
Edit Download
1.76 KB lrw-r--r-- 2024-12-06 18:03:22
Edit Download
904 B lrw-r--r-- 2024-12-06 18:03:22
Edit Download
5.70 KB lrw-r--r-- 2024-12-06 18:03:22
Edit Download
5 B lrw-r--r-- 2024-12-06 18:03:22
Edit Download
1.41 KB lrw-r--r-- 2024-12-06 18:03:22
Edit Download
372 B lrw-r--r-- 2024-12-06 18:03:22
Edit Download
3.09 KB lrw-r--r-- 2024-12-06 18:03:22
Edit Download
97.03 KB lrw-r--r-- 2024-12-06 18:03:22
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).