Ticket #23641: 23641.6.diff
File 23641.6.diff, 2.7 KB (added by , 12 years ago) |
---|
-
wp-admin/css/wp-admin.css
7388 7390 padding: 0px; 7389 7391 } 7390 7392 7393 .nav-menus-php .add-new-menu-action { 7394 float: left; 7395 margin: 6px 0 0 6px; 7396 line-height: 15px; 7397 } 7398 7391 7399 .nav-menus-php .meta-sep, 7392 7400 .nav-menus-php .submitdelete, 7393 7401 .nav-menus-php .submitcancel { -
wp-admin/nav-menus.php
453 453 ?> 454 454 <div class="wrap"> 455 455 <?php screen_icon(); ?> 456 <h2><?php _e( 'Menus' ); ?> <a href="<?php echo esc_url( add_query_arg( array( 'action' => 'edit', 'menu' => 0, ), admin_url( 'nav-menus.php' ) ) ); ?>" class="add-new-h2"><?php _e( 'Add New' ); ?></a></h2>456 <h2><?php _e( 'Menus' ); ?></h2> 457 457 <?php 458 458 foreach( $messages as $message ) : 459 459 echo $message . "\n"; 460 460 endforeach; 461 461 ?> 462 <?php if ( 1 < $menu_count ) : ?> 463 <form method="post" action="<?php echo admin_url( 'nav-menus.php' ); ?>"> 464 <input type="hidden" name="action" value="edit" /> 465 <div class="manage-menus"> 466 <label for="menu" class="selected-menu"><?php _e('Select menu to edit'); ?></label> 462 <div class="manage-menus"> 463 <?php if ( $menu_count < 2 ) : ?> 464 <span class="add-edit-menu-action"> 465 <?php printf( __( 'Edit your menu below, or <a href="%s">create a new menu</a>.' ), esc_url( add_query_arg( array( 'action' => 'edit', 'menu' => 0 ), admin_url( 'nav-menus.php' ) ) ) ); ?> 466 </span><!-- /add-edit-menu-action --> 467 <?php else : ?> 468 <form method="post" action="<?php echo admin_url( 'nav-menus.php' ); ?>"> 469 <input type="hidden" name="action" value="edit" /> 470 <label for="menu" class="selected-menu"><?php _e( 'Select a menu to edit:' ); ?></label> 467 471 <select name="menu" id="menu"> 468 472 <?php if ( $add_new_screen ) : ?> 469 473 <option value="0" selected="selected"><?php _e( '-- Select --' ); ?></option> … … 491 495 <?php endforeach; ?> 492 496 </select> 493 497 <span class="submit-btn"><input type="submit" class="button-secondary" value="<?php _e( 'Select' ); ?>"></span> 494 </div> 495 </form> 498 <span class="add-new-menu-action"> 499 <?php printf( __( 'or <a href="%s">create a new menu</a>.' ), esc_url( add_query_arg( array( 'action' => 'edit', 'menu' => 0 ), admin_url( 'nav-menus.php' ) ) ) ); ?> 500 </span><!-- /add-new-menu-action --> 501 </form> 496 502 <?php endif; ?> 503 </div><!-- /manage-menus --> 497 504 <div id="nav-menus-frame"> 498 505 <div id="menu-settings-column" class="metabox-holder<?php if ( isset( $_GET['menu'] ) && '0' == $_GET['menu'] ) { echo ' metabox-holder-disabled'; } ?>"> 499 506