woocommerce/includes/admin/views/html-notice-untested-extens...

49 lines
1.4 KiB
PHP
Raw Normal View History

2017-07-13 19:47:13 +00:00
<?php
/**
* Admin View: Notice - Untested extensions.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div id="wc_untested_extensions_modal">
<div class="wc_untested_extensions_modal--content">
<div class="wc_plugin_upgrade_notice extensions_warning">
2017-07-14 20:47:29 +00:00
<h1><?php _e( 'Warning', 'woocommerce' ); ?></h1>
2017-07-13 22:38:12 +00:00
<h4>
2017-07-13 19:47:13 +00:00
<?php
/* translators: %s: version number */
printf(
2017-07-17 18:30:21 +00:00
__( 'These plugins are not listed compatible with WooCommerce %s yet. This is a major update. If you upgrade without updating these extensions first, you may experience issues:', 'woocommerce' ),
2017-07-17 17:14:38 +00:00
esc_html( $new_version )
2017-07-13 19:47:13 +00:00
);
?>
2017-07-13 22:38:12 +00:00
</h4>
2017-07-13 19:47:13 +00:00
<?php foreach ( $plugins as $plugin ): ?>
2017-07-14 20:47:29 +00:00
<div class="plugin-details">
2017-07-17 17:14:38 +00:00
<?php echo esc_html( $plugin['Name'] ); ?>
2017-07-14 20:47:29 +00:00
&mdash;
<?php
/* translators: %s: version number */
2017-07-17 17:14:38 +00:00
echo esc_html( sprintf( __( 'Tested up to WooCommerce %s', 'woocommerce' ), wc_clean( $plugin['WC tested up to'] ) ) );
2017-07-14 20:47:29 +00:00
?>
</div>
2017-07-13 19:47:13 +00:00
<?php endforeach ?>
2017-07-14 20:47:29 +00:00
<?php if ( current_user_can( 'update_plugins' ) ): ?>
<div class="actions">
<p class="woocommerce-actions cancel">
2017-07-17 17:14:38 +00:00
<a href="#"><?php _e( 'Cancel', 'woocommerce' ); ?></a>
2017-07-14 20:47:29 +00:00
</p>
<p class="woocommerce-actions update-anyways">
<a class="button-primary accept" href="#">
<?php _e( 'I understand and wish to update', 'woocommerce' ); ?>
</a>
</p>
</div>
<?php endif ?>
2017-07-13 19:47:13 +00:00
</div>
</div>