| | |
| | | { |
| | | // 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']); |
| | | } |
| | |
| | | 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(); |
| | | } |
| | |
| | | <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> |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | 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> |