PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 2.3.0
Subscriptions for WooCommerce with Stripe Recurring Payments v2.3.0
2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 All 65 releases
← All changes | includes/Admin/views/integrations.php +15 -2 2.0.0 → 2.3.0 View file →
@@ -267,8 +267,12 @@
267 267 <?php if ( ! empty( $_GET['subscrpt_installed'] ) ) : // phpcs:ignore WordPress.Security.NonceVerification.Recommended ?>
268 268 <div class="notice notice-success is-dismissible" style="margin:0 0 16px;"><p><?php esc_html_e( 'Plugin installed and activated successfully.', 'subscription' ); ?></p></div>
269 269 <?php endif; ?>
270 270
271 + <?php if ( ! empty( $_GET['subscrpt_activated'] ) ) : // phpcs:ignore WordPress.Security.NonceVerification.Recommended ?>
272 + <div class="notice notice-success is-dismissible" style="margin:0 0 16px;"><p><?php esc_html_e( 'Plugin activated successfully.', 'subscription' ); ?></p></div>
273 + <?php endif; ?>
274 +
271 275 <!-- Payment Gateways -->
272 276 <div style="margin-bottom:32px;" data-subscrpt-int-section>
273 277 <div style="margin-bottom:12px;">
274 278 <h2 style="font-size:12px;font-weight:600;color:var(--wpsubs-text-muted);text-transform:uppercase;letter-spacing:0.06em;margin:0;line-height:1.4;margin-left:1px;"><?php esc_html_e( 'Payment Gateways', 'subscription' ); ?></h2>
@@ -402,8 +406,9 @@
402 406 </div>
403 407 <div style="display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;">
404 408 <?php foreach ( $cat_integrations as $integration ) : ?>
405 409 <?php
410 + $is_installed = ! empty( $integration['is_installed'] );
406 411 $is_active = ! empty( $integration['is_active'] );
407 412 $is_pro = ! empty( $integration['is_pro'] );
408 413 $icon_url = $integration['icon_url'] ?? '';
409 414 $icon_initial = $integration['icon_initial'] ?? strtoupper( substr( $integration['title'], 0, 2 ) );
@@ -414,10 +419,18 @@
414 419 'bg' => '#f1f5f9',
415 420 'color' => '#475569',
416 421 ];
417 422
418 - $status_dot = $is_active ? '#16a34a' : '#9ca3af';
419 - $status_text = $is_active ? __( 'Active', 'subscription' ) : __( 'Not Installed', 'subscription' );
423 + if ( $is_active ) {
424 + $status_dot = '#16a34a';
425 + $status_text = __( 'Active', 'subscription' );
426 + } elseif ( $is_installed ) {
427 + $status_dot = '#d97706';
428 + $status_text = __( 'Inactive', 'subscription' );
429 + } else {
430 + $status_dot = '#9ca3af';
431 + $status_text = __( 'Not Installed', 'subscription' );
432 + }
420 433
421 434 $subscrpt_card_status = $subscrpt_status_of( $integration );
422 435 $subscrpt_card_tags = array_keys(
423 436 array_filter(