From 4089ba01e0881c89a72332e13bc3a80b6bddec2a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 29 Jun 2026 22:15:55 +0000
Subject: [PATCH] =DashboardManager overhaul. A bit easier to modify the output of pages. Still have to get the account pages to work as expected, as well as verify the integrations and others are working - but registrar/content pages work as expected. Also fixed up the table generation in CRUD.js and CRUDSkeleton.php

---
 inc/admin/Integrations.php |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/inc/admin/Integrations.php b/inc/admin/Integrations.php
index 15abaf2..e190ac2 100644
--- a/inc/admin/Integrations.php
+++ b/inc/admin/Integrations.php
@@ -15,6 +15,7 @@
 		// Hook into WordPress admin
 		add_action('admin_menu', [$this, 'registerAdminPages']);
 		add_action('admin_enqueue_scripts', [$this, 'enqueueAdminAssets']);
+		add_action(BASE.'dashboard_page_integrations', [$this, 'renderDashPage'], 10);
 	}
 
 	/**
@@ -95,6 +96,10 @@
 //		);
 	}
 
+	public function renderDashPage():void
+	{
+		$this->renderPage();
+	}
 	/**
 	 * Render the main integrations page
 	 */
@@ -107,7 +112,10 @@
 			<div class="jvb-admin-content">
 				<?php
 				// Display any admin notices from form submissions
-				settings_errors('jvb_integrations');
+				if (is_admin()) {
+					settings_errors('jvb_integrations');
+				}
+
 				$this->displayNotices();
 				?>
 
@@ -123,7 +131,9 @@
 			</div>
 		</div>
 
-		<?php $this->renderStyles(); ?>
+		<?php if (is_admin()) {
+			$this->renderStyles();
+		} ?>
 		<?php
 	}
 

--
Gitblit v1.10.0