mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 06:33:50 +09:00
- settings optimization;
This commit is contained in:
@@ -951,9 +951,9 @@ if ( ! class_exists( 'Builtin' ) ) {
|
||||
'upload_text' => __('Upload your photo here','ultimate-member'),
|
||||
'icon' => 'um-faicon-camera',
|
||||
'crop' => 1,
|
||||
'max_size' => ( um_get_option('profile_photo_max_size') ) ? um_get_option('profile_photo_max_size') : 999999999,
|
||||
'min_width' => str_replace('px','',um_get_option('profile_photosize')),
|
||||
'min_height' => str_replace('px','',um_get_option('profile_photosize')),
|
||||
'max_size' => ( UM()->options()->get('profile_photo_max_size') ) ? UM()->options()->get('profile_photo_max_size') : 999999999,
|
||||
'min_width' => str_replace('px','',UM()->options()->get('profile_photosize')),
|
||||
'min_height' => str_replace('px','',UM()->options()->get('profile_photosize')),
|
||||
'private_use' => true,
|
||||
),
|
||||
|
||||
@@ -965,10 +965,10 @@ if ( ! class_exists( 'Builtin' ) ) {
|
||||
'upload_text' => __('Upload profile cover here','ultimate-member'),
|
||||
'icon' => 'um-faicon-picture-o',
|
||||
'crop' => 2,
|
||||
'max_size' => ( um_get_option('cover_photo_max_size') ) ? um_get_option('cover_photo_max_size') : 999999999,
|
||||
'max_size' => ( UM()->options()->get('cover_photo_max_size') ) ? UM()->options()->get('cover_photo_max_size') : 999999999,
|
||||
'modal_size' => 'large',
|
||||
'ratio' => str_replace(':1','',um_get_option('profile_cover_ratio')),
|
||||
'min_width' => um_get_option('cover_min_width'),
|
||||
'ratio' => str_replace(':1','',UM()->options()->get('profile_cover_ratio')),
|
||||
'min_width' => UM()->options()->get('cover_min_width'),
|
||||
'private_use' => true,
|
||||
),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user