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

24 lines
1.1 KiB
PHP
Raw Normal View History

<?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; If you want to continue editing the colors of your store is recommended that you install the replacement WooCommerce Colors plugin from WordPress.org.', 'woocommerce' ); ?></p>
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>
</div>