Skip to content

Commit

Permalink
Upd. Settings. Scanner. Outbound links description updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandergull committed May 3, 2024
1 parent c3657e8 commit 177b51c
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions inc/spbc-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down Expand Up @@ -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']) {
Expand Down Expand Up @@ -3313,7 +3314,7 @@ function spbc_list_table__get_args_by_type($table_type)
. sprintf(__('%sSee all domains%s', 'security-malware-firewall'), '<a href="javascript://" onclick="spbc_scanner__switch_table(this, \'outbound_links\');">', '</a>')
. '<br /><br />',
'func_data_prepare' => 'spbc_field_scanner__prepare_data__links',
'if_empty_items' => '<p class="spbc_hint">' . __('No links are found', 'security-malware-firewall') . '</p>',
'if_empty_items' => '<p class="spbc_hint">' . __('No links found.', 'security-malware-firewall') . '</p>',
'columns' => array(
'link_id' => array(
'heading' => __('Number', 'security-malware-firewall'),
Expand Down Expand Up @@ -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' => '<p class="spbc_hint">' . __('No links are found', 'security-malware-firewall') . '</p>',
'if_empty_items' => '<p class="spbc_hint">' . __('No links found.', 'security-malware-firewall') . '</p>',
'columns' => array(
'num' => array(
'heading' => __('Number', 'security-malware-firewall'),
Expand Down Expand Up @@ -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' => '<p class="spbc_hint">' . __('No links are found', 'security-malware-firewall') . '</p>',
'if_empty_items' => '<p class="spbc_hint">' . __('No links found.', 'security-malware-firewall') . '</p>',
'columns' => array(
'num' => array(
'heading' => __('Number', 'security-malware-firewall'),
Expand Down Expand Up @@ -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 = '<p>'
. __('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')
. ' '
. '<a href="options-general.php?page=spbc&spbc_tab=settings_general#scanner_setting">'
. __('scanner settings', 'security-malware-firewall')
. '</a></p>';
$classes = 'notice notice-info';
break;
default:
return '';
}
Expand Down

0 comments on commit 177b51c

Please sign in to comment.