airfleet/airfleet-nav-plugin

Project releases

airfleet-nav-plugin

Release 4.1.1

Resolved fatal errors caused by non-array ACF rules and unknown rule types.

GitHub
View full changelog

Fixed

  • Fixed fatal error in RenderLayoutBlocks::is_nav_post_match() when ACF rules field returns a non-array value (e.g. string) — now safely falls back to an empty array via is_array() check
  • Fixed uncaught exception from RulesFactory when an unknown or malformed rule type is encountered — wrapped in try/catch to log the error and return false (non-match) instead of crashing
airfleet-nav-plugin

Release 4.1.0

Added height calculation for announcements bars with sticky and default options.

GitHub
View full changelog

Added

  • Added Announcements bars height calculation for sticky and default options for complex usage inside CSS
airfleet-nav-plugin

Release 4.0.0

PHP requirement increased to 8.2, framework dependency added, and package manager switched to Bun.

GitHub
View full changelog

Changed

  • Breaking: Increased PHP version requirement to >=8.2
  • Breaking: Added new dependency - Airfleet Framework plugin - and removed scoped framework composer package
  • Added plugin dependencies in main plugin file (Requires Plugins metadata field)
  • Internal: Increased Node.js version requirement to >=24
  • Internal: Bump npm dependency @airfleet/wordpress-dev to ^4.0.0
  • Internal: Bump composer dependency airfleet/wordpress-dev to ^4.0.0
  • Internal: Switched package manager to Bun
  • Internal: Updated linters and development tools
  • Internal: Updated configuration for development tools
  • Internal: Moved configuration sections from package.json to dedicated config files
  • Internal: Updated browserslist configuration
  • Internal: Updated package.json scripts to use Airfleet CLI
  • Internal: Updated README.md to remove Getting Started and Documentation sections
  • Internal: Updated Plugin URI metadata field in main plugin file
  • Internal: Updated GitHub workflows
  • Internal: Added .airfleet-license and .airfleet-visible
airfleet-nav-plugin

Release 3.9.3

Fixed a nav rule error when adding a Pages rule with a blank Pages field.

GitHub
View full changelog

Fixed

  • Fixed nav rule error that occurred when adding a Pages rule and leaving the Pages field blank: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given
  • Added condition "required": 1 mandatory rule for post types, pages, taxonomies and authors in Pages rule
airfleet-nav-plugin

Release 3.9.2

Fixed PHP warnings for null properties 'post_type' and 'public'.

GitHub
View full changelog

Fixed

  • Fixed php warning Attempt to read property "post_type" on null.
  • Fixed php warning Attempt to read property "public" on null.
airfleet-nav-plugin

Release 3.9.1

Fixed PHP deprecation warning for automatic boolean-to-array conversion.

GitHub
View full changelog

Fixed

  • Fixed php deprecated message of "Automatic conversion of false to array".
airfleet-nav-plugin

Release 3.9.0

Added variables for sticky and bottom page elements, scrollbar width, and WordPress admin bar position.

GitHub
View full changelog

Added

  • Added CSS variable --afs-sticky-page-elements-total-height which accounts for total height of the top sticky elements and updates automatically on height changes. Sticky elements are any element with [data-af-sticky-page-element], e.g. headers, announcements.
  • Added CSS variable --afs-bottom-page-elements-total-height which accounts for total height of the bottom elements and updates automatically on height changes. Bottom elements are any element with [data-af-bottom-page-element], e.g. footer.
  • All [data-af-sticky-page-element] elements will have variable --afs-$element-height created based on their main class (e.g. --afs-header-height, --afs-announcement-bar-height).
  • Added CSS variable --afs-scrollbar-width set with width of scrollbar in pixels.
  • Added CSS variable --afs-wp-admin-bar-position set with CSS position of the admin bar (e.g. static).

Changed

  • Bump @airfleet/wordpress-dev to 3.4.0
airfleet-nav-plugin

Release 3.8.1

Fixed issue with header/footer not displaying on 404 pages.

GitHub
View full changelog

Fixed

  • Fixed situation when Header/Footer not showing on 404 page.
airfleet-nav-plugin

Release 3.8.0

Additional announcement options added to page settings.

GitHub
View full changelog

Added

  • Added additional option for the page setting [Announcement], Add, meaning additional -- Global + Custom announcements will be rendered on the page.
airfleet-nav-plugin

Release 3.7.0

Added a new filter to automatically add blocks to announcements.

GitHub
View full changelog

Added

  • Added new filter airfleet/nav/announcements/allowed_blocks to automatically add blocks to announcements. Can be used for different plugins to include items to announcements by default.
airfleet-nav-plugin

Release 3.6.0

Added Archive (excluding taxonomies) as a Page Type option in the Post Types rule

GitHub
View full changelog

Changed

  • "Post Types" rule: Added new Page Type option Archive (excluding taxonomies) and changed current page type option Archive to Archive (including taxonomies)
airfleet-nav-plugin

Release 3.5.0

Added a condition for the "min": 1 mandatory rule when default blocks are not shown on all pages.

GitHub
View full changelog

Added

  • Added condition for "min": 1 mandatory rule when "Default block shown on all pages" is disabled
airfleet-nav-plugin

Release 3.4.0

Moved Airfleet Nav: Post CPT fields to the sidebar

GitHub
View full changelog

Changed

  • Move Airfleet Nav: Post CPT fields to sidebar
airfleet-nav-plugin

Release 3.3.0

Added support for announcements with customizable page-level overrides.

GitHub
View full changelog

Added

  • Added post type af_nav_announcement (for managing Announcements)
  • Added global options to enable/disable announcements features
  • Added page options to override global announcements. Page option custom can now select more than one announcement.
airfleet-nav-plugin

Release 3.2.0

Private post types are no longer included in header and footer, and the 'Post Types' rule has been updated accordingly.

GitHub
View full changelog

Changed

  • Header/Footer: exclude from showing in private post types, i.e. exclude from non-public post types or post types with airfleet_private set to true (exclude from Style Guide)
  • "Post Types" rule now excludes post types with airfleet_private set to true (exclude Style Guide)
airfleet-nav-plugin

Release 3.1.2

Fixed the conditional display of the Author label on page load for the Author Rule.

GitHub
View full changelog

Fixed

  • Fixed conditionally display of Author label on page load for Author Rule
airfleet-nav-plugin

Release 3.1.1

Fixed an error with the author rule function in_array().

GitHub
View full changelog

Fixed

  • Fixed Author Rule Uncaught TypeError: in_array(): Argument #2 must be of type array, bool given
airfleet-nav-plugin

Release 3.1.0

Added two new conditional logic rules for headers and footers in archives.

GitHub
View full changelog

Added

  • Added new conditional logic rule for header/footer - match author archive page
  • Added new conditional logic rule for header/footer - match specific authors archive pages
airfleet-nav-plugin

Release 3.0.2

Fixed issue with multiple headers/footers showing due to WPML filter ignoring

GitHub
View full changelog

Fixed

  • Fixed multiple headers/footers showing due to WPML filters being ignored when getting header/footer posts
airfleet-nav-plugin

Release 3.0.1

Fixed issue with custom footer/header on archive pages

GitHub
View full changelog

Fixed

  • Fixed custom footer/header set for latest single CPT also showing in archive page
airfleet-nav-plugin

Release 3.0.0

Removed global options for Header Blocks and Footer Blocks, replaced by new post types.

GitHub
View full changelog

Removed

  • BREAKING! Removed global options for Header Blocks and Footer Blocks (replaced by new post types)
  • BREAKING! Removed all negative header/footer rule conditions (e.g. previously block could match if it was NOT front page, now it can only matche if it IS front page - this greatly simplifies logic and complexity to determine which blocks should be shown on page)

Added

  • Added post type af_nav_header (for managing headers, replaces previous Header Blocks global options)
  • Added post type af_nav_footer (for managing footers, replaces previous Footer Blocks global options)
  • Added new conditional logic rule for header/footer - match not found page (404)

Changed

  • BREAKING! Updated page/post options for Header/Footer: now you can select between Default/Custom/None
airfleet-nav-plugin

Release 2.0.0

Added conditional logic options for global header/footer blocks

GitHub
View full changelog

Added

  • BREAKING: Added conditional logic options for global header/footer blocks (show different sets of blocks based on Page, Post Type, and Taxonomy rules)
airfleet-nav-plugin

Release 1.2.0

Added filters for overriding header and footer blocks

GitHub
View full changelog

Added

  • Added filters airfleet/nav/header-blocks and airfleet/nav/footer-blocks for Header Blocks and Footer Blocks so we can override them
airfleet-nav-plugin

Release 1.1.1

Conditional added to override header and footer on Blog's Posts page

GitHub
View full changelog

Added

  • Added conditional to check if the Posts page is selected for Blog so we can override the header and footer
airfleet-nav-plugin

Release 1.1.0

Removed two filters and added options for setting block hook priorities.

GitHub
View full changelog

Changed

  • Removed filters airfleet/nav/header-blocks/priority and airfleet/nav/footer-blocks/priority
  • Added options to set header and footer blocks hook priority in the admin
airfleet-nav-plugin

Release 1.0.0

Default priority for footer blocks changed to 10, affecting their HTML placement order.

GitHub
View full changelog

Changed

  • BREAKING: changed default priority for footer blocks to 10 (this influences the order in which footer blocks are placed in HTML)
airfleet-nav-plugin

Release 0.3.1

Set composer vendor-scoped autoloader suffix based on plugin name

GitHub
View full changelog

Changed

  • Set composer vendor-scoped autoloader-suffix based on plugin name
airfleet-nav-plugin

Release 0.3.0

Added options for mega menus, headers, and footers in the navigation plugin.

GitHub
View full changelog

Added

  • Mega Menu: added option to enable/disable mega menu
  • Header: added option to enable/disable header blocks
  • Header: added global options to set header blocks
  • Header: added page/post options to override global header blocks
  • Footer: added option to enable/disable footer blocks
  • Footer: added global options to set footer blocks
  • Footer: added page/post options to override global footer blocks

Changed

  • Mega Menu: added instructions to options
  • Mega Menu: removed CSS that was hiding options tab
  • Renamed menu item to "Nav settings"

Fixed

  • Mega Menu: prevent dynamic choices from showing when editing ACF
airfleet-nav-plugin

Release 0.2.0

Removed Walker class and added Mega Menu features.

GitHub
View full changelog

Removed

  • Removed Walker class

Added

  • Mega Menu: added CPT to define the menu's content
  • Mega Menu: added option to whitelist the block which will be possible to add for the editor (it's our internal option)
  • Mega Menu: added filter airfleet/nav/mega_menu/menu_item/classes to customize the classes of root menu dom element
  • Mega Menu: added filter airfleet/nav/mega_menu/start_el/classes to customize the classes of mega menu dom element
  • Mega Menu: added filter airfleet/nav/mega_menu/start_el to customize the content of mega menu dom element
airfleet-nav-plugin

Release 0.1.0

Added Mega Menu functionality with new walker class, action, and options.

GitHub
View full changelog

Added

  • Mega Menu: added MegaMenuWalker nav walker class
  • Mega Menu: added action airfleet/nav/mega_menu/render to render mega menu
  • Mega Menu: added custom fields
  • Mega Menu: added option to enable/disable menu fields