- fix default view type

- fix js error for filter line
This commit is contained in:
andrewshuba
2019-09-05 10:46:31 +03:00
parent 6ac94904e1
commit a86b892b06
2 changed files with 7 additions and 4 deletions
@@ -17,7 +17,7 @@ $show_these_users = get_post_meta( get_the_ID(), '_um_show_these_users', true );
if ( $show_these_users ) {
$show_these_users = implode( "\n", str_replace( "\r", "", $show_these_users ) );
}
$_um_view_types_options = array( 'grid', 'list' );
$_um_view_types_value = get_post_meta( $post_id, '_um_view_types', true );
$_um_view_types_value = empty( $_um_view_types_value ) ? array( 'grid', 'list' ) : $_um_view_types_value;
@@ -46,7 +46,7 @@ foreach ( $view_types_options as $key => $value ) {
'tooltip' => __( 'View type a specific parameter in the directory', 'ultimate-member' ),
'options' => $view_types_options,
'columns' => 3,
'value' => $_um_view_types_options,
'value' => $_um_view_types_value,
'data' => array( 'fill__um_default_view' => 'checkbox_key' ),
),
array(