@@ 245-252 (lines=8) @@ | ||
242 | ||
243 | $custom = true; |
|
244 | ||
245 | foreach ( $date_formats as $format ) { |
|
246 | echo "\t<label><input type='radio' name='date_format' value='" . esc_attr( $format ) . "'"; |
|
247 | if ( get_option('date_format') === $format ) { // checked() uses "==" rather than "===" |
|
248 | echo " checked='checked'"; |
|
249 | $custom = false; |
|
250 | } |
|
251 | echo ' /> <span class="date-time-text format-i18n">' . date_i18n( $format ) . '</span><code>' . esc_html( $format ) . "</code></label><br />\n"; |
|
252 | } |
|
253 | ||
254 | echo '<label><input type="radio" name="date_format" id="date_format_custom_radio" value="\c\u\s\t\o\m"'; |
|
255 | checked( $custom ); |
|
@@ 281-288 (lines=8) @@ | ||
278 | ||
279 | $custom = true; |
|
280 | ||
281 | foreach ( $time_formats as $format ) { |
|
282 | echo "\t<label><input type='radio' name='time_format' value='" . esc_attr( $format ) . "'"; |
|
283 | if ( get_option('time_format') === $format ) { // checked() uses "==" rather than "===" |
|
284 | echo " checked='checked'"; |
|
285 | $custom = false; |
|
286 | } |
|
287 | echo ' /> <span class="date-time-text format-i18n">' . date_i18n( $format ) . '</span><code>' . esc_html( $format ) . "</code></label><br />\n"; |
|
288 | } |
|
289 | ||
290 | echo '<label><input type="radio" name="time_format" id="time_format_custom_radio" value="\c\u\s\t\o\m"'; |
|
291 | checked( $custom ); |