| @@ -5,19 +5,28 @@ | ||
| 5 | 5 | ?> |
| 6 | 6 | |
| 7 | 7 | <div class="frm_wrap"> |
| 8 | 8 | <?php |
| 9 | + $should_show_add_new_button = class_exists( 'FrmTransAppController', false ) || class_exists( 'FrmPaymentsController', false ); | |
| 9 | 10 | FrmAppHelper::get_admin_header( |
| 10 | 11 | array( |
| 11 | - 'label' => __( 'Payments', 'formidable' ), | |
| 12 | - 'form' => FrmAppHelper::simple_get( 'form', 'absint', 0 ), | |
| 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, | |
| 13 | 20 | ) |
| 14 | 21 | ); |
| 15 | 22 | ?> |
| 16 | 23 | |
| 17 | 24 | <div class="wrap"> |
| 25 | + <?php | |
| 26 | + require FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php'; | |
| 18 | 27 | |
| 19 | - <?php | |
| 28 | + FrmTransLiteListHelper::render_tabs(); | |
| 20 | 29 | $wp_list_table->views(); |
| 21 | 30 | ?> |
| 22 | 31 | |
| 23 | 32 | <form id="posts-filter" method="get"> |