HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/shootinschool/wp-content/themes/shootinschool/comments.php
<?php
if ( post_password_required() ) {
	return;
}

$avatarSize = (!is_af()) ? 80 : 90;

?>

<div id="comments" class="comments-area">

	<?php if ( have_comments() ) { ?>
		<h4 class="comments-title">
			<?php
			if(!is_layout("sccr") && !is_layout("baseball") && !is_layout('magazine_one')) {
				comments_number();
			} elseif(is_layout('magazine_one')) {
                comments_number("", "", "Comments (%)");
            } else {
				comments_number("", "", "comments (%)");
			}
			?>
		</h4>

		<ul class="comment-list stm-list-duty">
			<?php
			wp_list_comments( array(
				'style'       => 'ul',
				'short_ping'  => true,
				'avatar_size' => $avatarSize,
				'callback'    => 'splash_theme_comment'
			) );
			?>
		</ul>
		<div class="clearfix"></div>

		<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) { ?>
			<nav class="navigation comment-navigation" role="navigation">
				<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'splash' ); ?></h2>

				<div class="nav-links">
					<?php
					if ( $prev_link = get_previous_comments_link( esc_html__( 'Older Comments', 'splash' ) ) ) {
						printf( '<div class="nav-previous">%s</div>', $prev_link );
					}
					if ( $next_link = get_next_comments_link( esc_html__( 'Newer Comments', 'splash' ) ) ) {
						printf( '<div class="nav-next">%s</div>', $next_link );
					}
					?>
				</div>
			</nav>
		<?php } ?>

	<?php } ?>

	<?php if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) { ?>
		<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'splash' ); ?></p>
	<?php } ?>

	<?php comment_form( array(
		'title_reply' => 'Leave a comment',
		'comment_notes_before' => '',
		'comment_notes_after'  => '',
		'logged_in_as'         => '<p class="logged-in-as">' .
			sprintf(
				__( '<a href="%1$s">Logged in as %2$s</a> <a href="%3$s" title="Log out of this account">Log out?</a>', 'splash' ),
				admin_url( 'profile.php' ),
				$user_identity,
				wp_logout_url( apply_filters( 'the_permalink', get_permalink() ) )
			) . '</p>',
	) ); ?>

</div>