2015-01-14 12:17:03 +00:00
< ? 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 " >
2015-02-13 14:53:22 +00:00
< p >< ? php _e ( '<strong>The Frontend Style options are deprecated</strong> – If you want to continue editing the colors of your store we recommended that you install the replacement WooCommerce Colors plugin from WordPress.org.' , 'woocommerce' ); ?> </p>
2015-01-14 12:17:03 +00:00
2015-01-29 14:33:06 +00:00
< 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 esc_url( add_query_arg( 'wc-hide-notice', 'frontend_colors' ) ); ?>"><?php _e( 'Hide this notice', 'woocommerce' ); ?></a></p>
2015-01-14 12:17:03 +00:00
</ div >