File: //proc/thread-self/root/home/madepabj/hc-cosmetics.com/wp-content/themes/dbea/comments.php
<div class="sns-comments<?php echo (have_comments() && comments_open() )?' have-comments':' no-comment'; ?>">
<?php
if ( post_password_required() ) { ?>
<p class="no-comments">
<?php esc_html_e('This post is password protected. Enter the password to view comments.', 'dbea'); ?>
</p>
<?php
return;
}
if ( have_comments() ) : ?>
<?php if ( is_singular() ) wp_enqueue_script( "comment-reply" ); ?>
<h3 id="comments">
<span>
<?php
$comments_number = get_comments_number();
if ( '1' === $comments_number ) {
echo esc_html__( 'A comment (1)', 'dbea' );
} else {
printf(
_nx(
'A comment (%1$s)',
'All comments (%1$s)',
$comments_number,
'comments title',
'dbea'
),
number_format_i18n( $comments_number ),
the_title_attribute( 'echo=0' )
);
}
?>
</span>
</h3>
<ul class="commentlist">
<?php wp_list_comments('callback=dbea_comment'); ?>
</ul>
<?php if ( get_comment_pages_count() > 1 ) : ?>
<div class="navigation">
<h4 class="screen-reader-text"><?php echo esc_html__( 'Page:', 'dbea' ); ?></h4>
<div class="pagination">
<?php paginate_comments_links(); ?>
</div>
</div>
<?php endif; ?>
<?php
endif;
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
<p class="no-comments"><?php echo esc_html__( 'Comments are closed.', 'dbea' ); ?></p>
<?php
endif;
$req = get_option( 'require_name_email' );
$aria_req = ( $req ? " aria-required='true'" : '' );
$commenter = wp_get_current_commenter();
$consent = empty( $commenter['comment_author_email'] ) ? '' : ' checked="checked"';
//Custom Fields
$fields = array(
'author'=> '<div class="text-field"><div><input name="author" type="text" placeholder="' . esc_attr__('Name *', 'dbea') . '" size="30"' . esc_attr($aria_req) . ' /></div>',
'email' => '<div><input name="email" type="text" placeholder="' . esc_attr__('E-Mail *', 'dbea') . '" size="30"' . esc_attr($aria_req) . ' /></div>',
'url' => '<div><input name="url" type="text" placeholder="' . esc_attr__('Your website', 'dbea') . '" size="30" /></div></div>',
'cookies' => '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . esc_attr($consent) . ' />' .
'<label for="wp-comment-cookies-consent">' . esc_html__( 'Save my name, email, and website in this browser for the next time I comment.', 'dbea' ) . '</label></p>',
);
//Comment Form Args
$comments_args = array(
'fields' => $fields,
'title_reply'=>'<span>'. esc_html__('Leave a comment', 'dbea') .'</span>',
'comment_field' => '<div class="your-comment"><textarea id="comment" name="comment" placeholder="' . esc_attr__('Your comment *', 'dbea') . '" aria-required="true" cols="58" rows="8" tabindex="4"></textarea></div>',
'label_submit' => esc_html__('Post comment','dbea') ,
'comment_notes_before' => '<p class="comment-notes"><span id="email-notes">' . esc_html__( 'Your email address will not be published.', 'dbea' ) . '</span>' . esc_html__( ' Required fields are marked ', 'dbea' ) . '<span class="required">*</span></p>',
'comment_notes_after' => ''
);
comment_form($comments_args);
?>
</div>