public function page_handler() { do_action('wpcf_admin_page_init'); wpcf_admin_page_add_options('uf', __('User Fields', 'wpcf')); //$this->add_screen_options(); // Without this, the Activate/Deactivate link doesn't work properly (why?) wpcf_admin_load_collapsible(); wpcf_admin_page_add_options('tf', __('Term Fields', 'wpcf')); wpcf_add_admin_header(__('Term Field Groups', 'wpcf'), array('page' => WPCF_Page_Edit_Termmeta::PAGE_NAME)); require_once WPCF_INC_ABSPATH . '/fields.php'; // require_once WPCF_INC_ABSPATH . '/fields-list.php'; $list_table = new WPCF_Page_Listing_Termmeta_Table(); $list_table->prepare_items(); if (!$list_table->has_items()) { add_action('wpcf_groups_list_table_after', 'wpcf_admin_promotional_text'); } ?> <form id="cf-filter" method="post"> <!-- For plugins, we also need to ensure that the form posts back to our current page --> <input type="hidden" name="page" value="<?php echo self::PAGE_NAME; ?> "/> <?php $list_table->search_box(__('Search Term Field Groups', 'wpcf'), 'search_id'); $list_table->display(); wp_nonce_field(self::BULK_ACTION_NONCE); ?> </form> <?php do_action('wpcf_groups_list_table_after'); $this->show_term_field_control_box(); wpcf_add_admin_footer(); }
/** * Render the page. * * @return void */ public function page_handler() { do_action('wpcf_admin_page_init'); wpcf_admin_load_collapsible(); //$this->add_screen_options(); wpcf_add_admin_header($this->get_title(), array('page' => self::PAGE_NAME)); $list_table = new WPCF_Page_Control_Termmeta_Table(); $list_table->prepare_items(); if (!$list_table->has_items()) { add_action('wpcf_groups_list_table_after', 'wpcf_admin_promotional_text'); } ?> <!-- form id used in custom-fields-control-form.js --> <form id="wpcf-custom-fields-control-form" method="post"> <!-- For plugins, we also need to ensure that the form posts back to our current page --> <input type="hidden" name="page" value="<?php echo self::PAGE_NAME; ?> "/> <!-- Pass the information about the kind of fields and groups to JS --> <input type="hidden" id="wpcf_admin_field_type" value="wpcf-termmeta" /> <!-- This will be used by some of the bulk action dialogs to pass back some information --> <input type="hidden" name='wpcf-id' id='wpcf_admin_custom_fields_control_type' value='' /> <?php $list_table->search_box(__('Search term fields', 'wpcf'), 'search_id'); $list_table->display(); wp_nonce_field(self::BULK_ACTION_NONCE); ?> </form> <?php wpcf_add_admin_footer(); }
/** * Menu page hook. */ function wpcf_admin_menu_summary_ctt_hook() { do_action('wpcf_admin_page_init'); wp_enqueue_script('wpcf-js', WPCF_RES_RELPATH . '/js/basic.js', array('jquery', 'jquery-ui-sortable', 'jquery-ui-draggable'), WPCF_VERSION); wp_enqueue_style('wpcf-ctt', WPCF_RES_RELPATH . '/css/basic.css', array(), WPCF_VERSION); wpcf_admin_load_collapsible(); require_once WPCF_INC_ABSPATH . '/custom-types.php'; require_once WPCF_INC_ABSPATH . '/custom-taxonomies.php'; require_once WPCF_INC_ABSPATH . '/custom-types-taxonomies-list.php'; }
function wpcf_admin_menu_summary_cpt_ctt_hook() { do_action('wpcf_admin_page_init'); wp_enqueue_style('wpcf-promo-tabs', WPCF_RES_RELPATH . '/css/tabs.css', array(), WPCF_VERSION); wpcf_admin_load_collapsible(); require_once WPCF_INC_ABSPATH . '/custom-types.php'; require_once WPCF_INC_ABSPATH . '/custom-taxonomies.php'; require_once WPCF_INC_ABSPATH . '/custom-types-taxonomies-list.php'; }
function wpcf_admin_menu_summary_cpt_ctt_hook() { do_action('wpcf_admin_page_init'); wpcf_admin_load_collapsible(); require_once WPCF_INC_ABSPATH . '/custom-types.php'; require_once WPCF_INC_ABSPATH . '/custom-taxonomies.php'; require_once WPCF_INC_ABSPATH . '/custom-types-taxonomies-list.php'; }