Ticket #38023: 38023.diff
| File 38023.diff, 3.5 KB (added by , 9 years ago) |
|---|
-
src/wp-admin/css/nav-menus.css
109 109 margin-top: 2em; 110 110 } 111 111 112 .menu-settings dl{112 .menu-settings fieldset { 113 113 margin: 0 0 10px; 114 114 overflow: hidden; 115 padding-left: 18%;115 padding-left: 20%; 116 116 } 117 117 118 .menu-settings dd { 118 .menu-settings fieldset:last-of-type { 119 margin-bottom: 0; 120 } 121 122 .menu-settings div { 119 123 float: left; 120 124 margin: 0; 121 125 width: 100%; 122 126 } 123 127 124 .menu-settings dt{125 float: left;126 clear: both;127 width: 21.951%;128 padding: 3px 0 0;129 margin-left: -21.951%;128 .menu-settings legend { 129 float: left; 130 clear: both; 131 width: 25%; 132 padding: 3px 0 0; 133 margin-left: -25%; 130 134 } 131 135 132 136 .menu-settings label { … … 869 873 width: 25px; 870 874 } 871 875 872 .menu-settings dl{876 .menu-settings fieldset { 873 877 padding-left: 0; 874 878 } 875 879 876 .menu-settings dd {880 .menu-settings legend { 877 881 float: none; 878 882 width: 100%; 879 883 margin-bottom: 15px; 884 margin-left: 0; 880 885 } 881 886 882 .menu-settings d t{887 .menu-settings div { 883 888 float: none; 884 889 width: auto; 885 890 margin-left: 0; -
src/wp-admin/nav-menus.php
798 798 $auto_add = false; 799 799 } ?> 800 800 801 <dl class="auto-add-pages"> 802 <dt class="howto"><?php _e( 'Auto add pages' ); ?></dt> 803 <dd class="checkbox-input"><input type="checkbox"<?php checked( $auto_add ); ?> name="auto-add-pages" id="auto-add-pages" value="1" /> <label for="auto-add-pages"><?php printf( __('Automatically add new top-level pages to this menu' ), esc_url( admin_url( 'edit.php?post_type=page' ) ) ); ?></label></dd> 804 </dl> 801 <fieldset class="auto-add-pages"> 802 <legend class="howto"><?php _e( 'Auto add pages' ); ?></legend> 803 <div class="checkbox-input"> 804 <input type="checkbox"<?php checked( $auto_add ); ?> name="auto-add-pages" id="auto-add-pages" value="1" /> <label for="auto-add-pages"><?php printf( __('Automatically add new top-level pages to this menu' ), esc_url( admin_url( 'edit.php?post_type=page' ) ) ); ?></label> 805 </div> 806 </fieldset> 805 807 806 808 <?php if ( current_theme_supports( 'menus' ) ) : ?> 807 809 808 < dlclass="menu-theme-locations">809 < dt class="howto"><?php _e( 'Theme locations' ); ?></dt>810 <fieldset class="menu-theme-locations"> 811 <legend class="howto"><?php _e( 'Theme locations' ); ?></legend> 810 812 <?php foreach ( $locations as $location => $description ) : ?> 811 <d dclass="checkbox-input">813 <div class="checkbox-input"> 812 814 <input type="checkbox"<?php checked( isset( $menu_locations[ $location ] ) && $menu_locations[ $location ] == $nav_menu_selected_id ); ?> name="menu-locations[<?php echo esc_attr( $location ); ?>]" id="locations-<?php echo esc_attr( $location ); ?>" value="<?php echo esc_attr( $nav_menu_selected_id ); ?>" /> 813 815 <label for="locations-<?php echo esc_attr( $location ); ?>"><?php echo $description; ?></label> 814 816 <?php if ( ! empty( $menu_locations[ $location ] ) && $menu_locations[ $location ] != $nav_menu_selected_id ) : ?> … … 819 821 ); 820 822 ?></span> 821 823 <?php endif; ?> 822 </d d>824 </div> 823 825 <?php endforeach; ?> 824 </ dl>826 </fieldset> 825 827 826 828 <?php endif; ?> 827 829