| 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 |
$should_show_add_new_button = class_exists( 'FrmTransAppController', false ) || class_exists( 'FrmPaymentsController', false ); |
| 10 |
FrmAppHelper::get_admin_header( |
| 11 |
array( |
| 12 |
'label' => __( 'Payments', 'formidable' ), |
| 13 |
'form' => FrmAppHelper::simple_get( 'form', 'absint', 0 ), |
| 14 |
'publish' => $should_show_add_new_button ? array( |
| 15 |
'FrmAppHelper::add_new_item_link', |
| 16 |
array( |
| 17 |
'new_link' => admin_url( 'admin.php?page=formidable-payments&action=new' ), |
| 18 |
), |
| 19 |
) : true, |
| 20 |
) |
| 21 |
); |
| 22 |
?> |
| 23 |
|
| 24 |
<div class="wrap"> |
| 25 |
<?php |
| 26 |
FrmTransLiteListHelper::render_tabs(); |
| 27 |
$wp_list_table->views(); |
| 28 |
?> |
| 29 |
|
| 30 |
<form id="posts-filter" method="get"> |
| 31 |
<input type="hidden" name="page" value="formidable-payments" /> |
| 32 |
<input type="hidden" name="frm_action" value="list" /> |
| 33 |
<?php $wp_list_table->display(); ?> |
| 34 |
</form> |
| 35 |
|
| 36 |
</div> |
| 37 |
</div> |
| 38 |
|