2017-07-26 14:57:52 +03:00
|
|
|
<div class="um-admin-metabox">
|
|
|
|
|
<?php UM()->admin_forms( array(
|
|
|
|
|
'class' => 'um-form-login-customize um-top-label',
|
|
|
|
|
'prefix_id' => 'form',
|
|
|
|
|
'fields' => array(
|
|
|
|
|
array(
|
2017-08-03 10:52:40 +03:00
|
|
|
'id' => '_um_login_use_custom_settings',
|
2017-07-26 14:57:52 +03:00
|
|
|
'type' => 'select',
|
|
|
|
|
'label' => __( 'Apply custom settings to this form', 'ultimate-member' ),
|
|
|
|
|
'tooltip' => __( 'Switch to yes if you want to customize this form settings, styling & appearance', 'ultimate-member' ),
|
2017-08-03 10:52:40 +03:00
|
|
|
'value' => UM()->query()->get_meta_value( '_um_login_use_custom_settings', null, 0 ),
|
2017-07-26 14:57:52 +03:00
|
|
|
'options' => array(
|
|
|
|
|
0 => __( 'No', 'ultimate-member' ),
|
|
|
|
|
1 => __( 'Yes', 'ultimate-member' ),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
array(
|
|
|
|
|
'id' => '_um_login_template',
|
|
|
|
|
'type' => 'select',
|
|
|
|
|
'label' => __( 'Template', 'ultimate-member' ),
|
|
|
|
|
'value' => UM()->query()->get_meta_value( '_um_login_template', null, um_get_option( 'login_template' ) ),
|
|
|
|
|
'options' => UM()->shortcodes()->get_templates( 'login' ),
|
2017-08-03 10:52:40 +03:00
|
|
|
'conditional' => array( '_um_login_use_custom_settings', '=', 1 )
|
2017-07-26 14:57:52 +03:00
|
|
|
),
|
|
|
|
|
array(
|
|
|
|
|
'id' => '_um_login_max_width',
|
|
|
|
|
'type' => 'text',
|
|
|
|
|
'label' => __( 'Max. Width (px)', 'ultimate-member' ),
|
|
|
|
|
'tooltip' => __( 'The maximum width of shortcode in pixels e.g. 600px', 'ultimate-member' ),
|
|
|
|
|
'value' => UM()->query()->get_meta_value('_um_login_max_width', null, um_get_option( 'login_max_width' ) ),
|
2017-08-03 10:52:40 +03:00
|
|
|
'conditional' => array( '_um_login_use_custom_settings', '=', 1 )
|
2017-07-26 14:57:52 +03:00
|
|
|
),
|
|
|
|
|
array(
|
|
|
|
|
'id' => '_um_login_icons',
|
|
|
|
|
'type' => 'select',
|
|
|
|
|
'label' => __( 'Field Icons', 'ultimate-member' ),
|
|
|
|
|
'tooltip' => __( 'Whether to show field icons and where to show them relative to the field', 'ultimate-member' ),
|
|
|
|
|
'value' => UM()->query()->get_meta_value( '_um_login_icons', null, um_get_option( 'login_icons' ) ) ,
|
|
|
|
|
'options' => array(
|
|
|
|
|
'field' => __( 'Show inside text field', 'ultimate-member' ),
|
|
|
|
|
'label' => __( 'Show with label', 'ultimate-member' ),
|
|
|
|
|
'off' => __( 'Turn off', 'ultimate-member' )
|
|
|
|
|
),
|
2017-08-03 10:52:40 +03:00
|
|
|
'conditional' => array( '_um_login_use_custom_settings', '=', 1 )
|
2017-07-26 14:57:52 +03:00
|
|
|
),
|
|
|
|
|
array(
|
|
|
|
|
'id' => '_um_login_primary_btn_word',
|
|
|
|
|
'type' => 'text',
|
|
|
|
|
'label' => __( 'Primary Button Text', 'ultimate-member' ),
|
|
|
|
|
'tooltip' => __( 'Customize the button text', 'ultimate-member' ),
|
|
|
|
|
'value' => UM()->query()->get_meta_value( '_um_login_primary_btn_word', null, um_get_option( 'login_primary_btn_word' ) ),
|
2017-08-03 10:52:40 +03:00
|
|
|
'conditional' => array( '_um_login_use_custom_settings', '=', 1 )
|
2017-07-26 14:57:52 +03:00
|
|
|
),
|
|
|
|
|
array(
|
|
|
|
|
'id' => '_um_login_secondary_btn',
|
2017-08-30 16:01:43 +03:00
|
|
|
'type' => 'select',
|
2017-07-26 14:57:52 +03:00
|
|
|
'label' => __( 'Show Secondary Button', 'ultimate-member' ),
|
2017-08-30 16:01:43 +03:00
|
|
|
'value' => UM()->query()->get_meta_value( '_um_login_secondary_btn', null, um_get_option( 'login_secondary_btn' ) ),
|
|
|
|
|
'conditional' => array( '_um_login_use_custom_settings', '=', 1 ),
|
|
|
|
|
'options' => array(
|
|
|
|
|
0 => __( 'No', 'ultimate-member' ),
|
|
|
|
|
1 => __( 'Yes', 'ultimate-member' ),
|
|
|
|
|
),
|
2017-07-26 14:57:52 +03:00
|
|
|
),
|
|
|
|
|
array(
|
|
|
|
|
'id' => '_um_login_secondary_btn_word',
|
|
|
|
|
'type' => 'text',
|
|
|
|
|
'label' => __( 'Primary Button Text', 'ultimate-member' ),
|
|
|
|
|
'tooltip' => __( 'Customize the button text', 'ultimate-member' ),
|
|
|
|
|
'value' => UM()->query()->get_meta_value( '_um_login_secondary_btn_word', null, um_get_option( 'login_secondary_btn_word' ) ),
|
|
|
|
|
'conditional' => array( '_um_login_secondary_btn', '=', 1 )
|
|
|
|
|
),
|
|
|
|
|
array(
|
|
|
|
|
'id' => '_um_login_forgot_pass_link',
|
2017-09-04 16:52:42 +03:00
|
|
|
'type' => 'select',
|
2017-07-26 14:57:52 +03:00
|
|
|
'label' => __( 'Show Forgot Password Link?', 'ultimate-member' ),
|
|
|
|
|
'value' => UM()->query()->get_meta_value( '_um_login_forgot_pass_link', null, um_get_option('login_forgot_pass_link') ),
|
2017-09-04 16:52:42 +03:00
|
|
|
'conditional' => array( '_um_login_use_custom_settings', '=', 1 ),
|
|
|
|
|
'options' => array(
|
|
|
|
|
0 => __( 'No', 'ultimate-member' ),
|
|
|
|
|
1 => __( 'Yes', 'ultimate-member' ),
|
|
|
|
|
),
|
2017-07-26 14:57:52 +03:00
|
|
|
),
|
|
|
|
|
array(
|
|
|
|
|
'id' => '_um_login_show_rememberme',
|
2017-09-04 16:52:42 +03:00
|
|
|
'type' => 'select',
|
2017-07-26 14:57:52 +03:00
|
|
|
'label' => __( 'Show "Remember Me"?', 'ultimate-member' ),
|
|
|
|
|
'value' => UM()->query()->get_meta_value( '_um_login_show_rememberme', null, um_get_option('login_show_rememberme') ),
|
2017-09-04 16:52:42 +03:00
|
|
|
'conditional' => array( '_um_login_use_custom_settings', '=', 1 ),
|
|
|
|
|
'options' => array(
|
|
|
|
|
0 => __( 'No', 'ultimate-member' ),
|
|
|
|
|
1 => __( 'Yes', 'ultimate-member' ),
|
|
|
|
|
),
|
2017-07-26 14:57:52 +03:00
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
) )->render_form(); ?>
|
|
|
|
|
|
|
|
|
|
<div class="um-admin-clear"></div>
|
|
|
|
|
</div>
|