2021-04-27 22:21:26 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The template for displaying comments
|
|
|
|
*
|
|
|
|
* The area of the page that contains both current comments
|
|
|
|
* and the comment form.
|
|
|
|
*
|
2021-04-28 01:20:47 +02:00
|
|
|
* @package arcHIVE-theme
|
|
|
|
* @since arcHIVE-theme 1.0.0
|
2021-04-27 22:21:26 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
if ( have_comments() ) :
|
|
|
|
?>
|
|
|
|
<section id="comments">
|
|
|
|
<?php
|
|
|
|
|
|
|
|
wp_list_comments(
|
|
|
|
array(
|
|
|
|
'walker' => new Foundationpress_Comments(),
|
|
|
|
'max_depth' => '',
|
|
|
|
'style' => 'ol',
|
|
|
|
'callback' => null,
|
|
|
|
'end-callback' => null,
|
|
|
|
'type' => 'all',
|
|
|
|
'reply_text' => __( 'Reply', 'foundationpress' ),
|
|
|
|
'page' => '',
|
|
|
|
'per_page' => '',
|
|
|
|
'avatar_size' => 48,
|
|
|
|
'reverse_top_level' => null,
|
|
|
|
'reverse_children' => '',
|
|
|
|
'format' => 'html5',
|
|
|
|
'short_ping' => false,
|
|
|
|
'echo' => true,
|
|
|
|
'moderation' => __( 'Your comment is awaiting moderation.', 'foundationpress' ),
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
foundationpress_the_comments_pagination();
|
|
|
|
?>
|
|
|
|
</section>
|
|
|
|
<?php
|
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
Do not delete these lines.
|
|
|
|
Prevent access to this file directly
|
|
|
|
*/
|
|
|
|
|
|
|
|
defined( 'ABSPATH' ) || die( __( 'Please do not load this page directly. Thanks!', 'foundationpress' ) );
|
|
|
|
|
|
|
|
if ( post_password_required() ) { ?>
|
|
|
|
<section id="comments">
|
|
|
|
<div class="notice">
|
|
|
|
<p class="bottom"><?php _e( 'This post is password protected. Enter the password to view comments.', 'foundationpress' ); ?></p>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<?php
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
if ( comments_open() ) :
|
|
|
|
?>
|
|
|
|
<section id="respond">
|
|
|
|
<?php
|
|
|
|
comment_form(
|
|
|
|
array(
|
|
|
|
'class_submit' => 'button'
|
|
|
|
)
|
|
|
|
);
|
|
|
|
?>
|
|
|
|
</section>
|
|
|
|
<?php
|
|
|
|
endif; // If you delete this the sky will fall on your head.
|