From 3d25ad7de4fdbb3eba2cde2a62422e6be5d79a0a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 25 Aug 2026 22:57:22 +0000
Subject: [PATCH] =It's been a minute. I went through the Routes and associated Managers and ensured they played together well. Reworked the Cache.php, and I think I caught all the references. Moving away from JVBase() root class, to individuall classes that are Instanced. Double checked for the ABSPATH check in every file, and added index.php to every directory that didn't already have it. Also still working on the MenuBlock to work with WooCommerce for now for Northeh

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

diff --git a/src/summary/render.php b/src/summary/render.php
index f0e00c7..b5645eb 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();
+	}
+
 
 
 
@@ -114,7 +120,7 @@
     </header>
     <section>
         <details class="bio-info">
-            <summary class="row btw">
+            <summary class="row x-btw">
                 <h2>About <?= ($artist['name'] !== '') ? $artist['name'] : strtok($artist['display_name'], ' ')?></h2>
             </summary>
             <div class="columns stack-small">
@@ -236,7 +242,7 @@
     </header>
     <section>
         <details class="bio-info">
-            <summary class="row btw">
+            <summary class="row x-btw">
                 <h2>Learn More About <?=$current->name?></h2>
             </summary>
             <div class="map">
@@ -300,7 +306,7 @@
     }
 
     $meta = Meta::forTerm($current->ID);
-    $fields = JVB_TAXONOMY[$tax]['fields']??[];
+    $fields = $meta->getAll();
 
     ?>
     <header id="top">

--
Gitblit v1.10.0