From 7935d26cd16a4f8f69a59a44e27a7263b60e54bf Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 14 Sep 2026 19:05:30 +0000
Subject: [PATCH] =Simple Calendar block up and running

---
 inc/helpers/terms.php |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/inc/helpers/terms.php b/inc/helpers/terms.php
index 6c0f7c0..e5878be 100644
--- a/inc/helpers/terms.php
+++ b/inc/helpers/terms.php
@@ -56,7 +56,7 @@
     return $out;
 }
 
-function jvbMetaTermList(string $value, string $tax, bool $icon = true):string
+function jvbMetaTermList(string $value, string $tax, bool $icon = true, bool $showTaxonomy = true):string
 {
 	if ($value === '') {
 		return '';
@@ -75,7 +75,12 @@
 	$registrar = Registrar::getInstance($tax);
 	$icon = ($icon && $registrar) ? $registrar->getIcon() : '';
 	$icon = ($icon === '') ? '' : jvbIcon($icon);
-	$title = $registrar ? '<li class="title">'.$icon.$registrar->getSingular().'</li>' : '';
+	$singular = '';
+	if ($registrar) {
+		$singular = $showTaxonomy ? $registrar->getSingular() : '<span class="screen-reader-text">'.$registrar->getSingular().'</span>';
+	}
+
+	$title = $registrar ? '<li class="title">'.$icon.$singular.'</li>' : '';
 	return (!empty($out)) ? '<ul class="term-list row left '.jvbNoBase($tax).'">'.$title.implode('',$out).'</ul>' : '';
 }
 

--
Gitblit v1.10.0