woocommerce/includes/admin/views/html-notice-template-check.php

30 lines
1.7 KiB
PHP
Raw Normal View History

<?php
/**
* Admin View: Notice - Template Check
2018-07-09 13:10:49 +00:00
*
2020-08-05 16:36:24 +00:00
* @package WooCommerce\Views
*/
if ( ! defined( 'ABSPATH' ) ) {
2015-03-13 23:48:15 +00:00
exit;
}
2015-04-29 12:04:40 +00:00
$theme = wp_get_theme();
?>
2015-04-29 12:04:40 +00:00
<div id="message" class="updated woocommerce-message">
2018-07-09 13:10:49 +00:00
<a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'template_files' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php esc_html_e( 'Dismiss', 'woocommerce' ); ?></a>
2016-07-19 10:30:31 +00:00
2018-07-09 13:10:49 +00:00
<p>
<?php /* translators: %s: theme name */ ?>
<?php printf( __( '<strong>Your theme (%s) contains outdated copies of some WooCommerce template files.</strong> These files may need updating to ensure they are compatible with the current version of WooCommerce. Suggestions to fix this:', 'woocommerce' ), esc_html( $theme['Name'] ) ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>
<ol>
<li><?php esc_html_e( 'Update your theme to the latest version. If no update is available contact your theme author asking about compatibility with the current WooCommerce version.', 'woocommerce' ); ?></li>
<li><?php esc_html_e( 'If you copied over a template file to change something, then you will need to copy the new version of the template and apply your changes again.', 'woocommerce' ); ?></li>
</ol>
</p>
<p class="submit">
<a class="button-primary" href="https://docs.woocommerce.com/document/template-structure/" target="_blank"><?php esc_html_e( 'Learn more about templates', 'woocommerce' ); ?></a>
<a class="button-primary" href="<?php echo esc_url( admin_url( 'admin.php?page=wc-status' ) ); ?>" target="_blank"><?php esc_html_e( 'View affected templates', 'woocommerce' ); ?></a>
</p>
2014-09-18 13:34:21 +00:00
</div>