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

---
 templates/dashboard/sections/news.php |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/templates/dashboard/sections/news.php b/templates/dashboard/sections/news.php
index ae4d46f..47e1148 100644
--- a/templates/dashboard/sections/news.php
+++ b/templates/dashboard/sections/news.php
@@ -1,6 +1,7 @@
 <?php
 
-use JVBase\managers\CacheManager;
+use JVBase\managers\Cache;
+use JVBase\meta\Form;
 
 if (!defined('ABSPATH')) {
     exit; // Exit if accessed directly
@@ -9,7 +10,7 @@
     wp_redirect(get_home_url(null, '/dash'));
     exit;
 }
-$cache = CacheManager::for('news', 3600);
+$cache = Cache::for('news', 3600);
 $check = $cache->get('type-options');
 
 if ($check) {
@@ -24,7 +25,7 @@
         foreach ($terms as $term) {
             $typeOptions[] = [
                 'id'    => $term->term_id,
-                'name'    => $term->name,
+                'name'    => html_entity_decode($term->name),
                 'count'    => $term->count,
             ];
         }
@@ -117,7 +118,7 @@
     </div>
 
     <details class="type-filters">
-        <summary class="row btw">Filters:
+        <summary class="row x-btw">Filters:
             <button class="clear-filters row">
                 <?= jvbIcon('x', ['title' => 'Clear Filters'])?>
                 <span>Clear Filters</span>
@@ -259,9 +260,9 @@
         </div>
         <?php
         $handler = JVB()->getContent('news');
-        $meta = new JVBase\meta\MetaManager();
+
         foreach ($handler->getFields() as $field_name => $field_config) {
-            $meta->render('form', $field_name, $field_config);
+            echo Form::render($field_name, null, $field_config);
         }
         ?>
 
@@ -273,7 +274,7 @@
 </dialog>
 <template class="template-own">
     <details class="news item" data-keyboard-nav="true" tabindex="0">
-        <summary class="row btw">
+        <summary class="row x-btw">
             <div class="item-select">
                 <input type="checkbox" class="select-checkbox">
                 <label>
@@ -316,7 +317,7 @@
 </template>
 <template class="template-all template-watching">
     <details class="news item" data-keyboard-nav="true" tabindex="0">
-        <summary class="row btw">
+        <summary class="row x-btw">
             <button class="favourite-button" data-type="news" title="Add to watch list" onclick="toggleFavourite(this)">
 
             </button>

--
Gitblit v1.10.0