| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
?> |
| 6 |
<div style="margin-bottom:15px;" data-test-mode="<?php echo $test ? 1 : 0; ?>"> |
| 7 |
<span style="margin-bottom: 5px;min-width:40px;display: inline-block;"> |
| 8 |
<b style="color: var(--medium-grey);"><?php echo esc_html( $title ); ?></b> |
| 9 |
</span> |
| 10 |
<?php if ( $account_id ) { ?> |
| 11 |
<?php if ( $connected ) { ?> |
| 12 |
<?php FrmAppHelper::icon_by_class( 'frmfont frm_checkmark_icon frm-yes' ); ?> |
| 13 |
<?php esc_html_e( 'Connected', 'formidable' ); ?> |
| 14 |
|
| 15 |
<?php } else { ?> |
| 16 |
<strong> |
| 17 |
<span class="frm-nope" style="color:#B94A48">✘</span> |
| 18 |
<?php esc_html_e( 'Not connected!', 'formidable' ); ?> |
| 19 |
</strong> |
| 20 |
<br/><br/> |
| 21 |
<a id="frm_reauth_stripe" class="button-primary frm-button-primary" href="#"> |
| 22 |
<?php FrmStrpLiteConnectHelper::stripe_icon(); ?> |
| 23 |
<?php esc_html_e( 'Finish Stripe Setup', 'formidable' ); ?> |
| 24 |
</a> |
| 25 |
or |
| 26 |
<?php } ?> |
| 27 |
<a id="frm_disconnect_stripe" href="#" style="font-size:13px"><?php esc_html_e( 'Disconnect', 'formidable' ); ?></a> |
| 28 |
<?php } else { ?> |
| 29 |
<br/><br/> |
| 30 |
<a id="frm_connect_with_oauth" class="button-primary frm-button-primary"> |
| 31 |
<?php FrmStrpLiteConnectHelper::stripe_icon(); ?> |
| 32 |
<?php esc_html_e( 'Connect to Stripe', 'formidable' ); ?> |
| 33 |
</a> |
| 34 |
<?php } ?> |
| 35 |
</div> |
| 36 |
|