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.../views/options
File: block-controls.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Presents the top controls on an options page.
[3] Fix | Delete
*
[4] Fix | Delete
* Expects $backLink and $backLabel (or $backLabelHTML) or alternately just $backLinkBreadcrumbs. $suppressControls may be defined to hide the options-saving controls. If not truthy, $restoreDefaultsSection and $restoreDefaultsMessage must also be defined.
[5] Fix | Delete
*
[6] Fix | Delete
* @var string $backLink The link for the back button.
[7] Fix | Delete
* @var string $backLabel The label for the back button.
[8] Fix | Delete
* @var string $backLabelHTML The label for the back button as raw HTML.
[9] Fix | Delete
* @var wfPage[] $backLinkBreadcrumbs An array of wfPage instances of the page's breadcrumbs. The last entry in the array is expected to be a page and will not generate a link.
[10] Fix | Delete
* @var string $restoreDefaultsMessage The message shown in the restore defaults prompt
[11] Fix | Delete
*/
[12] Fix | Delete
[13] Fix | Delete
if (isset($backLabel) && !isset($backLabelHTML)) {
[14] Fix | Delete
$backLabelHTML = esc_html($backLabel);
[15] Fix | Delete
}
[16] Fix | Delete
?>
[17] Fix | Delete
<div class="wf-block wf-block-transparent wf-active">
[18] Fix | Delete
<div class="wf-block-content">
[19] Fix | Delete
<ul class="wf-block-left-right wf-hidden-xs">
[20] Fix | Delete
<li class="wf-left">
[21] Fix | Delete
<?php if (isset($backLinkBreadcrumbs)): ?>
[22] Fix | Delete
<?php foreach ($backLinkBreadcrumbs as $index => $page): ?>
[23] Fix | Delete
<a href="<?php echo esc_attr($page->url()); ?>" class="wf-back-link-chevron"><i class="wf-ion-chevron-left wf-back-icon" aria-hidden="true"></i></a>
[24] Fix | Delete
<?php if ($index < count($backLinkBreadcrumbs) - 1): ?><a href="<?php echo esc_attr($page->url()); ?>" class="wf-back-link"><?php endif; ?><?php echo esc_html($page->label()); ?><?php if ($index < count($backLinkBreadcrumbs) - 1): ?></a><?php endif; ?>
[25] Fix | Delete
<?php endforeach; ?>
[26] Fix | Delete
<?php else: ?>
[27] Fix | Delete
<?php if (!empty($backLink)): ?>
[28] Fix | Delete
<a href="<?php echo esc_attr($backLink); ?>" class="wf-back-link-chevron"><i class="wf-ion-chevron-left wf-back-icon" aria-hidden="true"></i></a>
[29] Fix | Delete
<a href="<?php echo esc_attr($backLink); ?>" class="wf-back-link"><?php echo $backLabelHTML; ?></a>
[30] Fix | Delete
<?php endif; ?>
[31] Fix | Delete
<?php endif; ?>
[32] Fix | Delete
</li>
[33] Fix | Delete
<?php if (!isset($suppressControls) || !$suppressControls): ?>
[34] Fix | Delete
<li class="wf-right">
[35] Fix | Delete
<a id="wf-restore-defaults" class="wf-btn wf-btn-default wf-btn-callout-subtle" href="#" data-restore-defaults-section="<?php echo esc_attr($restoreDefaultsSection); ?>" role="button"><?php echo wp_kses(/* translators: word order may be reversed as long as HTML remains around "Restore" */ __('<span class="wf-hidden-xs">Restore </span>Defaults', 'wordfence'), array('span'=>array('class'=>array()))); ?></a>&nbsp;&nbsp;<a id="wf-cancel-changes" class="wf-btn wf-btn-default wf-btn-callout-subtle wf-disabled" href="#" role="button"><?php echo wp_kses(/* translators: word order may be reversed as long as HTML remains around "Changes" */ __('Cancel<span class="wf-hidden-xs wf-hidden-sm"> Changes</span>', 'wordfence'), array('span'=>array('class'=>array()))); ?></a>&nbsp;&nbsp;<a id="wf-save-changes" class="wf-btn wf-btn-primary wf-btn-callout-subtle wf-disabled" href="#" role="button"><?php echo wp_kses(/* translators: word order may be reversed as long as HTML remains around "Changes" */ __('Save<span class="wf-hidden-xs wf-hidden-sm"> Changes</span>', 'wordfence'), array('span'=>array('class'=>array()))); ?></a>
[36] Fix | Delete
</li>
[37] Fix | Delete
<?php endif; ?>
[38] Fix | Delete
</ul>
[39] Fix | Delete
<ul class="wf-block-left-center-right wf-hidden-sm wf-hidden-md wf-hidden-lg">
[40] Fix | Delete
<li class="wf-left">
[41] Fix | Delete
<?php if (!empty($backLink)): ?>
[42] Fix | Delete
<a href="<?php echo esc_attr($backLink); ?>" class="wf-back-link-chevron"><i class="wf-ion-chevron-left wf-back-icon" aria-hidden="true"></i></a>
[43] Fix | Delete
<a href="<?php echo esc_attr($backLink); ?>" class="wf-back-link"><?php echo $backLabelHTML; ?></a>
[44] Fix | Delete
<?php endif ?>
[45] Fix | Delete
</li>
[46] Fix | Delete
<li class="wf-center">
[47] Fix | Delete
<?php if (!isset($suppressLogo) || !$suppressLogo): ?>
[48] Fix | Delete
<div class="wordfence-lock-icon wordfence-icon32"></div>
[49] Fix | Delete
<?php endif; ?>
[50] Fix | Delete
</li>
[51] Fix | Delete
<?php if (!isset($suppressControls) || !$suppressControls): ?>
[52] Fix | Delete
<li class="wf-right">
[53] Fix | Delete
<a id="wf-mobile-controls" href="#" data-restore-defaults-section="<?php echo esc_attr($restoreDefaultsSection); ?>" role="button">&bullet;&bullet;&bullet;</a>
[54] Fix | Delete
</li>
[55] Fix | Delete
<?php endif; ?>
[56] Fix | Delete
</ul>
[57] Fix | Delete
</div>
[58] Fix | Delete
</div>
[59] Fix | Delete
<?php if (!isset($suppressControls) || !$suppressControls): ?>
[60] Fix | Delete
<script type="application/javascript">
[61] Fix | Delete
(function($) {
[62] Fix | Delete
$(function() {
[63] Fix | Delete
var initialTop = parseInt($('.wf-options-controls').css('top'));
[64] Fix | Delete
$(window).bind("scroll", function() {
[65] Fix | Delete
if (window.matchMedia("only screen and (max-width: 615px)").matches) {
[66] Fix | Delete
$(this).scrollTop() > initialTop ? $('.wf-options-controls').css('top', '0px').css('position', 'fixed').css('left', '0px') : $('.wf-options-controls').css('top', initialTop + 'px').css('position', 'absolute').css('left', '-10px');
[67] Fix | Delete
}
[68] Fix | Delete
});
[69] Fix | Delete
});
[70] Fix | Delete
})(jQuery);
[71] Fix | Delete
</script>
[72] Fix | Delete
<script type="text/x-jquery-template" id="wfTmpl_restoreDefaultsPrompt">
[73] Fix | Delete
<?php
[74] Fix | Delete
echo wfView::create('common/modal-prompt', array(
[75] Fix | Delete
'title' => __('Confirm Restore Defaults', 'wordfence'),
[76] Fix | Delete
'message' => $restoreDefaultsMessage,
[77] Fix | Delete
'primaryButton' => array('id' => 'wf-restore-defaults-prompt-cancel', 'label' => __('Cancel', 'wordfence'), 'link' => '#'),
[78] Fix | Delete
'secondaryButtons' => array(array('id' => 'wf-restore-defaults-prompt-confirm', 'labelHTML' => wp_kses(/* translators: word order may be reversed as long as HTML remains around "Restore" */ __('Restore<span class="wf-hidden-xs"> Defaults</span>', 'wordfence'), array('span'=>array('class'=>array()))), 'link' => '#')),
[79] Fix | Delete
))->render();
[80] Fix | Delete
?>
[81] Fix | Delete
</script>
[82] Fix | Delete
<?php endif; ?>
[83] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function