HEX
Server: Apache/2
System: Linux sv2.klungbaan.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: klungadmin (1002)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/klungadmin/domains/klungbaan.com/private_html/rent/wp-content/themes/klungbaan/comments.php
<?php
/**
 * The template for displaying Comments
 *
 * The area of the page that contains comments and the comment form.
 *
 * @package Houzez
 * @since Houzez 1.0
 */

/*
 * 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.
 */
global $houzez_local;
if ( post_password_required() ) {
	return;
}
?>

<?php if ( have_comments() ) : ?>
<div class="blog-section">
	<h3 class="blog-section-title">
	<?php
		printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'houzez' ),
			number_format_i18n( get_comments_number() ), get_the_title() );
	?>
	</h3>
	<ul class="comments-block">
		<?php
		wp_list_comments( array(
			'style'      => 'ul',
			'short_ping' => true,
			'avatar_size'=> 60,
			'callback' => 'houzez_comments_callback'
		) );
		?>
	</ul>

	<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
		<nav id="comment-nav-above" class="navigation comment-navigation" role="navigation">
			<div class="nav-previous"><?php previous_comments_link( esc_html__( '&larr; Older Comments', 'houzez' ) ); ?></div>
			<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments &rarr;', 'houzez' ) ); ?></div>
		</nav>
	<?php endif; ?>

	<?php if ( ! comments_open() ) : ?>
	<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'houzez' ); ?></p>
	<?php endif; ?>

</div>
<?php endif; // have_comments() ?>

<div class="blog-section">
	<?php
	//Custom Fields
	$fields =  array(
		'author'=> '<div class="row">
						<div class="col-sm-6">
							<div class="form-group">
								<div class="input-user input-icon">
									<input name="author" required class="form-control" id="author" value="" placeholder="'.$houzez_local['your_name'].'" type="text">
								</div>
							</div>
						</div>',

		'email' => '<div class="col-sm-6">
						<div class="form-group">
							<div class="input-email input-icon">
								<input type="email" class="form-control" required name="email" id="email" placeholder="'.$houzez_local['your_email'].'">
							</div>
						</div>
					</div>',

		'url' 	=> '</div>',
	);

	//Comment Form Args
	$comments_args = array(
		'fields' => $fields,
		'title_reply'=> $houzez_local['join_discussion'],
		'comment_notes_before' => '',
		'comment_notes_after' => '',
		'comment_field' => '<div class="row"><div class="col-sm-12"><div class="form-group"><textarea class="form-control" required rows="4" name="comment" id="comment"></textarea></div></div></div>',
		'label_submit' => $houzez_local['submit']
	);

	// Show Comment Form
	comment_form($comments_args);
	?>

</div>