dashboard.php
6 years ago
debug-mode.php
5 years ago
from-headers.php
6 years ago
pagination.php
6 years ago
responsiveness.php
5 years ago
debug-mode.php
68 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Debug section under the "general" tab. |
| 4 | * |
| 5 | * @package Hustle |
| 6 | * @since 4.0.4 |
| 7 | */ |
| 8 | |
| 9 | ?> |
| 10 | <div class="sui-box-settings-row"> |
| 11 | |
| 12 | <div class="sui-box-settings-col-1"> |
| 13 | <span class="sui-settings-label"><?php esc_html_e( 'Debug Mode', 'hustle' ); ?></span> |
| 14 | <span class="sui-description"><?php esc_html_e( 'Debug mode can help you troubleshoot any issues with your Hustle modules.', 'hustle' ); ?></span> |
| 15 | </div> |
| 16 | |
| 17 | <div class="sui-box-settings-col-2"> |
| 18 | |
| 19 | <div class="sui-form-field"> |
| 20 | |
| 21 | <label |
| 22 | for="hustle-debug-enabled" |
| 23 | class="sui-toggle hustle-toggle-with-container" |
| 24 | data-toggle-on="debug-enabled" |
| 25 | > |
| 26 | |
| 27 | <input |
| 28 | type="checkbox" |
| 29 | name="debug_enabled" |
| 30 | value="1" |
| 31 | id="hustle-debug-enabled" |
| 32 | data-attribute="debug_enabled" |
| 33 | aria-labelledby="hustle-debug-enabled-label" |
| 34 | aria-describedby="hustle-debug-enabled-description" |
| 35 | <?php checked( $settings['debug_enabled'] ); ?> |
| 36 | /> |
| 37 | |
| 38 | <span class="sui-toggle-slider" aria-hidden="true"></span> |
| 39 | |
| 40 | <span id="hustle-debug-enabled-label" class="sui-toggle-label"><?php esc_html_e( 'Enable Hustle debug mode', 'hustle' ); ?></span> |
| 41 | |
| 42 | <span id="hustle-debug-enabled-description" class="sui-description"><?php esc_html_e( 'Choose whether you want to enable the debug mode or not. It’s recommended to keep it enabled while troubleshooting any issues. When enabled, Hustle will write all the logs in the debug.log file.', 'hustle' ); ?></span> |
| 43 | |
| 44 | </label> |
| 45 | |
| 46 | <div tabindex="0" class="sui-toggle-content" data-toggle-content="debug-enabled"> |
| 47 | |
| 48 | <?php |
| 49 | $this->get_html_for_options( |
| 50 | array( |
| 51 | array( |
| 52 | 'type' => 'inline_notice', |
| 53 | 'icon' => 'info', |
| 54 | /* translators: 1: opening 'strong' tag, 2: closing 'strong' tag. */ |
| 55 | 'value' => sprintf( esc_html__( 'Hustle debug mode requires WordPress debugging to be enabled. So, make sure you have the %1$sWP_DEBUG%2$s, and %1$sWP_DEBUG_LOG%2$s defines set to %1$strue%2$s in your wp-config file.', 'hustle' ), '<strong>', '</strong>' ), |
| 56 | ), |
| 57 | ) |
| 58 | ); |
| 59 | ?> |
| 60 | |
| 61 | </div> |
| 62 | |
| 63 | </div> |
| 64 | |
| 65 | </div> |
| 66 | |
| 67 | </div> |
| 68 |