git-svn-id: http://svn.automattic.com/wordpress/trunk@14761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
18b880f93e
commit
2d3d649182
File diff suppressed because one or more lines are too long
|
@ -103,6 +103,7 @@ ul#adminmenu {
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminmenu,
|
#adminmenu,
|
||||||
|
.major-publishing-actions,
|
||||||
.wp-submenu,
|
.wp-submenu,
|
||||||
.wp-submenu li,
|
.wp-submenu li,
|
||||||
.wp-menu-toggle {
|
.wp-menu-toggle {
|
||||||
|
@ -442,3 +443,27 @@ table.ie-fixed {
|
||||||
* html input {
|
* html input {
|
||||||
border: 1px solid #dfdfdf;
|
border: 1px solid #dfdfdf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#nav-menu-header,
|
||||||
|
#nav-menus-frame,
|
||||||
|
#wpbody,
|
||||||
|
.menu li {
|
||||||
|
zoom:100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#update-nav-menu {
|
||||||
|
border:1px solid #ccc;
|
||||||
|
overflow:hidden;
|
||||||
|
}
|
||||||
|
#nav-menu-header,
|
||||||
|
#update-nav-menu #post-body {
|
||||||
|
border:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu li {
|
||||||
|
min-width:100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu li.sortable-placeholder {
|
||||||
|
min-width:400px;
|
||||||
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -18,7 +18,7 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
#wpbody-content #menu-settings-column {
|
#wpbody-content #menu-settings-column {
|
||||||
display:block;
|
display:inline;
|
||||||
width:281px;
|
width:281px;
|
||||||
margin-left: -300px;
|
margin-left: -300px;
|
||||||
clear: both;
|
clear: both;
|
||||||
|
@ -30,6 +30,7 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu-settings-column .inside {
|
#menu-settings-column .inside {
|
||||||
|
clear: both;
|
||||||
padding:0 10px;
|
padding:0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,7 +167,7 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Menu Toolbar */
|
/* Menu Toolbar */
|
||||||
#menu-management #major-publishing-actions #delete-action {
|
#menu-management .major-publishing-actions #delete-action {
|
||||||
float: right;
|
float: right;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
@ -176,7 +177,8 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
#wpbody .open-label {
|
#wpbody .open-label {
|
||||||
display: inline-block;
|
display: block;
|
||||||
|
float:left;
|
||||||
}
|
}
|
||||||
#wpbody .open-label span {
|
#wpbody .open-label span {
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
|
@ -210,7 +212,13 @@ body {
|
||||||
/* Button Primary Actions */
|
/* Button Primary Actions */
|
||||||
#menu-container .submit { margin: 0px 0px 10px; padding: 0px; }
|
#menu-container .submit { margin: 0px 0px 10px; padding: 0px; }
|
||||||
|
|
||||||
.submitdelete, .submitclose { font-size: 11px; }
|
.meta-sep,
|
||||||
|
.submitdelete,
|
||||||
|
.submitclose {
|
||||||
|
display:block;
|
||||||
|
float:left;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
#cancel-save { color: #ff0000; text-decoration: underline; font-size: 11px; margin-left: 20px; margin-top: 5px; }
|
#cancel-save { color: #ff0000; text-decoration: underline; font-size: 11px; margin-left: 20px; margin-top: 5px; }
|
||||||
#cancel-save:hover { background-color: #FF0000; color: #fff; }
|
#cancel-save:hover { background-color: #FF0000; color: #fff; }
|
||||||
|
|
||||||
|
@ -225,7 +233,10 @@ body {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-controls { margin: 10px 0; }
|
.button-controls {
|
||||||
|
clear:both;
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
.show-all, .hide-all { cursor: pointer; }
|
.show-all, .hide-all { cursor: pointer; }
|
||||||
.hide-all { display: none; }
|
.hide-all { display: none; }
|
||||||
|
|
||||||
|
@ -270,6 +281,7 @@ body {
|
||||||
}
|
}
|
||||||
.menu li {
|
.menu li {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
position:relative;
|
||||||
}
|
}
|
||||||
.menu-item-bar {
|
.menu-item-bar {
|
||||||
clear:both;
|
clear:both;
|
||||||
|
@ -391,6 +403,7 @@ body.js .item-order {
|
||||||
/* Menu editing */
|
/* Menu editing */
|
||||||
.menu-item-settings {
|
.menu-item-settings {
|
||||||
background: #F9F9F9;
|
background: #F9F9F9;
|
||||||
|
display:block;
|
||||||
width: 400px;
|
width: 400px;
|
||||||
padding: 10px 0 10px 10px;
|
padding: 10px 0 10px 10px;
|
||||||
border: solid #E6E6E6;
|
border: solid #E6E6E6;
|
||||||
|
@ -401,11 +414,11 @@ body.js .item-order {
|
||||||
-khtml-border-bottom-right-radius: 6px;
|
-khtml-border-bottom-right-radius: 6px;
|
||||||
-khtml-border-bottom-left-radius: 6px;
|
-khtml-border-bottom-left-radius: 6px;
|
||||||
}
|
}
|
||||||
.menu-item-settings.menu-item-edit-active {
|
.menu-item-settings-active {
|
||||||
display:block;
|
display:block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-item-settings.menu-item-edit-inactive {
|
.menu-item-settings-inactive {
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -454,8 +467,8 @@ body.js .item-order {
|
||||||
line-height: 25px;
|
line-height: 25px;
|
||||||
}
|
}
|
||||||
.save-menu-item {
|
.save-menu-item {
|
||||||
padding-left: 10px;
|
|
||||||
float: right;
|
float: right;
|
||||||
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#cancel-save { cursor: pointer; }
|
#cancel-save { cursor: pointer; }
|
||||||
|
@ -467,7 +480,9 @@ body.js .item-order {
|
||||||
|
|
||||||
/* Major/minor publishing actions (classes) */
|
/* Major/minor publishing actions (classes) */
|
||||||
.major-publishing-actions {
|
.major-publishing-actions {
|
||||||
|
clear:both;
|
||||||
padding: 5px 10px;
|
padding: 5px 10px;
|
||||||
|
zoom:1;
|
||||||
}
|
}
|
||||||
.major-publishing-actions .publishing-action {
|
.major-publishing-actions .publishing-action {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
@ -498,5 +513,19 @@ body.js .item-order {
|
||||||
|
|
||||||
|
|
||||||
/* Clearfix */
|
/* Clearfix */
|
||||||
#nav-menus-frame:after, .menu-item-settings:after, .button-controls:after, #menu-item-url-wrap:after, #menu-item-name-wrap:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
|
#menu-item-name-wrap:after,
|
||||||
#nav-menus-frame, .menu-item-settings, .button-controls, #menu-item-url-wrap, #menu-item-name-wrap { display: block; }
|
#menu-item-url-wrap:after,
|
||||||
|
#menu-name-label:after,
|
||||||
|
#menu-settings-column .inside:after,
|
||||||
|
#nav-menus-frame:after,
|
||||||
|
#post-body-content:after,
|
||||||
|
.button-controls:after,
|
||||||
|
.major-publishing-actions:after,
|
||||||
|
.menu-item-settings:after {
|
||||||
|
clear: both;
|
||||||
|
content: ".";
|
||||||
|
display: block;
|
||||||
|
height: 0;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
#nav-menus-frame, .button-controls, #menu-item-url-wrap, #menu-item-name-wrap { display: block; }
|
||||||
|
|
|
@ -62,9 +62,9 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
|
||||||
<li id="menu-item-<?php echo $item_id; ?>" class="menu-item menu-item-depth-<?php echo $depth; ?> menu-item-<?php echo esc_attr( $item->object ); ?>">
|
<li id="menu-item-<?php echo $item_id; ?>" class="menu-item menu-item-depth-<?php echo $depth; ?> menu-item-<?php echo esc_attr( $item->object ); ?>">
|
||||||
<dl class="menu-item-bar <?php
|
<dl class="menu-item-bar <?php
|
||||||
if ( isset($_GET['edit-menu-item']) && $item_id == $_GET['edit-menu-item'] )
|
if ( isset($_GET['edit-menu-item']) && $item_id == $_GET['edit-menu-item'] )
|
||||||
echo 'menu-item-edit-active';
|
echo 'menu-item-edit-active menu-item-bar-active';
|
||||||
else
|
else
|
||||||
echo 'menu-item-edit-inactive';
|
echo 'menu-item-edit-inactive menu-item-bar-inactive';
|
||||||
?>">
|
?>">
|
||||||
<dt class="menu-item-handle">
|
<dt class="menu-item-handle">
|
||||||
<span class="item-title"><?php echo esc_html( $item->title ); ?></span>
|
<span class="item-title"><?php echo esc_html( $item->title ); ?></span>
|
||||||
|
@ -106,9 +106,9 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
|
||||||
|
|
||||||
<div class="menu-item-settings <?php
|
<div class="menu-item-settings <?php
|
||||||
if ( isset($_GET['edit-menu-item']) && $item_id == $_GET['edit-menu-item'] )
|
if ( isset($_GET['edit-menu-item']) && $item_id == $_GET['edit-menu-item'] )
|
||||||
echo 'menu-item-edit-active';
|
echo 'menu-item-edit-active menu-item-settings-active';
|
||||||
else
|
else
|
||||||
echo 'menu-item-edit-inactive';
|
echo 'menu-item-edit-inactive menu-item-settings-inactive';
|
||||||
?>" id="menu-item-settings-<?php echo $item_id; ?>">
|
?>" id="menu-item-settings-<?php echo $item_id; ?>">
|
||||||
<?php if( 'custom' == $item->type ) : ?>
|
<?php if( 'custom' == $item->type ) : ?>
|
||||||
<p class="field-url description description-wide">
|
<p class="field-url description description-wide">
|
||||||
|
@ -178,7 +178,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
|
||||||
remove_query_arg($removed_args, admin_url( 'nav-menus.php' ) )
|
remove_query_arg($removed_args, admin_url( 'nav-menus.php' ) )
|
||||||
),
|
),
|
||||||
'delete-menu_item_' . $item_id
|
'delete-menu_item_' . $item_id
|
||||||
); ?>"><?php _e('Remove'); ?></a> | <a class="item-close submitclose" id="close-<?php echo $item_id; ?>" href="<?php echo admin_url( 'nav-menus.php' ); ?>"><?php _e('Close'); ?></a>
|
); ?>"><?php _e('Remove'); ?></a> <span class="meta-sep"> | </span> <a class="item-close submitclose" id="close-<?php echo $item_id; ?>" href="<?php echo admin_url( 'nav-menus.php' ); ?>"><?php _e('Close'); ?></a>
|
||||||
<input class="button-primary save-menu-item" name="save_menu_item" type="submit" value="<?php esc_attr_e('Save Menu Item'); ?>" />
|
<input class="button-primary save-menu-item" name="save_menu_item" type="submit" value="<?php esc_attr_e('Save Menu Item'); ?>" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -490,7 +490,6 @@ function wp_nav_menu_item_link_meta_box() {
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="clear"></div>
|
|
||||||
</div><!-- /.customlinkdiv -->
|
</div><!-- /.customlinkdiv -->
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
@ -655,7 +654,6 @@ function wp_nav_menu_item_post_type_meta_box( $object, $post_type ) {
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<br class="clear" />
|
|
||||||
</div><!-- /.posttypediv -->
|
</div><!-- /.posttypediv -->
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
@ -823,7 +821,6 @@ function wp_nav_menu_item_taxonomy_meta_box( $object, $taxonomy ) {
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<br class="clear" />
|
|
||||||
</div><!-- /.taxonomydiv -->
|
</div><!-- /.taxonomydiv -->
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
|
@ -230,6 +230,10 @@ var wpNavMenu;
|
||||||
}
|
}
|
||||||
// Update the item data.
|
// Update the item data.
|
||||||
ui.item.updateParentMenuItemDBId();
|
ui.item.updateParentMenuItemDBId();
|
||||||
|
|
||||||
|
// address sortable's incorrectly-calculated top in opera
|
||||||
|
ui.item[0].style.top = 0;
|
||||||
|
|
||||||
},
|
},
|
||||||
change: function(e, ui) {
|
change: function(e, ui) {
|
||||||
// Make sure the placeholder is inside the menu.
|
// Make sure the placeholder is inside the menu.
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -496,7 +496,6 @@ require_once( 'admin-header.php' );
|
||||||
<label class="menu-name-label howto open-label" for="menu-name">
|
<label class="menu-name-label howto open-label" for="menu-name">
|
||||||
<span><?php _e('Menu Name'); ?></span>
|
<span><?php _e('Menu Name'); ?></span>
|
||||||
<input name="menu-name" id="menu-name" type="text" class="menu-name regular-text menu-item-textbox input-with-default-title" title="<?php esc_attr_e('Enter menu name here.'); ?>" value="<?php echo esc_attr( $nav_menu_selected_title ); ?>" />
|
<input name="menu-name" id="menu-name" type="text" class="menu-name regular-text menu-item-textbox input-with-default-title" title="<?php esc_attr_e('Enter menu name here.'); ?>" value="<?php echo esc_attr( $nav_menu_selected_title ); ?>" />
|
||||||
<br class="clear" />
|
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div class="publishing-action">
|
<div class="publishing-action">
|
||||||
|
@ -508,7 +507,6 @@ require_once( 'admin-header.php' );
|
||||||
<a class="submitdelete deletion menu-delete" href="<?php echo esc_url( wp_nonce_url( admin_url('nav-menus.php?action=delete&menu=' . $nav_menu_selected_id), 'delete-nav_menu-' . $nav_menu_selected_id ) ); ?>"><?php _e('Delete Menu'); ?></a>
|
<a class="submitdelete deletion menu-delete" href="<?php echo esc_url( wp_nonce_url( admin_url('nav-menus.php?action=delete&menu=' . $nav_menu_selected_id), 'delete-nav_menu-' . $nav_menu_selected_id ) ); ?>"><?php _e('Delete Menu'); ?></a>
|
||||||
</div><!--END .delete-action-->
|
</div><!--END .delete-action-->
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<br class="clear" />
|
|
||||||
</div><!--END .major-publishing-actions-->
|
</div><!--END .major-publishing-actions-->
|
||||||
</div><!--END #submitpost .submitbox-->
|
</div><!--END #submitpost .submitbox-->
|
||||||
<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
|
<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
|
||||||
|
@ -537,7 +535,6 @@ require_once( 'admin-header.php' );
|
||||||
echo '<p>' . sprintf( __('For more information on this feature, see the <a href="%s">Custom Menus</a> article in the Codex.'), _x('http://codex.wordpress.org/Custom_Menus', 'Custom Menus codex page') ) . '</p>';
|
echo '<p>' . sprintf( __('For more information on this feature, see the <a href="%s">Custom Menus</a> article in the Codex.'), _x('http://codex.wordpress.org/Custom_Menus', 'Custom Menus codex page') ) . '</p>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
endif; ?>
|
endif; ?>
|
||||||
<br class="clear" />
|
|
||||||
</div><!-- /#post-body-content-->
|
</div><!-- /#post-body-content-->
|
||||||
</div><!--- /#post-body -->
|
</div><!--- /#post-body -->
|
||||||
</form><!--/#update-nav-menu-->
|
</form><!--/#update-nav-menu-->
|
||||||
|
|
Loading…
Reference in New Issue