<?php if (!defined('ABSPATH')) die('No direct access.'); ?>
<div class="postbox">
	<h3 class="hndle"><label for="title"><?php _e('Delete default WP files', 'all-in-one-wp-security-and-firewall'); ?></label></h3>
	<div class="inside">
		<div class="aio_blue_box">
			<?php
				$info_msg = sprintf(__('This feature allows you to auto delete files such as %s, %s and %s which are delivered with all WP installations.', 'all-in-one-wp-security-and-firewall'), 'readme.html', 'license.txt', 'wp-config-sample.php');
				echo '<p>'.$info_msg.'</p>'.'<p>'.__('By deleting these files you are hiding some key pieces of information (such as WordPress version info) from potential hackers.', 'all-in-one-wp-security-and-firewall').'</p>';
			?>
		</div>
			<div id="auto-delete-wp-files-badge">
			<?php
				// Display security info badge
				$aiowps_feature_mgr->output_feature_details_badge("auto-delete-wp-files");
			?>
			</div>
			<table class="form-table">
				<tr valign="top">
					<th scope="row">
						<?php _e('Delete readme.html, license.txt and wp-config-sample.php:', 'all-in-one-wp-security-and-firewall'); ?>
					</th>
					<td>
						<div class="aiowps_switch_container">
							<button style="margin-right: 15px" type="button" id="aiowps_delete_default_wp_files" class="button-primary"><?php _e('Delete', 'all-in-one-wp-security-and-firewall'); ?></button>
							<?php AIOWPSecurity_Utility_UI::setting_checkbox(__('Automatically delete the files after a WP core update.', 'all-in-one-wp-security-and-firewall'), 'aiowps_auto_delete_default_wp_files', '1' == $aio_wp_security->configs->get_value('aiowps_auto_delete_default_wp_files')); ?>
						</div>
					</td>
				</tr>
			</table>
	</div>
</div>