Files
Umbra-Bookshelf/theme/comments.php
bdm 5b5303186a Establish Umbra-Bookshelf as the successor repository
Continues the Bookshelf history. The three plugins tracked there are
consolidated into umbra-bookshelf/ and this repository becomes the canonical
home for the plugin and the theme.

  bd-bookshelf/  ->  theme/     separate artifact, name unchanged
  (root specs)   ->  umbra-bookshelf/spec/  aligned to Umbra Bookshelf
  old plugin zips -> archive/pre-umbra-releases/

Adds a repository README and drops the Bookshelf closure notice.
2026-10-18 19:56:26 -07:00

61 lines
1.7 KiB
PHP

<?php
// Copyright 2026 Umbra Tools (umbratools.com)
// SPDX-License-Identifier: Apache-2.0
/**
* The template for displaying comments
*
* @package BD_Bookshelf
*/
if (post_password_required()) {
return;
}
?>
<div id="comments" class="comments-area">
<?php if (have_comments()) : ?>
<h2 class="comments-title">
<?php
$comment_count = get_comments_number();
printf(
esc_html(_n('One thought on &ldquo;%s&rdquo;', '%s thoughts on &ldquo;%s&rdquo;', $comment_count, 'bd-bookshelf')),
'<span>' . wp_kses_post(get_the_title()) . '</span>',
number_format_i18n($comment_count)
);
?>
</h2>
<?php the_comments_navigation(); ?>
<ol class="comment-list">
<?php
wp_list_comments(array(
'style' => 'ol',
'short_ping' => true,
'avatar_size' => 50,
));
?>
</ol>
<?php the_comments_navigation(); ?>
<?php endif; ?>
<?php if (!comments_open() && get_comments_number() && post_type_supports(get_post_type(), 'comments')) : ?>
<p class="no-comments"><?php esc_html_e('Comments are closed.', 'bd-bookshelf'); ?></p>
<?php endif; ?>
<?php
comment_form(array(
'title_reply' => esc_html__('Leave a Comment', 'bd-bookshelf'),
'title_reply_before' => '<h3 id="reply-title" class="comment-reply-title">',
'title_reply_after' => '</h3>',
'cancel_reply_link' => esc_html__('Cancel reply', 'bd-bookshelf'),
'label_submit' => esc_html__('Post Comment', 'bd-bookshelf'),
));
?>
</div>