Ticket #35064: 35064.2.patch
File 35064.2.patch, 5.0 KB (added by , 9 years ago) |
---|
-
src/wp-admin/css/forms.css
655 655 margin-bottom: 0; 656 656 } 657 657 658 .form-table p.timezone-info { 659 margin: 1em 0; 660 } 661 658 662 .form-table td fieldset label { 659 663 margin: 0.25em 0 0.5em !important; 660 664 display: inline-block; … … 893 897 20.0 - Settings 894 898 ------------------------------------------------------------------------------*/ 895 899 896 #utc-time, #local-time {897 padding-left: 25px; 900 #utc-time, 901 #local-time { 898 902 font-style: italic; 899 903 } 900 904 905 .timezone-info code { 906 white-space: nowrap; 907 } 908 901 909 .defaultavatarpicker .avatar { 902 910 margin: 2px 0; 903 911 vertical-align: middle; … … 1128 1136 1129 1137 .form-table th, 1130 1138 .form-table td, 1131 .label-responsive { 1139 .label-responsive, 1140 .span-responsive { 1132 1141 display: block; 1133 1142 width: auto; 1134 1143 vertical-align: middle; … … 1268 1277 display: block; 1269 1278 } 1270 1279 1271 #utc-time {1272 margin-top: 10px;1273 }1274 1275 1280 #utc-time, 1276 1281 #local-time { 1277 1282 display: block; 1278 1283 float: none; 1279 padding: 0; 1280 line-height: 2; 1284 margin-top: 0.5em; 1281 1285 } 1282 1286 1283 1287 .form-field #domain { -
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 162 printf( __( 'Local time is %s' ), 158 '< code>' . date_i18n( $timezone_format ) . '</code>'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. … … 192 197 echo ' '; 193 198 $message = $tr['isdst'] ? 194 199 /* translators: %s: date and time */ 195 __( 'Daylight saving time begins on: %s .') :200 __( 'Daylight saving time begins on: %s') : 196 201 /* translators: %s: date and time */ 197 __( 'Standard time begins on: %s .' );202 __( 'Standard time begins on: %s' ); 198 203 // Add the difference between the current offset and the new offset to ts to get the correct transition time from date_i18n(). 199 204 printf( $message, 200 '< code>' . date_i18n(205 '<span class="span-responsive"><code>' . date_i18n( 201 206 __( 'F j, Y' ) . ' ' . __( 'g:i a' ), 202 207 $tr['ts'] + ( $tz_offset - $tr['offset'] ) 203 ) . '</code> '208 ) . '</code></span>' 204 209 ); 205 210 } else { 206 211 _e( 'This timezone does not observe daylight saving time.' ); … … 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"';