Ticket #33646: 33646.4.patch
File 33646.4.patch, 4.0 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/common.css
1565 1565 background-position: bottom left; 1566 1566 } 1567 1567 1568 #screen-options-wrap h5,1568 #screen-options-wrap legend, 1569 1569 #contextual-help-wrap h5 { 1570 margin: 8px 0; 1570 margin: 0; 1571 padding: 8px 0; 1571 1572 font-size: 13px; 1573 font-weight: 600; 1572 1574 } 1573 1575 1574 1576 .metabox-prefs label { … … 1577 1579 line-height: 30px; 1578 1580 } 1579 1581 1582 #number-of-columns { 1583 display: inline-block; 1584 vertical-align: middle; 1585 line-height: 30px; 1586 } 1587 1580 1588 .metabox-prefs label input[type=checkbox] { 1581 1589 margin-top: -4px; 1582 1590 margin-right: 6px; -
src/wp-admin/css/customize-nav-menus.css
349 349 display: none; 350 350 background: #fff; 351 351 border-top: 1px solid #ddd; 352 padding: 4px 15px 0;352 padding: 4px 15px 15px; 353 353 } 354 354 355 355 .wp-customizer .metabox-prefs label { -
src/wp-admin/includes/class-wp-screen.php
903 903 $columns = get_column_headers( $this ); 904 904 $hidden = get_hidden_columns( $this ); 905 905 906 $do_outer_fieldset = ( 907 isset( $wp_meta_boxes[ $this->id ] ) 908 || 909 $this->get_option( 'per_page' ) 910 || 911 ( $columns && empty( $columns['_title'] ) ) 912 ); 913 914 $do_inner_fieldset = ( ! empty( $columns['_title'] ) ); 915 906 916 ?> 907 917 <?php if ( $options['wrap'] ) : ?> 908 918 <div id="screen-options-wrap" class="hidden" tabindex="-1" aria-label="<?php esc_attr_e('Screen Options Tab'); ?>"> 909 919 <?php endif; ?> 910 920 <form id="adv-settings" method="post"> 911 <?php if ( isset( $wp_meta_boxes[ $this->id ] ) || $this->get_option( 'per_page' ) || ( $columns && empty( $columns['_title'] ) ) ) : ?> 912 <h5><?php _e( 'Show on screen' ); ?></h5> 921 <?php if ( $do_outer_fieldset ) : ?> 922 <fieldset> 923 <legend><?php _e( 'Show on screen' ); ?></legend> 913 924 <?php 914 925 endif; 915 926 … … 932 943 echo _x( 'Welcome', 'Welcome panel' ) . "</label>\n"; 933 944 } 934 945 ?> 935 <br class="clear" />936 946 </div> 937 947 <?php endif; 938 948 if ( $columns ) : 939 if ( ! empty( $columns['_title'] ) ) : ?> 940 <h5><?php echo $columns['_title']; ?></h5> 949 if ( $do_inner_fieldset ) : ?> 950 <fieldset> 951 <legend><?php echo $columns['_title']; ?></legend> 941 952 <?php endif; ?> 942 953 <div class="metabox-prefs"> 943 954 <?php … … 958 969 echo "$title</label>\n"; 959 970 } 960 971 ?> 961 <br class="clear" />962 972 </div> 973 <?php if ( $do_inner_fieldset ) : ?> 974 </fieldset> 975 <?php endif; ?> 963 976 <?php endif; 964 977 978 if ( $do_outer_fieldset ) : ?> 979 </fieldset> 980 <?php endif; 965 981 $this->render_screen_layout(); 966 982 $this->render_per_page_options(); 967 983 echo $this->_screen_settings; … … 987 1003 $num = $this->get_option( 'layout_columns', 'max' ); 988 1004 989 1005 ?> 990 < h5 class="screen-layout"><?php _e('Screen Layout'); ?></h5>991 < div class='columns-prefs'><?php992 _e('Number of Columns:');993 for ( $i = 1; $i <= $num; ++$i ):994 1006 <fieldset> 1007 <legend class="screen-layout"><?php _e( 'Screen Layout' ); ?></legend> 1008 <div class='columns-prefs'> 1009 <span id='number-of-columns'><?php _e( 'Number of Columns:' ); ?></span> 1010 <?php for ( $i = 1; $i <= $num; ++$i ): ?> 995 1011 <label class="columns-prefs-<?php echo $i; ?>"> 996 <input type='radio' name='screen_columns' value='<?php echo esc_attr( $i ); ?>' 997 <?php checked( $screen_layout_columns, $i ); ?> /> 1012 <input type="radio" name="screen_columns" aria-describedby="number-of-columns" value="<?php echo esc_attr( $i ); ?>" <?php checked( $screen_layout_columns, $i ); ?> /> 998 1013 <?php echo esc_html( $i ); ?> 999 1014 </label> 1000 <?php 1001 endfor; ?> 1015 <?php endfor; ?> 1002 1016 </div> 1017 </fieldset> 1003 1018 <?php 1004 1019 } 1005 1020