From 2bb9aaaf24b794b528e3894ee9f9c42ca6d7fe93 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Thu, 01 Jan 2026 21:08:58 +0000
Subject: [PATCH] =FeedRoutes: extractTaxonomies added
---
src/summary/render.php | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/src/summary/render.php b/src/summary/render.php
index 92863f5..4c22c7a 100644
--- a/src/summary/render.php
+++ b/src/summary/render.php
@@ -1,4 +1,7 @@
<?php
+
+use JVBase\managers\CacheManager;
+
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly
}
@@ -28,7 +31,7 @@
function jvbRenderArtistSummary():string
{
$current = get_queried_object();
- $cache = new JVBase\managers\CacheManager('artists', WEEK_IN_SECONDS);
+ $cache = CacheManager::for('artists', WEEK_IN_SECONDS);
$key = 'artist-bio-'.$current->ID;
$cached = $cache->get($key);
$cached = false;
@@ -41,7 +44,7 @@
$artist = jvbContentFromUser((int)$current->post_author);
$sections = JVB_CONTENT[jvbNoBase($current->post_type)]['sections']??[];
- jvbDump($sections);
+
// $handler = JVB()->getContent(str_replace(BASE,'', $current->post_type));
@@ -49,11 +52,11 @@
<nav id="artist" class="on-this-page index">
<label>Jump to:
<button type="button" aria-label="Show Index" title="Show Index" class="toggle" aria-expanded="false">
- <?= jvbIcon('add')?>
+ <?= jvbIcon('plus-square')?>
</button>
</label>
<ul>
- <li><a href="#top" title="Back to Top"><?=jvbIcon('up')?></a></li>
+ <li><a href="#top" title="Back to Top"><?=jvbIcon('caret-circle-up')?></a></li>
<li><a href="#about">About</a></li>
<li><a href="#styles">Styles</a></li>
<li><a href="#contact">Contact</a></li>
@@ -155,7 +158,7 @@
{
$current = get_queried_object();
- $cache = new JVBase\managers\CacheManager('shops', WEEK_IN_SECONDS);
+ $cache = CacheManager::for('shops', WEEK_IN_SECONDS);
$key = 'shop-bio-'.$current->term_id;
$cached = $cache->get($key);
$cached = false;
@@ -181,11 +184,11 @@
<nav id="shop" class="on-this-page index">
<label>Jump to:
<button type="button" aria-label="Show Index" title="Show Index" class="toggle" aria-expanded="false">
- <?= jvbIcon('add')?>
+ <?= jvbIcon('plus-square')?>
</button>
</label>
<ul>
- <li><a href="#top" title="Back to Top"><?=jvbIcon('up')?></a></li> <?php
+ <li><a href="#top" title="Back to Top"><?=jvbIcon('caret-circle-up')?></a></li> <?php
if ($rating !== 'none') {
?>
<li><a href="#rating">Rating</a></li>
@@ -286,8 +289,8 @@
function jvbRenderTermSummary()
{
$current = get_queried_object();
- $cache = new JVBase\managers\CacheManager($current->taxonomy, WEEK_IN_SECONDS);
- $key = $current->taxonomy.'-'.$current->ID;
+ $cache = CacheManager::for(jvbNoBase($current->taxonomy), WEEK_IN_SECONDS);
+ $key = $current->ID;
$cached = $cache->get($key);
$cached = false;
if ($cached !== false) {
--
Gitblit v1.10.0