woocommerce/includes/admin/views/html-notice-frontend-colors...

24 lines
1.1 KiB
PHP

<?php
/**
* Admin View: Notice - Frontend Colors
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
$plugin_slug = 'woocommerce-colors';
if ( current_user_can( 'install_plugins' ) ) {
$url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=' . $plugin_slug ), 'install-plugin_' . $plugin_slug );
} else {
$url = 'http://wordpress.org/plugins/' . $plugin_slug;
}
?>
<div id="message" class="updated woocommerce-message wc-connect">
<p><?php _e( '<strong>The Frontend Styles options is deprecated</strong> &#8211; It is recommended that you install the replacement WooCommerce Colors plugin from WordPress.org If you want to continue editing the colors of your store.', 'woocommerce' ); ?></p>
<p class="submit"><a href="<?php echo esc_url( $url ); ?>" class="wc-update-now button-primary"><?php _e( 'Install the new WooCommerce Colors plugin', 'woocommerce' ); ?></a> <a class="skip button" href="<?php echo add_query_arg( 'wc-hide-notice', 'frontend_colors' ); ?>"><?php _e( 'Hide this notice', 'woocommerce' ); ?></a></p>
</div>