Ticket #25461: 25461-date-input-labels.8.patch
| File 25461-date-input-labels.8.patch, 3.5 KB (added by , 12 years ago) |
|---|
-
css/wp-admin.css
1086 1086 .wp-admin select { 1087 1087 padding: 2px; 1088 1088 line-height: 28px; 1089 height: 2 8px;1089 height: 25px; 1090 1090 color: #555; 1091 vertical-align: top; 1091 font-size: 12px; 1092 vertical-align: baseline; 1092 1093 } 1093 1094 1094 1095 .wp-admin .button-cancel { … … 3893 3894 .inline-edit-row fieldset input[name=hh], 3894 3895 .inline-edit-row fieldset input[name=mn] { 3895 3896 font-size: 12px; 3896 width: 2. 1em;3897 width: 2.3em; 3897 3898 } 3898 3899 3899 3900 .inline-edit-row fieldset input[name=aa] { … … 4388 4389 border-style: solid; 4389 4390 } 4390 4391 4392 .timestamp-wrap > span, 4393 .timestamp-wrap > span label { 4394 display: inline-block; 4395 } 4396 4391 4397 .notification-dialog { 4392 4398 position: fixed; 4393 4399 top: 30%; -
includes/template.php
652 652 $cur_hh = gmdate( 'H', $time_adj ); 653 653 $cur_mn = gmdate( 'i', $time_adj ); 654 654 655 $month = "<select " . ( $multi ? '' : 'id="mm" ' ) . "name=\"mm\"$tab_index_attribute>\n";655 $month = '<span><label for="mm">' . __( 'Month' ) . "</label><br /><select " . ( $multi ? '' : 'id="mm" ' ) . "name=\"mm\"$tab_index_attribute>\n"; 656 656 for ( $i = 1; $i < 13; $i = $i +1 ) { 657 657 $monthnum = zeroise($i, 2); 658 658 $month .= "\t\t\t" . '<option value="' . $monthnum . '"'; … … 661 661 /* translators: 1: month number (01, 02, etc.), 2: month abbreviation */ 662 662 $month .= '>' . sprintf( __( '%1$s-%2$s' ), $monthnum, $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) ) ) . "</option>\n"; 663 663 } 664 $month .= '</select> ';664 $month .= '</select></span>'; 665 665 666 $day = '< input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';667 $year = '< input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" />';668 $hour = '< input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';669 $minute = '< input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';666 $day = '<span><label for="jj">' . __( 'Day' ) . '</label><br /><input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" /></span>'; 667 $year = '<span><label for="aa">' . __( 'Year' ) . '</label><br /><input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" /></span>'; 668 $hour = '<span><label for="hh"><abbr title="' . __( 'Hour' ) . '">' . __( 'HH' ) . '</abbr></label><br /><input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" /></span>'; 669 $minute = '<span><label for="mn"><abbr title="' . __( 'Minute' ) . '">' . __( 'MM' ) . '</abbr></label><br /><input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" /></span>'; 670 670 671 671 echo '<div class="timestamp-wrap">'; 672 672 /* translators: 1: month, 2: day, 3: year, 4: hour, 5: minute */