2020-12-23 12:38:30 +00:00
< ? php
if ( ! isset ( $prefix )) {
$prefix = '' ;
} else {
$prefix = $prefix . '_' ;
}
$options = [
$prefix . 'search-control-panel' => [
2021-04-14 17:40:23 +00:00
'label' => __ ( 'Search control' , 'tainacan-blocksy' ),
2020-12-23 12:38:30 +00:00
'type' => 'ct-panel' ,
2021-04-14 01:36:47 +00:00
'sync' => '' ,
2020-12-23 12:38:30 +00:00
'inner-options' => [
blocksy_rand_md5 () => [
'type' => 'ct-title' ,
2021-04-14 17:40:23 +00:00
'label' => __ ( 'Textual search' , 'tainacan-blocksy' ),
2020-12-23 12:38:30 +00:00
],
$prefix . 'show_search' => [
2021-04-14 17:40:23 +00:00
'label' => __ ( 'Show simple search' , 'tainacan-blocksy' ),
2020-12-23 12:38:30 +00:00
'type' => 'ct-switch' ,
'value' => 'yes' ,
2021-04-14 17:40:23 +00:00
'desc' => __ ( 'Display a simple textual search input for items title and description.' , 'tainacan-blocksy' ),
2021-04-14 01:36:47 +00:00
'sync' => ''
2020-12-23 12:38:30 +00:00
],
blocksy_rand_md5 () => [
'type' => 'ct-condition' ,
'condition' => [
$prefix . 'show_search' => 'yes'
],
'options' => [
$prefix . 'show_advanced_search' => [
2021-04-14 17:40:23 +00:00
'label' => __ ( 'Show advanced search' , 'tainacan-blocksy' ),
2020-12-23 12:38:30 +00:00
'type' => 'ct-switch' ,
'value' => 'yes' ,
2021-04-14 01:36:47 +00:00
2021-04-14 17:40:23 +00:00
'desc' => __ ( 'Display a link to open the advanced search panel.' , 'tainacan-blocksy' ),
2021-04-14 01:36:47 +00:00
'sync' => ''
2020-12-23 12:38:30 +00:00
],
],
],
blocksy_rand_md5 () => [
'type' => 'ct-title' ,
2021-04-14 17:40:23 +00:00
'label' => __ ( 'Sorting' , 'tainacan-blocksy' ),
2020-12-23 12:38:30 +00:00
],
$prefix . 'show_sorting_area' => [
2021-04-14 17:40:23 +00:00
'label' => __ ( 'Show sorting options' , 'tainacan-blocksy' ),
2020-12-23 12:38:30 +00:00
'type' => 'ct-switch' ,
'value' => 'yes' ,
2021-04-14 17:40:23 +00:00
'desc' => __ ( 'Display options related to the search such as the "Sort by" button and "Sort direction"' , 'tainacan-blocksy' ),
2021-04-14 01:36:47 +00:00
'sync' => ''
2020-12-23 12:38:30 +00:00
],
blocksy_rand_md5 () => [
'type' => 'ct-condition' ,
'condition' => [
$prefix . 'show_sorting_area' => 'yes'
],
'options' => [
$prefix . 'show_sort_by_button' => [
2021-04-14 17:40:23 +00:00
'label' => __ ( 'Show "Sort by" button' , 'tainacan-blocksy' ),
2020-12-23 12:38:30 +00:00
'type' => 'ct-switch' ,
'value' => 'yes' ,
2021-04-14 01:36:47 +00:00
2021-04-14 17:40:23 +00:00
'desc' => __ ( 'Display the "Sort by" button, to select a metadata to sort by.' , 'tainacan-blocksy' ),
2021-04-14 01:36:47 +00:00
'sync' => ''
2020-12-23 12:38:30 +00:00
],
],
],
blocksy_rand_md5 () => [
'type' => 'ct-title' ,
2021-04-14 17:40:23 +00:00
'label' => __ ( 'View modes' , 'tainacan-blocksy' ),
2020-12-23 12:38:30 +00:00
],
$prefix . 'show_inline_view_mode_options' => [
2021-04-14 17:40:23 +00:00
'label' => __ ( 'Show inline view mode options' , 'tainacan-blocksy' ),
2020-12-23 12:38:30 +00:00
'type' => 'ct-switch' ,
'value' => 'no' ,
2021-04-14 17:40:23 +00:00
'desc' => __ ( 'Display view mode options as inline buttons instead of a dropdown.' , 'tainacan-blocksy' ),
2021-04-14 01:36:47 +00:00
'sync' => ''
2020-12-23 12:38:30 +00:00
],
$prefix . 'show_fullscreen_with_view_modes' => [
2021-04-14 17:40:23 +00:00
'label' => __ ( 'Show full screen with view modes' , 'tainacan-blocksy' ),
2020-12-23 12:38:30 +00:00
'type' => 'ct-switch' ,
'value' => 'no' ,
2021-04-14 17:40:23 +00:00
'desc' => __ ( 'Offers full screen view mode options alongside other view modes instead of separated in the search control bar.' , 'tainacan-blocksy' ),
2021-04-14 01:36:47 +00:00
'sync' => ''
2020-12-23 12:38:30 +00:00
],
$prefix . 'show_displayed_metadata_dropdown' => [
2021-04-14 17:40:23 +00:00
'label' => __ ( 'Show "Displayed metadata" dropdown' , 'tainacan-blocksy' ),
2020-12-23 12:38:30 +00:00
'type' => 'ct-switch' ,
'value' => 'yes' ,
2021-04-14 17:40:23 +00:00
'desc' => __ ( 'Display a dropdown for selecting the displayed metadata. This option may or not be present according to the current selected view mode.' , 'tainacan-blocksy' ),
2021-04-14 01:36:47 +00:00
'sync' => ''
2020-12-23 12:38:30 +00:00
],
blocksy_rand_md5 () => [
'type' => 'ct-title' ,
2021-04-14 17:40:23 +00:00
'label' => __ ( 'Exposers' , 'tainacan-blocksy' ),
2020-12-23 12:38:30 +00:00
],
$prefix . 'show_exposers_button' => [
2021-04-14 17:40:23 +00:00
'label' => __ ( 'Show "View as..." button' , 'tainacan-blocksy' ),
2020-12-23 12:38:30 +00:00
'type' => 'ct-switch' ,
'value' => 'yes' ,
2021-04-14 17:40:23 +00:00
'desc' => __ ( 'Display the "View as..." button, which opens the exposers modal.' , 'tainacan-blocksy' ),
2021-04-14 01:36:47 +00:00
'sync' => ''
2020-12-23 12:38:30 +00:00
],
],
],
];