From 4089ba01e0881c89a72332e13bc3a80b6bddec2a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 29 Jun 2026 22:15:55 +0000
Subject: [PATCH] =DashboardManager overhaul. A bit easier to modify the output of pages. Still have to get the account pages to work as expected, as well as verify the integrations and others are working - but registrar/content pages work as expected. Also fixed up the table generation in CRUD.js and CRUDSkeleton.php

---
 checks.php |   31 +++++++++++++++----------------
 1 files changed, 15 insertions(+), 16 deletions(-)

diff --git a/checks.php b/checks.php
index d968100..25e4f80 100644
--- a/checks.php
+++ b/checks.php
@@ -1,5 +1,6 @@
 <?php
 
+use JVBase\base\Options;
 use JVBase\base\Site;
 use JVBase\managers\Cache;
 use JVBase\registrar\Registrar;
@@ -18,22 +19,20 @@
 }
 
 
-//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 (!Site::has('limit_hours')) {
+		return true;
+	}
+	if (Options::get('open_to_public') !== '1') {
+		return false;
+	}
+	if (!empty(Options::get('today_hours'))) {
+		return jvbIsTimeBetween();
+	}
+	return jvbIsCurrentlyOpen();
+}
 
 
 function jvbTermHasPosts(int $termID, string $taxonomy):bool

--
Gitblit v1.10.0