- added option to expand by default member directory filters bar;

This commit is contained in:
nikitasinelnikov
2019-10-17 11:23:46 +03:00
parent 8e7a2fb8be
commit 39eb76474e
4 changed files with 80 additions and 57 deletions
@@ -93,6 +93,14 @@ global $post_id; ?>
'add_text' => __( 'Add New Custom Field', 'ultimate-member' ),
'show_default_number' => 1,
),
array(
'id' => '_um_filters_expanded',
'type' => 'checkbox',
'label' => __( 'Expand the filter bar by default', 'ultimate-member' ),
'tooltip' => __( 'If turned on, filters bar will be visible after a page loading and can be collapsed', 'ultimate-member' ),
'value' => UM()->query()->get_meta_value( '_um_filters_expanded' ),
'conditional' => array( '_um_filters', '=', 1 )
),
array(
'id' => '_um_search_filters',
'type' => 'md_default_filters',
+2 -1
View File
@@ -168,7 +168,8 @@ if ( ! class_exists( 'um\Config' ) ) {
'_um_filters' => 0,
'_um_roles_can_filter' => array(),
'_um_search_fields' => array(),
'_um_search_filters' => '',
'_um_filters_expanded' => 0,
'_um_search_filters' => array(),
'_um_must_search' => 0,
'_um_max_users' => '',