From a58a2e7ca4700d3e23341fde767060a4c2c704a3 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 30 Aug 2026 21:04:37 +0000
Subject: [PATCH] =Minor tweaks to MenuBlock.php

---
 build/summary/render.php |   37 +++++++++++++++----------------------
 1 files changed, 15 insertions(+), 22 deletions(-)

diff --git a/build/summary/render.php b/build/summary/render.php
index 05636a1..3be4bb3 100644
--- a/build/summary/render.php
+++ b/build/summary/render.php
@@ -19,12 +19,10 @@
 
     // Buffer output
     if (is_tax()) {
-        switch (get_queried_object()->taxonomy) {
-            case BASE.'shop':
-                return jvbRenderShopSummary();
-            default:
-                return jvbRenderTermSummary();
-        }
+		return match (get_queried_object()->taxonomy) {
+		    BASE . 'shop' => jvbRenderShopSummary(),
+		    default => jvbRenderTermSummary(),
+	    };
     } elseif (is_singular()) {
         return jvbRenderArtistSummary();
     }
@@ -45,7 +43,7 @@
     $meta = Meta::forPost($current->ID);
     $artist = jvbContentFromUser((int)$current->post_author);
 
-	$registrar = Registrar::getInstance($current->post_type));
+	$registrar = Registrar::getInstance($current->post_type);
 	$sections = [];
 	if ($registrar) {
 		$sections = $registrar->getSections();
@@ -120,7 +118,7 @@
     </header>
     <section>
         <details class="bio-info">
-            <summary class="row btw">
+            <summary class="row x-btw">
                 <h2>About <?= ($artist['name'] !== '') ? $artist['name'] : strtok($artist['display_name'], ' ')?></h2>
             </summary>
             <div class="columns stack-small">
@@ -152,7 +150,7 @@
         <h2>Contact <?=$artist['name']?></h2>
         <?php
         echo jvbRenderContactInfo($current->ID, 'post');
-        echo jvbRenderLinks($current->ID, 'post');
+        echo jvbRenderLinks($current->ID);
         ?>
     </section>
     <?php
@@ -165,7 +163,7 @@
 {
     $current = get_queried_object();
 
-    $cache = Cache::for('shop_bio', WEEK_IN_SECONDS)->connect('taxonomy');
+    $cache = Cache::for('shop_bio', 'term',WEEK_IN_SECONDS);
     $key = $current->term_id;
     $cached = $cache->get($key);
     if ($cached !== false) {
@@ -242,7 +240,7 @@
     </header>
     <section>
         <details class="bio-info">
-            <summary class="row btw">
+            <summary class="row x-btw">
                 <h2>Learn More About <?=$current->name?></h2>
             </summary>
             <div class="map">
@@ -285,7 +283,7 @@
 function jvbRenderTermSummary()
 {
     $current = get_queried_object();
-    $cache = Cache::for('term_summary', WEEK_IN_SECONDS)->connect('taxonomy');
+    $cache = Cache::for('term_summary', 'term',WEEK_IN_SECONDS);
     $key = $current->ID;
     $cached = $cache->get($key);
     if ($cached !== false) {
@@ -294,16 +292,11 @@
 
     ob_start();
 	$tax = jvbNoBase($current->taxonomy);
-    switch ($tax) {
-        case 'style':
-            $title = 'Tattoo Artists';
-            break;
-        case 'theme':
-            $title = 'Tattoos';
-            break;
-        default:
-            $title = '';
-    }
+	$title = match ($tax) {
+		'style' => 'Tattoo Artists',
+		'theme' => 'Tattoos',
+		default => '',
+	};
 
     $meta = Meta::forTerm($current->ID);
     $fields = $meta->getAll();

--
Gitblit v1.10.0