| Server IP : 104.21.31.197 / Your IP : 172.64.213.138 Web Server : nginx/1.20.2 System : Linux 172-104-110-161.ip.linodeusercontent.com 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64 User : www ( 1000) PHP Version : 8.1.9 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/lenovo-drivers.com/wordpress/wp-content/themes/wp-bootstrap-4/ |
Upload File : |
<?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 WP_Bootstrap_4
*/
/*
* 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 card">
<?php
// You can start editing here -- including this comment!
if ( have_comments() ) : ?>
<h5 class="comments-title">
<?php
printf( // WPCS: XSS OK.
/* translators: %d: number of comments. */
esc_html( _n( '%d comment', '%d comments', get_comments_number(), 'wp-bootstrap-4' ) ),
number_format_i18n( get_comments_number() ),
'<span>' . get_the_title() . '</span>'
);
?>
</h5><!-- .comments-title -->
<?php
the_comments_navigation( array(
'next_text' => esc_html__( 'Newer Comments', 'wp-bootstrap-4' ),
'prev_text' => esc_html__( 'Older Comments', 'wp-bootstrap-4' ),
) ); ?>
<ol class="comment-list">
<?php
wp_list_comments( array(
'style' => 'ul',
'short_ping' => true,
'avatar_size' => 60,
'callback' => 'wp_bootstrap_4_comment'
) );
?>
</ol><!-- .comment-list -->
<?php
the_comments_navigation( array(
'next_text' => esc_html__( 'Newer Comments', 'wp-bootstrap-4' ),
'prev_text' => esc_html__( 'Older Comments', 'wp-bootstrap-4' ),
) );
// 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.', 'wp-bootstrap-4' ); ?></p>
<?php
endif;
endif; // Check for have_comments().
?>
<?php if( comments_open() ) : ?>
<div class="wb-comment-form">
<?php
$wp_bootstrap_4_comment_field = '<div class="comment-form-textarea form-group col-md-12"><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true" class="form-control" placeholder="'. esc_attr__('Enter your comment...*', 'wp-bootstrap-4') .'"></textarea></div>';
$wp_bootstrap_4_fields = array(
'author' => '<div class="comment-form-author form-group col-md-4"><input id="author" placeholder="'. esc_attr__('Name *', 'wp-bootstrap-4') .'" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) .'" size="30" class="form-control" required /></div>',
'email' => '<p class="comment-form-email form-group col-md-4"><input id="email" placeholder="'. esc_attr__('Email *', 'wp-bootstrap-4') .'" name="email" type="email" value="' . esc_attr( $commenter['comment_author_email'] ) .'" size="30" class="form-control" required /></p>',
'url' => '<p class="comment-form-url form-group col-md-4"><input id="url" placeholder="'. esc_attr__('Website', 'wp-bootstrap-4') .'" name="url" type="url" value="' . esc_attr( $commenter['comment_author_url'] ) .'" size="30" class="form-control" /></p>',
);
comment_form( array(
'title_reply_before' => '<h5 class="reply-title">',
'title_reply_after' => '</h5>',
'title_reply' => esc_html__('Leave a Reply', 'wp-bootstrap-4'),
'cancel_reply_link' => esc_html__('Cancel', 'wp-bootstrap-4'),
'label_submit' => esc_html__('Post Comment', 'wp-bootstrap-4'),
'class_submit' => 'submit btn btn-primary comment-submit-btn',
'submit_field' => '<div class="form-submit w-100 text-center">%1$s %2$s</div>',
'cancel_reply_before' => '<small class="wb-cancel-reply">',
'class_form' => 'comment-form row align-items-center',
'comment_notes_before' => '<div class="col-md-12 text-muted wb-comment-notes"><p>' . __( 'Your email address will not be published. Required fields are marked *', 'wp-bootstrap-4' ) . '</p></div>',
'comment_notes_after' => '',
'comment_field' => $wp_bootstrap_4_comment_field,
'fields' => $wp_bootstrap_4_fields,
) );
?>
</div>
<?php endif; ?>
</div><!-- #comments -->