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-toggled.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_LS_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Presents a boolean option with a checkbox toggle control.
[3] Fix | Delete
*
[4] Fix | Delete
* @var string $optionName The option name. Required.
[5] Fix | Delete
* @var string $enabledValue The value to save in $option if the toggle is enabled. Required.
[6] Fix | Delete
* @var string $disabledValue The value to save in $option if the toggle is disabled. Required.
[7] Fix | Delete
* @var string $value The current value of $optionName. Required.
[8] Fix | Delete
* @var string|\WordfenceLS\Text\Model_HTML $title The title shown for the option. Required.
[9] Fix | Delete
* @var string|\WordfenceLS\Text\Model_HTML $subtitle The title shown for the option. Optional.
[10] Fix | Delete
* @var string $helpLink If defined, the link to the corresponding external help page. Optional.
[11] Fix | Delete
* @var bool $disabled If defined and truthy, the option will start out disabled. Optional.
[12] Fix | Delete
* @var bool $child If true, this option will be rendered ar a child option. Optional.
[13] Fix | Delete
*/
[14] Fix | Delete
[15] Fix | Delete
$id = 'wfls-option-' . preg_replace('/[^a-z0-9]/i', '-', $optionName);
[16] Fix | Delete
?>
[17] Fix | Delete
<ul id="<?php echo esc_attr($id); ?>" class="wfls-option wfls-option-toggled<?php if (isset($disabled) && $disabled) { echo ' wfls-disabled'; } if (isset($child) && $child) { echo ' wfls-child-option'; }?>" data-option="<?php echo esc_attr($optionName); ?>" data-enabled-value="<?php echo esc_attr($enabledValue); ?>" data-disabled-value="<?php echo esc_attr($disabledValue); ?>" data-original-value="<?php echo esc_attr($value == $enabledValue ? $enabledValue : $disabledValue); ?>">
[18] Fix | Delete
<li class="wfls-option-checkbox<?php echo ($value == $enabledValue ? ' wfls-checked' : ''); ?>" role="checkbox" aria-checked="<?php echo ($value == $enabledValue ? 'true' : 'false'); ?>" tabindex="0" aria-labelledby="<?php echo esc_attr($id); ?>-label"><i class="wfls-ion-ios-checkmark-empty" aria-hidden="true"></i></li>
[19] Fix | Delete
<li class="wfls-option-title">
[20] Fix | Delete
<?php if (isset($subtitle)): ?>
[21] Fix | Delete
<ul class="wfls-flex-vertical wfls-flex-align-left">
[22] Fix | Delete
<li>
[23] Fix | Delete
<?php endif; ?>
[24] 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>'; } ?>
[25] Fix | Delete
<?php if (isset($subtitle)): ?>
[26] Fix | Delete
</li>
[27] Fix | Delete
<li class="wfls-option-subtitle"><?php echo \WordfenceLS\Text\Model_HTML::esc_html($subtitle); ?></li>
[28] Fix | Delete
</ul>
[29] Fix | Delete
<?php endif; ?>
[30] Fix | Delete
</li>
[31] Fix | Delete
</ul>
[32] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function