| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
|
| 6 |
// Check if this is being called from within a list (no header needed) |
| 7 |
$is_in_list = isset( $this ) && method_exists( $this, 'no_items' ); |
| 8 |
?> |
| 9 |
|
| 10 |
<?php if ( ! $is_in_list ) : ?> |
| 11 |
<div class="frm_wrap"> |
| 12 |
<?php |
| 13 |
FrmAppHelper::get_admin_header( |
| 14 |
array( |
| 15 |
'label' => __( 'Payments', 'formidable' ), |
| 16 |
) |
| 17 |
); |
| 18 |
?> |
| 19 |
<div class="wrap"> |
| 20 |
<?php endif; ?> |
| 21 |
|
| 22 |
<div class="frm-no-payments-placeholder"> |
| 23 |
<div class="frm-no-payments-content"> |
| 24 |
<img src="<?php echo esc_url( FrmAppHelper::plugin_url() . '/images/no-payments.svg' ); ?>" alt="" class="frm-no-payments-image" /> |
| 25 |
<h2 class="frm-no-payments-title"><?php esc_html_e( 'Start accepting payments', 'formidable' ); ?></h2> |
| 26 |
<p class="frm-no-payments-description"><?php esc_html_e( 'Connect a payment gateway to collect payments right through your forms. Pick one to get started.', 'formidable' ); ?></p> |
| 27 |
<a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable-settings&t=stripe_settings' ) ); ?>" class="button button-primary frm-button-primary"> |
| 28 |
<?php esc_html_e( 'Go to Payment Settings', 'formidable' ); ?> |
| 29 |
</a> |
| 30 |
</div> |
| 31 |
</div> |
| 32 |
|
| 33 |
<?php if ( ! $is_in_list ) : ?> |
| 34 |
</div> |
| 35 |
</div> |
| 36 |
<?php endif; ?> |
| 37 |
|