PluginProbe
WP Coder – Insert & Manage Code Snippets / 4.5
WP Coder – Insert & Manage Code Snippets v4.5
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
wp-coder / includes / pages / 1.list.php

1.list.php in WP Coder – Insert & Manage Code Snippets 4.5, at includes/pages/1.list.php

44 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Page Name: List
4 */
5
6 use WPCoder\Dashboard\DashboardInitializer;
7 use WPCoder\Dashboard\ListTable;
8 use WPCoder\WPCoder;
9
10 defined( 'ABSPATH' ) || exit;
11
12 $list_table = new ListTable();
13 $list_table->prepare_items();
14 $add_url = add_query_arg( [
15 'page' => WPCoder::SLUG . '-settings',
16 'action' => 'new'
17 ], admin_url( 'admin.php' ) );
18 ?>
19 <div class="wowp">
20 <?php DashboardInitializer::header(); ?>
21
22 <div class="wowp-page-header">
23 <h2 class="wowp-page-header__title">
24 <?php esc_html_e( 'All Codes', 'wp-coder' ); ?>
25 </h2>
26 <a href="<?php echo esc_url( $add_url ); ?>" class="button button-primary button-large">
27 <?php esc_html_e( 'Add New', 'wp-coder' ); ?>
28 </a>
29 </div>
30
31
32 <form method="post" class="wowp-list">
33 <?php
34 $list_table->search_box( esc_attr__( 'Search', 'wp-coder' ), WPCoder::PREFIX );
35 $list_table->display();
36 ?>
37 <input type="hidden" name="page" value="<?php echo esc_attr( $_REQUEST['page'] ); ?>"/>
38 <?php wp_nonce_field( WPCoder::PREFIX . '_nonce', WPCoder::PREFIX . '_list_action' ); ?>
39 </form>
40
41 </div>
42 <?php
43
44