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/common
File: modal-prompt.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Presents a modal prompt.
[3] Fix | Delete
*
[4] Fix | Delete
* Expects $title (or $titleHTML), $message (or $messageHTML), and $primaryButton to be defined. $secondaryButtons may also be defined.
[5] Fix | Delete
*
[6] Fix | Delete
* @var string $title The title for the prompt.
[7] Fix | Delete
* @var string $titleHTML The raw HTML title for the prompt. This supersedes $title.
[8] Fix | Delete
* @var string $message The message for the prompt.
[9] Fix | Delete
* @var string $messageHTML The raw HTML message for the prompt. This supersedes $message.
[10] 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>)
[11] 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>, 'target' => <target value, optional>, 'rel' => <rel value, optional>). The ordering of entries is the right-to-left order the buttons will be displayed.
[12] Fix | Delete
* @var string $progressIndicator The ID for a progress indicator to the left of all buttons. Optional.
[13] Fix | Delete
*/
[14] Fix | Delete
[15] Fix | Delete
if (!isset($titleHTML)) {
[16] Fix | Delete
$titleHTML = esc_html($title);
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
if (!isset($messageHTML)) {
[20] Fix | Delete
$messageHTML = esc_html($message);
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
if (!isset($secondaryButtons)) {
[24] Fix | Delete
$secondaryButtons = array();
[25] Fix | Delete
}
[26] Fix | Delete
$secondaryButtons = array_reverse($secondaryButtons);
[27] Fix | Delete
?>
[28] Fix | Delete
<div class="wf-modal">
[29] Fix | Delete
<div class="wf-modal-header">
[30] Fix | Delete
<div class="wf-modal-header-content">
[31] Fix | Delete
<div class="wf-modal-title">
[32] Fix | Delete
<strong><?php echo $titleHTML; ?></strong>
[33] Fix | Delete
</div>
[34] Fix | Delete
</div>
[35] Fix | Delete
<div class="wf-modal-header-action">
[36] Fix | Delete
<div class="wf-padding-add-left-small wf-modal-header-action-close"><a href="#" onclick="WFAD.colorboxClose(); return false" role="button"><i class="wf-fa wf-fa-times-circle" aria-hidden="true"></i></a></div>
[37] Fix | Delete
</div>
[38] Fix | Delete
</div>
[39] Fix | Delete
<div class="wf-modal-content">
[40] Fix | Delete
<?php echo $messageHTML; ?>
[41] Fix | Delete
</div>
[42] Fix | Delete
<div class="wf-modal-footer">
[43] Fix | Delete
<ul class="wf-flex-horizontal wf-flex-align-right wf-full-width">
[44] Fix | Delete
<?php if (isset($progressIndicator) && $progressIndicator): ?>
[45] Fix | Delete
<li class="wf-padding-add-left-small"><img src="<?php echo esc_attr(wfUtils::getBaseURL() . '/images/loading_large.gif'); ?>" alt="Loading" width="32" height="32" id="<?php echo esc_attr($progressIndicator); ?>" style="display: none;"></li>
[46] Fix | Delete
<?php endif; ?>
[47] Fix | Delete
<?php foreach ($secondaryButtons as $button): ?>
[48] Fix | Delete
<li class="wf-padding-add-left-small"><a href="<?php echo esc_attr($button['link']); ?>" class="wf-btn <?php echo isset($button['type']) ? $button['type'] : 'wf-btn-default'; ?> wf-btn-callout-subtle" id="<?php echo esc_attr($button['id']); ?>"<?php if (isset($button['target'])) { echo ' target="' . esc_attr($button['target']) . '"'; } ?><?php if (isset($button['rel'])) { echo ' rel="' . esc_attr($button['rel']) . '"'; } ?>><?php echo isset($button['labelHTML']) ? $button['labelHTML'] : esc_html($button['label']); ?></a></li>
[49] Fix | Delete
<?php endforeach; ?>
[50] Fix | Delete
<li class="wf-padding-add-left-small"><a href="<?php echo esc_attr($primaryButton['link']); ?>" class="wf-btn <?php echo isset($primaryButton['type']) ? $primaryButton['type'] : 'wf-btn-primary'; ?> wf-btn-callout-subtle" id="<?php echo esc_attr($primaryButton['id']); ?>"><?php echo isset($primaryButton['labelHTML']) ? $primaryButton['labelHTML'] : esc_html($primaryButton['label']); ?></a></li>
[51] Fix | Delete
</ul>
[52] Fix | Delete
</div>
[53] Fix | Delete
</div>
[54] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function