From c19264ac916707096fe294d996a1b7fb85206b34 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 08 Mar 2026 19:55:31 +0000
Subject: [PATCH] =Furthering along the complete refactor. Added some basic setup for is_content taxonomies, including a page for an archive of the terms.

---
 inc/blocks/_setup.php |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/inc/blocks/_setup.php b/inc/blocks/_setup.php
index 78a4122..a2ad8e4 100644
--- a/inc/blocks/_setup.php
+++ b/inc/blocks/_setup.php
@@ -1,4 +1,6 @@
 <?php
+
+use JVBase\registrar\Registrar;
 use JVBase\utility\Features;
 
 //require(JVB_DIR . '/inc/blocks/RegisterBlocks.php');
@@ -14,16 +16,20 @@
 	new JVBase\blocks\MenuBlock();
 }
 
-if (Features::forSite()->has('faq') || array_key_exists('faq', JVB_CONTENT)) {
+if (Features::forSite()->has('faq')) {
 	require(JVB_DIR . '/inc/blocks/FAQBlock.php');
 	new JVBase\blocks\FAQBlock();
 }
 
 
-if (Features::anyContentHas('is_gallery')) {
+if (!empty(Registrar::getFeatured('is_gallery'))) {
 	require(JVB_DIR . '/inc/blocks/GlossaryBlock.php');
 	new JVBase\blocks\GlossaryBlock();
 }
+if (!empty(Registrar::getFeatured('is_timeline'))) {
+	require(JVB_DIR . '/inc/blocks/TimelineBlock.php');
+	new JVBase\blocks\TimelineBlock();
+}
 require(JVB_DIR . '/inc/blocks/SummaryBlock.php');
 new JVBase\blocks\SummaryBlock();
 
@@ -66,7 +72,7 @@
 //            ]
 //        );
 //    }
-	if (Features::anyContentHas('show_directory') || Features::anyTaxonomyHas('show_directory')) {
+	if (!empty(Registrar::getFeatured('show_directory'))) {
 		register_block_type(
 			JVB_DIR . '/build/list',
 			[
@@ -74,5 +80,8 @@
 			]
 		);
 	}
+	register_block_type(
+		JVB_DIR . '/build/drawer-menu',
+	);
 }
 add_action('init', 'jvbRegisterBlocks');

--
Gitblit v1.10.0