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

---
 jvb.php |   31 +++++++++++++++++++++++++------
 1 files changed, 25 insertions(+), 6 deletions(-)

diff --git a/jvb.php b/jvb.php
index d340bcd..d5da153 100644
--- a/jvb.php
+++ b/jvb.php
@@ -107,15 +107,10 @@
 
 require(JVB_DIR.'/base/_setup.php');
 
-if (empty(JVB_SITE)) {
-    return;
-}
 require(JVB_DIR.'/inc/utility/setup.php');
 require(JVB_DIR.'/checks.php');
 
-
-require(JVB_DIR . '/inc/registry/_setup.php');
-
+require(JVB_DIR . '/inc/registrar/_setup.php');
 require(JVB_DIR . '/activate.php');
 
 require(JVB_DIR . '/inc/helpers/all.php');
@@ -146,6 +141,13 @@
 	return IconsManager::for($source)->get($name, $options);
 }
 
+function jvbFullIcon(string $name, array $options = []):string
+{
+	$source = $options['source'] ?? 'icons';
+	unset($options['source']);
+	return IconsManager::for($source)->getRawSvg($name, $options['style']??null);
+}
+
 /**
  * Get a CSS data URI for an icon
  *
@@ -508,6 +510,13 @@
     echo '<div class="screen-reader-text live-region" aria-live="polite" role="status"></div>';
 }
 
+add_action('wp_head', 'jvbFrontendBase',1);
+function jvbFrontendBase():void
+{
+	?>
+	<script type="text/javascript">window.jvbBase = '<?= BASE ?>';</script>
+	<?php
+}
 
 //add_action('wp_head', 'jvbDumpIt');
 function jvbDumpIt()
@@ -555,3 +564,13 @@
 	}
 	return $result;
 }, 99);
+
+
+add_action('wp_footer', 'jvb_back_to_top');
+function jvb_back_to_top():void
+{
+	echo sprintf(
+		'<a id="back-to-top" class="btn sticky" href="#">%s<span>Back to Top</span></a>',
+		jvbIcon('caret-double-up')
+	);
+}

--
Gitblit v1.10.0