| Server IP : 198.38.94.67 / Your IP : 216.73.217.74 Web Server : LiteSpeed System : Linux d6054.dxb1.stableserver.net 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64 User : azfilmst ( 1070) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/azfilmst/royalopus.ae/wp-content/themes/wpresidence/ |
Upload File : |
<?php
/** MILLDONE
* Comments Template
* src: comments.php
* This template handles the display of comments for posts in the WpResidence theme.
*
* @package WpResidence
* @subpackage Comments
* @since WpResidence 1.0
*/
?>
<div id="comments">
<?php if (post_password_required()) : ?>
<p class="nopassword"><?php esc_html_e('This post is password protected. Enter the password to view any comments.', 'wpresidence'); ?></p>
</div><!-- #comments -->
<?php return; ?>
<?php endif; ?>
<?php if (have_comments()) : ?>
<h3>
<?php
printf(
_n('One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'wpresidence'),
number_format_i18n(get_comments_number()),
'<span>' . get_the_title() . '</span>'
);
?>
</h3>
<ul class="commentlist">
<?php wp_list_comments(array('callback' => 'wpestate_comment')); ?>
</ul>
<?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : ?>
<nav id="comment-nav-below">
<h1 class="assistive-text"><?php esc_html_e('Comment navigation', 'wpresidence'); ?></h1>
<div class="nav-previous"><?php previous_comments_link(esc_html__('« Older Comments', 'wpresidence')); ?></div>
<div class="nav-next"><?php next_comments_link(esc_html__('Newer Comments »', 'wpresidence')); ?></div>
</nav>
<?php endif; ?>
<?php if (!comments_open() && get_comments_number()) : ?>
<p class="nocomments"><?php esc_html_e('Comments are closed.', 'wpresidence'); ?></p>
<?php endif; ?>
<?php endif; // have_comments() ?>
<?php
$commenter = wp_get_current_commenter();
$req = get_option('require_name_email');
$aria_req = ($req ? " aria-required='true'" : '');
$required_text = '';
$args = array(
'id_form' => 'commentform',
'class_submit' => 'wpresidence_button',
'id_submit' => 'submit',
'title_reply' => esc_html__('Leave a Reply', 'wpresidence'),
'title_reply_to' => esc_html__('Leave a Reply to %s', 'wpresidence'),
'cancel_reply_link' => esc_html__('Cancel Reply', 'wpresidence'),
'label_submit' => esc_html__('Post Comment', 'wpresidence'),
'comment_notes_before' => '<p class="comment-notes">' . esc_html__('Your email address will not be published.', 'wpresidence') . ($req ? $required_text : '') . '</p>',
'comment_field' => '<p class="comment-form-comment"><textarea id="comment" class="form-control" name="comment" cols="45" rows="8" aria-required="true" placeholder="' . esc_attr__('Comment', 'wpresidence') . '"></textarea></p>',
'fields' => apply_filters('comment_form_default_fields', array(
'author' => '<p class="comment-form-author"><input id="author" name="author" type="text" class="form-control" value="' . esc_attr($commenter['comment_author']) . '" size="30"' . $aria_req . ' placeholder="' . esc_attr__('Name', 'wpresidence') . '"/></p>',
'email' => '<p class="comment-form-email"><input id="email" name="email" type="text" class="form-control" value="' . esc_attr($commenter['comment_author_email']) . '" size="30"' . $aria_req . ' placeholder="' . esc_attr__('Email', 'wpresidence') . '" /></p>',
'url' => '<p class="comment-form-url"><input id="url" name="url" type="text" class="form-control" value="' . esc_attr($commenter['comment_author_url']) . '" size="30" placeholder="' . esc_attr__('Website', 'wpresidence') . '"/></p>'
))
);
comment_form($args);
?>
</div><!-- #comments -->