First pass at Blade templating

This commit is contained in:
kalenjohnson
2016-12-03 10:27:22 -08:00
parent 3c831356f2
commit 0918597d4a
38 changed files with 957 additions and 181 deletions

View File

@@ -0,0 +1,38 @@
<?php
if (post_password_required()) {
return;
}
?>
<section id="comments" class="comments">
@if(have_comments())
<h2>
{!! sprintf(_nx('One response to &ldquo;%2$s&rdquo;', '%1$s responses to &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'sage'), number_format_i18n(get_comments_number()), '<span>' . get_the_title() . '</span>') !!}
</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())
<li class="previous">{!! previous_comments_link(__('&larr; Older comments', 'sage')) !!}</li>
@endif
@if(get_next_comments_link())
<li class="next">{!! next_comments_link(__('Newer comments &rarr;', 'sage')) !!}</li>
@endif
</ul>
</nav>
@endif
@endif
@if(!comments_open() && get_comments_number() != '0' && post_type_supports(get_post_type(), 'comments'))
<div class="alert alert-warning">
{{ __('Comments are closed.', 'sage') }}
</div>
@endif
{!! comment_form() !!}
</section>