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

23 lines
1.1 KiB
PHP
Raw Normal View History

<?php
/**
* Admin View: Notice - Frontend Colors
*/
if ( ! defined( 'ABSPATH' ) ) {
2015-03-13 23:48:15 +00:00
exit;
}
$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;
}
2015-03-13 23:48:15 +00:00
?>
<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> &#8211; 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-05-21 18:03:40 +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( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'frontend_colors' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php _e( 'Hide this notice', 'woocommerce' ); ?></a></p>
</div>