Make WordPress Core


Ignore:
Timestamp:
02/20/2008 06:50:52 AM (19 years ago)
Author:
ryan
Message:

Change some meta box titles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-general.php

    r6850 r6932  
    5555</tr>
    5656<tr>
    57 <th scope="row"><?php _e('<abbr title="Coordinated Universal Time">UTC</abbr> time is') ?> </th>
    58 <td><code><?php echo gmdate(__('Y-m-d g:i:s a')); ?></code></td>
    59 </tr>
    60 <tr>
    61 <th scope="row"><?php _e('Times in the blog should differ by') ?> </th>
    62 <td><input name="gmt_offset" type="text" id="gmt_offset" size="2" value="<?php form_option('gmt_offset'); ?>" />
    63 <?php _e('hours') ?> (<?php _e('Your timezone offset, for example <code>-6</code> for Central Time.'); ?>)</td>
     57<th scope="row"><?php _e('Your Timezone') ?> </th>
     58<td>
     59<select name="gmt_offset">
     60<?php
     61$current_offset = get_option('gmt_offset');
     62foreach ( range(-12, 12, 0.5) as $offset ) {
     63        if ( 0 < $offset )
     64                $offset_name = '+' . $offset;
     65        elseif ( 0 == $offset )
     66                $offset_name = '';
     67        else
     68                $offset_name = (string) $offset;
     69
     70        $offset_name = str_replace('.5', ':30', $offset_name);
     71
     72        $selected = '';
     73        if ( $current_offset == $offset ) {
     74                $selected = " selected='selected'";
     75                $current_offset_name = $offset_name;
     76        }
     77        echo "<option value=\"$offset\"$selected>" . sprintf(__('UTC %s'), $offset_name) . '</option>';
     78}
     79?>
     80</select>
     81<?php _e('hours') ?><br />
     82<?php printf(__('<abbr title="Coordinated Universal Time">UTC</abbr> time is <code>%s</code>'), gmdate(__('Y-m-d G:i:s'))); ?><br />
     83<?php if ($current_offset) printf(__('UTC %1$s is <code>%2$s</code>'), $current_offset_name, gmdate(__('Y-m-d G:i:s'), current_time('timestamp'))); ?>
     84</td>
    6485</tr>
    6586<tr>
Note: See TracChangeset for help on using the changeset viewer.