From ac444cba221832c012c0435fdc8339fe9f37febb Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 11 May 2026 18:35:04 +0000
Subject: [PATCH] =Some changes to the CRUD.js editing, timeline post configuration

---
 jvb.php |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/jvb.php b/jvb.php
index d400ce2..17669f9 100644
--- a/jvb.php
+++ b/jvb.php
@@ -503,6 +503,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()
@@ -550,3 +557,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