From f859e64a57c624ff2daa2b21355f65a49fd4807d Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sat, 29 Aug 2026 03:09:12 +0000
Subject: [PATCH] =Some more tweaks. Mostly on the MenuBlock and adding the Meta.php to WooCommerce Products

---
 inc/blocks/TimelineBlock.php |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/inc/blocks/TimelineBlock.php b/inc/blocks/TimelineBlock.php
index 85b9add..b8a388d 100644
--- a/inc/blocks/TimelineBlock.php
+++ b/inc/blocks/TimelineBlock.php
@@ -4,7 +4,7 @@
 use JVBase\managers\Cache;
 use JVBase\meta\Meta;
 use JVBase\registrar\Registrar;
-use JVBase\base\Site;
+use JVBase\rest\routes\ContentRoutes;
 use WP_Block;
 
 if (!defined('ABSPATH')) {
@@ -30,7 +30,7 @@
 
     public function __construct()
     {
-        $this->cache = Cache::for('timelines', WEEK_IN_SECONDS)->connect('post');
+        $this->cache = Cache::for('timelines', 'post', WEEK_IN_SECONDS);
 		if (JVB_TESTING){
 			$this->cache->flush();
 		}
@@ -87,7 +87,7 @@
     protected function renderHeader():void
     {
 		$meta = Meta::forPost($this->parentID);
-		$sharedFields = JVB()->routes('content')->getTimelineSharedFields($this->content);
+		$sharedFields = ContentRoutes::getInstance()->getTimelineSharedFields($this->content);
 		$fields = $meta->getAll($sharedFields);
 		$extra = $meta->getAll();
         ?>
@@ -171,7 +171,7 @@
 	{
 		$all = $this->children;
 		array_unshift($all, $this->parentID);
-		$uniqueFields = JVB()->routes('content')->getTimelineUniqueFields($this->content);
+		$uniqueFields = ContentRoutes::getInstance()->getTimelineUniqueFields($this->content);
 
 		foreach ($all as $i => $ID) {
 			$meta = Meta::forPost($ID);
@@ -230,6 +230,6 @@
 
 	public function renderGallery():void
 	{
-		jvbRenderGallery(true);
+		jvbRenderGallery();
 	}
 }

--
Gitblit v1.10.0