From 3d25ad7de4fdbb3eba2cde2a62422e6be5d79a0a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 25 Aug 2026 22:57:22 +0000
Subject: [PATCH] =It's been a minute. I went through the Routes and associated Managers and ensured they played together well. Reworked the Cache.php, and I think I caught all the references. Moving away from JVBase() root class, to individuall classes that are Instanced. Double checked for the ABSPATH check in every file, and added index.php to every directory that didn't already have it. Also still working on the MenuBlock to work with WooCommerce for now for Northeh

---
 inc/templates.php |   27 ++++++++++++++++-----------
 1 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/inc/templates.php b/inc/templates.php
index dd24b96..319618e 100644
--- a/inc/templates.php
+++ b/inc/templates.php
@@ -1,4 +1,7 @@
 <?php
+
+use JVBase\meta\Form;
+
 if (!defined('ABSPATH')) {
 	exit;
 }
@@ -10,7 +13,7 @@
 {
     return '<template class="response">
     <details class="response" open>
-            <summary class="row btw">
+            <summary class="row x-btw">
                 <div class="header">
 
                 </div>
@@ -31,25 +34,27 @@
  */
 function jvbGetReplyToTemplate():string
 {
-    $meta = new JVBase\meta\MetaManager();
-    ob_start();
-    $meta->render('form', 'response', ['quill' => true, 'label'=>'Your Response']);
-    $textarea = ob_get_clean();
-    return '
+
+
+    $textarea = Form::render('response', null, ['type' => 'textarea','quill' => true, 'label'=>'Your Response']);
+    return sprintf('
         <dialog class="create-response">
             <div class="wrap col">
                 <h2>Write your Response</h2>
                 <div class="original"></div>
                 <div class="reply">
-                    '.$textarea.'
+                    %s
                 </div>
                 <div class="actions row">
-                    <button type="button" class="cancel">'.jvbIcon('x', ['title'=>'Cancel']).'</button>
+                    <button type="button" class="cancel">%s</button>
                     <button type="submit" class="create">Reply</button>
                 </div>
             </div>
         </dialog>
-        ';
+        ',
+	$textarea,
+	jvbIcon('x', ['title'=>'Cancel'])
+	);
 }
 
 /**
@@ -60,7 +65,7 @@
 {
     return '<template class="responses">
         <details class="responses">
-            <summary class="row btw">
+            <summary class="row x-btw">
                 Comments
             </summary>
         </details>
@@ -107,7 +112,7 @@
 						<h4>'.__('From:', 'jvb').'</h4>
 						<div class="source-info col">
 							<div class="source-day"></div>
-							<div class="source-hours row start"></div>
+							<div class="source-hours row left"></div>
 						</div>
 					</div>
 

--
Gitblit v1.10.0