From 772462eeca3002a1d52508aeba485aab2b4742ad Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 03 Mar 2026 19:06:19 +0000
Subject: [PATCH] =MAJOR OVERHAUL. Likely should have made a new branch ages ago. Key changes: Registrar.php is the base for custom post types, taxonomies, and user roles. Replaces JVB_CONTENT, JVB_TAXONOMY, and JVB_USER constants, eliminates most of Features.php (except for JVB_SITE, JVB_MEMBERSHIP), and has built in sanitizing and validation via sub-classes. Also started a major overhaul of the Schema output. Created a shit ton of property traits and classes to help sanitize and ensure proper data for different schema types. Still a bunch to do, but better to be starting committing changes here on this other branch.

---
 src/summary/render.php |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/summary/render.php b/src/summary/render.php
index f0e00c7..05636a1 100644
--- a/src/summary/render.php
+++ b/src/summary/render.php
@@ -3,6 +3,7 @@
 use JVBase\managers\Cache;
 use JVBase\meta\Meta;
 use JVBase\meta\Render;
+use JVBase\registrar\Registrar;
 
 if (!defined('ABSPATH')) {
     exit; // Exit if accessed directly
@@ -44,7 +45,12 @@
     $meta = Meta::forPost($current->ID);
     $artist = jvbContentFromUser((int)$current->post_author);
 
-	$sections = JVB_CONTENT[jvbNoBase($current->post_type)]['sections']??[];
+	$registrar = Registrar::getInstance($current->post_type));
+	$sections = [];
+	if ($registrar) {
+		$sections = $registrar->getSections();
+	}
+
 
 
 
@@ -300,7 +306,7 @@
     }
 
     $meta = Meta::forTerm($current->ID);
-    $fields = JVB_TAXONOMY[$tax]['fields']??[];
+    $fields = $meta->getAll();
 
     ?>
     <header id="top">

--
Gitblit v1.10.0