Add purple woo button
This commit is contained in:
parent
b5a4a1597f
commit
b5fb7c0104
|
@ -379,6 +379,16 @@
|
|||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.addons-button-outline-purple {
|
||||
border: 1px solid #674399;
|
||||
color: #674399;
|
||||
}
|
||||
|
||||
.addons-button-outline-purple:hover {
|
||||
color: #674399;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.addons-button-outline-white {
|
||||
border: 1px solid #fff;
|
||||
color: #fff;
|
||||
|
|
|
@ -478,7 +478,7 @@ class WC_Admin_Addons {
|
|||
$defaults = array(
|
||||
'image' => WC()->plugin_url() . '/assets/images/wcpayments-icon-secure.png',
|
||||
'image_alt' => __( 'WooCommerce Payments', 'woocommerce' ),
|
||||
'title' => __( 'Payments made simple, with no monthly fees -- designed exclusively for WooCommerce stores.', 'woocommerce' ),
|
||||
'title' => __( 'Payments made simple, with no monthly fees — designed exclusively for WooCommerce stores.', 'woocommerce' ),
|
||||
'description' => __( 'Securely accept cards in your store. See payments, track cash flow into your bank account, and stay on top of disputes – right from your dashboard.', 'woocommerce' ),
|
||||
'button' => __( 'Free - Install now', 'woocommerce' ),
|
||||
'href' => $button_url,
|
||||
|
@ -502,7 +502,7 @@ class WC_Admin_Addons {
|
|||
self::output_button(
|
||||
$block_data['href'],
|
||||
$block_data['button'],
|
||||
'addons-button-outline-green'
|
||||
'addons-button-outline-purple'
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
|
@ -679,7 +679,7 @@ class WC_Admin_Addons {
|
|||
'repo-slug' => 'woocommerce-payments',
|
||||
);
|
||||
|
||||
WC_Install::background_installer( $services_plugin_id, $services_plugin );
|
||||
WC_Install::background_installer( $services_plugin_id, $services_plugin, esc_url( admin_url( 'admin.php?page=wc-admin&path=%2Fpayments%2Fconnect' ) ) );
|
||||
|
||||
wp_safe_redirect( remove_query_arg( array( 'install-addon', '_wpnonce' ) ) );
|
||||
exit;
|
||||
|
|
|
@ -1398,11 +1398,12 @@ CREATE TABLE {$wpdb->prefix}wc_reserved_stock (
|
|||
*
|
||||
* @param string $plugin_to_install_id Plugin ID.
|
||||
* @param array $plugin_to_install Plugin information.
|
||||
* @param string $redirect Redirect URL.
|
||||
*
|
||||
* @throws Exception If unable to proceed with plugin installation.
|
||||
* @since 2.6.0
|
||||
*/
|
||||
public static function background_installer( $plugin_to_install_id, $plugin_to_install ) {
|
||||
public static function background_installer( $plugin_to_install_id, $plugin_to_install, $redirect = '' ) {
|
||||
// Explicitly clear the event.
|
||||
$args = func_get_args();
|
||||
|
||||
|
@ -1519,7 +1520,7 @@ CREATE TABLE {$wpdb->prefix}wc_reserved_stock (
|
|||
if ( $activate ) {
|
||||
try {
|
||||
add_action( 'add_option_mailchimp_woocommerce_plugin_do_activation_redirect', array( __CLASS__, 'remove_mailchimps_redirect' ), 10, 2 );
|
||||
$result = activate_plugin( $installed ? $installed_plugins[ $plugin_file ] : $plugin_slug . '/' . $plugin_file );
|
||||
$result = activate_plugin( $installed ? $installed_plugins[ $plugin_file ] : $plugin_slug . '/' . $plugin_file, $redirect );
|
||||
|
||||
if ( is_wp_error( $result ) ) {
|
||||
throw new Exception( $result->get_error_message() );
|
||||
|
|
Loading…
Reference in New Issue