Ticket #35064: 35064.3.patch
| File 35064.3.patch, 4.3 KB (added by , 10 years ago) |
|---|
-
src/wp-admin/options-general.php
145 145 <?php echo wp_timezone_choice($tzstring); ?> 146 146 </select> 147 147 148 <p class="description" id="timezone-description"><?php _e( 'Choose a city in the same timezone as you.' ); ?></p> 149 <?php if ($check_zone_info && $tzstring) : ?> 150 151 <p class="timezone-info"> 148 152 <span id="utc-time"><?php 149 /* translators: %s: UTC time */ 150 printf( __( '<abbr title="Coordinated Universal Time">UTC</abbr> time is %s' ), 151 '<code>' . date_i18n( $timezone_format, false, 'gmt' ) . '</code>' 153 /* translators: 1: UTC abbreviation, 2: UTC time */ 154 printf( __( 'Universal time (%1$s) is %2$s.' ), 155 '<abbr>' . __( 'UTC' ) . '</abbr>', 156 '<span class="span-responsive"><code>' . date_i18n( $timezone_format, false, 'gmt' ) . '</code></span>' 152 157 ); 153 158 ?></span> 154 <?php if ( get_option( 'timezone_string') || !empty($current_offset) ) : ?>159 <?php if ( get_option( 'timezone_string' ) || ! empty( $current_offset ) ) : ?> 155 160 <span id="local-time"><?php 156 161 /* translators: %s: local time */ 157 printf( __( 'Local time is %s ' ),158 '< code>' . date_i18n( $timezone_format ) . '</code>'162 printf( __( 'Local time is %s.' ), 163 '<span class="span-responsive"><code>' . date_i18n( $timezone_format ) . '</code></span>' 159 164 ); 160 165 ?></span> 161 166 <?php endif; ?> 162 < p class="description" id="timezone-description"><?php _e( 'Choose a city in the same timezone as you.' ); ?></p>163 <?php if ($check_zone_info && $tzstring) : ?> 164 < br />167 </p> 168 169 <p class="timezone-info"> 165 170 <span> 166 171 <?php 167 172 // Set TZ so localtime works. … … 211 216 ?> 212 217 </span> 213 218 <?php endif; ?> 219 </p> 214 220 </td> 215 221 216 222 </tr> … … 232 238 $custom = true; 233 239 234 240 foreach ( $date_formats as $format ) { 235 echo "\t<label title='" . esc_attr($format) . "'><input type='radio' name='date_format' value='" . esc_attr($format) . "'";241 echo "\t<label><input type='radio' name='date_format' value='" . esc_attr( $format ) . "'"; 236 242 if ( get_option('date_format') === $format ) { // checked() uses "==" rather than "===" 237 243 echo " checked='checked'"; 238 244 $custom = false; 239 245 } 240 echo ' /> ' . date_i18n( $format ) . "</label><br />\n";246 echo ' /> ' . date_i18n( $format ) . ' <code>' . $format . "</code></label><br />\n"; 241 247 } 242 248 243 249 echo ' <label><input type="radio" name="date_format" id="date_format_custom_radio" value="\c\u\s\t\o\m"'; … … 265 271 $custom = true; 266 272 267 273 foreach ( $time_formats as $format ) { 268 echo "\t<label title='" . esc_attr($format) . "'><input type='radio' name='time_format' value='" . esc_attr($format) . "'";274 echo "\t<label><input type='radio' name='time_format' value='" . esc_attr( $format ) . "'"; 269 275 if ( get_option('time_format') === $format ) { // checked() uses "==" rather than "===" 270 276 echo " checked='checked'"; 271 277 $custom = false; 272 278 } 273 echo ' /> ' . date_i18n( $format ) . "</label><br />\n";279 echo ' /> ' . date_i18n( $format ) . ' <code>' . $format . "</code></label><br />\n"; 274 280 } 275 281 276 282 echo ' <label><input type="radio" name="time_format" id="time_format_custom_radio" value="\c\u\s\t\o\m"'; -
src/wp-admin/css/forms.css
654 654 margin-bottom: 0; 655 655 } 656 656 657 .form-table p.timezone-info { 658 margin: 1em 0; 659 } 660 657 661 .form-table td fieldset label { 658 662 margin: 0.25em 0 0.5em !important; 659 663 display: inline-block; … … 892 896 20.0 - Settings 893 897 ------------------------------------------------------------------------------*/ 894 898 895 #utc-time, #local-time {896 padding-left: 25px; 897 font-style: italic;899 #utc-time, 900 #local-time { 901 font-style: normal; 898 902 } 899 903 904 .timezone-info code { 905 white-space: nowrap; 906 } 907 900 908 .defaultavatarpicker .avatar { 901 909 margin: 2px 0; 902 910 vertical-align: middle; … … 1123 1131 1124 1132 .form-table th, 1125 1133 .form-table td, 1126 .label-responsive { 1134 .label-responsive, 1135 .span-responsive { 1127 1136 display: block; 1128 1137 width: auto; 1129 1138 vertical-align: middle; … … 1263 1272 display: block; 1264 1273 } 1265 1274 1266 #utc-time {1267 margin-top: 10px;1268 }1269 1270 1275 #utc-time, 1271 1276 #local-time { 1272 1277 display: block; 1273 1278 float: none; 1274 padding: 0; 1275 line-height: 2; 1279 margin-top: 0.5em; 1276 1280 } 1277 1281 1278 1282 .form-field #domain {