From 75a097a018a0090f5902758353c578fce4aa2a25 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sat, 23 May 2026 18:43:42 +0000
Subject: [PATCH] =CustomBlocks.php overhaul relatively complete. Also refactored the gallery in gallery.min.js and the jvbRenderGallery.

---
 checks.php |   67 +++++++++------------------------
 1 files changed, 18 insertions(+), 49 deletions(-)

diff --git a/checks.php b/checks.php
index 60474c3..6b55711 100644
--- a/checks.php
+++ b/checks.php
@@ -1,8 +1,8 @@
 <?php
 
+use JVBase\base\Site;
 use JVBase\managers\Cache;
 use JVBase\registrar\Registrar;
-use JVBase\utility\Features;
 
 if (!defined('ABSPATH')) {
 	exit;
@@ -12,59 +12,28 @@
     return (array_key_exists($key, $config) && $config[$key] === true);
 }
 
-function jvbUserIsVerified():bool
-{
-    return !(Features::forMembership()->has('member_verified')) || current_user_can('skip_moderation');
-}
-
 function jvbUserTypes():array
 {
-	$types = get_option(BASE.'user_types');
-	if (JVB_TESTING) {
-		$types = false;
-	}
-	if ($types === false) {
-		$types = [];
-		foreach (JVB_USER as $type => $config) {
-			if (array_key_exists('profile', $config)) {
-				$types[$type] = BASE.$config['profile'];
-			}
-		}
-		update_option(BASE.'user_types', $types);
-	}
-	return $types;
+	return  Registrar::getFeatured('profile_link', 'user');
 }
 
-function isJVBContentTax():bool
-{
-	return is_tax(array_map(function ($tax) {
-		return jvbCheckBase($tax);
-	}, Registrar::getFeatured('is_content', 'term')));
-}
 
-function taxIsJVBContentTax($tax):bool
-{
-	$allowed = Registrar::getFeatured('is_content', 'term');
-	$tax = jvbNoBase($tax);
-	return in_array($tax, $allowed);
-}
-
-function jvbIsOpen():bool
-{
-
-	if (!jvbCheck('limit_hours', JVB_SITE)) {
-		return true;
-	}
-	if (get_option(BASE.'open_to_public') !== '1') {
-		return false;
-	}
-	//Check if today_hours is set
-	if (get_option(BASE.'today_hours')) {
-		return jvbIsTimeBetween();
-	}
-	//Default to the stored settings
-	return jvbIsCurrentlyOpen();
-}
+//function jvbIsOpen():bool
+//{
+//
+//	if (!jvbCheck('limit_hours', JVB_SITE)) {
+//		return true;
+//	}
+//	if (get_option(BASE.'open_to_public') !== '1') {
+//		return false;
+//	}
+//	//Check if today_hours is set
+//	if (get_option(BASE.'today_hours')) {
+//		return jvbIsTimeBetween();
+//	}
+//	//Default to the stored settings
+//	return jvbIsCurrentlyOpen();
+//}
 
 
 function jvbTermHasPosts(int $termID, string $taxonomy):bool

--
Gitblit v1.10.0