2017-07-13 19:47:13 +00:00
< ? php
/**
* Admin View : Notice - Untested extensions .
2018-03-06 13:58:03 +00:00
*
* @ package WooCommerce\Admin
2017-07-13 19:47:13 +00:00
*/
2018-03-06 13:58:03 +00:00
2017-07-13 19:47:13 +00:00
if ( ! defined ( 'ABSPATH' ) ) {
exit ;
}
2018-03-06 13:58:03 +00:00
$untested_plugins_msg = sprintf (
/* translators: %s: version number */
__ ( 'The following active plugin(s) have not declared compatibility with WooCommerce %s yet and should be updated and examined further before you proceed:' , 'woocommerce' ),
$new_version
);
2017-07-13 19:47:13 +00:00
?>
< div id = " wc_untested_extensions_modal " >
< div class = " wc_untested_extensions_modal--content " >
2021-01-18 22:23:59 +00:00
< h1 >< ? php esc_html_e ( " Are you sure you're ready? " , 'woocommerce' ); ?> </h1>
2017-07-13 19:47:13 +00:00
< div class = " wc_plugin_upgrade_notice extensions_warning " >
2018-03-06 13:58:03 +00:00
< p >< ? php echo esc_html ( $untested_plugins_msg ); ?> </p>
2017-08-08 16:12:50 +00:00
2017-10-16 16:10:20 +00:00
< div class = " plugin-details-table-container " >
< table class = " plugin-details-table " cellspacing = " 0 " >
< thead >
2017-08-21 14:53:08 +00:00
< tr >
2017-10-16 16:10:20 +00:00
< th >< ? php esc_html_e ( 'Plugin' , 'woocommerce' ); ?> </th>
< th >< ? php esc_html_e ( 'Tested up to WooCommerce version' , 'woocommerce' ); ?> </th>
2017-08-21 14:53:08 +00:00
</ tr >
2017-10-16 16:10:20 +00:00
</ thead >
< tbody >
< ? php foreach ( $plugins as $plugin ) : ?>
< tr >
< td >< ? php echo esc_html ( $plugin [ 'Name' ] ); ?> </td>
< td >< ? php echo esc_html ( $plugin [ 'WC tested up to' ] ); ?> </td>
</ tr >
< ? php endforeach ?>
</ tbody >
</ table >
</ div >
2017-07-13 22:38:12 +00:00
2021-01-18 22:23:59 +00:00
< p >< ? php esc_html_e ( 'We strongly recommend creating a backup of your site before updating.' , 'woocommerce' ); ?> <a href="https://woocommerce.com/2017/05/create-use-backups-woocommerce/" target="_blank"><?php esc_html_e( 'Learn more', 'woocommerce' ); ?></a></p>
2017-07-13 19:47:13 +00:00
2018-03-05 18:59:17 +00:00
< ? php if ( current_user_can ( 'update_plugins' ) ) : ?>
2017-07-14 20:47:29 +00:00
< div class = " actions " >
2017-08-21 14:53:08 +00:00
< a href = " # " class = " button button-secondary cancel " >< ? php esc_html_e ( 'Cancel' , 'woocommerce' ); ?> </a>
< a class = " button button-primary accept " href = " # " >< ? php esc_html_e ( 'Update now' , 'woocommerce' ); ?> </a>
2017-07-14 20:47:29 +00:00
</ div >
< ? php endif ?>
2017-08-01 22:04:11 +00:00
</ div >
2017-07-13 19:47:13 +00:00
</ div >
</ div >