| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
?> |
| 6 |
|
| 7 |
<div class="frm_wrap"> |
| 8 |
<?php |
| 9 |
/** |
| 10 |
* @since 6.27 |
| 11 |
* |
| 12 |
* @param bool $publish |
| 13 |
*/ |
| 14 |
$publish = apply_filters( 'frm_coupons_list_button', true ); |
| 15 |
|
| 16 |
FrmAppHelper::get_admin_header( |
| 17 |
array( |
| 18 |
'label' => __( 'Payments', 'formidable' ), |
| 19 |
'form' => FrmAppHelper::simple_get( 'form', 'absint', 0 ), |
| 20 |
'publish' => $publish, |
| 21 |
) |
| 22 |
); |
| 23 |
?> |
| 24 |
|
| 25 |
<div class="wrap"> |
| 26 |
<?php |
| 27 |
/** |
| 28 |
* Allow the coupons add-on to hook in and display the coupons list. |
| 29 |
* If the return value of the hook doesn't change, the coupons upsell |
| 30 |
* will be displayed instead. |
| 31 |
* |
| 32 |
* @since 6.27 |
| 33 |
* |
| 34 |
* @param bool $coupons_list_displayed |
| 35 |
*/ |
| 36 |
$coupons_list_displayed = apply_filters( 'frm_coupons_list_displayed', false ); |
| 37 |
|
| 38 |
if ( ! $coupons_list_displayed ) { |
| 39 |
include FrmAppHelper::plugin_path() . '/stripe/views/lists/coupons-upsell.php'; |
| 40 |
} |
| 41 |
?> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
|