=== Insight Menu Block ===
Contributors: basbuis
Tags: navigation, menu, fse, header, block
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.3.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Menu block for block themes, built with Appearance → Menus.

== Description ==

Build a menu the familiar WordPress way, then place it in any block theme header.

1. Create or edit menus under Appearance → Menus.
2. Insert **Insight Menu Block** in your header template part.
3. Choose the menu, alignment, ARIA label, breakpoint, and sub-menu behaviour.
4. Style base colors and pick a hamburger (Subtle or Default). The mobile overlay shows your menu automatically.

* Menus from Appearance → Menus, output with `wp_nav_menu()`
* Alignment, ARIA label, breakpoint, sub-menu type (hover / click / click-toggle)
* Full-screen mobile overlay
* Open mobile sub-menus by clicking the parent item
* Colors: text, hover, current, hamburger, mobile background / text
* Hamburger styles: Subtle and Default

Use WordPress core **CSS Classes** on each menu item (Appearance → Menus; enabled under Screen Options). Those classes are output on the front end.

Menus are stored by WordPress core (`nav_menu` / `nav_menu_item`). Deactivating this plugin does not delete them.

== Installation ==

1. Install the plugin from WordPress.org, or upload the plugin folder to `/wp-content/plugins/`.
2. Activate the plugin.
3. Create a menu under Appearance → Menus.
4. In the Site Editor, open your header template part, insert Insight Menu Block, and choose the menu.

== Frequently Asked Questions ==

= Does this work with block themes? =

Yes. It is built for block themes and restores the Menus screen when the theme does not show it.

= Where are menus stored? =

In WordPress core navigation menus. They remain if you deactivate the plugin.

== Screenshots ==

1. Insight Menu Block in a header template, with a menu selected.
2. Block settings for the menu, alignment, ARIA label, breakpoint, sub-menu type and colors.
3. Menu structuren and menu builder Admin → Menus, including class field.
4. The menu on the front end, including the full-screen mobile overlay.

== Changelog ==

= 1.3.5 =
* Use the longer `insmb` / `INSMB` prefix for functions, classes, constants, and script handles.

= 1.3.4 =
* Side flyouts keep a single close icon inside the panel. The header button stays a hamburger.

= 1.3.3 =
* Full-screen mobile menu no longer shows a second, blue close icon on hover.

= 1.3.2 =
* Doner cells and Ellipsis dots use whole pixels, same as the line icons.

= 1.3.1 =
* Hamburger lines use a whole-pixel thickness so Subtle matches the settings preview on the front end.

= 1.3.0 =
* Public name is Insight Menu Block. Text domain and slug are `insight-menu-block`. Existing blocks keep rendering.
* Remove license gates and controls that were limited inside this plugin.
* Prefix functions, classes, constants, and script handles with `wmb` / `WMB`.
* Block direct access to plugin PHP files.

= 1.2.3 =
* Fix: block no longer stacks under the site title in FSE header rows (shrink-wrap like core Navigation).

= 1.2.2 =
* Pro: side flyout width setting (px, %, rem, etc.).

= 1.2.1 =
* Pro: side flyout mobile menus (left → right / right → left), always full height, with close button.

= 1.2.0 =
* Slug / text domain / block namespace unified to `dynamic-block-navigation` (matches display name).
* Legacy block names (`dynamic-classic-block-navigation/*`) remapped for existing content.

= 1.1.1 =
* Removed duplicate custom CSS class field; use WordPress core CSS Classes on menu items (free + Pro).
* Core CSS Classes column kept visible on Appearance → Menus; confirmed wired through `wp_nav_menu`.
* Pro menu builder field remains: Display (everyone / logged in / logged out).

= 1.1.0 =
* Split optional add-on features out of this plugin.
* Free: fixed mobile overlay menu (no InnerBlocks canvas); Subtle + Default hamburgers; full overlay.
* Optional overlay, spacing, and visibility controls lived in this release; they were removed from this plugin in 1.3.0.
* Updated readme for repository guidelines (5 tags, Tested up to 7.1).

= 1.0.28 =
* Fix: block missing from inserter — editor scripts now declare wp-blocks / wp-block-editor deps (edit.asset.php).

= 1.0.27 =
* Hamburger icons: equal line thickness (no flex-shrink), Unequal matches top-line weight, Default spacing matches settings preview.

= 1.0.26 =
* Added Submenu horizontal spacing (desktop dropdown left/right padding, one value).

= 1.0.25 =
* Color values normalized to 6-digit hex (8-digit #RRGGBBAA ending in 00 made colors invisible).
* Hex text field for reliable paste; clearer help for Background and Toggle background.

= 1.0.24 =
* Spacing split: Horizontal (desktop main only), Vertical (desktop dropdowns + mobile), Mobile submenu indent.
* Removed Item gap (padding-based spacing for larger click targets).

= 1.0.23 =
* Unitless size values (gap, spacing, font size, etc.) are treated as px.
* Clearer help text for item gap vs horizontal/vertical spacing.

= 1.0.22 =
* Renamed Item padding X/Y settings to Horizontal / Vertical spacing menu-items.

= 1.0.21 =
* Default sub-menu type changed from Hover to Click menu item.

= 1.0.20 =
* Toggle: Last dropdown opens left (keeps the rightmost desktop submenu inside the viewport).

= 1.0.19 =
* Editor toggle: show / hide mobile overlay (compact header preview when hidden).

= 1.0.18 =
* Display name: Dynamic Block Navigation (slug unchanged for “classic” discoverability).
* Updated plugin description; block keywords keep “classic” / “classic menu” for search.

= 1.0.17 =
* Renamed child block to Mobile Menu Items; clarified editor help text.
* Editor help text sits above the overlay so it stays readable on light backgrounds.

= 1.0.16 =
* Mobile overlay is an editable InnerBlocks column (like Dynamic Popup Flyout).
* Default Mobile Menu Items block — place image, text, socials, etc. above or below.
* Removed overlay logo/image settings (use blocks in the overlay instead).

= 1.0.15 =
* Fix partial overlay positioning (full width below header, no longer stuck top-right).

= 1.0.14 =
* Hamburger icon hover color setting.

= 1.0.13 =
* Fix: nav block no longer forces width 100% (prevents header wrap in Frost and similar row layouts).

= 1.0.12 =
* Fix: enable classic menu support before after_setup_theme (stops Frost “theme does not support navigation menus” notice).

= 1.0.11 =
* Strong hamburger lines 40% thicker than Subtle / Unequal / Default.

= 1.0.10 =
* Removed duplicate hamburger color picker (Colors panel only).

= 1.0.9 =
* Unified hamburger line thickness for Subtle, Strong, Default, and Unequal.

= 1.0.8 =
* Renamed plugin slug to dynamic-block-navigation.

= 1.0.7 =
* Per menu/submenu item: CSS class field and Display (everyone / logged in / logged out).

= 1.0.6 =
* Hamburger color control next to the icon picker (same as toggle color).

= 1.0.5 =
* Visual hamburger picker: subtle, strong, unequal, default (+chevron), doner grid, ellipsis.

= 1.0.4 =
* Hamburger styles: 2 lines, 3 lines, uneven widths, plus height setting.

= 1.0.3 =
* Full-overlay close button (top right) with color setting.
* Optional overlay logo/image with width and vertical padding.
* Partial overlay now anchors to the header bottom (not just the nav block).

= 1.0.2 =
* Toggle to show sub-menus already open on mobile.

= 1.0.1 =
* Separate mobile text hover color for dark mobile overlays.

= 1.0.0 =
* Initial release: classic menu support for block themes, dynamic block, mobile toggle, colors and layout settings.
