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/managers/SEO/SEOAdminPage.php | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/inc/managers/SEO/SEOAdminPage.php b/inc/managers/SEO/SEOAdminPage.php
index 845b3c8..bf0ef02 100644
--- a/inc/managers/SEO/SEOAdminPage.php
+++ b/inc/managers/SEO/SEOAdminPage.php
@@ -19,7 +19,6 @@
*/
class SEOAdminPage
{
- private ConfigManager $config;
// private SchemaBuilder $registry;
public function __construct()
@@ -28,6 +27,7 @@
// Add to JVB dashboard
+ add_action(BASE.'dashboardPage', [$this, 'addDashboardSection'], 10, 1);
add_filter('jvbDashboardPage', [$this, 'addDashboardSection'], 20, 2);
add_action('admin_enqueue_scripts', [$this, 'enqueueScripts']);
}
@@ -61,14 +61,13 @@
/**
* Add section to JVB dashboard
*/
- public function addDashboardSection(string $content, string $page): string
+ public function addDashboardSection(string $page):void
{
- if ($page !== 'SEO') {
- return $content;
+ jvbDump($page);
+ if ($page !== 'seo') {
+ return;
}
- ob_start();
$this->renderAdminPage();
- return ob_get_clean();
}
/**
--
Gitblit v1.10.0