Adds prop option to hide hide filters button.
This commit is contained in:
parent
78a8f34e10
commit
95631bd90f
|
@ -205,7 +205,7 @@ function tainacan_the_faceted_search() {
|
||||||
$props .= 'default-view-mode="' . $default_view_mode . '" ';
|
$props .= 'default-view-mode="' . $default_view_mode . '" ';
|
||||||
$props .= 'enabled-view-modes="' . implode(',', $enabled_view_modes) . '" ';
|
$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>";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
<button
|
<button
|
||||||
aria-controls="filters-modal"
|
aria-controls="filters-modal"
|
||||||
:aria-expanded="isFiltersModalActive"
|
:aria-expanded="isFiltersModalActive"
|
||||||
|
:class="hideHideFiltersButton ? 'is-hidden-tablet' : ''"
|
||||||
v-if="!hideFilters && !openAdvancedSearch && !(registeredViewModes[viewMode] != undefined && registeredViewModes[viewMode].full_screen)"
|
v-if="!hideFilters && !openAdvancedSearch && !(registeredViewModes[viewMode] != undefined && registeredViewModes[viewMode].full_screen)"
|
||||||
id="filter-menu-compress-button"
|
id="filter-menu-compress-button"
|
||||||
:aria-label="!isFiltersModalActive ? $i18n.get('label_show_filters') : $i18n.get('label_hide_filters')"
|
:aria-label="!isFiltersModalActive ? $i18n.get('label_show_filters') : $i18n.get('label_hide_filters')"
|
||||||
|
|
Loading…
Reference in New Issue