From 58e8ae0759ccfa97c478ccae4e0778bdce70966f Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Thu, 22 Jan 2026 22:40:02 +0000
Subject: [PATCH] =DirectoryManager.php updates, some javascript tweaks for CRUD.js, and minor style changes
---
inc/blocks/FeedBlock.php | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/inc/blocks/FeedBlock.php b/inc/blocks/FeedBlock.php
index 8c630dd..45a0959 100644
--- a/inc/blocks/FeedBlock.php
+++ b/inc/blocks/FeedBlock.php
@@ -21,9 +21,11 @@
{
// Initialize cache with connections
$this->cache = CacheManager::for('feed_block', WEEK_IN_SECONDS);
- $this->cache->clear();
// Set up cache connections for all feed content types
$this->setupCacheConnections();
+ if (JVB_TESTING) {
+ $this->cache->clear();
+ }
add_action('init', [$this, 'registerBlock']);
}
@@ -188,6 +190,7 @@
echo TaxonomySelector::outputSelectorModal();
?>
</section>
+ <footer><button data-action="refresh" data-ignore><?=jvbIcon('arrows-clockwise')?><span>Hard Refresh</span></span></button></footer>
<?php
return ob_get_clean();
}
@@ -292,8 +295,8 @@
<div class="selected-items-section">
<div class="selected-items row"></div>
<div class="filter-actions row">
- <?= jvbRenderToggleTextField('match', 'Match', 'Filters', 'ALL', 'ANY', false, ['filter' => 'match']) ?>
- <button type="button" class="clear-filters row">
+ <?= str_replace('class="toggle-text"', 'class="toggle-text" hidden', jvbRenderToggleTextField('match', 'Match', 'Filters', 'ALL', 'ANY', false, ['filter' => 'match'])) ?>
+ <button type="button" class="clear-filters row" hidden>
<?= jvbIcon('x') ?>
Clear All Filters
</button>
@@ -391,7 +394,7 @@
}
}
-
+ echo '<template class="feedTerm"><button class="remove-term">'.jvbIcon(jvbDefaultIcon()).'<span></span>'.jvbIcon('x').'</button></template>';
echo '<template class="emptyState">'.apply_filters('jvbFeedEmptyState', '<div class="empty-state">
<h3>'.jvbIcon($this->getIcon()).'NOTHING HERE'.jvbIcon($this->getIcon()).'</h3>
<p>Try tweaking those filters a bit.</p>
--
Gitblit v1.10.0