• v1.1.0 3165e60639

    WP Bootstrap 1.1.0
    All checks were successful
    Create Release Package / PHP Lint (push) Successful in 1m7s
    Create Release Package / Build Release (push) Successful in 1m41s
    Stable

    magdev released this 2026-02-28 22:44:25 +00:00 | 5 commits to main since this release

    Added

    • Block Renderer (inc/Block/BlockRenderer.php): New class that injects Bootstrap 5 classes into WordPress core block HTML output on the frontend via per-block render_block_{$name} filters. Handles 8 block types:
      • core/table.table on <table>, .table-striped when stripes style is active
      • core/button.btn + .btn-{variant} or .btn-outline-{variant} mapped from WP preset color slugs
      • core/buttons.d-flex .flex-wrap .gap-2 on button group wrapper
      • core/image.img-fluid on <img> for responsive images
      • core/search.input-group on inner wrapper, .form-control on input, .btn .btn-primary on button
      • core/quote.blockquote on <blockquote>, .blockquote-footer on <cite>
      • core/pullquote — Same blockquote treatment inside <figure>
      • core/list.list-group + .list-group-item when is-style-list-group block style is selected
    • Widget Renderer (inc/Block/WidgetRenderer.php): New class that transforms sidebar widgets into Bootstrap 5 card components via dynamic_sidebar_params and widget_block_content filters. Wraps each widget in a .card > .card-body structure with .card-title headings. Downgrades block widget <h2> headings to <h4> for proper sidebar visual hierarchy.
    • Widget SCSS (src/scss/_widgets.scss): New stylesheet for sidebar widget Bootstrap styling — list-group-style list items with border separators, flush-to-card-edge list positioning, Bootstrap form-control styling for select dropdowns, search form input-group layout, tag cloud with pill badges, and secondary-color post dates.
    • List Group block style: New "List Group" style registered for core/list blocks — applies Bootstrap .list-group and .list-group-item classes when selected in the editor.
    • Single post sidebar template (views/pages/single-sidebar.html.twig): New two-column layout for blog posts with col-lg-8 content area and col-lg-4 sidebar. Includes all single post features (meta, thumbnail, tags, post navigation, comments, more posts). "More posts" section uses row-cols-md-2 to fit the narrower column.
    • Extensibility: wp_bootstrap_block_renderer_blocks filter allows child themes to add/remove block handler mappings.

    Changed

    • Post template default (inc/Template/TemplateController.php): Blog posts now render with the sidebar layout by default (single-sidebar.html.twig). Posts assigned the "Full Width" template use single.html.twig instead. Template selection uses get_page_template_slug() with a match expression.
    • Sidebar data for posts (inc/Template/ContextBuilder.php): Posts always receive sidebar data (recent posts, tags, widgets) regardless of template selection, ensuring the sidebar partial always has data available.
    • Widget SCSS import (src/scss/style.scss): Added _widgets partial import between Bootstrap Icons and custom styles.
    Downloads