| | |
| | | <!-- Search section --> |
| | | <div class="search-wrapper"> |
| | | <div class="search-bar"> |
| | | <?= jvbSearch('Search terms') ?> |
| | | <?= jvbSearch('Search terms', 'search-terms') ?> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | <option value="0">None (Top Level)</option> |
| | | </select> |
| | | </div> |
| | | |
| | | <button type="button" class="submit-term">Add Term</button> |
| | | </form> |
| | | |
| | | </div> |
| | |
| | | <p>{ <span>loading items</span> }</p> |
| | | </template> |
| | | <template class="autocompleteItem"> |
| | | <button class="autocomplete item" type="button" data-autocomplete-select></button> |
| | | <li class="autocomplete item btn"></li> |
| | | </template> |
| | | <template class="noTermResults"> |
| | | <p>{ <span>nothing found</span> }</p> |
| | | </template> |
| | | <template class="termListItem"> |
| | | <li> |
| | | <input type ="checkbox"> |
| | | <input type="checkbox"> |
| | | <label> |
| | | <span class="term-name"></span> |
| | | </label> |
| | |
| | | <p class="message" hidden aria-live="polite"> |
| | | { <span>loading items</span> } |
| | | </p> |
| | | <button class="submit-term" hidden data-ignore><strong>Create: </strong>"<span></span>"</button> |
| | | <button class="submit-term" hidden data-ignore><strong>Create: </strong> "<span></span>"</button> |
| | | </div> |
| | | |
| | | <?php } ?> |
| | |
| | | |
| | | protected function renderTaxonomyToggle(array $selected = [], string $extra = ''): string |
| | | { |
| | | return '<button type="button" data-filter="taxonomy" data-taxonomy="'.$this->name.'" title="Filter by '.$this->singular.'">'.jvbIcon($this->config['icon']).'<span class="label">'.$this->singular.'</span></button>'; |
| | | return sprintf( |
| | | '<button type="button" data-icon="%s" data-filter="taxonomy" data-taxonomy="%s" data-type="selector" data-single="%s" data-plural="%s" title="Filter by %s">%s<span class="label">%s</span></button>', |
| | | JVB_TAXONOMY[$this->name]['icon'], |
| | | $this->name, |
| | | $this->singular, |
| | | $this->plural, |
| | | $this->singular, |
| | | jvbIcon($this->config['icon']), |
| | | $this->singular |
| | | ); |
| | | } |
| | | |
| | | /** |