Fix File
•
/
home
/
sportsfe...
/
httpdocs
/
clone
/
wp-conte...
/
plugins
/
popup-bu...
/
public
/
views
•
File:
settings.php
•
Content:
<?php /* Exit if accessed directly */ if ( ! defined( 'ABSPATH' ) ) { exit; } use sgpb\AdminHelper; $defaultData = SGPBConfigDataHelper::defaultData(); $deleteData = ''; if (get_option('sgpb-dont-delete-data')) { $deleteData = 'checked'; } $enableDebugMode = ''; if (get_option('sgpb-enable-debug-mode')) { $enableDebugMode = 'checked'; } $disableCustomJs = ''; if (get_option('sgpb-disable-custom-js')) { $disableCustomJs = 'checked'; } $systemInfo = AdminHelper::getSystemInfoText(); $userSavedRoles = get_option('sgpb-user-roles'); if( isset( $_GET['hide_warning'] ) && $_GET['hide_warning'] == true ) { update_option('sgpb-hide_disable-custom-js-warning', 1); echo '<style>.notice_sgpb.sgpb_dsiable_notice{ display: none !important;}</style>'; } if( isset( $_GET['hide_injection'] ) && $_GET['hide_injection'] == true ) { update_option('sgpb-hide_disable-injection-warning', 1); echo '<style>.notice_sgpb.sgpb_injecttion_notice{ display: none !important;}</style>'; } ?> <div class="sgpb sgpb-wrapper"> <div class="sgpb-generalSettings sgpb-display-flex sgpb-padding-30"> <div class="sgpb-width-50 sgpb-padding-20"> <p class="sgpb-header-h1 sgpb-margin-top-20 sgpb-margin-bottom-50"><?php esc_html_e('General Settings', 'popup-builder'); ?></p> <form method="POST" action="<?php echo esc_url(admin_url().'admin-post.php?action=sgpbSaveSettings')?>"> <?php wp_nonce_field('sgpbSaveSettings', 'sgpb_saveSettings_nonce'); ?> <div class="formItem"> <p class="subFormItem__title sgpb-flex-220"><?php esc_html_e('Enable DEBUG MODE', 'popup-builder')?>:</p> <div class="sgpb-onOffSwitch"> <input type="checkbox" name="sgpb-enable-debug-mode" class="sgpb-onOffSwitch-checkbox" id="sgpb-enable-debug-mode" <?php echo esc_attr($enableDebugMode); ?>> <label class="sgpb-onOffSwitch__label" for="sgpb-enable-debug-mode"> <span class="sgpb-onOffSwitch-inner"></span> <span class="sgpb-onOffSwitch-switch"></span> </label> </div> </div> <div class="formItem"> <p class="subFormItem__title sgpb-flex-220"><?php esc_html_e('Disable CUSTOM JS feature', 'popup-builder')?>:</p> <div class="sgpb-onOffSwitch"> <input type="checkbox" name="sgpb-disable-custom-js" class="sgpb-onOffSwitch-checkbox" id="sgpb-disable-custom-js" <?php echo esc_attr($disableCustomJs); ?>> <label class="sgpb-onOffSwitch__label" for="sgpb-disable-custom-js"> <span class="sgpb-onOffSwitch-inner"></span> <span class="sgpb-onOffSwitch-switch"></span> </label> </div> </div> <div class="formItem"> <span class="subFormItem__title sgpb-flex-220"><?php esc_html_e('Delete popup data', 'popup-builder')?>:</span> <div class="sgpb-onOffSwitch"> <input type="checkbox" name="sgpb-dont-delete-data" class="sgpb-onOffSwitch-checkbox" id="sgpb-dont-delete-data" <?php echo esc_attr($deleteData); ?>> <label class="sgpb-onOffSwitch__label" for="sgpb-dont-delete-data"> <span class="sgpb-onOffSwitch-inner"></span> <span class="sgpb-onOffSwitch-switch"></span> </label> </div> <div class="question-mark">B</div> <div class="sgpb-info-wrapper"> <span class="infoSelectRepeat samefontStyle sgpb-info-text" style="display: none;"> <?php esc_html_e('All the popup data will be deleted after removing the plugin if this option is checked.', 'popup-builder')?> </span> </div> </div> <div class="formItem"> <span class="subFormItem__title sgpb-flex-220"><?php esc_html_e('Disable popup analytics', 'popup-builder')?>:</span> <div class="sgpb-onOffSwitch"> <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' : ''); ?>> <label class="sgpb-onOffSwitch__label" for="sgpb-disable-analytics-general"> <span class="sgpb-onOffSwitch-inner"></span> <span class="sgpb-onOffSwitch-switch"></span> </label> </div> </div> <div class="formItem"> <div class="subFormItem__title sgpb-flex-220"><?php esc_html_e('User role to access the plugin', 'popup-builder')?></div> <?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());?> <div class="question-mark">B</div> <div class="sgpb-info-wrapper"> <span class="infoSelectRepeat samefontStyle sgpb-info-text" style="display: none;"> <?php esc_html_e('In spite of user roles the administrator always has access to the plugin.', 'popup-builder')?> </span> </div> </div> <input type="submit" class="saveCHangeButton sgpb-btn sgpb-btn-blue" value="<?php esc_html_e('Save Changes', 'popup-builder')?>" > </form> </div> <div class="sgpb-width-50 sgpb-padding-20 sgpb-shadow-black sgpb-border-radius-5px"> <p class="sgpb-header-h1 sgpb-margin-top-20 sgpb-margin-bottom-50"><?php esc_html_e('Debug tools', 'popup-builder')?>:</p> <div class="formItem"> <span class="formItem__title"><?php esc_html_e('System information', 'popup-builder')?>:</span> </div> <div class="formItem"> <textarea onclick="this.select();" rows="20" class="formItem__textarea" readonly><?php echo esc_textarea($systemInfo) ;?></textarea> </div> <input type="button" class="sgpb-download-system-info saveCHangeButton sgpb-btn sgpb-btn-blue" value="<?php esc_html_e('Download', 'popup-builder')?>"> </div> </div> </div>
•
Search:
•
Replace:
Function
Edit by line
Download
Information
Rename
Copy
Move
Delete
Chmod
List