| Server IP : 138.197.162.186 / Your IP : 216.73.216.17 Web Server : nginx/1.24.0 System : Linux ubuntu-s-1vcpu-512mb-10gb-tor1 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/yogaensalada-site/wp-content/themes/dosislite/ |
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 Dosislite
*/
/*
* 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;
}
$fields = array(
'author' => '<div class="row"><div class="col-sm-6"><input type="text" name="author" id="name" class="input-form" placeholder="'.esc_attr__('Your name *', 'dosislite').'" /></div>',
'email' => '<div class="col-sm-6"><input type="text" name="email" id="email" class="input-form" placeholder="'.esc_attr__('Your email *', 'dosislite').'"/></div>',
'website'=>'<div class="col-sm-12"><input type="text" name="url" id="url" class="input-form" placeholder="'.esc_attr__('Website URL', 'dosislite').'"/></div></div>'
);
$custom_comment_form = array(
'fields' => apply_filters( 'comment_form_default_fields', $fields ),
'comment_field' => '<textarea name="comment" id="message" class="textarea-form" placeholder="'.esc_attr__('Your comment ...', 'dosislite').'" rows="1"></textarea>',
'logged_in_as' => '<p class="logged-in-as">' . esc_html__('Logged in as', 'dosislite') .' <a href="'.admin_url('profile.php').'">'. $user_identity .'</a> <a href="'. wp_logout_url( apply_filters( 'the_permalink', get_permalink() ) ) .'">'. esc_html__('Log out?', 'dosislite'). '</a></p>',
'cancel_reply_link' => esc_html__( 'Cancel' , 'dosislite' ),
'comment_notes_before' => '',
'comment_notes_after' => '',
'title_reply' => esc_html__('Leave a Reply', 'dosislite'),
'label_submit' => esc_html__( 'Post Comment' , 'dosislite' ),
'id_submit' => 'comment_submit',
);?>
<?php if ( have_comments() ) : ?>
<div id="comments" class="comments-area">
<?php if ( comments_open() ) : ?>
<h3 class="comments-title"><?php comments_number( null, esc_html__('1 Comment', 'dosislite'), '% ' . esc_html__('Comments', 'dosislite') ); ?></h3>
<?php endif; ?>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
<nav id="comment-nav-above" class="navigation comment-navigation" role="navigation">
<h1 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'dosislite' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'dosislite' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'dosislite' ) ); ?></div>
</nav>
<?php endif; ?>
<ol class="comment-list">
<?php
wp_list_comments( array(
'style' => 'ol',
'short_ping' => true,
'avatar_size' => 100,
'callback' => 'dosislite_custom_comment'
) );
?>
</ol>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
<h1 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'dosislite' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'dosislite' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'dosislite' ) ); ?></div>
</nav>
<?php endif; ?>
<?php if ( ! comments_open() ) : ?>
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'dosislite' ); ?></p>
<?php endif; ?>
</div>
<?php endif; ?>
<?php comment_form($custom_comment_form); ?>