hypejunction / avatars
1.1.1
2016-02-24 18:54 UTC
Requires
- php: >=5.5
- composer/installers: ~1.0
- hypejunction/cropper: ~1.0
- hypejunction/images: ~1.0
Suggests
README
已废弃 该插件对性能有严重影响,因此我已废弃它。请使用 https://github.com/hypeJunction/hypeLists
特性
- 通用API和UI,用于上传、处理和裁剪实体头像
使用方法
允许头像
要允许实体拥有头像,使用 'avatars:enabled', "$type:$subtype"
钩子。
输入字段
echo elgg_view('input/avatar', array( 'entity' => $entity, 'name' => 'upload', ));
操作
avatars_create_avatar_from_upload($entity, 'upload');