PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 1.9.8.0
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v1.9.8.0
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 2.3.2 All 195 releases
convertkit / views / backend / settings / tools.php

tools.php in Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages 1.9.8.0, at views/backend/settings/tools.php

136 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Settings > Tools view
4 *
5 * @package ConvertKit
6 * @author ConvertKit
7 */
8
9 if ( $success !== false ) {
10 ?>
11 <div class="notice notice-success is-dismissible">
12 <p><?php echo esc_html( $success ); ?></p>
13 </div>
14 <?php
15 }
16
17 if ( $error !== false ) {
18 ?>
19 <div class="notice notice-error is-dismissible">
20 <p><?php echo esc_html( $error ); ?></p>
21 </div>
22 <?php
23 }
24 ?>
25
26 <div class="metabox-holder">
27 <div id="debug-log" class="postbox">
28 <h3><span><?php esc_html_e( 'Debug Log', 'convertkit' ); ?></span></h3>
29 <div class="inside">
30 <p class="description">
31 <?php esc_html_e( 'Use this tool to help debug ConvertKit plugin functionality.', 'convertkit' ); ?><br />
32 <?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 />
33 </p>
34
35 <textarea readonly="readonly" id="debug-log-textarea" class="large-text convertkit-monospace" rows="15"><?php echo esc_textarea( $log->read() ); ?></textarea>
36
37 <?php
38 if ( $log->exists() ) {
39 ?>
40 <p>
41 <?php
42 submit_button(
43 __( 'Download log', 'convertkit' ),
44 'primary',
45 'convertkit-download-debug-log',
46 false
47 );
48
49 submit_button(
50 __( 'Clear log', 'convertkit' ),
51 'secondary',
52 'convertkit-clear-debug-log',
53 false
54 );
55 ?>
56 </p>
57 <p><?php esc_html_e( 'Log file', 'convertkit' ); ?>: <code><?php echo esc_attr( $log->get_filename() ); ?></code></p>
58 <?php
59 }
60 ?>
61 </div><!-- .inside -->
62 </div><!-- .postbox -->
63
64 <div id="system-info" class="postbox">
65 <h3><span><?php esc_html_e( 'System Info', 'convertkit' ); ?></span></h3>
66 <div class="inside">
67 <p><?php esc_html_e( 'Use this tool to send system info to support when necessary.', 'convertkit' ); ?></p>
68
69 <textarea readonly="readonly" id="system-info-textarea" class="large-text convertkit-monospace" rows="15"><?php echo esc_textarea( $system_info->get() ); ?></textarea>
70
71 <p>
72 <?php
73 submit_button(
74 __( 'Download system info', 'convertkit' ),
75 'primary',
76 'convertkit-download-system-info',
77 false
78 );
79 ?>
80 </p>
81 </div><!-- .inside -->
82 </div><!-- .postbox -->
83
84 <div id="export" class="postbox">
85 <h3><span><?php esc_html_e( 'Export Configuration', 'convertkit' ); ?></span></h3>
86 <div class="inside">
87 <p class="description">
88 <?php esc_html_e( 'Downloads this plugin\'s configuration as a JSON file.', 'convertkit' ); ?><br />
89 <strong>
90 <?php esc_html_e( 'This file includes sensitive API credentials. Use with caution.', 'convertkit' ); ?>
91 </strong>
92 </p>
93
94 <p>
95 <?php
96 submit_button(
97 __( 'Export', 'convertkit' ),
98 'primary',
99 'convertkit-export',
100 false
101 );
102 ?>
103 </p>
104 </div><!-- .inside -->
105 </div><!-- .postbox -->
106
107 <div id="import" class="postbox">
108 <h3><span><?php esc_html_e( 'Import Configuration', 'convertkit' ); ?></span></h3>
109 <div class="inside">
110 <p class="description">
111 <?php esc_html_e( 'Imports a configuration file generated by this plugin.', 'convertkit' ); ?><br />
112 <strong>
113 <?php esc_html_e( 'This will overwrite any existing settings stored on this installation.', 'convertkit' ); ?><br />
114 </strong>
115 </p>
116
117 <input type="file" name="import" />
118
119 <p>
120 <?php
121 submit_button(
122 __( 'Import', 'convertkit' ),
123 'primary',
124 'convertkit-import',
125 false
126 );
127 ?>
128 </p>
129 </div><!-- .inside -->
130 </div><!-- .postbox -->
131
132 <?php
133 wp_nonce_field( 'convertkit-settings-tools', '_convertkit_settings_tools_nonce' );
134 ?>
135 </div><!-- .metabox-holder -->
136