From 7333b141895467acaebd297001e6e0b3503226c5 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 31 May 2026 15:24:13 +0000
Subject: [PATCH] =fixes to cover summary outputs, projects, and more
---
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