Adds default view mode option to Repository Level items list.
This commit is contained in:
parent
fd205c9092
commit
b59ab93617
|
@ -74,7 +74,16 @@ $options = [
|
|||
blocksy_rand_md5() => [
|
||||
'type' => 'ct-condition',
|
||||
'condition' => [
|
||||
$prefix !== 'tainacan-terms-items_archive_'
|
||||
$prefix !== 'tainacan-terms-items_archive_',
|
||||
],
|
||||
'options' => blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/archive-elements/default-view-mode.php' , [
|
||||
'prefix' => $prefix
|
||||
], false)
|
||||
],
|
||||
blocksy_rand_md5() => [
|
||||
'type' => 'ct-condition',
|
||||
'condition' => [
|
||||
$prefix !== 'tainacan-repository-items_archive_',
|
||||
],
|
||||
'options' => blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/archive-elements/default-view-mode.php' , [
|
||||
'prefix' => $prefix
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
--tainacan-item-heading-hover-background-color: var(--tainacan-item-background-color, white);
|
||||
// --tainacan-input-color: var(--color, rgba(44, 62, 80, 0.9));
|
||||
// --tainacan-input-background-color: var(--form-field-initial-background, white);
|
||||
// --tainacan-input-border-color: var(--form-field-border-initial-color, #e0e5eb);
|
||||
--tainacan-input-border-color: var(--form-field-border-initial-color, #e0e5eb);
|
||||
// --tainacan-heading-color: var(--headingColor, rgba(44, 62, 80, 1));
|
||||
// --tainacan-label-color: var(--color, rgba(44, 62, 80, 0.9));
|
||||
// --tainacan-info-color: var(--color, rgba(44, 62, 80, 0.9));
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
--tainacan-base-font-size: var(--fontSize, 1em);
|
||||
--tainacan-item-hover-background-color: var(--tainacan-item-background-color, white);
|
||||
--tainacan-item-heading-hover-background-color: var(--tainacan-item-background-color, white);
|
||||
--tainacan-input-border-color: var(--form-field-border-initial-color, #e0e5eb);
|
||||
--tainacan-skeleton-color: var(--tainacan-item-background-color, white);
|
||||
/* Search control */
|
||||
/* Advanced Search */
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -116,6 +116,7 @@ $page_container_style .= 'background-color: var(--tainacan-background-color, #f8
|
|||
'show_fullscreen_with_view_modes' => get_theme_mod($repository_items_prefix . '_show_fullscreen_with_view_modes', 'no') == 'yes',
|
||||
'hide_exposers_button' => get_theme_mod($repository_items_prefix . '_show_exposers_button', 'yes') == 'no',
|
||||
'hide_pagination_area' => get_theme_mod($repository_items_prefix . '_has_pagination', 'yes') == 'no',
|
||||
'default_view_mode' => get_theme_mod($repository_items_prefix . '_default_view_mode', 'masonry')
|
||||
]);
|
||||
?>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue