PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 1.9.7.2
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v1.9.7.2
3.4.3 3.4.2 3.4.1 3.4.0 3.3.9 3.3.8 3.3.7 3.3.6 3.3.5 3.3.4 3.3.3 3.3.2 3.3.1 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 All 196 releases
← All changes | views/backend/settings/tools.php +50 -89 2.2.81.9.7.2 View file →
@@ -6,108 +6,69 @@
6 6 * @author ConvertKit
7 7 */
8 8
9 9 ?>
10 +
10 11 <div class="metabox-holder">
11 - <div id="debug-log" class="postbox">
12 - <h2><?php esc_html_e( 'Debug Log', 'convertkit' ); ?></h2>
13 - <p class="description">
14 - <?php esc_html_e( 'Use this tool to help debug ConvertKit plugin functionality.', 'convertkit' ); ?><br />
15 - <?php esc_html_e( 'For performance, the last 500 lines of the log are displayed. Use the Download Log option to review the full log.', 'convertkit' ); ?><br />
16 - </p>
17 12
18 - <textarea readonly="readonly" id="debug-log-textarea" class="large-text convertkit-monospace" rows="15"><?php echo esc_textarea( $log->read() ); ?></textarea>
19 -
20 - <?php
21 - if ( $log->exists() ) {
22 - ?>
23 - <p>
24 - <?php
25 - submit_button(
26 - __( 'Download log', 'convertkit' ),
27 - 'primary',
28 - 'convertkit-download-debug-log',
29 - false
30 - );
31 -
32 - submit_button(
33 - __( 'Clear log', 'convertkit' ),
34 - 'secondary',
35 - 'convertkit-clear-debug-log',
36 - false
37 - );
38 - ?>
13 + <div class="postbox">
14 + <h3><span><?php esc_html_e( 'Debug Log', 'convertkit' ); ?></span></h3>
15 + <div class="inside">
16 + <p class="description">
17 + <?php esc_html_e( 'Use this tool to help debug ConvertKit plugin functionality.', 'convertkit' ); ?><br />
18 + <?php esc_html_e( 'For performance, the last 500 lines of the log are displayed. Use the Download Log option to review the full log.', 'convertkit' ); ?><br />
39 19 </p>
40 - <p><?php esc_html_e( 'Log file', 'convertkit' ); ?>: <code><?php echo esc_attr( $log->get_filename() ); ?></code></p>
41 - <?php
42 - }
43 - ?>
44 - </div><!-- .postbox -->
45 20
46 - <div id="system-info" class="postbox">
47 - <h2><?php esc_html_e( 'System Info', 'convertkit' ); ?></h2>
48 - <p class="description"><?php esc_html_e( 'Use this tool to send system info to support when necessary.', 'convertkit' ); ?></p>
21 + <textarea readonly="readonly" id="debug-log-textarea" class="large-text convertkit-monospace" rows="15"><?php echo esc_textarea( $log->read() ); ?></textarea>
49 22
50 - <textarea readonly="readonly" id="system-info-textarea" class="large-text convertkit-monospace" rows="15"><?php echo esc_textarea( $system_info ); ?></textarea>
51 -
52 - <p>
53 23 <?php
54 - submit_button(
55 - __( 'Download system info', 'convertkit' ),
56 - 'primary',
57 - 'convertkit-download-system-info',
58 - false
59 - );
60 - ?>
61 - </p>
62 - </div><!-- .postbox -->
24 + if ( $log->exists() ) {
25 + ?>
26 + <p class="submit">
27 + <?php
28 + submit_button(
29 + __( 'Download Log', 'convertkit' ),
30 + 'primary',
31 + 'convertkit-download-debug-log',
32 + false
33 + );
63 34
64 - <div id="export" class="postbox">
65 - <h2><?php esc_html_e( 'Export Configuration', 'convertkit' ); ?></h2>
66 -
67 - <p class="description">
68 - <?php esc_html_e( 'Downloads this plugin\'s configuration as a JSON file.', 'convertkit' ); ?><br />
69 - <strong>
70 - <?php esc_html_e( 'This file includes sensitive API credentials. Use with caution.', 'convertkit' ); ?>
71 - </strong>
72 - </p>
73 -
74 - <p>
75 - <?php
76 - submit_button(
77 - __( 'Export', 'convertkit' ),
78 - 'primary',
79 - 'convertkit-export',
80 - false
81 - );
35 + submit_button(
36 + __( 'Clear Log', 'convertkit' ),
37 + 'secondary',
38 + 'convertkit-clear-debug-log',
39 + false
40 + );
41 + ?>
42 + </p>
43 + <p><?php esc_html_e( 'Log file', 'convertkit' ); ?>: <code><?php echo esc_attr( $log->get_filename() ); ?></code></p>
44 + <?php
45 + }
82 46 ?>
83 - </p>
47 + </div><!-- .inside -->
84 48 </div><!-- .postbox -->
85 49
86 - <div id="import" class="postbox">
87 - <h2><?php esc_html_e( 'Import Configuration', 'convertkit' ); ?></h2>
50 + <div class="postbox">
51 + <h3><span><?php esc_html_e( 'System Info', 'convertkit' ); ?></span></h3>
52 + <div class="inside">
53 + <p><?php esc_html_e( 'Use this tool to send system info to support when necessary.', 'convertkit' ); ?></p>
88 54
89 - <p class="description">
90 - <?php esc_html_e( 'Imports a configuration file generated by this plugin.', 'convertkit' ); ?><br />
91 - <strong>
92 - <?php esc_html_e( 'This will overwrite any existing settings stored on this installation.', 'convertkit' ); ?><br />
93 - </strong>
94 - </p>
55 + <textarea readonly="readonly" id="system-info-textarea" class="large-text convertkit-monospace" rows="15"><?php echo esc_textarea( $system_info->get() ); ?></textarea>
95 56
96 - <input type="file" name="import" />
57 + <p class="submit">
58 + <?php
59 + submit_button(
60 + __( 'Download System Info', 'convertkit' ),
61 + 'primary',
62 + 'convertkit-download-system-info',
63 + false
64 + );
65 + ?>
66 + </p>
67 + </div><!-- .inside -->
97 68
98 - <p>
99 - <?php
100 - submit_button(
101 - __( 'Import', 'convertkit' ),
102 - 'primary',
103 - 'convertkit-import',
104 - false
105 - );
106 - ?>
107 - </p>
69 + <?php
70 + // Nonce for Log and System Info actions.
71 + wp_nonce_field( 'convertkit-settings-tools', '_convertkit_settings_tools_nonce' );
72 + ?>
108 73 </div><!-- .postbox -->
109 -
110 - <?php
111 - wp_nonce_field( 'convertkit-settings-tools', '_convertkit_settings_tools_nonce' );
112 - ?>
113 74 </div><!-- .metabox-holder -->