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/common
File: modal-prompt.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_LS_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Presents a modal prompt.
[3] Fix | Delete
*
[4] Fix | Delete
* @var string|\WordfenceLS\Text\Model_HTML $title The title for the prompt. Required.
[5] Fix | Delete
* @var string|\WordfenceLS\Text\Model_HTML $message The message for the prompt. Required.
[6] Fix | Delete
* @var array $primaryButton The parameters for the primary button. The array is in the format array('id' => <element id>, 'label' => <button text>, 'link' => <href value>). Optional.
[7] Fix | Delete
* @var array $secondaryButtons The parameters for any secondary buttons. It is an array of arrays in the format array('id' => <element id>, 'label' => <button text>, 'link' => <href value>). The ordering of entries is the right-to-left order the buttons will be displayed. Optional.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
$titleHTML = \WordfenceLS\Text\Model_HTML::esc_html($title);
[11] Fix | Delete
$messageHTML = \WordfenceLS\Text\Model_HTML::esc_html($message);
[12] Fix | Delete
$embedded = isset($embedded) ? $embedded : false;
[13] Fix | Delete
[14] Fix | Delete
if (!isset($secondaryButtons)) {
[15] Fix | Delete
$secondaryButtons = array();
[16] Fix | Delete
}
[17] Fix | Delete
$secondaryButtons = array_reverse($secondaryButtons);
[18] Fix | Delete
?>
[19] Fix | Delete
<div class="wfls-modal">
[20] Fix | Delete
<div class="wfls-modal-header">
[21] Fix | Delete
<div class="wfls-modal-header-content">
[22] Fix | Delete
<div class="wfls-modal-title">
[23] Fix | Delete
<strong><?php echo $titleHTML; ?></strong>
[24] Fix | Delete
</div>
[25] Fix | Delete
</div>
[26] Fix | Delete
<div class="wfls-modal-header-action">
[27] Fix | Delete
<div class="wfls-padding-add-left-small wfls-modal-header-action-close"><a href="#" onclick="WFLS.panelClose(); return false"><i class="<?php echo (\WordfenceLS\Controller_WordfenceLS::shared()->should_use_core_font_awesome_styles() ? 'wf-fa wf-fa-times-circle' : 'wfls-fa wfls-fa-times-circle'); ?>" aria-hidden="true"></i></a></div>
[28] Fix | Delete
</div>
[29] Fix | Delete
</div>
[30] Fix | Delete
<div class="wfls-modal-content">
[31] Fix | Delete
<?php echo $messageHTML; ?>
[32] Fix | Delete
</div>
[33] Fix | Delete
<div class="wfls-modal-footer">
[34] Fix | Delete
<ul class="wfls-flex-horizontal wfls-flex-align-right wfls-full-width">
[35] Fix | Delete
<?php foreach ($secondaryButtons as $button): ?>
[36] Fix | Delete
<li class="wfls-padding-add-left-small"><a href="<?php echo esc_url($button['link']); ?>" class="wfls-btn <?php echo isset($button['type']) ? $button['type'] : 'wfls-btn-default'; ?> wfls-btn-callout-subtle" id="<?php echo esc_attr($button['id']); ?>"><?php echo isset($button['labelHTML']) ? $button['labelHTML'] : esc_html($button['label']); ?></a></li>
[37] Fix | Delete
<?php endforeach; ?>
[38] Fix | Delete
<?php if (isset($primaryButton) && is_array($primaryButton)): ?>
[39] Fix | Delete
<li class="wfls-padding-add-left-small"><a href="<?php echo esc_url($primaryButton['link']); ?>" class="wfls-btn <?php echo isset($primaryButton['type']) ? $primaryButton['type'] : 'wfls-btn-primary'; ?> wfls-btn-callout-subtle" id="<?php echo esc_attr($primaryButton['id']); ?>"><?php echo isset($primaryButton['labelHTML']) ? $primaryButton['labelHTML'] : esc_html($primaryButton['label']); ?></a></li>
[40] Fix | Delete
<?php endif ?>
[41] Fix | Delete
</ul>
[42] Fix | Delete
</div>
[43] Fix | Delete
</div>
[44] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function