%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/public_html/stlc/wp-content/themes/insur/
Upload File :
Create Path :
Current File : /home/opti/public_html/stlc/wp-content/themes/insur/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 insur
 */

/*
 * 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
			$insur_comment_count = get_comments_number();
			if ('1' === $insur_comment_count) {
				printf(
					/* translators: 1: title. */
					esc_html__('One thought on &ldquo;%1$s&rdquo;', 'insur'),
					'<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;', $insur_comment_count, 'comments title', 'insur')),
					number_format_i18n($insur_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.', 'insur'); ?></p>
	<?php
		endif;

	endif; // Check for have_comments().

	$insur_commenter = wp_get_current_commenter();
	$insur_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($insur_commenter['comment_author']) . '" placeholder="' . esc_attr__('Your name', 'insur') . '" >
		</div>
	</div>',
		'email'	=> '<div class="col-xl-6">
		<div class="comment-form__input-box">
			<input type="email" name="email" id="email" value="' . esc_attr($insur_commenter['comment_author_email']) . '" placeholder="' . esc_attr__('Email address', 'insur') . '">
		</div>
	</div>',
	);
	$insur_comments_args = array(
		'fields'                => apply_filters('comment_form_default_fields', $insur_comment_fields),
		'class_form'            => 'reply-form row',
		'title_reply_before'    => '<h2 class="comment-form__title">',
		'title_reply'           => esc_html__('Leave a comment', 'insur'),
		'title_reply_after'     => '</h2>',
		'comment_notes_before'  => '',
		'class_container'      => 'comment-respond comment-one__form',
		'comment_field'         => '<div class="col-xl-12">
		<div class="comment-form__input-box">
			<textarea name="comment" id="comment" placeholder="' . esc_attr__('Write comment', 'insur') . '"></textarea>
		</div>
		</div>',
		'submit_button'        => '<button type="submit" class="thm-btn comment-form__btn">' . esc_html__('Submit Comment', 'insur') . '</button>',
		'comment_notes_after'   => '',
	);
	comment_form($insur_comments_args);
	?>

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

Zerion Mini Shell 1.0