| Server IP : 46.101.140.223 / Your IP : 216.73.216.134 Web Server : nginx/1.22.1 System : Linux debian-s-1vcpu-1gb-fra1-01 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : deploy-others ( 1001) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /home/deploy-others/projects/gulak.org.ua/wp-content/themes/scaffold/ |
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://codex.wordpress.org/Template_Hierarchy
*
* @package scaffold
* @copyright Copyright (c) 2020, Danny Cooper
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
*/
/*
* 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">
<?php if ( have_comments() ) : ?>
<h4 class="comments-title">
<?php
$comments_number = get_comments_number();
if ( '1' === $comments_number ) {
// translators: %s: post title.
printf( esc_html_x( 'One Reply to “%s”', 'comments title', 'scaffold' ), get_the_title() );
} else {
printf(
esc_html(
/* translators: 1: number of comments, 2: post title */
_nx(
'%1$s Reply to “%2$s”',
'%1$s Replies to “%2$s”',
$comments_number,
'comments title',
'scaffold'
)
),
esc_html( number_format_i18n( $comments_number ) ),
get_the_title()
);
}
?>
</h2><!-- .comments-title -->
<ol class="comment-list">
<?php wp_list_comments(); ?>
</ol><!-- .comment-list -->
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<nav id="comment-nav-below" class="navigation comment-navigation clear">
<div class="nav-links">
<div class="nav-previous">
<?php previous_comments_link( esc_html__( '← Older Comments', 'scaffold' ) ); ?>
</div>
<div class="nav-next">
<?php next_comments_link( esc_html__( 'Newer Comments →', 'scaffold' ) ); ?>
</div>
</div><!-- .nav-links -->
</nav><!-- #comment-nav-below -->
<?php endif; // Check for comment navigation. ?>
<?php if ( ! comments_open() ) : // If comments are closed and there are comments, output a message? ?>
<p class="no-comments">
<?php esc_html_e( 'Comments are closed.', 'scaffold' ); ?>
</p>
<?php
endif;
endif; // Check for have_comments().
comment_form();
?>
</div><!-- #comments -->