Files
bedrock/resources/views/partials/comments.blade.php
Brandon c72f14c68d 🎨 Move comment logic into a dedicated Composer (#3162)
* 🎨 Move comment logic into a dedicated Composer

* 🎨 Swap the method order
2024-01-18 12:37:47 -06:00

40 lines
773 B
PHP

@if (! post_password_required())
<section id="comments" class="comments">
@if ($comments)
<h2>
{!! $title !!}
</h2>
<ol class="comment-list">
{!! $comments !!}
</ol>
@if ($paginated)
<nav>
<ul class="pager">
@if ($previous)
<li class="previous">
{!! $previous !!}
</li>
@endif
@if ($next)
<li class="next">
{!! $next !!}
</li>
@endif
</ul>
</nav>
@endif
@endif
@if ($closed)
<x-alert type="warning">
{!! __('Comments are closed.', 'sage') !!}
</x-alert>
@endif
@php(comment_form())
</section>
@endif