| 1 |
<?php |
| 2 |
/** |
| 3 |
* Outputs the Logs WP_List_Table. |
| 4 |
* |
| 5 |
* @package WPZinc\Social |
| 6 |
* @author WP Zinc |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; // Exit if accessed directly. |
| 11 |
} |
| 12 |
?> |
| 13 |
<header> |
| 14 |
<h1> |
| 15 |
<?php echo esc_html( $this->base->plugin->displayName ); ?> |
| 16 |
|
| 17 |
<span> |
| 18 |
<?php esc_html_e( 'Logs', 'wp-to-buffer' ); ?> |
| 19 |
</span> |
| 20 |
</h1> |
| 21 |
</header> |
| 22 |
|
| 23 |
<hr class="wp-header-end" /> |
| 24 |
|
| 25 |
<div class="wrap"> |
| 26 |
<?php |
| 27 |
// Search Subtitle. |
| 28 |
if ( $table->is_search() ) { |
| 29 |
?> |
| 30 |
<span class="subtitle left"><?php esc_html_e( 'Search results for', 'wp-to-buffer' ); ?> “<?php echo esc_html( $table->get_search() ); ?>”</span> |
| 31 |
<?php |
| 32 |
} |
| 33 |
?> |
| 34 |
|
| 35 |
<form action="admin.php?page=<?php echo esc_attr( $this->base->plugin->name ); ?>-log" method="post" id="posts-filter"> |
| 36 |
<?php |
| 37 |
// Output Search Box. |
| 38 |
$table->search_box( __( 'Search', 'wp-to-buffer' ), 'wpzinc-social-log' ); |
| 39 |
|
| 40 |
// Output Table. |
| 41 |
$table->display(); |
| 42 |
?> |
| 43 |
</form> |
| 44 |
</div><!-- /.wrap --> |
| 45 |
|