PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 2.2.6
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v2.2.6
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 2.3.3 All 194 releases
convertkit / views / backend / settings / tools.php

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

114 lines 3.0 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 ?>
10 <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
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 ?>
39 </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
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>
49
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 <?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 -->
63
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 );
82 ?>
83 </p>
84 </div><!-- .postbox -->
85
86 <div id="import" class="postbox">
87 <h2><?php esc_html_e( 'Import Configuration', 'convertkit' ); ?></h2>
88
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>
95
96 <input type="file" name="import" />
97
98 <p>
99 <?php
100 submit_button(
101 __( 'Import', 'convertkit' ),
102 'primary',
103 'convertkit-import',
104 false
105 );
106 ?>
107 </p>
108 </div><!-- .postbox -->
109
110 <?php
111 wp_nonce_field( 'convertkit-settings-tools', '_convertkit_settings_tools_nonce' );
112 ?>
113 </div><!-- .metabox-holder -->
114