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.
61 lines
1.7 KiB
PHP
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 “%s”', '%s thoughts on “%s”', $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>
|