*/ require_once( ABSPATH . 'wp-admin/includes/nav-menu.php' ); $admin_interface = new md_admin_interface(); //$admin_interface->menu_container_print(); $admin_interface->menu_container_print_custom(); // Load all the nav menu interface functions function do_accordion_sections_own( $screen, $context, $object ) { include('include/Popup_Add_Menu_Content.php' ); } /** * Displays a metabox for the custom links menu item. * * @since 3.0.0 * * @global int $_nav_menu_placeholder * @global int|string $nav_menu_selected_id */ function wp_nav_menu_item_link_meta_box_own_md() { global $_nav_menu_placeholder, $nav_menu_selected_id; $_nav_menu_placeholder = 0 > $_nav_menu_placeholder ? $_nav_menu_placeholder - 1 : -1; ?>
' . __( 'No items.' ) . '
'; return; } $get_posts_for_count = new WP_Query($args); $total_page_count = $get_posts_for_count->found_posts; $db_fields = false; if ( is_post_type_hierarchical( $post_type_name ) ) { $db_fields = array( 'parent' => 'post_parent', 'id' => 'ID' ); } //$walker = new Walker_Nav_Menu_Checklist( $db_fields ); $walker = new Walker_Nav_Menu_Checklist_md( $db_fields ); $current_tab = 'all'; if ( isset( $_REQUEST[$post_type_name . '-tab'] ) && in_array( $_REQUEST[$post_type_name . '-tab'], array('all', 'search') ) ) { $current_tab = $_REQUEST[$post_type_name . '-tab']; } $removed_args = array( 'action', 'customlink-tab', 'edit-menu-item', 'menu-item', 'page-tab', '_wpnonce', ); ?>0) { ?>
' . __( 'No items.' ) . '
'; return; } $num_pages = ceil( wp_count_terms( $taxonomy_name , array_merge( $args, array('number' => '', 'offset' => '') ) ) / $per_page ); $total_page_count= wp_count_terms( $taxonomy_name , array_merge( $args, array('number' => '', 'offset' => '') ) ); $post_type_name = $taxonomy_name; $db_fields = false; if ( is_taxonomy_hierarchical( $taxonomy_name ) ) { $db_fields = array( 'parent' => 'parent', 'id' => 'term_id' ); } $walker = new Walker_Nav_Menu_Checklist_md( $db_fields ); $removed_args = array( 'action', 'customlink-tab', 'edit-menu-item', 'menu-item', 'page-tab', '_wpnonce', ); ?>