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-multiple.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_LS_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Presents multiple boolean options under a single heading with a checkbox toggle control for each.
[3] Fix | Delete
*
[4] Fix | Delete
* @var array $options The options shown. The structure is defined below. Required.
[5] Fix | Delete
* @var string|\WordfenceLS\Text\Model_HTML $title The overall title shown for the options. Required.
[6] Fix | Delete
* @var string $helpLink The link to the corresponding external help page. Optional.
[7] Fix | Delete
* @var bool $wrap Whether or not the options should be allowed to wrap. Optional, defaults to false.
[8] Fix | Delete
*
[9] Fix | Delete
* $options is an array of
[10] Fix | Delete
* array(
[11] Fix | Delete
* 'name' => string <option name>,
[12] Fix | Delete
* 'enabledValue' => string <value saved if the toggle is enabled>,
[13] Fix | Delete
* 'disabledValue' => string <value saved if the toggle is disabled>,
[14] Fix | Delete
* 'value' => string <current value of the option>,
[15] Fix | Delete
* 'title' => string|\Wordfence2FA\Text\Model_HTML <title displayed to label the checkbox>,
[16] Fix | Delete
* 'editable' => bool Whether or not the option can be edited, defaults to true.
[17] Fix | Delete
* )
[18] Fix | Delete
*/
[19] Fix | Delete
?>
[20] Fix | Delete
<ul class="wfls-option wfls-option-toggled-multiple">
[21] Fix | Delete
<li class="wfls-option-title"><?php echo \WordfenceLS\Text\Model_HTML::esc_html($title); ?><?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>'; } ?></li>
[22] Fix | Delete
<li class="wfls-option-checkboxes<?php if (isset($wrap) && $wrap) { echo ' wfls-option-checkboxes-wrap'; } ?>">
[23] Fix | Delete
<?php
[24] Fix | Delete
foreach ($options as $o):
[25] Fix | Delete
$id = 'wfls-option-' . preg_replace('/[^a-z0-9]/i', '-', $o['name']);
[26] Fix | Delete
?>
[27] Fix | Delete
<ul id="<?php echo esc_attr($id); ?>" data-option="<?php echo esc_attr($o['name']); ?>" data-enabled-value="<?php echo esc_attr($o['enabledValue']); ?>" data-disabled-value="<?php echo esc_attr($o['disabledValue']); ?>" data-original-value="<?php echo esc_attr($o['value'] == $o['enabledValue'] ? $o['enabledValue'] : $o['disabledValue']); ?>">
[28] Fix | Delete
<li class="wfls-option-checkbox<?php echo ($o['value'] == $o['enabledValue'] ? ' wfls-checked' : ''); ?><?php echo (isset($o['editable']) && !$o['editable'] ? ' wfls-disabled' : ''); ?>" role="checkbox" aria-checked="<?php echo ($o['value'] == $o['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>
[29] Fix | Delete
<li id="<?php echo esc_attr($id); ?>-label" class="wfls-option-title"><?php echo esc_html($o['title']); ?></li>
[30] Fix | Delete
</ul>
[31] Fix | Delete
<?php endforeach; ?>
[32] Fix | Delete
</li>
[33] Fix | Delete
</ul>
[34] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function