Adds Slideshow View Mode to Terms Items Page.

This commit is contained in:
Mateus Machado Luna 2018-11-29 15:05:13 -02:00
parent cef9b43710
commit 9c0a763692
2 changed files with 7 additions and 4 deletions

View File

@ -470,8 +470,8 @@
</div>
<hr>
</div>
</div>
<advanced-search
:is-repository-level="isRepositoryLevel"
:collection-id="collectionId"
@ -479,6 +479,7 @@
:open-form-advanced-search="openFormAdvancedSearch"
:is-do-search="isDoSearch"
:metadata="metadata"/>
<div class="advanced-searh-form-submit">
<p
v-if="advancedSearchResults"
@ -520,7 +521,8 @@
<div class="above-search-control">
<div
v-show="isLoadingItems"
v-show="(isLoadingItems &&
!(registeredViewModes[viewMode] != undefined && registeredViewModes[viewMode].full_screen))"
class="loading-container">
<b-loading
:is-full-page="false"
@ -896,7 +898,8 @@
// Updates searchControlHeight before in case we need to adjust filters position on mobile
setTimeout(() => {
this.searchControlHeight = this.$refs['search-control'].clientHeight;
if (this.$refs['search-control'] != undefined)
this.searchControlHeight = this.$refs['search-control'].clientHeight;
}, 500);
},
onChangeAdminViewMode(adminViewMode) {

View File

@ -179,7 +179,7 @@ function tainacan_the_faceted_search() {
$props = ' ';
$default_view_mode = apply_filters( 'tainacan-default-view-mode-for-themes', 'masonry' );
$enabled_view_modes = apply_filters( 'tainacan-enabled-view-modes-for-themes', ['table', 'cards', 'masonry'] );
$enabled_view_modes = apply_filters( 'tainacan-enabled-view-modes-for-themes', ['table', 'cards', 'masonry', 'slideshow'] );
// if in a collection page
$collection_id = tainacan_get_collection_id();