| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
|
| 6 |
$pro_is_installed = FrmAppHelper::pro_is_installed(); |
| 7 |
?> |
| 8 |
<div id="form_entries_page" class="frm_wrap frm_list_entry_page"> |
| 9 |
<?php |
| 10 |
// Adding new entries from an admin page is a Pro feature. |
| 11 |
FrmAppHelper::get_admin_header( |
| 12 |
array( |
| 13 |
'label' => __( 'Form Entries', 'formidable' ), |
| 14 |
'form' => $form, |
| 15 |
'close' => $form ? admin_url( 'admin.php?page=formidable-entries&form=' . $form->id ) : '', |
| 16 |
'import_link' => $pro_is_installed, |
| 17 |
'publish' => ! $form || ! $pro_is_installed ? true : array( |
| 18 |
'FrmAppHelper::add_new_item_link', |
| 19 |
array( |
| 20 |
'new_link' => admin_url( 'admin.php?page=formidable-entries&frm_action=new&form=' . $form->id ), |
| 21 |
), |
| 22 |
), |
| 23 |
) |
| 24 |
); |
| 25 |
?> |
| 26 |
|
| 27 |
<div class="wrap"> |
| 28 |
<?php if ( $form ) { ?> |
| 29 |
<h2> |
| 30 |
<?php esc_html_e( 'Form Entries', 'formidable' ); ?> |
| 31 |
</h2> |
| 32 |
<?php if ( ! $pro_is_installed ) { ?> |
| 33 |
<div class="clear"></div> |
| 34 |
<?php } ?> |
| 35 |
<?php } ?> |
| 36 |
|
| 37 |
<form id="posts-filter" method="get"> |
| 38 |
<input type="hidden" name="page" value="formidable-entries" /> |
| 39 |
<input type="hidden" name="form" value="<?php echo esc_attr( $form ? $form->id : '' ); ?>" /> |
| 40 |
<input type="hidden" name="frm_action" value="list" /> |
| 41 |
<?php do_action( 'frm_entry_inside_h2', $form ); ?> |
| 42 |
<?php $wp_list_table->search_box( __( 'Search', 'formidable' ), 'entry' ); ?> |
| 43 |
|
| 44 |
<?php FrmTipsHelper::pro_tip( 'get_entries_tip', 'p' ); ?> |
| 45 |
|
| 46 |
<div class="clear"></div> |
| 47 |
<?php require FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php'; ?> |
| 48 |
<?php $wp_list_table->display(); ?> |
| 49 |
</form> |
| 50 |
<?php do_action( 'frm_page_footer', array( 'table' => $wp_list_table ) ); ?> |
| 51 |
</div> |
| 52 |
</div> |
| 53 |
|