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/advanced.../admin/views
File: modal.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Advanced Ads - Backend modal
[2] Fix | Delete
*
[3] Fix | Delete
* @var string $modal_slug Unique slug that can be addressed by a link or button.
[4] Fix | Delete
* @var string $modal_content The modal content. May contain HTML.
[5] Fix | Delete
* @var string $modal_title The modal title.
[6] Fix | Delete
* @var string $close_action Adds another close button that can trigger an action.
[7] Fix | Delete
* @var string $close_form Add a form ID. This form will be submitted after clicking the close and action button.
[8] Fix | Delete
* @var string $close_validation A JavaScript validation function. The function has to return true or the form won't be submitted.
[9] Fix | Delete
*/
[10] Fix | Delete
?>
[11] Fix | Delete
<?php if ( $close_action && $close_form ) : ?>
[12] Fix | Delete
<script>
[13] Fix | Delete
document.addEventListener( 'DOMContentLoaded', function () {
[14] Fix | Delete
document.querySelector( '#modal-<?php echo esc_attr( $modal_slug ); ?> .advads-modal-close-action' ).addEventListener( 'click', function ( event ) {
[15] Fix | Delete
modal_submit_form( event, '<?php echo esc_attr( $close_form ); ?>', '#modal-<?php echo esc_attr( $modal_slug ); ?>', '<?php echo esc_attr( $close_validation ); ?>' );
[16] Fix | Delete
} );
[17] Fix | Delete
} );
[18] Fix | Delete
</script>
[19] Fix | Delete
<?php endif; ?>
[20] Fix | Delete
<dialog id="modal-<?php echo esc_attr( $modal_slug ); ?>" class="advads-modal" data-modal-id="<?php echo esc_attr( $modal_slug ); ?>" autofocus>
[21] Fix | Delete
<a href="#close" class="advads-modal-close-background">Close</a>
[22] Fix | Delete
<div class="advads-modal-content">
[23] Fix | Delete
<div class="advads-modal-header">
[24] Fix | Delete
<a href="#close" class="advads-modal-close" title="<?php esc_html_e( 'Cancel', 'advanced-ads' ); ?>">&times;</a>
[25] Fix | Delete
<h2>
[26] Fix | Delete
<?php echo esc_html( $modal_title ); ?>
[27] Fix | Delete
</h2>
[28] Fix | Delete
</div>
[29] Fix | Delete
<div class="advads-modal-body">
[30] Fix | Delete
<?php
[31] Fix | Delete
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- modal content may contain any kind of custom html
[32] Fix | Delete
echo $modal_content;
[33] Fix | Delete
?>
[34] Fix | Delete
</div>
[35] Fix | Delete
<div class="advads-modal-footer">
[36] Fix | Delete
<div class="tablenav bottom">
[37] Fix | Delete
<a href="#close" class="button button-secondary advads-modal-close">
[38] Fix | Delete
<?php esc_html_e( 'Cancel', 'advanced-ads' ); ?>
[39] Fix | Delete
</a>
[40] Fix | Delete
[41] Fix | Delete
<?php if ( $close_action ) : ?>
[42] Fix | Delete
<?php if ( $close_form ) : ?>
[43] Fix | Delete
<button type="submit" form="<?php echo esc_attr( $close_form ); ?>" class="button button-primary advads-modal-close-action">
[44] Fix | Delete
<?php
[45] Fix | Delete
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- close action may contain custom html like button bar, image or span tag e.g.
[46] Fix | Delete
echo $close_action;
[47] Fix | Delete
?>
[48] Fix | Delete
</button>
[49] Fix | Delete
<?php else : ?>
[50] Fix | Delete
<a href="#close" class="button button-primary advads-modal-close-action">
[51] Fix | Delete
<?php
[52] Fix | Delete
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- close action may contain custom html like button bar, image or span tag e.g.
[53] Fix | Delete
echo $close_action;
[54] Fix | Delete
?>
[55] Fix | Delete
</a>
[56] Fix | Delete
<?php endif; ?>
[57] Fix | Delete
<?php endif; ?>
[58] Fix | Delete
</div>
[59] Fix | Delete
</div>
[60] Fix | Delete
</div>
[61] Fix | Delete
</dialog>
[62] Fix | Delete
[63] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function