← Back
Editing: settings-submit.php
<!-- One Click SSL Settings Submit --> <?php if (!defined('ABSPATH')) exit; // Exit if accessed directly ?> <div class="submitbox" id="submitpost"> <div id="minor-publishing"> <div id="misc-publishing-actions"> <div class="misc-pub-section"> <?php if (is_multisite() && is_network_admin()) : ?> <a href="<?php echo network_admin_url('index.php?page=one-click-ssl-setup'); ?>"><i class="fa fa-cogs fa-fw"></i> <?php _e('Go to Setup', 'one-click-ssl'); ?></a> <?php else : ?> <a href="<?php echo admin_url('index.php?page=one-click-ssl-setup'); ?>"><i class="fa fa-cogs fa-fw"></i> <?php _e('Go to Setup', 'one-click-ssl'); ?></a> <?php endif; ?> </div> <?php if (is_multisite() && is_network_admin()) { $ocssl_debug_enabled = (bool) get_site_option('ocssl_debug', false); } else { $ocssl_debug_enabled = (bool) get_option('ocssl_debug', false); } $ocssl_wp_debug_enabled = defined('WP_DEBUG') && WP_DEBUG; $ocssl_wp_debug_log_enabled = defined('WP_DEBUG_LOG') && WP_DEBUG_LOG; $ocssl_debug_available = $ocssl_wp_debug_enabled && $ocssl_wp_debug_log_enabled; if (!$ocssl_wp_debug_enabled) { $ocssl_debug_help_text_html = __('WordPress debug logging is disabled. Enable <code>WP_DEBUG</code> and <code>WP_DEBUG_LOG</code> to write plugin diagnostics.', 'one-click-ssl'); } elseif (!$ocssl_wp_debug_log_enabled) { $ocssl_debug_help_text_html = __('WordPress debug logging is disabled. Enable <code>WP_DEBUG_LOG</code> to write plugin diagnostics.', 'one-click-ssl'); } else { if (in_array(strtolower((string) WP_DEBUG_LOG), array('true', '1'), true)) { $ocssl_debug_log_path = trailingslashit(WP_CONTENT_DIR) . 'debug.log'; } else { $ocssl_debug_log_path = WP_DEBUG_LOG; } $ocssl_normalized_log_path = wp_normalize_path($ocssl_debug_log_path); $ocssl_normalized_abspath = wp_normalize_path(ABSPATH); if (strpos($ocssl_normalized_log_path, $ocssl_normalized_abspath) === 0) { $ocssl_display_log_path = ltrim(substr($ocssl_normalized_log_path, strlen($ocssl_normalized_abspath)), '/'); } else { $ocssl_display_log_path = $ocssl_normalized_log_path; } $ocssl_debug_help_text_html = sprintf( __('Log plugin diagnostics to <code>%s</code>. Sensitive values are redacted. Disable when finished.', 'one-click-ssl'), esc_html($ocssl_display_log_path) ); } $ocssl_debug_help_text_plain = wp_strip_all_tags($ocssl_debug_help_text_html); ?> <div class="misc-pub-section misc-pub-section-last ocssl-debug-toggle"> <div class="ocssl-debug-toggle__control"> <label for="ocssl_debug" class="ocssl-debug-toggle__label"> <input type="checkbox" name="ocssl_debug" id="ocssl_debug" value="1" <?php checked($ocssl_debug_enabled); ?> <?php disabled(!$ocssl_debug_available); ?> /> <span class="ocssl-debug-toggle__label-text"> <i class="fa fa-bug" aria-hidden="true"></i> <?php _e('Turn on debugging', 'one-click-ssl'); ?> </span> </label> <span class="ocssl-debug-toggle__help" role="button" tabindex="0" aria-label="<?php echo esc_attr($ocssl_debug_help_text_plain); ?>"> <span class="ocssl-debug-toggle__help-icon" aria-hidden="true">?</span> <span class="ocssl-debug-toggle__tooltip" role="tooltip"><?php echo wp_kses_post($ocssl_debug_help_text_html); ?></span> </span> </div> </div> </div> </div> <div id="major-publishing-actions"> <div id="publishing-action"> <button class="button-primary button button-large" type="submit" name="submit" value="1"> <i class="fa fa-check fa-fw"></i> <?php _e('Save Configuration', 'one-click-ssl'); ?> </button> </div> <br class="clear" /> </div> </div>
Save File
Cancel