mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 05:33:36 +09:00
- fixed some colors in CSS;
- fixed RTL layouts; - fixed must search attr; - fixed show only these users attr; - changed CSS for fields (1px border); - fixed UM dropdown JS for position;
This commit is contained in:
@@ -92,7 +92,7 @@ body.um-admin .select2.select2-container .select2-selection{
|
||||
user-select: none;
|
||||
background: none !important;
|
||||
background-color: #fff !important;
|
||||
border: 2px solid #ddd !important;
|
||||
border: 1px solid #ddd !important;
|
||||
}
|
||||
body.um-admin .select2.select2-container .select2-selection .select2-selection__arrow b[role=presentation]{
|
||||
display:none;
|
||||
@@ -123,7 +123,7 @@ body.um-admin .select2.select2-container .select2-selection .select2-selection__
|
||||
border-left: 0 !important;
|
||||
}
|
||||
body.um-admin .select2-container.select2-container--open .select2-dropdown{
|
||||
border: 2px solid #ddd !important;
|
||||
border: 1px solid #ddd !important;
|
||||
}
|
||||
body.um-admin .select2-results li{
|
||||
list-style: none;
|
||||
|
||||
@@ -941,17 +941,23 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) {
|
||||
* @param array $directory_data
|
||||
*/
|
||||
function show_only_these_users( $directory_data ) {
|
||||
if ( ! empty( $directory_data['show_these_users'] ) && is_array( $directory_data['show_these_users'] ) ) {
|
||||
$users_array = array();
|
||||
if ( ! empty( $directory_data['show_these_users'] ) ) {
|
||||
$show_these_users = maybe_unserialize( $directory_data['show_these_users'] );
|
||||
|
||||
foreach ( $directory_data['show_these_users'] as $username ) {
|
||||
if ( false !== ( $exists_id = username_exists( $username ) ) ) {
|
||||
$users_array[] = $exists_id;
|
||||
if ( is_array( $show_these_users ) && ! empty( $show_these_users ) ) {
|
||||
|
||||
$users_array = array();
|
||||
|
||||
foreach ( $show_these_users as $username ) {
|
||||
if ( false !== ( $exists_id = username_exists( $username ) ) ) {
|
||||
$users_array[] = $exists_id;
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! empty( $users_array ) ) {
|
||||
$this->query_args['include'] = $users_array;
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! empty( $users_array ) ) {
|
||||
$this->query_args['include'] = $users_array;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user