2016-04-19 12:14:13 +00:00
< ? php
/**
* Admin View : Notice - Simplify Commerce .
*/
if ( ! defined ( 'ABSPATH' ) ) {
exit ;
}
$plugin_slug = 'woocommerce-gateway-simplify-commerce' ;
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 {
2016-05-27 01:48:49 +00:00
$url = 'https://wordpress.org/plugins/' . $plugin_slug ;
2016-04-19 12:14:13 +00:00
}
?>
< div id = " message " class = " updated woocommerce-message " >
2016-07-11 14:56:35 +00:00
< a class = " woocommerce-message-close notice-dismiss " href = " <?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'simplify_commerce' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?> " >< ? php _e ( 'Dismiss' , 'woocommerce' ); ?> </a>
2016-04-19 12:14:13 +00:00
< p >< ? php _e ( '<strong>The Simplify Commerce payment gateway is deprecated</strong> – Please install our new free Simplify Commerce plugin from WordPress.org. Simplify Commerce will be removed from WooCommerce core in a future update.' , 'woocommerce' ); ?> </p>
< p class = " submit " >< a href = " <?php echo esc_url( $url ); ?> " class = " wc-update-now button-primary " >< ? php _e ( 'Install our new Simplify Commerce plugin' , 'woocommerce' ); ?> </a></p>
</ div >