- fixed modal window layout;

- added filter for avatar size on the member directory;
This commit is contained in:
nikitasinelnikov
2020-12-04 16:52:17 +02:00
parent 5afebdd786
commit 219cde7776
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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();
+1
View File
@@ -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 ) {
+1
View File
@@ -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()