You've already forked wp-bootstrap
v0.1.1 - Bootstrap frontend rendering via Twig templates
Replace FSE block markup on the frontend with proper Bootstrap 5 HTML rendered through Twig templates. The Site Editor remains functional for admin editing while the public site outputs Bootstrap navbar, cards, pagination, grid layout, and responsive components. New PHP classes: TemplateController, ContextBuilder, NavWalker New Twig templates: 20 files (base, pages, partials, components) Enhanced TwigService with WordPress functions and globals Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
19
views/partials/comments.html.twig
Normal file
19
views/partials/comments.html.twig
Normal file
@@ -0,0 +1,19 @@
|
||||
{% if comments is defined and (comments.is_open or comments.count > 0) %}
|
||||
<section class="comments-section border-top pt-5 mt-5" id="comments">
|
||||
<h2 class="h4 mb-4">{{ comments.title }}</h2>
|
||||
|
||||
{% if comments.list|length > 0 %}
|
||||
<div class="comment-list mb-4">
|
||||
{% for comment in comments.list %}
|
||||
{% include 'partials/comment-item.html.twig' with {'comment': comment, 'depth': 0} only %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if comments.is_open %}
|
||||
<div class="comment-form mt-4">
|
||||
{{ comments.form|raw }}
|
||||
</div>
|
||||
{% endif %}
|
||||
</section>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user