mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- fixed modal window layout;
- added filter for avatar size on the member directory;
This commit is contained in:
@@ -18,7 +18,7 @@ function um_admin_new_modal( id, ajax, size ) {
|
||||
|
||||
um_admin_remove_modal();
|
||||
|
||||
jQuery('body').addClass('um-admin-modal-open').append('<div class="um-admin-overlay" /><div class="um-admin-modal" />');
|
||||
jQuery('body').addClass('um-admin-modal-open').append('<div class="um-admin-overlay"></div><div class="um-admin-modal"></div>');
|
||||
jQuery('#' + id).prependTo('.um-admin-modal');
|
||||
jQuery('#' + id).show();
|
||||
jQuery('.um-admin-modal').show();
|
||||
|
||||
@@ -2539,6 +2539,7 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) {
|
||||
|
||||
$avatar_size = UM()->options()->get( 'profile_photosize' );
|
||||
$this->avatar_size = str_replace( 'px', '', $avatar_size );
|
||||
$this->avatar_size = apply_filters( 'um_member_directory_avatar_image_size', $this->avatar_size, $directory_data );
|
||||
|
||||
$users = array();
|
||||
foreach ( $user_ids as $user_id ) {
|
||||
|
||||
@@ -160,6 +160,7 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
|
||||
* Enhancements:
|
||||
|
||||
- Added: `um_member_directory_cover_image_size` hook with ability to change the cover photo size on the member directory
|
||||
- Added: `um_member_directory_avatar_image_size` hook with ability to change the profile photo size on the member directory
|
||||
- Added: `um_member_directory_get_members_allow` JS hook for 3rd-party integration with the member directory. You could use a time throttle until some data is loaded
|
||||
- Added: Notice about the fields' conditional logic rules + small CSS enhancements
|
||||
- Added: Invalid nonce validation on Login and Registration pages instead of wp_die()
|
||||
|
||||
Reference in New Issue
Block a user