Ticket #13348: ie7.patch
| File ie7.patch, 8.3 KB (added by ocean90, 3 years ago) |
|---|
-
wp-admin/css/nav-menu.dev.css
37 37 background: url("../images/menu-bits.gif") no-repeat scroll 0 -110px; 38 38 } 39 39 40 #wpbody {41 position: relative;42 }43 44 40 /* Menu Container */ 45 41 #menu-management-liquid { 46 float: left;47 min-width: 100%;42 float: right; 43 width: 100%; 48 44 } 49 45 #menu-management { 50 46 position: relative; 51 margin-right: 20px;52 47 margin-top: -3px; 53 width: 100%;54 48 } 55 49 #menu-management .menu-edit { 56 50 margin-bottom: 20px; … … 169 163 } 170 164 171 165 /* Menu Toolbar */ 172 #menu-management #major-publishing-actions #delete-action {173 float: right;174 margin-right: 10px;175 }176 177 166 #menu-name-label { 178 167 margin-top: -2px; 179 168 } 180 169 181 170 #wpbody .open-label { 182 display: inline-block; 171 float: left; 172 text-align:left; 183 173 } 184 174 #wpbody .open-label span { 185 175 padding-right: 10px; … … 223 213 vertical-align: middle; 224 214 } 225 215 226 .button-controls { margin: 10px 0;}216 .button-controls { display: inline-block; width: 100%} 227 217 .show-all, .hide-all { cursor: pointer; } 228 218 .hide-all { display: none; } 229 219 … … 253 243 /* Nav Menu */ 254 244 #menu-container .inside { padding-bottom: 10px; } 255 245 256 .menu {257 padding-top:1em;258 }259 260 246 #menu-to-edit { 261 247 padding: 1em 0; 262 248 } 263 249 264 .menu ul { width: 100%; }265 .menu ul.sub-menu {266 }267 .menu li {268 margin-bottom: 0;269 }270 250 .menu-item-bar { 271 251 clear:both; 272 252 line-height:1.5em; 273 position:relative;274 253 margin-top: 13px; 275 254 } 276 255 .menu-item-handle { … … 493 472 background: #21759B; 494 473 color: #fff; 495 474 } 496 497 498 /* Clearfix */499 #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; }500 #nav-menus-frame, .menu-item-settings, .button-controls, #menu-item-url-wrap, #menu-item-name-wrap { display: block; } -
wp-admin/includes/nav-menu.php
158 158 <span class="description"><?php _e('The description will be displayed in the menu if the current theme supports it.'); ?></span> 159 159 </label> 160 160 </p> 161 162 161 <div class="menu-item-actions description-wide submitbox"> 163 162 <?php if( 'custom' != $item->type ) : ?> 164 163 <p class="link-to-original"><?php … … 191 190 <input class="menu-item-data-parent-id" type="hidden" name="menu-item-parent-id[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->menu_item_parent ); ?>" /> 192 191 <input class="menu-item-data-position" type="hidden" name="menu-item-position[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->menu_order ); ?>" /> 193 192 <input class="menu-item-data-type" type="hidden" name="menu-item-type[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->type ); ?>" /> 193 <div class="clear"></div> 194 194 </div><!-- .menu-item-settings--> 195 195 <ul class="menu-item-transport"></ul> 196 196 <?php … … 431 431 ?> 432 432 <div class="customlinkdiv"> 433 433 434 <input type="hidden" value="custom" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-type]" />435 <p id="menu-item-url-wrap">436 <label class="howto" for="custom-menu-item-url">437 <span><?php _e('URL'); ?></span>438 <input id="custom-menu-item-url" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-url]" type="text" class="code menu-item-textbox" value="http://" />439 </label>440 </p>441 442 <p id="menu-item-name-wrap">443 <label class="howto" for="custom-menu-item-name">444 <span><?php _e('Label'); ?></span>445 <input id="custom-menu-item-name" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-title]" type="text" class="regular-text menu-item-textbox input-with-default-title" title="<?php esc_attr_e('Menu Item'); ?>" />446 </label>447 </p>448 434 <input type="hidden" value="custom" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-type]" /> 435 <p id="menu-item-url-wrap"> 436 <label class="howto" for="custom-menu-item-url"> 437 <span><?php _e('URL'); ?></span> 438 <input id="custom-menu-item-url" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-url]" type="text" class="code menu-item-textbox" value="http://" /> 439 </label> 440 </p> 441 <div class="clear"></div> 442 <p id="menu-item-name-wrap"> 443 <label class="howto" for="custom-menu-item-name"> 444 <span><?php _e('Label'); ?></span> 445 <input id="custom-menu-item-name" name="menu-item[<?php echo $_nav_menu_placeholder; ?>][menu-item-title]" type="text" class="regular-text menu-item-textbox input-with-default-title" title="<?php esc_attr_e('Menu Item'); ?>" /> 446 </label> 447 </p> 448 <div class="clear"></div> 449 449 <p class="button-controls"> 450 450 <span class="list-controls"> 451 451 <a href="#" class="select-all add-home-link"><?php _e('Add Home Link'); ?></a> … … 455 455 <input type="submit" class="button-secondary" value="<?php esc_attr_e('Add to Menu'); ?>" name="add-custom-menu-item" /> 456 456 </span> 457 457 </p> 458 459 458 <div class="clear"></div> 460 459 </div><!-- /.customlinkdiv --> 461 460 <?php … … 625 624 </div> 626 625 </div><!-- /.tabs-panel --> 627 626 628 627 <div class="clear"></div> 629 628 <p class="button-controls"> 630 629 <span class="list-controls"> 631 630 <a href="<?php -
wp-admin/js/nav-menu.dev.js
853 853 854 854 }; 855 855 856 $(document).ready(function(){ wpNavMenu.init(); }); 856 $(document).ready(function(){ 857 if (jQuery.browser.msie && jQuery.browser.version == '7.0') // drag&drop fix for ie7 858 jQuery('.menu li').css('display', 'inline-block'); 859 wpNavMenu.init(); 860 }); 857 861 858 862 })(jQuery); -
wp-admin/nav-menus.php
17 17 18 18 // Permissions Check 19 19 if ( ! current_user_can('switch_themes') ) 20 wp_die( __( 'Cheatin’ uh?' ) );20 wp_die( __( 'Cheatin’ uh?' ) ); 21 21 22 22 // Nav Menu CSS 23 23 wp_admin_css( 'nav-menu' ); … … 53 53 case 'add-menu-item': 54 54 if ( current_user_can( 'switch_themes' ) ) { 55 55 check_admin_referer( 'add-menu_item', 'menu-settings-column-nonce' ); 56 if ( isset( $_REQUEST['menu-item'] ) ) {56 if ( isset( $_REQUEST['menu-item'] ) ) 57 57 wp_save_nav_menu_item( $nav_menu_selected_id, $_REQUEST['menu-item'] ); 58 }59 58 } 60 59 break; 61 60 case 'move-down-menu-item' : … … 479 478 <label class="menu-name-label howto open-label" for="menu-name"> 480 479 <span><?php _e('Menu Name'); ?></span> 481 480 <input name="menu-name" id="menu-name" type="text" class="menu-name regular-text menu-item-textbox input-with-default-title" title="Enter menu name here." value="<?php echo esc_attr( $nav_menu_selected_title ); ?>" /> 482 <br class="clear" />483 481 </label> 484 482 485 483 <div class="publishing-action"> … … 491 489 <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> 492 490 </div><!--END .delete-action--> 493 491 <?php endif; ?> 494 < br class="clear" />492 <div class="clear"></div> 495 493 </div><!--END .major-publishing-actions--> 496 494 </div><!--END #submitpost .submitbox--> 497 495 <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?> … … 520 518 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>'; 521 519 echo '</div>'; 522 520 endif; ?> 523 < br class="clear" />521 <div class="clear"></div> 524 522 </div><!-- /#post-body-content--> 525 523 </div><!--- /#post-body --> 526 524 </form><!--/#update-nav-menu--> … … 529 527 </div><!-- /#menu-management-liquid --> 530 528 </div><!-- /#nav-menus-frame--> 531 529 <?php endif; // if menus supported in current theme ?> 530 <div class="clear"></div> 532 531 </div><!-- /.wrap--> 533 532 534 533
