• WP Bootstrap 1.0.11
    All checks were successful
    Create Release Package / PHP Lint (push) Successful in 1m13s
    Create Release Package / Build Release (push) Successful in 1m56s
    Stable

    magdev released this 2026-02-28 20:38:55 +00:00 | 7 commits to main since this release

    Changed

    • Offcanvas mobile navigation: Default header now uses header-offcanvas.html.twig instead of header.html.twig. Mobile navigation slides in as an offcanvas panel from the right instead of collapsing downward.
    • User avatar in offcanvas header: When logged in, the offcanvas header displays the user's Gravatar and display name linking to the WooCommerce My Account page (or WP admin profile as fallback). Falls back to the site name when logged out.
    • Dark mode toggle repositioned: Moved from the offcanvas body to the offcanvas footer on mobile. Desktop toggle remains in the navbar.

    Added

    • User context data (inc/Template/ContextBuilder.php): New getUserData() method exposing user.logged_in, user.display_name, user.avatar, and user.account_url to all Twig templates.

    Fixed

    • Admin bar overlapping offcanvas (functions.php): Inline CSS via wp_add_inline_style() adds padding-top matching the admin bar height to .offcanvas when the admin bar is visible, preventing content overlap.
    Downloads