← All changes
|
stripe/views/action-settings/capture-payments-upsell.php
+13
-1
6.5
→
trunk
View file →
| @@ -1,10 +1,22 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | 3 | die( 'You are not allowed to call this page directly.' ); |
| 4 | 4 | } |
| 5 | + | |
| 6 | +$wrapper_atts = array_merge( | |
| 7 | + array( | |
| 8 | + 'class' => 'show_stripe frm_gateway_no_recur frm6 frm_show_upgrade frm_noallow', | |
| 9 | + 'data-upgrade' => __( 'Additional Stripe settings', 'formidable' ), | |
| 10 | + ), | |
| 11 | + $upgrade_params | |
| 12 | +); | |
| 13 | + | |
| 14 | +if ( isset( $selected_gateway ) && 'stripe' !== $selected_gateway ) { | |
| 15 | + $wrapper_atts['style'] = 'display: none;'; | |
| 16 | +} | |
| 5 | 17 | ?> |
| 6 | -<p class="frm_gateway_no_recur frm6 frm_show_upgrade frm_noallow" data-upgrade="<?php esc_attr_e( 'Additional Stripe settings', 'formidable' ); ?>" <?php FrmAppHelper::array_to_html_params( $upgrade_params, true ); ?>> | |
| 18 | +<p <?php FrmAppHelper::array_to_html_params( $wrapper_atts, true ); ?>> | |
| 7 | 19 | <label> |
| 8 | 20 | <?php esc_html_e( 'Capture Payment', 'formidable' ); ?> |
| 9 | 21 | </label> |
| 10 | 22 | <select disabled style="pointer-events: none;"> |