Adds prop option to hide hide filters button.

This commit is contained in:
Mateus Machado Luna 2020-01-28 11:41:57 -03:00
parent 78a8f34e10
commit 95631bd90f
2 changed files with 2 additions and 1 deletions

View File

@ -205,7 +205,7 @@ function tainacan_the_faceted_search() {
$props .= 'default-view-mode="' . $default_view_mode . '" ';
$props .= 'enabled-view-modes="' . implode(',', $enabled_view_modes) . '" ';
echo "<main id='tainacan-items-page' $props ></main>";
echo "<main id='tainacan-items-page' hide-hide-filters-button='true' $props ></main>";
}

View File

@ -28,6 +28,7 @@
<button
aria-controls="filters-modal"
:aria-expanded="isFiltersModalActive"
:class="hideHideFiltersButton ? 'is-hidden-tablet' : ''"
v-if="!hideFilters && !openAdvancedSearch && !(registeredViewModes[viewMode] != undefined && registeredViewModes[viewMode].full_screen)"
id="filter-menu-compress-button"
:aria-label="!isFiltersModalActive ? $i18n.get('label_show_filters') : $i18n.get('label_hide_filters')"