From 0113d2e9c9ff34a6ffb10707cc76d34b67a0c367 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 19 Jan 2026 16:29:41 +0000
Subject: [PATCH] =Refactored window.getTemplate into a full templating class window.jvbTemplates. Refactored CRUD.js, UploadManager.js, FormController.js, PopulateForm.js with that in mind

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

diff --git a/inc/blocks/TimelineBlock.php b/inc/blocks/TimelineBlock.php
index 4d8e9d1..7fc2674 100644
--- a/inc/blocks/TimelineBlock.php
+++ b/inc/blocks/TimelineBlock.php
@@ -32,6 +32,7 @@
     public function __construct()
     {
         $this->cache = CacheManager::for('timelines', WEEK_IN_SECONDS)->connectTo('post', 'timeline');
+		$this->cache->clear();
         add_action('init', [ $this, 'registerBlock' ]);
 		add_action('wp_footer', 'jvbRenderGallery');
     }
@@ -51,7 +52,6 @@
 		}
 		$this->parentID = $post->ID;
         $cache = $this->cache->get($this->parentID);
-        $cache = false;
         if ($cache) {
             return $cache;
         }
@@ -97,7 +97,7 @@
 						$many = count($terms) > 1;
 					?>
 					<li class="<?=$slug?>">
-						<?=jvbIcon($config['icon']??'triangle')?>
+						<?=jvbIcon($config['icon']??jvbDefaultIcon())?>
 
 						<?php
 						if ($many) { echo '<ul>'; }
@@ -153,8 +153,8 @@
 				?>
 				<div class="info">
 					<header>
-						<h2><?=jvbIcon('logo-triangle')?><?= $title?></h2>
-						<?= array_key_exists('post_date', $fields) && $fields['date'] !== '' ? '<time>'.date('F Y', strtotime($fields['post_date'])).'</time>' : '' ?>
+						<h2><?=jvbIcon(jvbLogoIcon())?><?= $title?></h2>
+						<?= array_key_exists('post_date', $fields) && $fields['post_date'] !== '' ? '<time>'.date('F Y', strtotime($fields['post_date'])).'</time>' : '' ?>
 						<?= array_key_exists('timeline', $fields) && $fields['timeline'] !== '' ? $this->outputTimelineTax($ID) : '' ?>
 						<?= array_key_exists('post_content', $fields) && $fields['post_content'] !== '' ? '<div class="content">'.wptexturize(wp_kses_post( wpautop($fields['post_content']))).'</div>' : '' ?>
 					</header>

--
Gitblit v1.10.0