wp-juggler-server/templates/wpjs-help.php
2024-08-15 09:42:08 +02:00

85 lines
2.3 KiB
PHP

<?php
/**
* Displays the "System Info" tab.
*
* @link https://wpjuggler.com
* @since 1.0.0
*
* @package WP_Juggler_Server
* @subpackage WP_Juggler_Server/includes
*/
// Prevent direct access.
if ( ! defined( 'WPJS_PATH' ) ) exit;
$WPJS_docs_url = 'https://bettersearchreplace.com/docs/';
$WPJS_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' ),
$WPJS_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>
<div><?php echo WPJS_Compatibility::get_sysinfo(); ?></div>
</div>
</div>
<!--Submit Button-->
<div class="row">
<p class="submit">
<input type="hidden" name="action" value="WPJS_download_sysinfo" />
<?php wp_nonce_field( 'WPJS_download_sysinfo', 'WPJS_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( WPJS_PATH . 'templates/sidebar.php' ) ) {
include_once WPJS_PATH . 'templates/sidebar.php';
}
?>
</div>