From 177b51c3d10bef2b122779b15d1ccc7dfaeac95e Mon Sep 17 00:00:00 2001 From: alexandergull Date: Fri, 3 May 2024 18:13:44 +0500 Subject: [PATCH] Upd. Settings. Scanner. Outbound links description updated. --- inc/spbc-settings.php | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/inc/spbc-settings.php b/inc/spbc-settings.php index 8e3d9f6c7..488907de9 100644 --- a/inc/spbc-settings.php +++ b/inc/spbc-settings.php @@ -597,7 +597,7 @@ function spbc_settings__register() ), 'scanner__outbound_links' => array( 'type' => 'field', - 'title' => __('Scan links', 'security-malware-firewall'), + 'title' => __('Scan for outbound links', 'security-malware-firewall'), 'description' => __('Turning this option on may increase scanning time for websites with a lot of pages.', 'security-malware-firewall'), 'long_description' => true, 'children' => array('scanner__outbound_links_mirrors'), @@ -3157,7 +3157,8 @@ function spbc_field_scanner__show_accordion($direct_call = false) } if ($spbc->settings['scanner__outbound_links']) { - $tables_files['outbound_links'] = __('Found outgoing links from this website and websites the links are leading to', 'security-malware-firewall'); + $tables_files['outbound_links'] = __('Found outgoing links from this website and websites the links are leading to.', 'security-malware-firewall'); + $tables_files['outbound_links'] .= spbc__get_accordion_tab_info_block_html('outbound_links'); } if ($spbc->settings['scanner__frontend_analysis']) { @@ -3313,7 +3314,7 @@ function spbc_list_table__get_args_by_type($table_type) . sprintf(__('%sSee all domains%s', 'security-malware-firewall'), '', '') . '

', 'func_data_prepare' => 'spbc_field_scanner__prepare_data__links', - 'if_empty_items' => '

' . __('No links are found', 'security-malware-firewall') . '

', + 'if_empty_items' => '

' . __('No links found.', 'security-malware-firewall') . '

', 'columns' => array( 'link_id' => array( 'heading' => __('Number', 'security-malware-firewall'), @@ -3351,7 +3352,7 @@ function spbc_list_table__get_args_by_type($table_type) 'func_data_total' => 'spbc_scanner_links_count_found__domains', 'func_data_get' => 'spbc_scanner_links_get_scanned__domains', 'func_data_prepare' => 'spbc_field_scanner__prepare_data__domains', - 'if_empty_items' => '

' . __('No links are found', 'security-malware-firewall') . '

', + 'if_empty_items' => '

' . __('No links found.', 'security-malware-firewall') . '

', 'columns' => array( 'num' => array( 'heading' => __('Number', 'security-malware-firewall'), @@ -3759,7 +3760,7 @@ function spbc_list_table__get_args_by_type($table_type) 'func_data_total' => 'spbc_scanner_links_count_found__domains', 'func_data_get' => 'spbc_scanner_links_get_scanned__domains', 'func_data_prepare' => 'spbc_field_scanner__prepare_data__domains', - 'if_empty_items' => '

' . __('No links are found', 'security-malware-firewall') . '

', + 'if_empty_items' => '

' . __('No links found.', 'security-malware-firewall') . '

', 'columns' => array( 'num' => array( 'heading' => __('Number', 'security-malware-firewall'), @@ -5494,6 +5495,15 @@ function spbc__get_accordion_tab_info_block_html($for) $info_block_out = $template; $classes = 'notice notice-info'; break; + case 'outbound_links': + $info_block_out = '

' + . __('Viruses post links to lead site visitors to compromised and fishing sites. It is a good idea to check links that you have not seen before. To manage the option go to the', 'security-malware-firewall') + . ' ' + . '' + . __('scanner settings', 'security-malware-firewall') + . '

'; + $classes = 'notice notice-info'; + break; default: return ''; }