2017-07-26 14:57:52 +03:00
|
|
|
<div class="um-admin-metabox">
|
|
|
|
|
|
2018-03-19 16:31:49 +02:00
|
|
|
<?php $user_fields = array();
|
|
|
|
|
foreach ( UM()->builtin()->all_user_fields() as $key => $arr ) {
|
|
|
|
|
$user_fields[$key] = isset( $arr['title'] ) ? $arr['title'] : '';
|
|
|
|
|
}
|
2017-07-26 14:57:52 +03:00
|
|
|
|
|
|
|
|
$post_id = get_the_ID();
|
|
|
|
|
$_um_tagline_fields = get_post_meta( $post_id, '_um_tagline_fields', true );
|
|
|
|
|
$_um_reveal_fields = get_post_meta( $post_id, '_um_reveal_fields', true );
|
|
|
|
|
|
2018-03-19 16:31:49 +02:00
|
|
|
UM()->admin_forms( array(
|
2017-07-26 14:57:52 +03:00
|
|
|
'class' => 'um-member-directory-profile um-half-column',
|
|
|
|
|
'prefix_id' => 'um_metadata',
|
|
|
|
|
'fields' => array(
|
|
|
|
|
array(
|
|
|
|
|
'id' => '_um_profile_photo',
|
|
|
|
|
'type' => 'checkbox',
|
|
|
|
|
'label' => __( 'Enable Profile Photo', 'ultimate-member' ),
|
|
|
|
|
'value' => UM()->query()->get_meta_value( '_um_profile_photo', null, 1 ),
|
|
|
|
|
),
|
|
|
|
|
array(
|
|
|
|
|
'id' => '_um_cover_photos',
|
|
|
|
|
'type' => 'checkbox',
|
|
|
|
|
'label' => __( 'Enable Cover Photo', 'ultimate-member' ),
|
|
|
|
|
'tooltip' => __( 'If turned on, the users cover photo will appear in the directory', 'ultimate-member' ),
|
|
|
|
|
'value' => UM()->query()->get_meta_value( '_um_cover_photos', null, 1 ),
|
|
|
|
|
),
|
|
|
|
|
array(
|
|
|
|
|
'id' => '_um_show_name',
|
|
|
|
|
'type' => 'checkbox',
|
|
|
|
|
'label' => __( 'Show display name', 'ultimate-member' ),
|
|
|
|
|
'value' => UM()->query()->get_meta_value( '_um_show_name', null, 1 ),
|
|
|
|
|
),
|
|
|
|
|
array(
|
|
|
|
|
'id' => '_um_show_tagline',
|
|
|
|
|
'type' => 'checkbox',
|
|
|
|
|
'label' => __( 'Show tagline below profile name', 'ultimate-member' ),
|
|
|
|
|
'value' => UM()->query()->get_meta_value( '_um_show_tagline' ),
|
|
|
|
|
),
|
|
|
|
|
array(
|
|
|
|
|
'id' => '_um_tagline_fields',
|
|
|
|
|
'type' => 'multi_selects',
|
|
|
|
|
'label' => __( 'Choose field(s) to display in tagline', 'ultimate-member' ),
|
|
|
|
|
'value' => $_um_tagline_fields,
|
|
|
|
|
'conditional' => array( '_um_show_tagline', '=', 1 ),
|
|
|
|
|
'add_text' => __( 'Add New Custom Field','ultimate-member' ),
|
|
|
|
|
'options' => $user_fields,
|
|
|
|
|
'show_default_number' => 1,
|
|
|
|
|
),
|
|
|
|
|
array(
|
|
|
|
|
'id' => '_um_show_userinfo',
|
|
|
|
|
'type' => 'checkbox',
|
|
|
|
|
'label' => __( 'Show extra user information below tagline?', 'ultimate-member' ),
|
|
|
|
|
'value' => UM()->query()->get_meta_value( '_um_show_userinfo' ),
|
|
|
|
|
),
|
|
|
|
|
array(
|
|
|
|
|
'id' => '_um_userinfo_animate',
|
|
|
|
|
'type' => 'checkbox',
|
|
|
|
|
'label' => __( 'Enable reveal section transition by default', 'ultimate-member' ),
|
|
|
|
|
'value' => UM()->query()->get_meta_value( '_um_userinfo_animate' ),
|
|
|
|
|
'conditional' => array( '_um_show_userinfo', '=', 1 )
|
|
|
|
|
),
|
|
|
|
|
array(
|
|
|
|
|
'id' => '_um_reveal_fields',
|
|
|
|
|
'type' => 'multi_selects',
|
|
|
|
|
'label' => __( 'Choose field(s) to display in reveal section', 'ultimate-member' ),
|
|
|
|
|
'value' => $_um_reveal_fields,
|
|
|
|
|
'add_text' => __( 'Add New Custom Field', 'ultimate-member' ),
|
|
|
|
|
'conditional' => array( '_um_show_userinfo', '=', 1 ),
|
2018-03-19 16:31:49 +02:00
|
|
|
'options' => $user_fields,
|
|
|
|
|
'show_default_number' => 1,
|
2017-07-26 14:57:52 +03:00
|
|
|
),
|
|
|
|
|
array(
|
|
|
|
|
'id' => '_um_show_social',
|
|
|
|
|
'type' => 'checkbox',
|
|
|
|
|
'label' => __( 'Show social connect icons', 'ultimate-member' ),
|
|
|
|
|
'value' => UM()->query()->get_meta_value( '_um_show_social' ),
|
|
|
|
|
'conditional' => array( '_um_show_userinfo', '=', 1 )
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
) )->render_form(); ?>
|
|
|
|
|
|
|
|
|
|
<div class="um-admin-clear"></div>
|
|
|
|
|
</div>
|