Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/wordfenc.../lib/dashboar...
File: widget_countries.php
<?php if (!defined('WORDFENCE_VERSION')) { exit; } ?>
[0] Fix | Delete
<?php //$d is defined here as a wfDashboard instance ?>
[1] Fix | Delete
<div class="wf-row">
[2] Fix | Delete
<div class="wf-col-xs-12">
[3] Fix | Delete
<div class="wf-dashboard-item active">
[4] Fix | Delete
<div class="wf-dashboard-item-inner">
[5] Fix | Delete
<div class="wf-dashboard-item-content">
[6] Fix | Delete
<div class="wf-dashboard-item-title">
[7] Fix | Delete
<strong><?php esc_html_e('Top Countries by Number of Attacks - Last 7 Days', 'wordfence') ?></strong>
[8] Fix | Delete
</div>
[9] Fix | Delete
<div class="wf-dashboard-item-action"><div class="wf-dashboard-item-action-disclosure"></div></div>
[10] Fix | Delete
</div>
[11] Fix | Delete
</div>
[12] Fix | Delete
<div class="wf-dashboard-item-extra">
[13] Fix | Delete
<?php if ($firewall->learningModeStatus() !== false): ?>
[14] Fix | Delete
<div class="wf-widget-learning-mode"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100.11 100.44"><path d="M96.14,30.67a50.7,50.7,0,0,0-10.66-16A50,50,0,0,0,69.51,4,49.57,49.57,0,0,0,30.6,4a50,50,0,0,0-16,10.69A50.69,50.69,0,0,0,4,30.67,50,50,0,0,0,4,69.74a50.62,50.62,0,0,0,10.66,16,50,50,0,0,0,16,10.69,49.54,49.54,0,0,0,38.91,0,50,50,0,0,0,16-10.69,50.56,50.56,0,0,0,10.66-16,50,50,0,0,0,0-39.07Zm-75.74,39a35.77,35.77,0,0,1-1-37.35,35.21,35.21,0,0,1,12.91-13A34.65,34.65,0,0,1,50.06,14.6a34.22,34.22,0,0,1,19.55,5.93ZM82.71,64a35.4,35.4,0,0,1-7.56,11.37A36,36,0,0,1,63.84,83a34.32,34.32,0,0,1-13.79,2.84A34.85,34.85,0,0,1,30.7,80L79.84,31a34.57,34.57,0,0,1,5.67,19.23A35.17,35.17,0,0,1,82.71,64Zm0,0"/></svg><span><?php esc_html_e('No Data Available During Learning Mode', 'wordfence'); ?></span></div>
[15] Fix | Delete
<?php else: ?>
[16] Fix | Delete
<ul class="wf-dashboard-item-list">
[17] Fix | Delete
<li>
[18] Fix | Delete
<div>
[19] Fix | Delete
<?php if (isset($d->countriesNetwork) && count($d->countriesNetwork) > 0): ?>
[20] Fix | Delete
<div class="wf-dashboard-toggle-btns">
[21] Fix | Delete
<ul class="wf-pagination wf-pagination-sm">
[22] Fix | Delete
<li class="wf-active"><a href="#" class="wf-dashboard-countries" data-grouping="local" role="button">Local Site</a></li>
[23] Fix | Delete
<li><a href="#" class="wf-dashboard-countries" data-grouping="network" role="button"><?php esc_html_e('Wordfence Network', 'wordfence') ?></a></li>
[24] Fix | Delete
</ul>
[25] Fix | Delete
</div>
[26] Fix | Delete
<?php endif; ?>
[27] Fix | Delete
<div class="wf-countries wf-countries-local">
[28] Fix | Delete
<?php if (!isset($d->countriesLocal) || count($d->countriesLocal) == 0): ?>
[29] Fix | Delete
<div class="wf-dashboard-item-list-text"><p><em><?php esc_html_e('No blocks have been recorded.', 'wordfence') ?></em></p></div>
[30] Fix | Delete
<?php else: ?>
[31] Fix | Delete
<?php $data = array_slice($d->countriesLocal, 0, min(10, count($d->countriesLocal)), true); include(dirname(__FILE__) . '/widget_content_countries.php'); ?>
[32] Fix | Delete
<?php endif; ?>
[33] Fix | Delete
</div>
[34] Fix | Delete
<div class="wf-countries wf-countries-network wf-hidden">
[35] Fix | Delete
<?php if (!isset($d->countriesNetwork) || count($d->countriesNetwork) == 0): ?>
[36] Fix | Delete
<div class="wf-dashboard-item-list-text"><p><em><?php esc_html_e('No blocks have been recorded.', 'wordfence') ?></em></p></div>
[37] Fix | Delete
<?php else: ?>
[38] Fix | Delete
<?php $data = array_slice($d->countriesNetwork, 0, min(10, count($d->countriesNetwork)), true); include(dirname(__FILE__) . '/widget_content_countries.php'); ?>
[39] Fix | Delete
<?php endif; ?>
[40] Fix | Delete
</div>
[41] Fix | Delete
<script type="application/javascript">
[42] Fix | Delete
(function($) {
[43] Fix | Delete
$('.wf-dashboard-countries').on('click', function(e) {
[44] Fix | Delete
e.preventDefault();
[45] Fix | Delete
e.stopPropagation();
[46] Fix | Delete
[47] Fix | Delete
$(this).closest('ul').find('li').removeClass('wf-active');
[48] Fix | Delete
$(this).closest('li').addClass('wf-active');
[49] Fix | Delete
[50] Fix | Delete
$('.wf-countries').addClass('wf-hidden');
[51] Fix | Delete
$('.wf-countries-' + $(this).data('grouping')).removeClass('wf-hidden');
[52] Fix | Delete
});
[53] Fix | Delete
})(jQuery);
[54] Fix | Delete
</script>
[55] Fix | Delete
</div>
[56] Fix | Delete
</li>
[57] Fix | Delete
</ul>
[58] Fix | Delete
<?php endif; ?>
[59] Fix | Delete
</div>
[60] Fix | Delete
</div>
[61] Fix | Delete
</div>
[62] Fix | Delete
</div>
[63] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function