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: settings.php
<?php
[0] Fix | Delete
/* Exit if accessed directly */
[1] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[2] Fix | Delete
exit;
[3] Fix | Delete
}
[4] Fix | Delete
use sgpb\AdminHelper;
[5] Fix | Delete
$defaultData = SGPBConfigDataHelper::defaultData();
[6] Fix | Delete
[7] Fix | Delete
$deleteData = '';
[8] Fix | Delete
if (get_option('sgpb-dont-delete-data')) {
[9] Fix | Delete
$deleteData = 'checked';
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
$enableDebugMode = '';
[13] Fix | Delete
if (get_option('sgpb-enable-debug-mode')) {
[14] Fix | Delete
$enableDebugMode = 'checked';
[15] Fix | Delete
}
[16] Fix | Delete
$disableCustomJs = '';
[17] Fix | Delete
if (get_option('sgpb-disable-custom-js')) {
[18] Fix | Delete
$disableCustomJs = 'checked';
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
$systemInfo = AdminHelper::getSystemInfoText();
[22] Fix | Delete
$userSavedRoles = get_option('sgpb-user-roles');
[23] Fix | Delete
[24] Fix | Delete
if( isset( $_GET['hide_warning'] ) && $_GET['hide_warning'] == true )
[25] Fix | Delete
{
[26] Fix | Delete
update_option('sgpb-hide_disable-custom-js-warning', 1);
[27] Fix | Delete
echo '<style>.notice_sgpb.sgpb_dsiable_notice{ display: none !important;}</style>';
[28] Fix | Delete
}
[29] Fix | Delete
if( isset( $_GET['hide_injection'] ) && $_GET['hide_injection'] == true )
[30] Fix | Delete
{
[31] Fix | Delete
update_option('sgpb-hide_disable-injection-warning', 1);
[32] Fix | Delete
echo '<style>.notice_sgpb.sgpb_injecttion_notice{ display: none !important;}</style>';
[33] Fix | Delete
}
[34] Fix | Delete
?>
[35] Fix | Delete
[36] Fix | Delete
<div class="sgpb sgpb-wrapper">
[37] Fix | Delete
<div class="sgpb-generalSettings sgpb-display-flex sgpb-padding-30">
[38] Fix | Delete
<div class="sgpb-width-50 sgpb-padding-20">
[39] Fix | Delete
<p class="sgpb-header-h1 sgpb-margin-top-20 sgpb-margin-bottom-50"><?php esc_html_e('General Settings', 'popup-builder'); ?></p>
[40] Fix | Delete
<form method="POST" action="<?php echo esc_url(admin_url().'admin-post.php?action=sgpbSaveSettings')?>">
[41] Fix | Delete
<?php wp_nonce_field('sgpbSaveSettings', 'sgpb_saveSettings_nonce'); ?>
[42] Fix | Delete
<div class="formItem">
[43] Fix | Delete
<p class="subFormItem__title sgpb-flex-220"><?php esc_html_e('Enable DEBUG MODE', 'popup-builder')?>:</p>
[44] Fix | Delete
<div class="sgpb-onOffSwitch">
[45] Fix | Delete
<input type="checkbox" name="sgpb-enable-debug-mode" class="sgpb-onOffSwitch-checkbox" id="sgpb-enable-debug-mode" <?php echo esc_attr($enableDebugMode); ?>>
[46] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="sgpb-enable-debug-mode">
[47] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[48] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[49] Fix | Delete
</label>
[50] Fix | Delete
</div>
[51] Fix | Delete
</div>
[52] Fix | Delete
<div class="formItem">
[53] Fix | Delete
<p class="subFormItem__title sgpb-flex-220"><?php esc_html_e('Disable CUSTOM JS feature', 'popup-builder')?>:</p>
[54] Fix | Delete
<div class="sgpb-onOffSwitch">
[55] Fix | Delete
<input type="checkbox" name="sgpb-disable-custom-js" class="sgpb-onOffSwitch-checkbox" id="sgpb-disable-custom-js" <?php echo esc_attr($disableCustomJs); ?>>
[56] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="sgpb-disable-custom-js">
[57] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[58] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[59] Fix | Delete
</label>
[60] Fix | Delete
</div>
[61] Fix | Delete
</div>
[62] Fix | Delete
<div class="formItem">
[63] Fix | Delete
<span class="subFormItem__title sgpb-flex-220"><?php esc_html_e('Delete popup data', 'popup-builder')?>:</span>
[64] Fix | Delete
<div class="sgpb-onOffSwitch">
[65] Fix | Delete
<input type="checkbox" name="sgpb-dont-delete-data" class="sgpb-onOffSwitch-checkbox" id="sgpb-dont-delete-data" <?php echo esc_attr($deleteData); ?>>
[66] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="sgpb-dont-delete-data">
[67] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[68] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[69] Fix | Delete
</label>
[70] Fix | Delete
</div>
[71] Fix | Delete
<div class="question-mark">B</div>
[72] Fix | Delete
<div class="sgpb-info-wrapper">
[73] Fix | Delete
<span class="infoSelectRepeat samefontStyle sgpb-info-text" style="display: none;">
[74] Fix | Delete
<?php esc_html_e('All the popup data will be deleted after removing the plugin if this option is checked.', 'popup-builder')?>
[75] Fix | Delete
</span>
[76] Fix | Delete
</div>
[77] Fix | Delete
</div>
[78] Fix | Delete
[79] Fix | Delete
<div class="formItem">
[80] Fix | Delete
<span class="subFormItem__title sgpb-flex-220"><?php esc_html_e('Disable popup analytics', 'popup-builder')?>:</span>
[81] Fix | Delete
<div class="sgpb-onOffSwitch">
[82] Fix | Delete
<input type="checkbox" name="sgpb-disable-analytics-general" class="sgpb-onOffSwitch-checkbox" id="sgpb-disable-analytics-general"<?php echo esc_attr((get_option('sgpb-disable-analytics-general')) ? ' checked' : ''); ?>>
[83] Fix | Delete
<label class="sgpb-onOffSwitch__label" for="sgpb-disable-analytics-general">
[84] Fix | Delete
<span class="sgpb-onOffSwitch-inner"></span>
[85] Fix | Delete
<span class="sgpb-onOffSwitch-switch"></span>
[86] Fix | Delete
</label>
[87] Fix | Delete
</div>
[88] Fix | Delete
</div>
[89] Fix | Delete
<div class="formItem">
[90] Fix | Delete
<div class="subFormItem__title sgpb-flex-220"><?php esc_html_e('User role to access the plugin', 'popup-builder')?></div>
[91] Fix | Delete
<?php echo wp_kses(AdminHelper::createSelectBox($defaultData['userRoles'], $userSavedRoles, array('name'=>'sgpb-user-roles[]', 'class' => 'js-sg-select2 js-select-ajax ', 'multiple'=> 'multiple', 'size'=> count($defaultData['userRoles']))), AdminHelper::allowed_html_tags());?>
[92] Fix | Delete
<div class="question-mark">B</div>
[93] Fix | Delete
<div class="sgpb-info-wrapper">
[94] Fix | Delete
<span class="infoSelectRepeat samefontStyle sgpb-info-text" style="display: none;">
[95] Fix | Delete
<?php esc_html_e('In spite of user roles the administrator always has access to the plugin.', 'popup-builder')?>
[96] Fix | Delete
</span>
[97] Fix | Delete
</div>
[98] Fix | Delete
</div>
[99] Fix | Delete
<input type="submit" class="saveCHangeButton sgpb-btn sgpb-btn-blue" value="<?php esc_html_e('Save Changes', 'popup-builder')?>" >
[100] Fix | Delete
</form>
[101] Fix | Delete
</div>
[102] Fix | Delete
<div class="sgpb-width-50 sgpb-padding-20 sgpb-shadow-black sgpb-border-radius-5px">
[103] Fix | Delete
<p class="sgpb-header-h1 sgpb-margin-top-20 sgpb-margin-bottom-50"><?php esc_html_e('Debug tools', 'popup-builder')?>:</p>
[104] Fix | Delete
<div class="formItem">
[105] Fix | Delete
<span class="formItem__title"><?php esc_html_e('System information', 'popup-builder')?>:</span>
[106] Fix | Delete
</div>
[107] Fix | Delete
<div class="formItem">
[108] Fix | Delete
<textarea onclick="this.select();" rows="20" class="formItem__textarea" readonly><?php echo esc_textarea($systemInfo) ;?></textarea>
[109] Fix | Delete
</div>
[110] Fix | Delete
<input type="button" class="sgpb-download-system-info saveCHangeButton sgpb-btn sgpb-btn-blue" value="<?php esc_html_e('Download', 'popup-builder')?>">
[111] Fix | Delete
</div>
[112] Fix | Delete
</div>
[113] Fix | Delete
</div>
[114] Fix | Delete
[115] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function