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:
28
CHANGELOG.md
28
CHANGELOG.md
@@ -2,6 +2,34 @@
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [0.1.1] - 2026-02-08
|
||||
|
||||
### Added
|
||||
|
||||
- Twig-based frontend rendering via `template_redirect` hook, bypassing FSE block markup on the frontend while preserving Site Editor functionality
|
||||
- `TemplateController` class: resolves and renders Twig templates for all page types (home, single, page, archive, search, 404)
|
||||
- `ContextBuilder` class: gathers WordPress data (posts, menus, pagination, comments, sidebar, archive info) into structured arrays for Twig
|
||||
- `NavWalker` class: converts flat `wp_get_nav_menu_items()` into nested tree for Bootstrap dropdown menus
|
||||
- 20 Twig templates with proper Bootstrap 5 HTML: base layout, 5 page templates, 9 partials (header, footer, pagination, sidebar, comments, search form, dark mode toggle, meta, post navigation), 3 components (post card, post grid card, post loop)
|
||||
- Bootstrap 5 navbar with responsive collapse, brand, dropdown support, and dark mode toggle
|
||||
- Bootstrap 5 card components for post listings
|
||||
- Bootstrap 5 pagination component
|
||||
- Bootstrap 5 comment section with threaded replies and Bootstrap-styled form fields
|
||||
- Bootstrap 5 sidebar with recent posts, search, and tag cloud (badges)
|
||||
- Previous/next post navigation and "More posts" grid on single posts
|
||||
- WordPress functions in Twig: `wp_head`, `wp_footer`, `wp_body_open`, `language_attributes`, `body_class`, `home_url`, `get_bloginfo`, `get_search_query`, `wp_kses_post`, `number_format_i18n`, `_n`
|
||||
- Twig globals: `site_name`, `site_description`, `site_url`, `theme_uri`, `charset`, `current_year`
|
||||
- Twig filters: `wpautop`, `wp_kses_post`
|
||||
- `primary` and `footer` navigation menu locations
|
||||
- Comment form fields filter for Bootstrap classes (`form-control`, `form-label`, `form-check`, `btn`)
|
||||
- Fallback menu from published pages when no menu is assigned
|
||||
- Sidebar layout detection for "Blog with Sidebar" template
|
||||
- README.md with project documentation
|
||||
|
||||
### Changed
|
||||
|
||||
- Enhanced `TwigService` with WordPress output-buffering functions, globals, and filters
|
||||
|
||||
## [0.1.0] - 2026-02-08
|
||||
|
||||
### Added
|
||||
|
||||
Reference in New Issue
Block a user