WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/04/2008 10:37:06 AM (13 years ago)
Author:
westi
Message:

Associate lables with form fields. Fixes #6859 props MarcoZ.

File:
1 edited

Legend:

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

    r7498 r7883  
    1414<table class="form-table">
    1515<tr valign="top">
    16 <th scope="row"><?php _e('Blog Title') ?></th>
     16<th scope="row"><label for="blogname"><?php _e('Blog Title') ?></label></th>
    1717<td><input name="blogname" type="text" id="blogname" value="<?php form_option('blogname'); ?>" size="40" /></td>
    1818</tr>
    1919<tr valign="top">
    20 <th scope="row"><?php _e('Tagline') ?></th>
     20<th scope="row"><label for="blogdescription"><?php _e('Tagline') ?></label></th>
    2121<td><input name="blogdescription" type="text" id="blogdescription" style="width: 95%" value="<?php form_option('blogdescription'); ?>" size="45" />
    2222<br />
     
    2424</tr>
    2525<tr valign="top">
    26 <th scope="row"><?php _e('WordPress address (URL)') ?></th>
     26<th scope="row"><label for="siteurl"><?php _e('WordPress address (URL)') ?></label></th>
    2727<td><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>" size="40" class="code<?php if ( defined( 'WP_SITEURL' ) ) : ?> disabled" disabled="disabled"<?php else: ?>"<?php endif; ?> /></td>
    2828</tr>
    2929<tr valign="top">
    30 <th scope="row"><?php _e('Blog address (URL)') ?></th>
     30<th scope="row"><label for="home"><?php _e('Blog address (URL)') ?></label></th>
    3131<td><input name="home" type="text" id="home" value="<?php form_option('home'); ?>" size="40" class="code<?php if ( defined( 'WP_HOME' ) ) : ?> disabled" disabled="disabled"<?php else: ?>"<?php endif; ?> /><br /><?php _e('Enter the address here if you want your blog homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different from the directory</a> you installed WordPress.'); ?></td>
    3232</tr>
    3333<tr valign="top">
    34 <th scope="row"><?php _e('E-mail address') ?> </th>
     34<th scope="row"><label for="admin_email"><?php _e('E-mail address') ?> </label></th>
    3535<td><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" size="40" class="code" />
    3636<br />
     
    3939<tr valign="top">
    4040<th scope="row"><?php _e('Membership') ?></th>
    41 <td> <label for="users_can_register">
     41<td> <fieldset><legend class="hidden"><?php _e('Membership') ?></legend><label for="users_can_register">
    4242<input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked('1', get_option('users_can_register')); ?> />
    4343<?php _e('Anyone can register') ?></label><br />
     
    4646<?php _e('Users must be registered and logged in to comment') ?>
    4747</label>
    48 </td>
     48</fieldset></td>
    4949</tr>
    5050<tr valign="top">
    51 <th scope="row"><?php _e('New User Default Role') ?></th>
    52 <td><label for="default_role">
    53 <select name="default_role" id="default_role"><?php wp_dropdown_roles( get_option('default_role') ); ?></select></label>
     51<th scope="row"><label for="default_role"><?php _e('New User Default Role') ?></label></th>
     52<td>
     53<select name="default_role" id="default_role"><?php wp_dropdown_roles( get_option('default_role') ); ?></select>
    5454</td>
    5555</tr>
    5656<tr>
    57 <th scope="row"><?php _e('Timezone') ?> </th>
     57<th scope="row"><label for="gmt_offset"><?php _e('Timezone') ?> </label></th>
    5858<td>
    59 <select name="gmt_offset">
     59<select name="gmt_offset" id="gmt_offset">
    6060<?php
    6161$current_offset = get_option('gmt_offset');
     
    8888</tr>
    8989<tr>
    90 <th scope="row"><?php _e('Date Format') ?></th>
     90<th scope="row"><label for="date_format"><?php _e('Date Format') ?></label></th>
    9191<td><input name="date_format" type="text" id="date_format" size="30" value="<?php form_option('date_format'); ?>" /><br />
    9292<?php _e('Output:') ?> <strong><?php echo mysql2date(get_option('date_format'), current_time('mysql')); ?></strong></td>
    9393</tr>
    9494<tr>
    95 <th scope="row"><?php _e('Time Format') ?></th>
     95<th scope="row"><label for="time_format"><?php _e('Time Format') ?></label></th>
    9696<td><input name="time_format" type="text" id="time_format" size="30" value="<?php form_option('time_format'); ?>" /><br />
    9797<?php _e('Output:') ?> <strong><?php echo gmdate(get_option('time_format'), current_time('timestamp')); ?></strong><br />
     
    9999</tr>
    100100<tr>
    101 <th scope="row"><?php _e('Week Starts On') ?></th>
     101<th scope="row"><label for="start_of_week"><?php _e('Week Starts On') ?></label></th>
    102102<td><select name="start_of_week" id="start_of_week">
    103103<?php
Note: See TracChangeset for help on using the changeset viewer.