HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/slyfwmm/adspray/wp-content/themes/aivons/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 aivons
 */

/*
 * 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()) :
	?>
		<h3 class="comment-one__title">
			<?php
			$aivons_comment_count = get_comments_number();
			if ('1' === $aivons_comment_count) {
				printf(
					/* translators: 1: title. */
					esc_html__('One thought on &ldquo;%1$s&rdquo;', 'aivons'),
					'<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;', $aivons_comment_count, 'comments title', 'aivons')),
					number_format_i18n($aivons_comment_count), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
					'<span>' . wp_kses_post(get_the_title()) . '</span>'
				);
			}
			?>
		</h3><!-- .comments-title -->



		<ul class="comment-list">
			<?php
			wp_list_comments(array(
				'style'      => 'ul',
				'avatar_size' => 90,
				'short_ping' => true,
			));
			?>
		</ul><!-- .comment-list -->

		<div class="blog-pagination">
			<?php
			paginate_comments_links(array(
				'prev_text' => '<i class="fa fa-angle-left"></i>',
				'next_text' => '<i class="fa fa-angle-right"></i>'
			));
			?>
		</div><!-- /.blog-pagination -->

		<?php

		// 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.', 'aivons'); ?></p>
	<?php
		endif;

	endif; // Check for have_comments().

	$aivons_commenter = wp_get_current_commenter();
	$aivons_comment_fields =  array(
		'author' => '<div class="col-xl-6">
		<div class="comment-form__input-box">
			<input type="text"  name="author" id="name" value="' . esc_attr($aivons_commenter['comment_author']) . '" placeholder="' . esc_attr__('Your name', 'aivons') . '" >
			<div class="comment-form__icon">
				<i class="far fa-user-circle"></i>
			</div>
		</div>
	</div>',
		'email'	=> '<div class="col-xl-6">
	<div class="comment-form__input-box">
		<input type="email" name="email" id="email" value="' . esc_attr($aivons_commenter['comment_author_email']) . '" placeholder="' . esc_attr__('Email Address', 'aivons') . '">
		<div class="comment-form__icon">
			<i class="far fa-envelope"></i>
		</div>
	</div>
</div>',
	);
	$aivons_comments_args = array(
		'fields'                => apply_filters('comment_form_default_fields', $aivons_comment_fields),
		'class_form'            => 'reply-form row',
		'class_submit'          => 'aivons comment-form__btn',
		'title_reply_before'    => '<h2 class="comment-form__title">',
		'title_reply'           => esc_html__('Leave a Comment', 'aivons'),
		'title_reply_after'     => '</h2>',
		'comment_notes_before'  => '',
		'comment_field'         => '<div class="col-xl-12">
		<div class="comment-form__input-box">
			<textarea name="comment" id="comment" class="message" placeholder="' . esc_attr__('Write Message', 'aivons') . '"></textarea>
			<div class="comment-form__icon contact-expert__icon-comment">
				<i class="far fa-comment"></i>
			</div>
		</div>
		</div>',
		'comment_notes_after'   => '',
	);
	comment_form($aivons_comments_args);
	?>

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