PluginProbe
WP Coder – Insert & Manage Code Snippets / 3.4
WP Coder – Insert & Manage Code Snippets v3.4
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 3.4, at includes/pages/1.list.php

51 lines 1.4 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
20 <div class="wowp-header-wrapper">
21 <?php
22 DashboardInitializer::header(); ?>
23
24 <div class="wowp-header-title">
25 <h2><?php
26 esc_html_e( 'All Codes', 'wpcoder' ); ?></h2>
27 <a href="<?php
28 echo esc_url( $add_url ); ?>" class="button button-primary button-large">
29 + <?php
30 esc_html_e( 'Add New', 'wpcoder' ); ?>
31 </a>
32 <a href="https://wpcoder.pro/snippet/?utm_source=wordpress&utm_medium=admin-menu&utm_campaign=snippets"
33 class="button button-secondary button-large" target="_blank">
34 <?php esc_html_e( 'Find Snippet', 'wpcoder' ); ?>
35 </a>
36 </div>
37
38 </div>
39
40 <form method="post" class="wowp-list">
41 <?php
42 $list_table->search_box( esc_attr__( 'Search', 'wpcoder' ), WPCoder::PREFIX );
43 $list_table->display();
44 ?>
45 <input type="hidden" name="page" value="<?php
46 echo sanitize_text_field( $_REQUEST['page'] ); ?>"/>
47 <?php
48 wp_nonce_field( WPCoder::PREFIX . '_nonce', WPCoder::PREFIX . '_list_action' ); ?>
49 </form>
50 <?php
51