From f16cb88a3218ac7bb32e43f0e0a2542d35c7a01b Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 17 Jun 2026 00:28:16 +0000
Subject: [PATCH] =Working on the Options Meta still. Group fields also needed some changes

---
 JVBase.php |   21 ++++++++++++++-------
 1 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/JVBase.php b/JVBase.php
index f0b0c3d..d15618e 100644
--- a/JVBase.php
+++ b/JVBase.php
@@ -132,9 +132,6 @@
 			$this->routes['referral'] = new ReferralRoutes();
 		}
 
-		if (Site::has('dashboard')) {
-			$this->managers['dash'] = new DashboardManager();
-		}
 
 		if (Site::hasIntegration('square')) {
 			$this->routes['square'] = new IntegrationsSquareRoutes();
@@ -151,7 +148,7 @@
 			$this->managers['notifications'] = new NotificationManager();
 			$this->routes['notifications'] = new NotificationsRoutes();
 		}
-		if (!empty(Registrar::getFeatured('approve_new'))) {
+		if (!empty(Registrar::withFeature('approve_new'))) {
 			$this->managers['approvals'] = new ApprovalManager();
 		}
 		if (Site::has('feed_block') || Site::has('dashboard')) {
@@ -183,13 +180,13 @@
 		if ($membership && $membership->has('invitable')) {
 			$this->managers['invitations'] = new InvitationsManager();
 		}
-		if (!empty(Registrar::getFeatured('has_responses'))) {
+		if (!empty(Registrar::withFeature('has_responses'))) {
 			$this->routes['comments'] = new ResponseRoutes();
 		}
-		if (!empty(Registrar::getFeatured('karma'))) {
+		if (!empty(Registrar::withFeature('karma'))) {
 			$this->routes['vote'] = new VoteRoutes();
 		}
-		if (!empty(Registrar::getFeatured('karma'))
+		if (!empty(Registrar::withFeature('karma'))
 			|| ($membership && $membership->has('member_verified')) ||
             ($membership && $membership->has('term_approval'))) {
 			$this->routes['approvals'] = new ApprovalRoutes();
@@ -198,6 +195,11 @@
 			$this->routes['invites'] = new Invitations();
 		}
 
+
+		if (Site::has('dashboard')) {
+			$this->managers['dash'] = new DashboardManager();
+		}
+
 		$this->setupIntegrations();
 
 		add_action('wp_footer', [$this, 'additionalActions']);
@@ -219,6 +221,11 @@
 		return array_merge(array_keys($this->content), array_keys($this->taxonomies));
 	}
 
+	public function favourites(): FavouritesManager|false
+	{
+		return $this->managers['favourites'] ?? false;
+	}
+
 	public function dashboard(): DashboardManager|false
 	{
 		return $this->managers['dash'] ?? false;

--
Gitblit v1.10.0