diff --git a/assets/css/debug-tools.css b/assets/css/debug-tools.css index 8c2fc30e7..15c0d95e2 100644 --- a/assets/css/debug-tools.css +++ b/assets/css/debug-tools.css @@ -2,7 +2,8 @@ form#wpo-wcpdf-settings { margin-left: 0 !important; } #debug-tools { - width: 50%; + width: 100%; + margin-top: 2em; } #debug-tools .wrapper { diff --git a/assets/css/settings-styles.css b/assets/css/settings-styles.css index 4478e6f3d..546450583 100644 --- a/assets/css/settings-styles.css +++ b/assets/css/settings-styles.css @@ -263,7 +263,7 @@ body.woocommerce_page_wpo_wcpdf_options_page { margin: 15px 0 0; } -.nav-tab-wrapper a.nav-tab { +.nav-tab-wrapper:not( .wcpdf_debug_settings_sections > .nav-tab-wrapper) a.nav-tab { background: transparent; border: none; border-bottom: 3px solid transparent; @@ -272,7 +272,7 @@ body.woocommerce_page_wpo_wcpdf_options_page { font-size: 15px; } -.nav-tab-wrapper a.nav-tab.nav-tab-active { +.nav-tab-wrapper:not( .wcpdf_debug_settings_sections > .nav-tab-wrapper) a.nav-tab.nav-tab-active { border-bottom: 3px solid #51266b; } @@ -435,6 +435,10 @@ body.woocommerce_page_wpo_wcpdf_options_page { font-size: 12px; } +#wpo-wcpdf-settings .system-status-table { + margin-top: 2em; +} + #wpo-wcpdf-preview-wrapper[data-preview-states="1"] .sidebar { flex: 0 0 100%; } diff --git a/includes/class-wcpdf-main.php b/includes/class-wcpdf-main.php index 091f12794..56754df69 100644 --- a/includes/class-wcpdf-main.php +++ b/includes/class-wcpdf-main.php @@ -51,7 +51,7 @@ public function __construct() { add_filter( 'wpo_wcpdf_pdf_filters', array( $this, 'pdf_currency_filters' ) ); add_filter( 'wpo_wcpdf_html_filters', array( $this, 'html_currency_filters' ) ); - // scheduled attachments cleanup (following settings on Status tab) + // scheduled attachments cleanup (following settings on Advanced tab) add_action( 'wp_scheduled_delete', array( $this, 'schedule_temporary_files_cleanup' ) ); // remove private data diff --git a/includes/class-wcpdf-settings.php b/includes/class-wcpdf-settings.php index 66d9ca779..8be950b65 100644 --- a/includes/class-wcpdf-settings.php +++ b/includes/class-wcpdf-settings.php @@ -162,7 +162,7 @@ function check_auto_increment_increment() { $row = $wpdb->get_row( "SHOW VARIABLES LIKE 'auto_increment_increment'" ); if ( ! empty( $row ) && ! empty( $row->Value ) && $row->Value != 1 ) { /* translators: database row value */ - $error = wp_kses_post( sprintf( __( "Warning! Your database has an AUTO_INCREMENT step size of %d, your invoice numbers may not be sequential. Enable the 'Calculate document numbers (slow)' setting in the Status tab to use an alternate method." , 'woocommerce-pdf-invoices-packing-slips' ), intval( $row->Value ) ) ); + $error = wp_kses_post( sprintf( __( "Warning! Your database has an AUTO_INCREMENT step size of %d, your invoice numbers may not be sequential. Enable the 'Calculate document numbers (slow)' setting in the Advanced tab to use an alternate method." , 'woocommerce-pdf-invoices-packing-slips' ), intval( $row->Value ) ) ); printf( '
%s
%s
- | - | - |
---|
- | - |
- %s. %s', esc_html__( 'No', 'woocommerce-pdf-invoices-packing-slips' ), esc_html( $server_config['fallback'] ) );
- }
- if ( isset( $server_config['failure'] ) ) {
- printf( ' %s ', wp_kses_post( $server_config['failure'] ) );
- }
- }
- ?>
- |
+ + | ||
+ | + | ||||
---|---|---|---|---|---|
+ | + |
+ %s. %s', esc_html__( 'No', 'woocommerce-pdf-invoices-packing-slips' ), esc_html( $server_config['fallback'] ) );
+ }
+ if ( isset( $server_config['failure'] ) ) {
+ printf( ' %s ', wp_kses_post( $server_config['failure'] ) );
+ }
+ }
+ ?>
+ |
+
- | - | - |
---|
+ | ||
+ | + | + |
---|---|---|
get_title() ); ?> |
- | - | - |
---|---|---|
+ | ||
+ | + | + |
- | ','\\ |
- - |
+ | ','\\ |
+ + |
+ '.WPO_WCPDF()->main->get_tmp_path().'',
+ ''.$upload_base.' ',
+ 'UPLOADS ',
+ 'wpo_wcpdf_tmp_path ',
+ 'attachments ',
+ 'dompdf ',
+ 'fonts '
+ );
+ ?>
+ |
+ ||
+ '.WPO_WCPDF()->plugin_path() . "/vendor/dompdf/dompdf/lib/fonts/".'' + ); + ?> + | +
- '.WPO_WCPDF()->main->get_tmp_path().'',
- ''.$upload_base.'
',
- 'UPLOADS
',
- 'wpo_wcpdf_tmp_path
',
- 'attachments
',
- 'dompdf
',
- 'fonts
'
- );
- ?>
-