From 5fe601cd1962dca79c0765a54ce864af5abb7d40 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 26 Apr 2026 22:37:14 +0000
Subject: [PATCH] =test

---
 content/_setup.php |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/content/_setup.php b/content/_setup.php
index 04aafb0..4071e2b 100644
--- a/content/_setup.php
+++ b/content/_setup.php
@@ -28,6 +28,8 @@
  *  - 'section' => (string) the slug of the section, as defined above
  */
 
+use JVBase\registrar\Registrar;
+
 require(AJV_DIR . '/content/art.php');
 require(AJV_DIR . '/content/design.php');
 require(AJV_DIR . '/content/development.php');
@@ -35,7 +37,7 @@
 require(AJV_DIR . '/content/support.php');
 require(AJV_DIR . '/content/writing.php');
 
-add_filter('jvb_content', 'ajv_content');
+//add_filter('jvb_content', 'ajv_content');
 function ajv_content($content):array
 {
     return [
@@ -51,7 +53,9 @@
 add_filter('wp_footer', 'ajv_gallery_output');
 function ajv_gallery_output():void
 {
-    if (is_singular(array_map(function($item) { return BASE.$item; }, array_keys(JVB_CONTENT)))) {
+    $types = array_map(function($type) { return jvbCheckBase($type); }, Registrar::getRegistered('post'));
+
+    if (is_singular($types)) {
         jvbRenderGallery();
     }
 }
\ No newline at end of file

--
Gitblit v1.10.0