| 1 |
<?php |
| 2 |
|
| 3 |
defined( 'ABSPATH' ) or exit; |
| 4 |
|
| 5 |
/** |
| 6 |
* @var HTML_Forms\Admin\Table $table |
| 7 |
*/ |
| 8 |
?> |
| 9 |
<div class="wrap hf"> |
| 10 |
|
| 11 |
<p class="breadcrumbs"> |
| 12 |
<span class="prefix"><?php echo __( 'You are here: ', 'html-forms' ); ?></span> |
| 13 |
<a href="<?php echo admin_url( 'admin.php?page=html-forms' ); ?>">HTML Forms</a> › |
| 14 |
<span class="current-crumb"><strong><?php _e( 'Forms', 'html-forms' ); ?></strong></span> |
| 15 |
</p> |
| 16 |
|
| 17 |
<h1 class="page-title"><?php _e( 'Forms', 'html-forms' ); ?> |
| 18 |
<a href="<?php echo admin_url( 'admin.php?page=html-forms-add-form' ); ?>" class="page-title-action"> |
| 19 |
<span class="dashicons dashicons-plus-alt" style="vertical-align: middle; line-height: 16px; margin: 0 4px 0 0; "></span> |
| 20 |
<?php _e( 'Add new form', 'html-forms' ); ?> |
| 21 |
</a> |
| 22 |
|
| 23 |
<?php if ( ! empty( $_GET['s'] ) ) { |
| 24 |
printf(' <span class="subtitle">' . __('Search results for “%s”') . '</span>', sanitize_text_field( $_GET['s'] ) ); |
| 25 |
} ?> |
| 26 |
</h1> |
| 27 |
|
| 28 |
|
| 29 |
<?php $table->views(); ?> |
| 30 |
|
| 31 |
<form method="get" action="<?php echo admin_url( 'admin.php' ); ?>"> |
| 32 |
<input type="hidden" name="page" value="<?php echo esc_attr( $_GET['page'] ); ?>" /> |
| 33 |
<?php if( ! empty( $_GET['post_status'] ) ) { ?> |
| 34 |
<input type="hidden" name="post_status" value="<?php echo esc_attr( $_GET['post_status'] ); ?>" /> |
| 35 |
<?php } ?> |
| 36 |
<?php $table->search_box( 'search', 'html-forms-search' ); ?> |
| 37 |
</form> |
| 38 |
|
| 39 |
<form method="post"> |
| 40 |
<?php $table->display(); ?> |
| 41 |
</form> |
| 42 |
|
| 43 |
<?php require __DIR__ . '/admin-footer.php'; ?> |
| 44 |
</div> |
| 45 |
|