mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 21:23:39 +09:00
Mobile work and profile settings
This commit is contained in:
+38
-1
@@ -738,10 +738,30 @@ $this->sections[] = array(
|
||||
|
||||
$this->sections[] = array(
|
||||
|
||||
'icon' => 'um-icon-files',
|
||||
'icon' => 'um-icon-photo-2',
|
||||
'title' => __( 'Image & File Uploads'),
|
||||
'fields' => array(
|
||||
|
||||
array(
|
||||
'id' => 'photo_thumb_sizes',
|
||||
'type' => 'multi_text',
|
||||
'title' => __( 'Profile Photo Thumbnail Sizes' ),
|
||||
'desc' => __( 'Here you can define which thumbnail sizes will be created for each profile photo upload.' ),
|
||||
'default' => array( 40, 80, str_replace('px','',um_get_option('profile_photosize') ) ),
|
||||
'validate' => 'numeric',
|
||||
'add_text' => __('Add New Size'),
|
||||
),
|
||||
|
||||
array(
|
||||
'id' => 'cover_thumb_sizes',
|
||||
'type' => 'multi_text',
|
||||
'title' => __( 'Cover Photo Thumbnail Sizes' ),
|
||||
'desc' => __( 'Here you can define which thumbnail sizes will be created for each cover photo upload.' ),
|
||||
'default' => array( 300, 600 ),
|
||||
'validate' => 'numeric',
|
||||
'add_text' => __('Add New Size'),
|
||||
),
|
||||
|
||||
array(
|
||||
'id' => 'image_compression',
|
||||
'type' => 'text',
|
||||
@@ -750,6 +770,15 @@ $this->sections[] = array(
|
||||
'default' => 60,
|
||||
'validate' => 'numeric',
|
||||
),
|
||||
|
||||
array(
|
||||
'id' => 'image_max_width',
|
||||
'type' => 'text',
|
||||
'title' => __( 'Image Upload Maximum Width' ),
|
||||
'desc' => __( 'Any image upload above this width will be resized to this limit automatically.' ),
|
||||
'default' => 1000,
|
||||
'validate' => 'numeric',
|
||||
),
|
||||
|
||||
)
|
||||
|
||||
@@ -1163,6 +1192,14 @@ $this->sections[] = array(
|
||||
'transparent' => false,
|
||||
),
|
||||
|
||||
array(
|
||||
'id' => 'profile_show_bio',
|
||||
'type' => 'switch',
|
||||
'title' => __( 'Show user description in header' ),
|
||||
'default' => um_get_metadefault('profile_show_bio'),
|
||||
'desc' => 'Switch on/off the user description on profile header',
|
||||
),
|
||||
|
||||
)
|
||||
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user