From c16a4d78d07e81ecdd2ff9b1b9090560ab2fe488 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 04 Sep 2026 22:25:09 +0000
Subject: [PATCH] =Got the panel loading up the fields, organized by section! Now to ensure it saves properly. Still need to add: upload fields, selector fields, repeater/taglist/group fields
---
inc/ui/Navigation.php | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/inc/ui/Navigation.php b/inc/ui/Navigation.php
index 2fc120d..eb58436 100644
--- a/inc/ui/Navigation.php
+++ b/inc/ui/Navigation.php
@@ -42,10 +42,10 @@
return $this->id;
}
-
/**
* Add a menu item
- *
+ * @param string|null $text
+ * @param string|null $icon
* @return MenuItem
*/
public function addItem(?string $text = null, ?string $icon = null): MenuItem {
@@ -266,8 +266,7 @@
private ?string $icon = null;
private ?Navigation $submenu = null;
private array $classes = [];
- private array $menuClasses = [];
- private array $attributes = [];
+ private array $attributes = [];
private bool $current = false;
public function __construct(int $id) {
@@ -354,6 +353,7 @@
$this->current = $current;
if ($current) {
$this->addClass('current');
+ $this->attribute('aria-current', 'page');
}
return $this;
}
--
Gitblit v1.10.0