| Server IP : 62.72.47.131 / Your IP : 216.73.217.34 Web Server : Apache/2.4.66 (Debian) System : Linux 975cdb959a49 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : ( 501) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/themes/medicate/ |
Upload File : |
<?php
use peaceful\medicate\Helper;
/**
* 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://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage medicate
* @since 1.0
* @version 3.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="pt-comment-area">
<?php
// You can start editing here -- including this comment!
if ( have_comments() ) : ?>
<h3 class="comments-title">
<?php
$comments_number = get_comments_number();
echo esc_html($comments_number);
?>
<?php echo esc_html__('Comment', 'medicate'); ?>
</h3>
<ol class="commentlist">
<?php wp_list_comments( array(
'callback' => array(\peaceful\medicate\Helper::instance(),'comments'),
'style' => 'ol',
'avatar_size'=> 120,
) );
?>
</ol><!-- .commentlist -->
<?php the_comments_pagination( array(
'prev_text' => \peaceful\medicate\Helper::instance()->get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . esc_html__( 'Previous', 'medicate' ) . '</span>',
'next_text' => '<span class="screen-reader-text">' . esc_html__( 'Next', 'medicate' ) . '</span>' . \peaceful\medicate\Helper::instance()->get_svg( array( 'icon' => 'arrow-right' ) ),
) );
endif; // Check for have_comments().
// 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="no-comments"><?php esc_html__( 'Comments are closed.', 'medicate' ); ?></p>
<?php
endif;
$commenter = wp_get_current_commenter();
$comments_args = array(
// Change the title of send button
'label_submit' => esc_html__( 'Post comment', 'medicate' ),
// Change the title of the reply section
'title_reply' => esc_html__( 'Write a Reply or Comment', 'medicate' ),
// Remove "Text or HTML to be displayed after the set of comment fields".
'comment_notes_after' => '',
// Redefine your own textarea (the comment body).
'comment_field' => '<p class="comment-form-comment"><textarea id="comment" name="comment" aria-required="true" cols="60" rows="6" placeholder="'.esc_attr__('Enter Your Comment' , 'medicate').'" ></textarea></p>',
);
comment_form( $comments_args );
?>
</div><!-- #comments -->