Skip to content

Releases: teppokoivula/MarkupMenu

1.2.2

Choose a tag to compare

@teppokoivula teppokoivula released this 29 Jul 14:56

Fixed

  • Fixed PHP 8.4 deprecations for optional parameters declared before required parameters (dropped redundant defaults on already-required leading params; no signature or nullability changes).

1.2.1

Choose a tag to compare

@teppokoivula teppokoivula released this 29 Jul 14:23

Fixed

  • Fixed PHP 8.4 deprecations (implicitly nullable types).

1.2.0

Choose a tag to compare

@teppokoivula teppokoivula released this 24 Mar 10:58

Added

  • "root", for the root page of the rendered list/menu, is now included in placeholders for list and nav templates.

1.1.1

Choose a tag to compare

@teppokoivula teppokoivula released this 02 Nov 08:58

Fixed

  • Restored options array for ___getTemplate() params.

1.1.0

Choose a tag to compare

@teppokoivula teppokoivula released this 02 Nov 08:54

Added

  • Placeholders array is passed to ___getTemplate() and made available for callable templates.

1.0.0

Choose a tag to compare

@teppokoivula teppokoivula released this 30 Aug 15:59

Added

  • New hookable methods treeItemIsParent() and arrayItemIsParent().

Changed

  • Signature for hookable method renderArrayItem has changed, $root item is now provided as the third param. This applies to a protected method, but is still a breaking change in case third party code is hooking into said method.

Fixed

  • Root page ID check in renderArrayItem() was referring to a non-existing variable.

0.11.0

Choose a tag to compare

@teppokoivula teppokoivula released this 04 Dec 21:16

Added

  • Support for providing menu items as a prepopulated array via the menu_items option.
  • Support for callables as templates, enabling template string to be defined dynamically.

0.10.0

Choose a tag to compare

@teppokoivula teppokoivula released this 05 Sep 07:05
67cbc53

Added

  • Include level by default in the 'item' template.

0.9.0

Choose a tag to compare

@teppokoivula teppokoivula released this 05 Sep 07:01

Added

  • New hookable method getSelector().

0.8.0

Choose a tag to compare

@teppokoivula teppokoivula released this 05 Sep 07:01

Added

  • Support for passing in a prepopulated PageArray of menu items via the menu_items option.

Fixed

  • Fixed an issue where include option root_page wasn't being properly reset (since 0.7.0).