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.../modules/login-se.../views/options
File: option-switch.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_LS_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Presents a switch option.
[3] Fix | Delete
*
[4] Fix | Delete
* @var string $optionName The option name for the switch. Required.
[5] Fix | Delete
* @var string $value The current value of $optionName. Required.
[6] Fix | Delete
* @var string|\WordfenceLS\Text\Model_HTML $title The title shown for the option. Required.
[7] Fix | Delete
* @var array $states An array of the possible states for the switch. The array matches the format array('value' => <value>, 'label' => <label>) Required.
[8] Fix | Delete
* @var string $helpLink If defined, the link to the corresponding external help page. Optional.
[9] Fix | Delete
* @var string $alignment If defined, controls the alignment of the switch control. Optional.
[10] Fix | Delete
*/
[11] Fix | Delete
[12] Fix | Delete
$id = 'wfls-option-' . preg_replace('/[^a-z0-9]/i', '-', $optionName);
[13] Fix | Delete
?>
[14] Fix | Delete
<ul id="<?php echo esc_attr($id); ?>" class="wfls-option wfls-option-switch" data-option-name="<?php echo esc_attr($optionName); ?>" data-original-value="<?php echo esc_attr($value); ?>">
[15] Fix | Delete
<?php if (!isset($noSpacer) || !$noSpacer): ?>
[16] Fix | Delete
<li class="wfls-option-spacer"></li>
[17] Fix | Delete
<?php endif; ?>
[18] Fix | Delete
<li class="wfls-option-content wfls-no-right">
[19] Fix | Delete
<ul>
[20] Fix | Delete
<li class="wfls-option-title">
[21] Fix | Delete
<?php if (isset($subtitle)): ?>
[22] Fix | Delete
<ul class="wfls-flex-vertical wfls-flex-align-left">
[23] Fix | Delete
<li>
[24] Fix | Delete
<?php endif; ?>
[25] Fix | Delete
<span id="<?php echo esc_attr($id); ?>-label"><?php echo \WordfenceLS\Text\Model_HTML::esc_html($title); ?></span><?php if (isset($helpLink)) { echo ' <a href="' . esc_attr($helpLink) . '" target="_blank" rel="noopener noreferrer" class="wfls-inline-help"><i class="' . (\WordfenceLS\Controller_WordfenceLS::shared()->should_use_core_font_awesome_styles() ? 'wf-fa wf-fa-question-circle-o' : 'wfls-fa wfls-fa-question-circle-o') . '" aria-hidden="true"></i></a>'; } ?>
[26] Fix | Delete
<?php if (isset($subtitle)): ?>
[27] Fix | Delete
</li>
[28] Fix | Delete
<li class="wfls-option-subtitle"><?php echo \WordfenceLS\Text\Model_HTML::esc_html($subtitle); ?></li>
[29] Fix | Delete
</ul>
[30] Fix | Delete
<?php endif; ?>
[31] Fix | Delete
</li>
[32] Fix | Delete
<li class="wfls-option-switch<?php if (isset($alignment)) { echo ' ' . $alignment; } ?> wfls-padding-add-top-xs-small">
[33] Fix | Delete
<ul class="wfls-switch" role="radiogroup" aria-labelledby="<?php echo esc_attr($id); ?>-label">
[34] Fix | Delete
<?php foreach ($states as $s): ?>
[35] Fix | Delete
<li<?php if ($s['value'] == $value) { echo ' class="wfls-active"'; } ?> data-option-value="<?php echo esc_attr($s['value']); ?>" role="radio" aria-checked="<?php echo ($s['value'] == $value ? 'true' : 'false'); ?>" tabindex="0"><?php echo \WordfenceLS\Text\Model_HTML::esc_html($s['label']); ?></li>
[36] Fix | Delete
<?php endforeach; ?>
[37] Fix | Delete
</ul>
[38] Fix | Delete
</li>
[39] Fix | Delete
</ul>
[40] Fix | Delete
</li>
[41] Fix | Delete
</ul>
[42] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function