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/popup-bu.../public/views
File: allMetaboxesView.php
<?php
[0] Fix | Delete
namespace sgpb;
[1] Fix | Delete
/* Exit if accessed directly */
[2] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[3] Fix | Delete
exit;
[4] Fix | Delete
}
[5] Fix | Delete
$metaboxes = apply_filters('sgpbAdditionalMetaboxes', array());
[6] Fix | Delete
[7] Fix | Delete
?>
[8] Fix | Delete
[9] Fix | Delete
<div class="sgpb sgpb-options">
[10] Fix | Delete
<?php foreach ( $metaboxes as $key => $metabox ) {
[11] Fix | Delete
if ( $key == 'allMetaboxesView' ) {
[12] Fix | Delete
continue;
[13] Fix | Delete
}
[14] Fix | Delete
?>
[15] Fix | Delete
<div class="sgpb-options-menu"
[16] Fix | Delete
id="<?php echo esc_attr($key); ?>">
[17] Fix | Delete
<h3 class="sgpb-options-menu-header"><?php echo isset( $metabox['displayName'] ) ? wp_kses($metabox['displayName'], 'post') : ''; ?></h3>
[18] Fix | Delete
<span class="sgpb-options-menu-header__sub"><?php echo esc_html($metabox['short_description']); ?></span>
[19] Fix | Delete
</div>
[20] Fix | Delete
[21] Fix | Delete
<div class="sgpb-options-content">
[22] Fix | Delete
<div id="options-<?php echo esc_attr($key); ?>" class="sgpb-metabox sgpb-metabox-options ">
[23] Fix | Delete
<p class="sgpb-header-h1 sgpb-margin-top-20 sgpb-margin-bottom-50"><?php echo isset( $metabox['displayName'] ) ? wp_kses($metabox['displayName'], 'post') : ''; ?></p>
[24] Fix | Delete
<?php require_once( $metabox['filePath'] ); ?>
[25] Fix | Delete
</div>
[26] Fix | Delete
</div>
[27] Fix | Delete
<?php }; ?>
[28] Fix | Delete
</div>
[29] Fix | Delete
<?php
[30] Fix | Delete
wp_register_script( 'sgpb-allmetaboxesview-js-footer', '', array("jquery"), SGPB_POPUP_VERSION, true );
[31] Fix | Delete
wp_enqueue_script( 'sgpb-allmetaboxesview-js-footer' );
[32] Fix | Delete
wp_add_inline_script( 'sgpb-allmetaboxesview-js-footer', "let hash = window.location.hash.replace(/^#/,'');
[33] Fix | Delete
if (hash) {
[34] Fix | Delete
jQuery('#'+hash).addClass('sgpb-options-menu-active');
[35] Fix | Delete
} else {
[36] Fix | Delete
jQuery('.sgpb-options-menu').first().addClass('sgpb-options-menu-active')
[37] Fix | Delete
}
[38] Fix | Delete
jQuery(document).ready(function () {
[39] Fix | Delete
setTimeout(function () {
[40] Fix | Delete
calcHeight();
[41] Fix | Delete
});
[42] Fix | Delete
jQuery('.sgpb-options-content, .sgpb-options-menu').click(function(){
[43] Fix | Delete
setTimeout(function(){
[44] Fix | Delete
calcHeight();
[45] Fix | Delete
}, 500);
[46] Fix | Delete
});
[47] Fix | Delete
jQuery('.sgpb-options-menu').click(function () {
[48] Fix | Delete
if (jQuery(this).hasClass('sgpb-options-menu-active')) {
[49] Fix | Delete
return;
[50] Fix | Delete
}
[51] Fix | Delete
const findActive = jQuery('.sgpb-options-menu-active');
[52] Fix | Delete
findActive.removeClass('sgpb-options-menu-active');
[53] Fix | Delete
jQuery(this).addClass('sgpb-options-menu-active');
[54] Fix | Delete
jQuery([document.documentElement, document.body]).animate({
[55] Fix | Delete
scrollTop: jQuery('#allMetaboxesView').offset().top
[56] Fix | Delete
}, 500);
[57] Fix | Delete
location.hash = jQuery(this).attr('id');
[58] Fix | Delete
});
[59] Fix | Delete
jQuery(document.body).on( 'click.postboxes', function() {
[60] Fix | Delete
calcHeight();
[61] Fix | Delete
});
[62] Fix | Delete
function calcHeight() {
[63] Fix | Delete
let minHeightShouldBe = 0;
[64] Fix | Delete
if (!jQuery( '.postbox' ).hasClass('closed')) {
[65] Fix | Delete
minHeightShouldBe = parseInt(jQuery('.sgpb-options-menu-active').next().height())+100;
[66] Fix | Delete
}
[67] Fix | Delete
jQuery('#allMetaboxesView').css('min-height', minHeightShouldBe+'px');
[68] Fix | Delete
}
[69] Fix | Delete
});");
[70] Fix | Delete
?>
[71] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function