HEX
Server: Apache
System: Linux server-634962.emtiyz.com 5.14.0-611.11.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 3 09:47:37 EST 2025 x86_64
User: codo66ho (1003)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/codo66ho/public_html/aamcc.emtiyz.com/wp-content/themes/consultar/comments.php
<?php
/*
 * The template for displaying comments.
 * Author & Copyright:wpoceans
 * URL: http://themeforest.net/user/wpoceans
 */
/*
 * 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">
	<div class="comments-section comment-area">
		<?php
		// You can start editing here -- including this comment!
		if (have_comments()) : ?>
			<h3 class="comments-title">
				<?php
				printf( // WPCS: XSS OK.
					esc_html(_nx('Comment (%1$s)', 'Comments (%1$s)', get_comments_number(), 'comments title', 'consultar')),
					number_format_i18n(get_comments_number()),
					'<span>' . get_the_title() . '</span>'
				);
				?>
			</h3>
			<?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : // Are there comments to navigate through? 
			?>
				<nav id="comment-nav-above" class="navigation consultar-comment-navigation" role="navigation">
					<h2 class="consultar-screen-reader-text"><?php echo esc_html__('Comment navigation', 'consultar'); ?></h2>
					<div class="consultar-nav-links">
						<div class="consultar-nav-previous"><?php previous_comments_link(esc_html__('Older Comments', 'consultar')); ?></div>
						<div class="consultar-nav-next"><?php next_comments_link(esc_html__('Newer Comments', 'consultar')); ?></div>
					</div><!-- .nav-links -->
				</nav><!-- #comment-nav-above -->
			<?php endif; // Check for comment navigation. 
			?>
			<ol class="comments">
				<?php wp_list_comments('type=all&callback=consultar_comment_modification'); ?>
			</ol><!-- .comment-list -->
			<?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : // Are there comments to navigate through? 
			?>
				<nav id="consultar-comment-nav-below" class="navigation consultar-comment-navigation" role="navigation">
					<h2 class="consultar-screen-reader-text"><?php echo esc_html__('Comment navigation', 'consultar'); ?></h2>
					<div class="consultar-nav-links">
						<div class="consultar-nav-previous"><?php previous_comments_link(esc_html__('Older Comments', 'consultar')); ?></div>
						<div class="consultar-nav-next"><?php next_comments_link(esc_html__('Newer Comments', 'consultar')); ?></div>
					</div><!-- .nav-links -->
				</nav><!-- #comment-nav-below -->
			<?php
			endif; // Check for comment navigation.
		endif;
		// If comments are closed and there are comments, let's leave a little note, shall we?
		if (!comments_open() && get_comments_number() && post_type_supports(get_post_type(), 'comments')) : ?>
			<p class="consultar-no-comments"><?php echo esc_html__('Comments are closed.', 'consultar'); ?></p>
		<?php endif; ?>
	</div><!-- .comments-section -->
	<?php
	/* ==============================================
	  Comment Forms
	=============================================== */
	if (comments_open()) { ?>
		<div id="respond" class="leave-comment comment-form comment-respond">
			<?php
			$post_comment_text = cs_get_option('post_comment_text');
			$post_comment_text = $post_comment_text ? $post_comment_text : esc_html__('Post Comment', 'consultar');
			$fields = array(
				'author' => '<div class="form-inputs no-padding-left"><input type="text" id="author" name="author" value="' . esc_attr($commenter['comment_author']) . '" tabindex="1" placeholder="' . esc_attr__('Name', 'consultar') . '"/>',
				'email' => '<input type="text" id="email" name="email" value="' . esc_attr($commenter['comment_author_email']) . '" tabindex="2" placeholder="' . esc_attr__('Email', 'consultar') . '"/>',
				'URL' => '<input type="text" id="url" name="url" value="' . esc_attr($commenter['comment_author_url']) . '" tabindex="3" placeholder="' . esc_attr__('Website', 'consultar') . '"/></div>',
			);
			$defaults = array(
				'comment_notes_before' => '',
				'comment_notes_after'  => '',
				'fields' => apply_filters('comment_form_default_fields', $fields),
				'id_form'              => 'commentform',
				'id_submit'            => 'submit',
				'title_reply'          => esc_html__('Add your Comment', 'consultar'),
				'title_reply_to'       => wp_kses(__('Leave a Reply to %s', 'consultar'), array('a' => array('href' => array(), 'title' => array()))),
				'cancel_reply_link'    => '<i class="ti-close"></i>',
				'label_submit'         => $post_comment_text,
				'comment_field' 			 => '<div class="form-textarea no-padding-right"><textarea id="comment" name="comment" tabindex="4" rows="3" cols="30" placeholder="' . esc_attr__('Write your comment...', 'consultar') . '" ></textarea></div>'
			);
			comment_form($defaults);
			?>
		</div>
	<?php } ?>
</div><!-- #comments -->
<?php