| 534 | <?php |
| 535 | else: // if ( count( $nav_menus ) < MENUS_AS_TABS ): |
| 536 | ?> |
| 537 | <div class="nav-select-wrapper"> |
| 538 | <div class="nav-select"> |
| 539 | <form id="select-menu" action="<?php echo admin_url( 'nav-menus.php' ); ?>" method="get" enctype="multipart/form-data"> |
| 540 | <input type="hidden" name="action" value="edit" /> |
| 541 | <strong><label for="select-nav-menu-edit"><?php esc_html_e( 'Select Menu:' ); ?></label></strong> |
| 542 | <select class="select-nav-menu-edit" name="menu"> |
| 543 | <?php foreach( (array) $nav_menus as $_nav_menu ) : ?> |
| 544 | <option value="<?php echo esc_attr($_nav_menu->term_id) ?>" <?php selected($nav_menu_selected_id, $_nav_menu->term_id); ?>> |
| 545 | <?php echo esc_html( $_nav_menu->truncated_name ); ?> |
| 546 | </option> |
| 547 | <?php endforeach; ?> |
| 548 | <option value="0" <?php echo ( $nav_menu_selected_id == 0 ? 'selected' : '' ); ?>><?php esc_html_e( 'Add menu' ); ?></option> |
| 549 | </select> |
| 550 | <?php submit_button( __( 'Select Menu' ), 'button-secondary menu-select', 'action', false ); ?> |
| 551 | </form> |
| 552 | </div> |
| 553 | </div> |
| 554 | <?php |
| 555 | endif; // if ( count( $nav_menus ) < MENUS_AS_TABS ): |
| 556 | ?> |