Adds Slideshow View Mode to Terms Items Page.
This commit is contained in:
parent
cef9b43710
commit
9c0a763692
|
@ -470,8 +470,8 @@
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<advanced-search
|
<advanced-search
|
||||||
:is-repository-level="isRepositoryLevel"
|
:is-repository-level="isRepositoryLevel"
|
||||||
:collection-id="collectionId"
|
:collection-id="collectionId"
|
||||||
|
@ -479,6 +479,7 @@
|
||||||
:open-form-advanced-search="openFormAdvancedSearch"
|
:open-form-advanced-search="openFormAdvancedSearch"
|
||||||
:is-do-search="isDoSearch"
|
:is-do-search="isDoSearch"
|
||||||
:metadata="metadata"/>
|
:metadata="metadata"/>
|
||||||
|
|
||||||
<div class="advanced-searh-form-submit">
|
<div class="advanced-searh-form-submit">
|
||||||
<p
|
<p
|
||||||
v-if="advancedSearchResults"
|
v-if="advancedSearchResults"
|
||||||
|
@ -520,7 +521,8 @@
|
||||||
<div class="above-search-control">
|
<div class="above-search-control">
|
||||||
|
|
||||||
<div
|
<div
|
||||||
v-show="isLoadingItems"
|
v-show="(isLoadingItems &&
|
||||||
|
!(registeredViewModes[viewMode] != undefined && registeredViewModes[viewMode].full_screen))"
|
||||||
class="loading-container">
|
class="loading-container">
|
||||||
<b-loading
|
<b-loading
|
||||||
:is-full-page="false"
|
:is-full-page="false"
|
||||||
|
@ -896,7 +898,8 @@
|
||||||
|
|
||||||
// Updates searchControlHeight before in case we need to adjust filters position on mobile
|
// Updates searchControlHeight before in case we need to adjust filters position on mobile
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.searchControlHeight = this.$refs['search-control'].clientHeight;
|
if (this.$refs['search-control'] != undefined)
|
||||||
|
this.searchControlHeight = this.$refs['search-control'].clientHeight;
|
||||||
}, 500);
|
}, 500);
|
||||||
},
|
},
|
||||||
onChangeAdminViewMode(adminViewMode) {
|
onChangeAdminViewMode(adminViewMode) {
|
||||||
|
|
|
@ -179,7 +179,7 @@ function tainacan_the_faceted_search() {
|
||||||
$props = ' ';
|
$props = ' ';
|
||||||
|
|
||||||
$default_view_mode = apply_filters( 'tainacan-default-view-mode-for-themes', 'masonry' );
|
$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
|
// if in a collection page
|
||||||
$collection_id = tainacan_get_collection_id();
|
$collection_id = tainacan_get_collection_id();
|
||||||
|
|
Loading…
Reference in New Issue