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-sub.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 and a sub-option toggle.
[3] Fix | Delete
*
[4] Fix | Delete
* Expects $optionName, $enabledValue, $disabledValue, $value, and $title to be defined for the primary option. $helpLink may also be defined.
[5] Fix | Delete
* Expects $subOptionName, $subEnabledValue, $subDisabledValue, $subValue, and $subTitle to be defined for the sub-option. $subHelpLink may also be defined.
[6] Fix | Delete
*
[7] Fix | Delete
* @var string $optionName The option name.
[8] Fix | Delete
* @var string $enabledValue The value to save in $optionName if the toggle is enabled.
[9] Fix | Delete
* @var string $disabledValue The value to save in $optionName if the toggle is disabled.
[10] Fix | Delete
* @var string $value The current value of $optionName.
[11] Fix | Delete
* @var string $title The title shown for the option.
[12] Fix | Delete
* @var string $htmlTitle The unescaped title shown for the option.
[13] Fix | Delete
* @var string $helpLink If defined, the link to the corresponding external help page.
[14] Fix | Delete
* @var bool $premium If defined, the option will be tagged as premium only and not allow its value to change for free users.
[15] Fix | Delete
*
[16] Fix | Delete
* @var string $subOptionName The sub-option name.
[17] Fix | Delete
* @var string $subEnabledValue The value to save in $subOptionName if the toggle is enabled.
[18] Fix | Delete
* @var string $subDisabledValue The value to save in $subOptionName if the toggle is disabled.
[19] Fix | Delete
* @var string $subValue The current value of $subOptionName.
[20] Fix | Delete
* @var string $subTitle The title shown for the sub-option.
[21] Fix | Delete
* @var string $subHtmlTitle The unescaped title shown for the sub-option.
[22] Fix | Delete
* @var string $subHelpLink If defined, the link to the corresponding external help page for the sub-option.
[23] Fix | Delete
* @var bool $subPremium If defined, the sub-option will be tagged as premium only and not allow its value to change for free users.
[24] Fix | Delete
*/
[25] Fix | Delete
[26] Fix | Delete
if (isset($title) && !isset($htmlTitle)) {
[27] Fix | Delete
$htmlTitle = esc_html($title);
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
if (isset($subTitle) && !isset($subHtmlTitle)) {
[31] Fix | Delete
$subHtmlTitle = esc_html($subTitle);
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
$id = 'wfls-option-' . preg_replace('/[^a-z0-9]/i', '-', $optionName);
[35] Fix | Delete
$subID = 'wfls-option-' . preg_replace('/[^a-z0-9]/i', '-', $subOptionName);
[36] Fix | Delete
?>
[37] Fix | Delete
<ul class="wfls-flex-vertical wfls-flex-full-width">
[38] Fix | Delete
<li>
[39] Fix | Delete
<ul id="<?php echo esc_attr($id); ?>" class="wfls-option wfls-option-toggled<?php if (!wfConfig::p() && isset($premium) && $premium) { echo ' wfls-option-premium'; } ?>" 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); ?>">
[40] 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>
[41] Fix | Delete
<li class="wfls-option-title">
[42] Fix | Delete
<span id="<?php echo esc_attr($id); ?>-label"><?php echo $htmlTitle; ?></span><?php if (!wfConfig::p() && isset($premium) && $premium) { echo ' <a href="https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/" target="_blank" rel="noopener noreferrer" class="wfls-premium-link">' . esc_html__('Premium Feature', 'wordfence') . '</a>'; } ?><?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>'; } ?>
[43] Fix | Delete
</li>
[44] Fix | Delete
</ul>
[45] Fix | Delete
</li>
[46] Fix | Delete
<li class="wfls-option-sub">
[47] Fix | Delete
<ul id="<?php echo esc_attr($subID); ?>" class="wfls-option wfls-option-toggled<?php if (!wfConfig::p() && isset($subPremium) && $subPremium) { echo ' wfls-option-premium'; } ?>" data-option="<?php echo esc_attr($subOptionName); ?>" data-enabled-value="<?php echo esc_attr($subEnabledValue); ?>" data-disabled-value="<?php echo esc_attr($subDisabledValue); ?>" data-original-value="<?php echo esc_attr($subValue == $subEnabledValue ? $subEnabledValue : $subDisabledValue); ?>">
[48] Fix | Delete
<li class="wfls-option-checkbox<?php echo ($subValue == $subEnabledValue ? ' wfls-checked' : ''); ?>" role="checkbox" aria-checked="<?php echo ($subValue == $subEnabledValue ? 'true' : 'false'); ?>" tabindex="0" aria-labelledby="<?php echo esc_attr($subID); ?>-label"><i class="wfls-ion-ios-checkmark-empty" aria-hidden="true"></i></li>
[49] Fix | Delete
<li class="wfls-option-title">
[50] Fix | Delete
<span id="<?php echo esc_attr($subID); ?>-label"><?php echo $subHtmlTitle; ?></span><?php if (!wfConfig::p() && isset($subPremium) && $subPremium) { echo ' <a href="https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/" target="_blank" rel="noopener noreferrer" class="wfls-premium-link">' . esc_html__('Premium Feature', 'wordfence') . '</a>'; } ?><?php if (isset($subHelpLink)) { echo ' <a href="' . esc_attr($subHelpLink) . '" 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>'; } ?>
[51] Fix | Delete
</li>
[52] Fix | Delete
</ul>
[53] Fix | Delete
</li>
[54] Fix | Delete
</ul>
[55] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function