: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
if (!defined('WORDFENCE_VERSION')) { exit; }
* Presents the View Customization group.
* @var string $stateKey The key under which the collapse state is stored.
* @var bool $collapseable If defined, specifies whether or not this grouping can be collapsed. Defaults to true.
if (!isset($collapseable)) {
<div class="wf-col-xs-12">
<div class="wf-block<?php if (!$collapseable) { echo ' wf-always-active'; } else { echo (wfPersistenceController::shared()->isActive($stateKey) ? ' wf-active' : ''); } ?>" data-persistence-key="<?php echo esc_attr($stateKey); ?>">
<div class="wf-block-header">
<div class="wf-block-header-content">
<div class="wf-block-title">
<strong><?php esc_html_e('View Customization', 'wordfence'); ?></strong>
<?php if ($collapseable): ?><div class="wf-block-header-action"><div class="wf-block-header-action-disclosure" role="checkbox" aria-checked="<?php echo (wfPersistenceController::shared()->isActive($stateKey) ? 'true' : 'false'); ?>" tabindex="0"></div></div><?php endif; ?>
<div class="wf-block-content">
<ul class="wf-block-list">
echo wfView::create('options/option-toggled', array(
'optionName' => 'displayTopLevelOptions',
'value' => wfConfig::get('displayTopLevelOptions') ? 1 : 0,
'title' => __('Display "All Options" menu item', 'wordfence'),
echo wfView::create('options/option-toggled', array(
'optionName' => 'displayTopLevelBlocking',
'value' => wfConfig::get('displayTopLevelBlocking') ? 1 : 0,
'title' => __('Display "Blocking" menu item', 'wordfence'),
echo wfView::create('options/option-toggled', array(
'optionName' => 'displayTopLevelLiveTraffic',
'value' => wfConfig::get('displayTopLevelLiveTraffic') ? 1 : 0,
'title' => __('Display "Live Traffic" menu item', 'wordfence'),
</div> <!-- end custom scan options -->