| @@ -267,12 +267,8 @@ | ||
| 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 | - | |
| 275 | 271 | <!-- Payment Gateways --> |
| 276 | 272 | <div style="margin-bottom:32px;" data-subscrpt-int-section> |
| 277 | 273 | <div style="margin-bottom:12px;"> |
| 278 | 274 | <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> |
| @@ -406,9 +402,8 @@ | ||
| 406 | 402 | </div> |
| 407 | 403 | <div style="display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;"> |
| 408 | 404 | <?php foreach ( $cat_integrations as $integration ) : ?> |
| 409 | 405 | <?php |
| 410 | - $is_installed = ! empty( $integration['is_installed'] ); | |
| 411 | 406 | $is_active = ! empty( $integration['is_active'] ); |
| 412 | 407 | $is_pro = ! empty( $integration['is_pro'] ); |
| 413 | 408 | $icon_url = $integration['icon_url'] ?? ''; |
| 414 | 409 | $icon_initial = $integration['icon_initial'] ?? strtoupper( substr( $integration['title'], 0, 2 ) ); |
| @@ -419,18 +414,10 @@ | ||
| 419 | 414 | 'bg' => '#f1f5f9', |
| 420 | 415 | 'color' => '#475569', |
| 421 | 416 | ]; |
| 422 | 417 | |
| 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 | - } | |
| 418 | + $status_dot = $is_active ? '#16a34a' : '#9ca3af'; | |
| 419 | + $status_text = $is_active ? __( 'Active', 'subscription' ) : __( 'Not Installed', 'subscription' ); | |
| 433 | 420 | |
| 434 | 421 | $subscrpt_card_status = $subscrpt_status_of( $integration ); |
| 435 | 422 | $subscrpt_card_tags = array_keys( |
| 436 | 423 | array_filter( |