Mobile work and profile settings

This commit is contained in:
ultimatemember
2014-12-29 15:51:55 +02:00
parent 0c9c715175
commit 6c94a20220
40 changed files with 4993 additions and 386 deletions
+38 -1
View File
@@ -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',
),
)
);