html-notice-untested-extensions-inline.php
8 years ago
html-notice-untested-extensions-modal.php
2 years ago
html-notice-untested-extensions-modal.php
55 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Admin View: Notice - Untested extensions. |
| 4 | * |
| 5 | * @package WooCommerce\Admin |
| 6 | */ |
| 7 | |
| 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | exit; |
| 10 | } |
| 11 | |
| 12 | $untested_plugins_msg = sprintf( |
| 13 | /* translators: %s: version number */ |
| 14 | __( 'The following active plugin(s) have not declared compatibility with WooCommerce %s yet and should be updated and examined further before you proceed:', 'woocommerce' ), |
| 15 | $new_version |
| 16 | ); |
| 17 | |
| 18 | ?> |
| 19 | <div id="wc_untested_extensions_modal"> |
| 20 | <div class="wc_untested_extensions_modal--content"> |
| 21 | <h1><?php esc_html_e( "Are you sure you're ready?", 'woocommerce' ); ?></h1> |
| 22 | <div class="wc_plugin_upgrade_notice extensions_warning"> |
| 23 | <p><?php echo esc_html( $untested_plugins_msg ); ?></p> |
| 24 | |
| 25 | <div class="plugin-details-table-container"> |
| 26 | <table class="plugin-details-table" cellspacing="0"> |
| 27 | <thead> |
| 28 | <tr> |
| 29 | <th><?php esc_html_e( 'Plugin', 'woocommerce' ); ?></th> |
| 30 | <th><?php esc_html_e( 'Tested up to WooCommerce version', 'woocommerce' ); ?></th> |
| 31 | </tr> |
| 32 | </thead> |
| 33 | <tbody> |
| 34 | <?php foreach ( $plugins as $plugin ) : ?> |
| 35 | <tr> |
| 36 | <td><?php echo esc_html( $plugin['Name'] ); ?></td> |
| 37 | <td><?php echo esc_html( $plugin['WC tested up to'] ); ?></td> |
| 38 | </tr> |
| 39 | <?php endforeach ?> |
| 40 | </tbody> |
| 41 | </table> |
| 42 | </div> |
| 43 | |
| 44 | <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> |
| 45 | |
| 46 | <?php if ( current_user_can( 'update_plugins' ) ) : ?> |
| 47 | <div class="actions"> |
| 48 | <a href="#" class="button button-secondary cancel"><?php esc_html_e( 'Cancel', 'woocommerce' ); ?></a> |
| 49 | <a class="button button-primary accept" href="#"><?php esc_html_e( 'Update now', 'woocommerce' ); ?></a> |
| 50 | </div> |
| 51 | <?php endif ?> |
| 52 | </div> |
| 53 | </div> |
| 54 | </div> |
| 55 |