Logo
Explore Help
Sign In
magdev/wp-bootstrap
1
Fork 0
You've already forked wp-bootstrap
Code Issues Pull Requests Actions Releases 24 Activity
Files
d6731cca472ede14e00fb1ce921b0c00cd85e5f9
wp-bootstrap/views/components/post-loop.html.twig

12 lines
330 B
Twig
Raw Normal View History

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
{% if posts|length > 0 %}
{% for post in posts %}
{% include 'components/card-post.html.twig' with {'post': post} only %}
{% endfor %}
{% include 'partials/pagination.html.twig' %}
{% else %}
<div class="alert alert-secondary" role="alert">
{{ __('No posts were found.') }}
</div>
{% endif %}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 149ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API