Files
wp-bootstrap/views/partials/post-navigation.html.twig
magdev cb288d6e74
All checks were successful
Create Release Package / PHP Lint (push) Successful in 49s
Create Release Package / Build Release (push) Successful in 1m18s
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>
2026-02-08 15:11:00 +01:00

23 lines
988 B
Twig

{% if post_navigation is defined and post_navigation|length > 0 %}
<nav class="border-top border-bottom py-4 my-4" aria-label="{{ __('Post navigation') }}">
<div class="row">
<div class="col-6">
{% if post_navigation.previous is defined %}
<small class="text-body-secondary d-block mb-1">{{ __('Previous') }}</small>
<a href="{{ post_navigation.previous.url }}" class="text-decoration-none">
&larr; {{ post_navigation.previous.title }}
</a>
{% endif %}
</div>
<div class="col-6 text-end">
{% if post_navigation.next is defined %}
<small class="text-body-secondary d-block mb-1">{{ __('Next') }}</small>
<a href="{{ post_navigation.next.url }}" class="text-decoration-none">
{{ post_navigation.next.title }} &rarr;
</a>
{% endif %}
</div>
</div>
</nav>
{% endif %}