'; $tabs = [ 'admin_dashboard' => [ 'li_class' => 'active', 'anc_class' => 'admintosh-tab', 'data_attr' => 'admin_dashboard', 'title' => esc_html__( 'Dashboard', 'admintosh' ), 'icon' => $assetsUrl.'module.svg' ], 'admin_modules' => [ 'li_class' => '', 'anc_class' => 'admintosh-tab', 'data_attr' => 'admin_modules', 'title' => esc_html__( 'Modules', 'admintosh' ), 'icon' => $assetsUrl.'module.svg' ], 'admin_general' => [ 'li_class' => '', 'anc_class' => 'admintosh-tab', 'data_attr' => 'admin_general', 'title' => esc_html__( 'General Settings', 'admintosh' ), 'icon' => $assetsUrl.'setting.svg' ], 'dash_color_schemes' => [ 'li_class' => '', 'anc_class' => 'admintosh-tab', 'data_attr' => 'dash_color_schemes', 'title' => esc_html__( 'Dashboard Color Schemes', 'admintosh' ), 'icon' => $assetsUrl.'customize.svg' ], 'login_page_customize' => [ 'li_class' => '', 'anc_class' => 'admintosh-tab', 'data_attr' => 'login_page_customize', 'title' => esc_html__( 'Login Page Customize', 'admintosh' ), 'icon' => $assetsUrl.'customize.svg' ], 'login_recaptcha' => [ 'li_class' => '', 'anc_class' => 'admintosh-tab', 'data_attr' => 'login_recaptcha', 'title' => esc_html__( 'reCAPTCHA', 'admintosh' ), 'icon' => $assetsUrl.'captch.svg' ], 'login_attempts' => [ 'li_class' => '', 'anc_class' => 'admintosh-tab', 'data_attr' => 'login_attempts', 'title' => esc_html__( 'Login Attempts', 'admintosh' ), 'icon' => $assetsUrl.'login-attemp.svg' ], 'hide_login' => [ 'li_class' => '', 'anc_class' => 'admintosh-tab', 'data_attr' => 'hide_login', 'title' => esc_html__( 'Hide Login', 'admintosh' ), 'icon' => $assetsUrl.'hide.svg' ], 'country_restriction' => [ 'li_class' => '', 'anc_class' => 'admintosh-tab', 'data_attr' => 'country_restriction', 'title' => esc_html__( 'Country Restriction', 'admintosh' ), 'icon' => $assetsUrl.'globe.svg' ], ]; $tabs = apply_filters( 'admintosh_admin_tabs', $tabs ); foreach( $tabs as $key => $tab ) { echo '
  • '.esc_html( $tab['title'] ).'
  • '; } ?>

    '.esc_html__( 'PHP Version', 'admintosh' ).': '.esc_html( $phpinfo['php_version'] ?? '' ).'

    '; // $wpinfo = \Admintosh\Admin\System_Info::get_wpinfo(); echo '

    '.esc_html__( 'WordPress Version', 'admintosh' ).': '.esc_html( $wpinfo['wp_version'] ?? '' ).'

    '; // $theme_info = \Admintosh\Admin\System_Info::get_theme_info(); echo '

    '.esc_html__( 'Active Theme', 'admintosh' ).': '.esc_html( $theme_info['active_theme'] ?? '' ).'

    '; echo '

    '.esc_html__( 'Inactive Theme', 'admintosh' ).': '.esc_html( $theme_info['inactive_theme_count'] ?? '' ).'

    '; echo '

    '.esc_html__( 'Total Active Plugins', 'admintosh' ).': '.esc_html( $theme_info['total_active_plugin_count'] ?? '' ).'

    '; echo '

    '.esc_html__( 'Total Inactive Plugins', 'admintosh' ).': '.esc_html( $theme_info['total_inactive_plugins_count'] ?? '' ).'

    '; ?>

    %1$s %2$s', esc_html__( 'Total Users', 'admintosh' ), esc_html( $countStats['total'] ) );?>

    %1$s %2$s', esc_html__( 'Total Administrator Users', 'admintosh' ), esc_html( $countStats['administrator'] ) );?>

    %1$s %2$s', esc_html__( 'Total Subscriber Users', 'admintosh' ), esc_html( $countStats['subscriber'] ) ); ?>

    %1$s %2$s', esc_html__( 'Total Contributor Users', 'admintosh' ), esc_html( $countStats['contributor'] ) ); ?>

    %1$s %2$s', esc_html__( 'Total Customer Users', 'admintosh' ), esc_html( $countStats['customer'] ) ); ?>

    %1$s %2$s', esc_html__( 'Domain Created Date', 'admintosh' ), $domainWhois['created'] ); ?>

    %1$s %2$s', esc_html__( 'Domain Updated Date', 'admintosh' ), $domainWhois['updated'] ); ?>

    %1$s %2$s', esc_html__( 'Domain Expires Date', 'admintosh' ), $domainWhois['expires'] ); ?>

    %1$s %2$s', esc_html__( 'Has SSL', 'admintosh' ), $sslInfo['has_ssl'] ? 'Yes' : 'No' ); ?>

    %1$s %2$s', esc_html__( 'SSL Expiry Date', 'admintosh' ), $sslInfo['expiry'] ?? '' ); ?>

    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', ]); $this->switcher_field([ 'title' => esc_html__( 'Country Restriction', 'admintosh' ), 'name' => 'active_country_restriction', ]); $this->switcher_field([ 'title' => esc_html__( 'Admin Activity Logs', 'admintosh' ), 'name' => 'admin_activity_logs', ]); do_action('admintosh_module_switcher'); ?>
    switcher_field([ 'title' => esc_html__( 'Hide WordPress Version', 'admintosh' ), 'name' => 'hide_wp_version', ]); $this->switcher_field([ 'title' => esc_html__( 'Disable File Editing', 'admintosh' ), 'name' => 'disable_file_editing', ]); $this->switcher_field([ 'title' => esc_html__( 'Disable XML-RPC', 'admintosh' ), 'name' => 'disable_xml_rpc', ]); $this->switcher_field([ 'title' => esc_html__( 'Disable Right Click', 'admintosh' ), 'name' => 'disable_right_click', ]); $this->switcher_field([ 'title' => esc_html__( 'Disable Login Hints Error Messages', 'admintosh' ), 'name' => 'disable_login_hint_msg', ]); $this->text_field([ 'title' => esc_html__( 'Domain Monitoring API key', 'admintosh' ), 'name' => 'domain_monitoring_api_key', 'description' => 'We use the IP2Location WHOIS API for domain monitoring. Free package is available Get API key' ]); ?>
    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' => 'admin_menu_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 Background Color', 'admintosh' ), 'name' => 'admin_menu_bg_color', ]); $this->color_field([ 'title' => esc_html__( 'Admin Menu Hover Background Color', 'admintosh' ), 'name' => 'admin_menu_hov_bg_color', ]); $this->color_field([ 'title' => esc_html__( 'Admin Menu Link Color', 'admintosh' ), 'name' => 'admin_menu_text_color', ]); $this->color_field([ 'title' => esc_html__( 'Admin Menu Hover Link Color', 'admintosh' ), 'name' => 'admin_menu_hov_link_color', ]); $this->color_field([ 'title' => esc_html__( 'Admin Sub Menu Background Color', 'admintosh' ), 'name' => 'admin_menu_sub_bg_color', ]); $this->color_field([ 'title' => esc_html__( 'Admin Sub Menu Link Color', 'admintosh' ), 'name' => 'admin_menu_sub_link_color', ]); ?>
    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', ]); $this->number_field([ 'title' => esc_html__( 'Border Radius', 'admintosh' ), 'name' => 'login_form_border_radius', ]); // 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'] ] ]); $this->switcher_field([ 'title' => esc_html__( 'Captcha for Login Form', 'admintosh' ), 'name' => 'captcha_wp_login', 'description' => esc_html__( 'Captcha will work on wp login, WooCommerce login & EDD login form.', 'admintosh' ) ]); $this->switcher_field([ 'title' => esc_html__( 'Captcha on WP Registration Form', 'admintosh' ), 'name' => 'captcha_wp_registration', 'description' => esc_html__( 'Captcha will work on wp login, WooCommerce login & EDD login form.', 'admintosh' ) ]); $this->switcher_field([ 'title' => esc_html__( 'Captcha on Blog Comment Form', 'admintosh' ), 'name' => 'captcha_blog_comment', 'description' => esc_html__( 'Captcha will work on blog comment form.', 'admintosh' ) ]); ?>
    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' ]); ?>
    '.esc_html__( 'PLEASE MAKE SURE THAT YOU CONFIGURE THE PLUGIN TO ALLOW YOUR OWN ACCESS.', 'admintosh' ).''; // $this->switcher_field([ 'title' => esc_html__( 'Entire Site Country Restriction', 'admintosh' ), 'name' => 'active_entire_site_restriction', 'description' => esc_html__( 'Note: Please carefully, and make sure you select your country otherwise, you won\'t be able to access.', 'admintosh' ) ]); // $this->multi_select_field([ 'title' => esc_html__( 'Entire Site Restriction Exclued Country', 'admintosh' ), 'name' => 'entire_site_exclued_country', 'condition' => [ 'active_entire_site_restriction' => [ 'on' ] ], 'options' => \Admintosh\Classes\Countries::getAllCountries(), 'description' => esc_html__( 'Block Entire Site for all countries except countries in selected', 'admintosh' ) ]); // $this->switcher_field([ 'title' => esc_html__( 'Front-End Country Restriction', 'admintosh' ), 'name' => 'active_front_end_restriction', ]); // $this->multi_select_field([ 'title' => esc_html__( 'Front-End Restriction Exclued Country', 'admintosh' ), 'name' => 'front_end_exclued_country', 'condition' => [ 'active_front_end_restriction' => [ 'on' ] ], 'options' => \Admintosh\Classes\Countries::getAllCountries(), 'description' => esc_html__( 'Block Front-End for all countries except countries in selected', 'admintosh' ) ]); // $this->switcher_field([ 'title' => esc_html__( 'wp-login page Country Restriction', 'admintosh' ), 'name' => 'active_wp_login_restriction', 'description' => esc_html__( 'Note: If you use Entire Site Restriction or Front-End Restriction you don\'t need this option.', 'admintosh' ) ]); // $this->multi_select_field([ 'title' => esc_html__( 'wp-login page Restriction Exclued Country', 'admintosh' ), 'name' => 'wplogin_page_exclued_country', 'condition' => [ 'active_wp_login_restriction' => [ 'on' ] ], 'options' => \Admintosh\Classes\Countries::getAllCountries(), 'description' => esc_html__( 'Block wp-login page for all countries except countries in selected.', 'admintosh' ) ]); $this->text_field([ 'title' => esc_html__( 'Block Template Title', 'admintosh' ), 'name' => 'block_temp_title', 'placeholder' => 'Sorry our services are not available in your country.' ]); $this->text_field([ 'title' => esc_html__( 'Block Template description', 'admintosh' ), 'name' => 'block_temp_description', 'placeholder' => 'description will go here.' ]); ?>