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.../views/common
File: status-detail.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Expects $id, $percentage (as decimal value), $title, $subtitle, $link, $linkLabel, and $statusList to be defined.
[3] Fix | Delete
* If $linkLabel is null, the link will be hidden.
[4] Fix | Delete
* $linkNewWindow can optionally be defined and defaults to false.
[5] Fix | Delete
* $activeColor can optionally be defined. If not defined, the color is based on $percentage.
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
if (!isset($activeColor)) {
[9] Fix | Delete
$activeColor = '#fcb214';
[10] Fix | Delete
if ($percentage == 0) {
[11] Fix | Delete
$activeColor = '#ececec';
[12] Fix | Delete
}
[13] Fix | Delete
else if ($percentage <= 0.50) {
[14] Fix | Delete
$activeColor = '#9e0000';
[15] Fix | Delete
}
[16] Fix | Delete
else if ($percentage == 1) {
[17] Fix | Delete
$activeColor = '#16bc9b';
[18] Fix | Delete
}
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
if (!isset($linkNewWindow)) { $linkNewWindow = false; }
[22] Fix | Delete
?>
[23] Fix | Delete
<div id="<?php echo esc_attr($id); ?>" class="wf-status-detail">
[24] Fix | Delete
<?php
[25] Fix | Delete
echo wfView::create('common/status-circular', array(
[26] Fix | Delete
'id' => 'circle-' . $id,
[27] Fix | Delete
'diameter' => 100,
[28] Fix | Delete
'percentage' => $percentage,
[29] Fix | Delete
'inactiveColor' => '#ececec',
[30] Fix | Delete
'activeColor' => $activeColor,
[31] Fix | Delete
))->render();
[32] Fix | Delete
?>
[33] Fix | Delete
<p class="wf-status-detail-title"><?php echo esc_html($title); ?></p>
[34] Fix | Delete
<p class="wf-status-detail-subtitle"><?php echo esc_html($subtitle); ?></p>
[35] Fix | Delete
<p class="wf-status-detail-link"><?php if ($linkLabel !== null): ?><a href="<?php echo esc_attr($link); ?>"<?php echo ($linkNewWindow ? ' target="_blank" rel="noopener noreferrer"' : ''); ?>><?php echo esc_html($linkLabel); ?><span class="screen-reader-text"> (<?php esc_html_e('opens in new tab', 'wordfence') ?>)</span></a><?php endif; ?></p>
[36] Fix | Delete
<?php
[37] Fix | Delete
echo wfView::create('common/status-tooltip', array(
[38] Fix | Delete
'id' => 'tooltip-circle-' . $id,
[39] Fix | Delete
'title' => $statusTitle,
[40] Fix | Delete
'statusList' => $statusList,
[41] Fix | Delete
'statusExtra' => (isset($statusExtra) ? $statusExtra : ''),
[42] Fix | Delete
'helpLink' => $helpLink,
[43] Fix | Delete
))->render();
[44] Fix | Delete
?>
[45] Fix | Delete
</div>
[46] Fix | Delete
[47] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function