switcher_field([
'title' => esc_html__( 'Dashboard Design Customization', 'admintosh' ),
'name' => 'active_login_dashboard_customiz',
]);
$this->switcher_field([
'title' => esc_html__( 'Login Page Customization', 'admintosh' ),
'name' => 'active_login_page_customiz',
]);
$this->switcher_field([
'title' => esc_html__( 'Active Captcha', 'admintosh' ),
'name' => 'active_captcha',
]);
$this->switcher_field([
'title' => esc_html__( 'Login Attempts', 'admintosh' ),
'name' => 'active_login_attempts',
]);
$this->switcher_field([
'title' => esc_html__( 'Hide Login', 'admintosh' ),
'name' => 'active_hide_login',
]);
$this->switcher_field([
'title' => esc_html__( 'Login History', 'admintosh' ),
'name' => 'active_login_history',
]);
?>
image_radio_field([
'title' => esc_html__( 'Color Preset', 'admintosh' ),
'name' => 'adminbar_color_scheme',
'options' => [
'color-1' => ADMINTOSH_DIR_URL.'admin/assets/img/color-1.png',
'color-2' => ADMINTOSH_DIR_URL.'admin/assets/img/color-2.png',
'color-3' => ADMINTOSH_DIR_URL.'admin/assets/img/color-3.png',
'color-4' => ADMINTOSH_DIR_URL.'admin/assets/img/color-4.png'
]
]);
$this->color_field([
'title' => esc_html__( 'Admin Top Bar Background Color', 'admintosh' ),
'name' => 'adminbar_bg_color',
]);
$this->color_field([
'title' => esc_html__( 'Admin Top Bar Text Color', 'admintosh' ),
'name' => 'adminbar_text_color',
]);
$this->color_field([
'title' => esc_html__( 'Admin Top Bar Link Color', 'admintosh' ),
'name' => 'adminbar_link_color',
]);
$this->color_field([
'title' => esc_html__( 'Admin Top Bar Link Hover Background Color', 'admintosh' ),
'name' => 'adminbar_link_hv_bg_color',
]);
$this->color_field([
'title' => esc_html__( 'Admin Top Bar Link Hover Color', 'admintosh' ),
'name' => 'adminbar_link_hv_color',
]);
$this->media_field([
'title' => esc_html__( 'Admin Top bar Logo', 'admintosh' ),
'name' => 'top_bar_logo',
]);
$this->number_field([
'title' => esc_html__( 'Logo Width', 'admintosh' ),
'name' => 'tb_logo_width',
'placeholder' => '100'
]);
$this->number_field([
'title' => esc_html__( 'Logo Height', 'admintosh' ),
'name' => 'tb_logo_height',
'placeholder' => '32'
]);
$this->dimension_field([
'title' => esc_html__( 'Logo Margin', 'admintosh' ),
'name' => 'tb_logo_margin',
]);
?>
image_radio_field([
'title' => esc_html__( 'Color Preset', 'admintosh' ),
'name' => 'login_page_color_scheme',
'options' => [
'color-1' => ADMINTOSH_DIR_URL.'admin/assets/img/color-1.png',
'color-2' => ADMINTOSH_DIR_URL.'admin/assets/img/color-2.png',
'color-3' => ADMINTOSH_DIR_URL.'admin/assets/img/color-3.png',
'color-4' => ADMINTOSH_DIR_URL.'admin/assets/img/color-4.png'
]
]);
$this->color_field([
'title' => esc_html__( 'Background Color', 'admintosh' ),
'name' => 'login_page_bg_color',
]);
$this->media_field([
'title' => esc_html__( 'Background Image', 'admintosh' ),
'name' => 'login_page_bg_img',
]);
$this->media_field([
'title' => esc_html__( 'Logo', 'admintosh' ),
'name' => 'login_page_logo',
]);
$this->number_field([
'title' => esc_html__( 'Logo Width', 'admintosh' ),
'name' => 'logo_width',
]);
$this->number_field([
'title' => esc_html__( 'Logo Height', 'admintosh' ),
'name' => 'logo_height',
]);
$this->number_field([
'title' => esc_html__( 'Logo Size', 'admintosh' ),
'name' => 'logo_size',
]);
$this->number_field([
'title' => esc_html__( 'Logo/Site Name Margin Bottom', 'admintosh' ),
'name' => 'logo_margin_bottom',
]);
$this->text_field([
'title' => esc_html__( 'Site Name', 'admintosh' ),
'name' => 'login_page_site_name',
]);
$this->color_field([
'title' => esc_html__( 'Text Color', 'admintosh' ),
'name' => 'login_page_text_color',
]);
$this->color_field([
'title' => esc_html__( 'Link Color', 'admintosh' ),
'name' => 'login_page_link_color',
]);
$this->color_field([
'title' => esc_html__( 'Link Hover Color', 'admintosh' ),
'name' => 'login_page_link_hover_color',
]);
?>
image_radio_field([
'title' => esc_html__( 'Color Preset', 'admintosh' ),
'name' => 'login_form_color_scheme',
'options' => [
'color-1' => ADMINTOSH_DIR_URL.'admin/assets/img/color-1.png',
'color-2' => ADMINTOSH_DIR_URL.'admin/assets/img/color-2.png',
'color-3' => ADMINTOSH_DIR_URL.'admin/assets/img/color-3.png',
'color-4' => ADMINTOSH_DIR_URL.'admin/assets/img/color-4.png'
]
]);
$this->color_field([
'title' => esc_html__( 'Login Form Background Color', 'admintosh' ),
'name' => 'login_form_bg_color',
]);
$this->media_field([
'title' => esc_html__( 'Login Form Background Image', 'admintosh' ),
'name' => 'login_form_bg_img',
]);
$this->color_field([
'title' => esc_html__( 'Text Color', 'admintosh' ),
'name' => 'login_form_text_color',
]);
$this->border_field([
'title' => esc_html__( 'Border', 'admintosh' ),
'name' => 'login_form_border',
]);
// Input field
$this->heading_field([
'title' => esc_html__( 'Input Fields Style', 'admintosh' ),
'name' => 'input_field_heading',
]);
$this->color_field([
'title' => esc_html__( 'Input Field Background Color', 'admintosh' ),
'name' => 'input_field_bg_color',
]);
$this->color_field([
'title' => esc_html__( 'Input Field Text Color', 'admintosh' ),
'name' => 'input_field_text_color',
]);
$this->border_field([
'title' => esc_html__( 'Input Field Border', 'admintosh' ),
'name' => 'input_field_border',
]);
$this->dimension_field([
'title' => esc_html__( 'Input Field Padding', 'admintosh' ),
'name' => 'input_field_padding',
]);
// Button field
$this->dimension_field([
'title' => esc_html__( 'Login Button Padding', 'admintosh' ),
'name' => 'login_btn_padding',
]);
$this->dimension_field([
'title' => esc_html__( 'Login Button Margin', 'admintosh' ),
'name' => 'login_btn_margin',
]);
$this->heading_field([
'title' => esc_html__( 'Form Button Style', 'admintosh' ),
'name' => 'form_button_heading',
]);
$this->color_field([
'title' => esc_html__( 'Button Background Color', 'admintosh' ),
'name' => 'btn_bg_color',
]);
$this->color_field([
'title' => esc_html__( 'Button Text Color', 'admintosh' ),
'name' => 'btn_text_color',
]);
$this->border_field([
'title' => esc_html__( 'Button Border Color', 'admintosh' ),
'name' => 'btn_border',
]);
$this->color_field([
'title' => esc_html__( 'Button Hover Background Color', 'admintosh' ),
'name' => 'btn_hover_bg_color',
]);
$this->color_field([
'title' => esc_html__( 'Button Hover Text Color', 'admintosh' ),
'name' => 'btn_hover_text_color',
]);
$this->color_field([
'title' => esc_html__( 'Button Hover Border Color', 'admintosh' ),
'name' => 'btn_hover_border_color',
]);
?>
switcher_field([
'title' => esc_html__( 'Active Login Captcha', 'admintosh' ),
'name' => 'active_login_captcha',
]);
$this->select_field([
'title' => esc_html__( 'Captcha Type', 'admintosh' ),
'name' => 'captcha_type',
'options' => [
'google_captcha' => esc_html__( 'Google reCAPTCHA', 'admintosh' ),
'addition_captcha' => esc_html__( 'Addition Captcha', 'admintosh' ),
'random_number_captcha' => esc_html__( 'Random Number Captcha', 'admintosh' )
]
]);
$this->text_field([
'title' => esc_html__( 'Google reCAPTCHA Site Key', 'admintosh' ),
'name' => 'grc_site_key',
'description' => sprintf( esc_html__( 'Register your site at Google reCAPTCHA Type V2 and %s Get V2 site Key and secret key %s', 'admintosh' ), '
', '' ),
'condition' => [ 'captcha_type' => ['google_captcha'] ]
]);
$this->text_field([
'title' => esc_html__( 'Google reCAPTCHA Secret key', 'admintosh' ),
'name' => 'grc_secret_key',
'description' => sprintf( esc_html__( 'Register your site at Google reCAPTCHA Type V2 and %s Get V2 site Key and secret key %s', 'admintosh' ), '
', '' ),
'condition' => [ 'captcha_type' => ['google_captcha'] ]
]);
?>
number_field([
'title' => esc_html__( 'Failed Login Limit', 'admintosh' ),
'name' => 'ath_failed_login_limit',
'placeholder' => '3'
]);
$this->number_field([
'title' => esc_html__( 'Lockout Duration', 'admintosh' ),
'description' => esc_html__( 'Duration In Minute', 'admintosh' ),
'name' => 'ath_lockout_duration',
'placeholder' => '15'
]);
?>
text_field([
'title' => esc_html__( 'New Login Slug', 'admintosh' ),
'name' => 'login_slug',
'description' => esc_html__( 'Change the login URL to something other than "wp-admin" to protect your website. By customizing the login URL, you can prevent unauthorized access to the wp-login.php page and the wp-admin directory.', 'admintosh' ),
'placeholder' => 'E.g: login'
]);
$this->text_field([
'title' => esc_html__( 'Redirection Page Slug', 'admintosh' ),
'description' => esc_html__( 'Redirect page slug when someone tries to access wp-admin and the wp-login.php page directory while not logged in. Default 404 page', 'admintosh' ),
'name' => 'redirection_page_slug',
'placeholder' => '404'
]);
?>