bsr-help.php
2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
/**
* Displays the "System Info" tab.
*
* @link https://bettersearchreplace.com
* @since 1.1
*
* @package Better_Search_Replace
* @subpackage Better_Search_Replace/templates
*/
// Prevent direct access.
if ( ! defined( 'BSR_PATH' ) ) exit;
$bsr_docs_url = 'https://bettersearchreplace.com/docs/';
$bsr_support_url = 'https://wordpress.org/support/plugin/better-search-replace';
?>
<div class="ui-sidebar-wrapper">
<div class="inside">
<div class="panel">
<div class="panel-header">
<h3><?php _e( 'Help & Troubleshooting', 'better-search-replace' ); ?></h3>
</div>
<div class="panel-content">
<div>
<p>
<?php
printf(
__( 'Free support is available on the <a href="%s">plugin support forums</a>.', 'better-search-replace' ),
$bsr_support_url
)
?>
</p>
<p>
<?php
printf(
__( '<a href="%s" style="font-weight:bold;" target="_blank">Upgrade</a> to gain access to premium features and priority email support.', 'better-search-replace' ),
'https://deliciousbrains.com/better-search-replace/upgrade/?utm_source=insideplugin&utm_medium=web&utm_content=help-tab&utm_campaign=bsr-to-migrate'
);
?>
</p>
<p>
<?php
printf(
__( 'Found a bug or have a feature request? Please submit an issue on <a href="%s">GitHub</a>!', 'better-search-replace' ),
'https://github.com/deliciousbrains/better-search-replace'
);
?>
</p>
</div>
<!--System Info-->
<div class="row">
<div class="input-text full-width">
<label><strong><?php _e( 'System Info', 'better-search-replace' ); ?></strong></label>
<textarea readonly="readonly" onclick="this.focus(); this.select()" name='bsr-sysinfo'><?php echo BSR_Compatibility::get_sysinfo(); ?></textarea>
</div>
</div>
<!--Submit Button-->
<div class="row">
<p class="submit">
<input type="hidden" name="action" value="bsr_download_sysinfo" />
<?php wp_nonce_field( 'bsr_download_sysinfo', 'bsr_sysinfo_nonce' ); ?>
<input type="submit" name="bsr-download-sysinfo" id="bsr-download-sysinfo" class="button button-secondary button-sm" value="Download System Info">
</p>
</div>
</div>
</div>
</div>
<?php
if ( file_exists( BSR_PATH . 'templates/sidebar.php' ) ) {
include_once BSR_PATH . 'templates/sidebar.php';
}
?>
</div>