From 91856764810cf3599b37eea8216204d7362e743f Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Thu, 25 Feb 2010 00:03:42 +0000 Subject: [PATCH] Use standard WP UI markup in menu admin, props ptahdunbar, See #11817 git-svn-id: http://svn.automattic.com/wordpress/trunk@13393 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/css/custom-navigation.dev.css | 78 +---- wp-admin/nav-menus.php | 418 ++++++++++++------------- 2 files changed, 214 insertions(+), 282 deletions(-) diff --git a/wp-admin/css/custom-navigation.dev.css b/wp-admin/css/custom-navigation.dev.css index bc11e7f174..12ae082a6e 100644 --- a/wp-admin/css/custom-navigation.dev.css +++ b/wp-admin/css/custom-navigation.dev.css @@ -8,90 +8,22 @@ * @subpackage Administration */ -.fix{clear: both;height: 1px;margin: -1px 0 0;overflow: hidden;} - .maintitle { margin: 0 0 20px 0!important;} - .logo { vertical-align: middle; margin: 0 10px 0 0; } - -#pages-left { min-width:650px;max-width:1100px;width: 100%; float:left; clear: left; margin-right: -315px; } -#pages-left .inside {margin-top: 20px; margin-right: 315px; } -#nav-container { margin-top: -3px; } - -.sidebar-name { background-color:#AAAAAA; -background-image:url(../images/ed-bg.gif); -border-color:#DFDFDF; -text-shadow:0 1px 0 #FFFFFF;-moz-border-radius-topleft:8px; --moz-border-radius-topright:8px; -background-position:0 0; -background-repeat:repeat-x; -border-style:solid; -border-width:1px; -cursor:pointer; -font-size:13px; } - - -.sidebar-name h3 { -font-size:13px; -height:19px; -margin:0; -overflow:hidden; -padding:5px 12px; -white-space:nowrap; -} - -.sidebar-name-arrow { -background:transparent url(../images/menu-bits.gif) no-repeat scroll left -109px; -float:right; -height:29px; -width:26px; -} - -#menu-right { width: 285px; margin-top: 20px; margin-right: 10px; margin-left: 20px; float:left; clear: right;} h2.heading { margin: 32px 0 10px 0; } - -.widgets-holder-wrap { margin: 0 0 20px 0; } -.widget-holder { -padding:15px 10px; --moz-border-radius-bottomleft:8px; --moz-border-radius-bottomright:8px; -border-style:none solid solid; -border-width:0 1px 1px; -background-color:#F1F1F1; -border-color:#DDDDDD; -} - .checkboxes { float: right; margin: 10px 12px 0 0; } -.addtomenu { -display: block; -float: right; -margin: 10px 0 0 0; -text-shadow:0 -1px 0 rgba(0, 0, 0, 0.3); -background:#21759B url(../images/button-grad.png) repeat-x scroll left top; -border-color:#298CBA !important; -color:#FFFFFF !important; -font-weight:bold; --moz-border-radius-bottomleft:11px; --moz-border-radius-bottomright:11px; --moz-border-radius-topleft:11px; --moz-border-radius-topright:11px; -border-style:solid; -border-width:1px; -cursor:pointer; -font-size:11px !important; -line-height:16px; -padding:2px 8px; -text-decoration:none; -} - .list { zoom: 1; } .list li { margin: 0; } .list dt { display:none; float: left; width: 260px; margin: 0; padding: 0 0 0 5px; line-height: 30px; border-bottom: 1px solid #e3e3e3; } .list dt span { float: left; } .list dt img { cursor: pointer; float: right; margin: 7px 5px 0 0 } -#nav-container { padding: 0 10px 10px 10px; background-color: #fff; border: 1px solid #DFDFDF; border-top: none; -moz-border-radius-bottomleft:8px; -moz-border-radius-bottomright:8px; } + +#menus-container { clear: both; } +#nav-container .inside { padding: 0px 10px 10px; } +#menus-container .submit { padding: 0px; } +#menu-settings-column .inside { padding: 10px; overflow: auto; } #custom-nav ul { width: 100%; } #custom-nav li { margin: 0; } diff --git a/wp-admin/nav-menus.php b/wp-admin/nav-menus.php index 0ea2b692d8..ceb71edc1b 100644 --- a/wp-admin/nav-menus.php +++ b/wp-admin/nav-menus.php @@ -25,11 +25,11 @@ wp_enqueue_script( 'custom-navigation-default-items' ); wp_enqueue_script( 'jquery-autocomplete' ); wp_enqueue_script( 'custom-navigation-php-functions' ); -require_once('admin-header.php'); -require_once(ABSPATH . 'wp-admin/includes/nav-menu.php'); +require_once( 'admin-header.php' ); +require_once( ABSPATH . 'wp-admin/includes/nav-menu.php' ); function wp_reset_nav_menu() { - wp_nav_menu_setup(true); + wp_nav_menu_setup( true ); return true; } @@ -149,231 +149,231 @@ if ( $post_counter > 0 && $menu_selected_id > 0 && ! $updated ) { ?>
- -

+ +

+ +

+ +
- 1 ): ?> + 1 ) : ?> -
- + + +
-
+