Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upd. Scanner outbound links descritpion. #342

Merged
merged 1 commit into from
May 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading