Hi all
Lots of changes in version 1.7.0 some of which have been in the dev branch for a while
- Added Local User select to Single Avatar Shortcode creator
- Replaced wp_specialchars() with esc_html()
- Removed support pre 3.0 wordpress installs
- Added BBPRESS_post_count as shortcode display and sort options
- Added show_email to shortcode display option
- Added some translation updates
- Fixed issue with TniyMCE breaking when using HTTPS
- And a few other tidy ups
- Added SQL filter to only fetch the users for the rolls being requested rather than all users
- Added caching to the main get_users function which will use an object cache if turned on
- Started to add support for filters so the template can changed via the calling themes.
I have the ability to pick a local user using a drop and you can now show the users email (don’t use this on public page – you will get spam)
Some site that have lots of users were find that some queries were very slow so I have tried to help this a better query (small results set) and and caching if you have it turned on. I plan to do some more work on this.
Filters now available do use
apply_filters('aa_userlist_empty', '<p class="no_users">'. __('No users found.', 'author-avatars'). '</p>');
apply_filters('aa_userlist_group_template', $this->group_template)
apply_filters('aa_userlist_group_wrapper_template', $this->group_wrapper_template)
apply_filters('aa_userlist_template', $this->userlist_template)
apply_filters(‘aa_user_template’, $this->user_template,$user)
and here are the default strings
/**
* Group wrapper template
* - {groups} is replaced by the list of groups
*/
var $group_wrapper_template = '<div class="grouped-author-list">{groups}</div>';
/**
* Group template
* - {name} is replaced by the name of the group
* - {group} is replaced by the list of users
*/
var $group_template = '<div class="author-group"><strong>{name}</strong><br/>{group}</div>';
/**
* Wrapper template
* - {users} is replaced by the list of users
*/
var $userlist_template = '<div class="author-list">{users}</div>';
/**
* User template
* - {class} is replaced by user specific classes
* - {user} is replaced by the user avatar (and possibly name)
*/
var $user_template = '<div class="{class}">{user}</div>';
I hope this update goes well I had been holding of releasing it as it kept getting big and have found time to test and release
I have moved the main code repo to https://github.com/pbearne/wp-author-avatars feel free to create a pull requests and submit patches there.