/** * Creates list table for Lead Lists page * */ function inboundrocket_render_tag_list_page() { global $wp_version; if ($this->action == 'delete_list') { $list_id = isset($_GET['tag']) ? $_GET['tag'] : FALSE; $tagger = new IR_Lead_List_Editor($list_id); $tagger->delete_list($list_id); } //Create an instance of our package class... $inboundrocketTagsTable = new IR_Lead_List_Table(); // Process any bulk actions before the contacts are grabbed from the database $inboundrocketTagsTable->process_bulk_action(); //Fetch, prepare, sort, and filter our data... $inboundrocketTagsTable->data = $inboundrocketTagsTable->get_lead_lists(); $inboundrocketTagsTable->prepare_items(); ?> <div class="inboundrocket-contacts"> <?php $this->inboundrocket_header('' . __('Manage Inbound Rocket Lead Lists', 'inboundrocket') . ' <a href="' . wp_nonce_url(admin_url('/admin.php?page=inboundrocket_lead_lists&action=add_list')) . '" class="add-new-h2">' . __('Add New', 'inboundrocket') . '</a>', 'inboundrocket-contacts__header'); ?> <div class=""> <!-- Forms are NOT created automatically, so you need to wrap the table in one to use features like bulk actions --> <form id="" method="GET"> <input type="hidden" name="page" value="<?php echo esc_attr($_REQUEST['page']); ?> " /> <div class="inboundrocket-contacts__table"> <?php $inboundrocketTagsTable->display(); ?> </div> <input type="hidden" name="contact_type" value="<?php echo isset($_GET['contact_type']) ? esc_attr($_GET['contact_type']) : ''; ?> "/> <?php if (isset($_GET['filter_content'])) { ?> <input type="hidden" name="filter_content" value="<?php echo isset($_GET['filter_content']) ? esc_attr($_GET['filter_content']) : ''; ?> "/> <?php } ?> <?php if (isset($_GET['filter_action'])) { ?> <input type="hidden" name="filter_action" value="<?php echo isset($_GET['filter_action']) ? esc_attr($_GET['filter_action']) : ''; ?> "/> <?php } ?> </form> </div> </div> <?php }