From 46d681c6b825d21b3f698d793c4e630c687d90ad Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Thu, 21 May 2026 21:41:53 +0000
Subject: [PATCH] =Major CustomBlocks.php overhaul, expanding block support and customization from the editor. theme.json should now be updated on new themes to set brand colours, etc. Also note: major change to .col vs .row alignment: simplifying it to .top .bottom vs the confusion of the differences for .col/.row .start and .a-start

---
 inc/blocks/_setup.php |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/inc/blocks/_setup.php b/inc/blocks/_setup.php
index 43ff5c5..889320e 100644
--- a/inc/blocks/_setup.php
+++ b/inc/blocks/_setup.php
@@ -20,7 +20,7 @@
 		new JVBase\blocks\MenuBlock();
 	}
 
-	if (Site::has('faq')) {
+	if (!empty(Registrar::getFeatured('is_faq'))) {
 		require(JVB_DIR . '/inc/blocks/FAQBlock.php');
 		new JVBase\blocks\FAQBlock();
 	}
@@ -51,14 +51,15 @@
 //            ]
 //        );
 //    }
-	if (!empty(Registrar::getFeatured('show_directory'))) {
-		register_block_type(
-			JVB_DIR . '/build/list',
-			[
-				'render_callback'   => 'jvbRenderListBlock'
-			]
-		);
-	}
+//	if (!empty(Registrar::getFeatured('show_directory'))) {
+//		error_log('Registering Directory List Block');
+//		register_block_type(
+//			JVB_DIR . '/build/list',
+//			[
+//				'render_callback'   => 'jvbRenderListBlock'
+//			]
+//		);
+//	}
 	register_block_type(
 		JVB_DIR . '/build/drawer-menu',
 	);

--
Gitblit v1.10.0