pressbooks aldine theme the theme used for the front page or default book
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.2 KiB

7 years ago
@php
if (post_password_required()) {
return;
}
@endphp
<section id="comments" class="comments">
@if (have_comments())
<h2>
7 years ago
{!! sprintf(_nx('One response to &ldquo;%2$s&rdquo;', '%1$s responses to &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'pressbooks-aldine'), number_format_i18n(get_comments_number()), '<span>' . get_the_title() . '</span>') !!}
7 years ago
</h2>
<ol class="comment-list">
{!! wp_list_comments(['style' => 'ol', 'short_ping' => true]) !!}
</ol>
@if (get_comment_pages_count() > 1 && get_option('page_comments'))
<nav>
<ul class="pager">
@if (get_previous_comments_link())
7 years ago
<li class="previous">@php(previous_comments_link(__('&larr; Older comments', 'pressbooks-aldine')))</li>
7 years ago
@endif
@if (get_next_comments_link())
7 years ago
<li class="next">@php(next_comments_link(__('Newer comments &rarr;', 'pressbooks-aldine')))</li>
7 years ago
@endif
</ul>
</nav>
@endif
@endif
@if (!comments_open() && get_comments_number() != '0' && post_type_supports(get_post_type(), 'comments'))
<div class="alert alert-warning">
7 years ago
{{ __('Comments are closed.', 'pressbooks-aldine') }}
7 years ago
</div>
@endif
@php(comment_form())
</section>