Changes in trunk/wp-admin/options-general.php [4297:3422]
- File:
-
- 1 edited
-
trunk/wp-admin/options-general.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-general.php
r4297 r3422 11 11 <h2><?php _e('General Options') ?></h2> 12 12 <form method="post" action="options.php"> 13 <?php wp_nonce_field('update-options') ?>14 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /></p>15 13 <table class="optiontable"> 16 14 <tr valign="top"> … … 25 23 </tr> 26 24 <tr valign="top"> 27 <th scope="row"><?php _e('WordPress address (UR L):') ?></th>25 <th scope="row"><?php _e('WordPress address (URI):') ?></th> 28 26 <td><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>" size="40" class="code" /></td> 29 27 </tr> 30 28 <tr valign="top"> 31 <th scope="row"><?php _e('Blog address (UR L):') ?></th>29 <th scope="row"><?php _e('Blog address (URI):') ?></th> 32 30 <td><input name="home" type="text" id="home" value="<?php form_option('home'); ?>" size="40" class="code" /><br /><?php _e('If you want your blog homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different than the directory</a> you installed WordPress in, enter that address here.'); ?></td> 33 31 </tr> … … 41 39 <th scope="row"><?php _e('Membership:') ?></th> 42 40 <td> <label for="users_can_register"> 43 <input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked('1', get_ option('users_can_register')); ?> />41 <input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked('1', get_settings('users_can_register')); ?> /> 44 42 <?php _e('Anyone can register') ?></label><br /> 45 43 <label for="comment_registration"> 46 <input name="comment_registration" type="checkbox" id="comment_registration" value="1" <?php checked('1', get_ option('comment_registration')); ?> />44 <input name="comment_registration" type="checkbox" id="comment_registration" value="1" <?php checked('1', get_settings('comment_registration')); ?> /> 47 45 <?php _e('Users must be registered and logged in to comment') ?> 48 46 </label> … … 52 50 <th scope="row"><?php _e('New User Default Role:') ?></th> 53 51 <td><label for="default_role"> 54 <select name="default_role" id="default_role"><?php wp_dropdown_roles( get_option('default_role') ); ?></select></label> 52 <select name="default_role" id="default_role"><?php 53 foreach($wp_roles->role_names as $role => $name) { 54 $selected = (get_settings('default_role') == $role) ? 'selected="selected"' : ''; 55 echo "<option {$selected} value=\"{$role}\">{$name}</option>"; 56 } 57 ?></select></label> 55 58 </td> 56 59 </tr> … … 66 69 <th scope="row"><?php _e('Times in the weblog should differ by:') ?> </th> 67 70 <td><input name="gmt_offset" type="text" id="gmt_offset" size="2" value="<?php form_option('gmt_offset'); ?>" /> 68 <?php _e('hours') ?> (<?php _e('Your timezone offset, for example <code>-6</code> for Central Time.'); ?>)</td>71 <?php _e('hours') ?> </td> 69 72 </tr> 70 73 <tr> 71 74 <th scope="row"><?php _e('Default date format:') ?></th> 72 75 <td><input name="date_format" type="text" id="date_format" size="30" value="<?php form_option('date_format'); ?>" /><br /> 73 <?php _e('Output:') ?> <strong><?php echo mysql2date(get_ option('date_format'), current_time('mysql')); ?></strong></td>76 <?php _e('Output:') ?> <strong><?php echo mysql2date(get_settings('date_format'), current_time('mysql')); ?></strong></td> 74 77 </tr> 75 78 <tr> 76 79 <th scope="row"><?php _e('Default time format:') ?></th> 77 80 <td><input name="time_format" type="text" id="time_format" size="30" value="<?php form_option('time_format'); ?>" /><br /> 78 <?php _e('Output:') ?> <strong><?php echo gmdate(get_ option('time_format'), current_time('timestamp')); ?></strong></td>81 <?php _e('Output:') ?> <strong><?php echo gmdate(get_settings('time_format'), current_time('timestamp')); ?></strong></td> 79 82 </tr> 80 83 <tr> 81 84 <th scope="row"> </th> 82 <td><?php _e('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date formatting</a>. Click "Update options"to update sample output.') ?> </td>85 <td><?php _e('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date formatting</a>. Save option to update sample output.') ?> </td> 83 86 </tr> 84 87 <tr> … … 87 90 <?php 88 91 for ($day_index = 0; $day_index <= 6; $day_index++) : 89 $selected = (get_option('start_of_week') == $day_index) ? 'selected="selected"' : ''; 90 echo "\n\t<option value='$day_index' $selected>" . $wp_locale->get_weekday($day_index) . '</option>'; 92 if ($day_index == get_settings('start_of_week')) $selected = " selected='selected'"; 93 else $selected = ''; 94 echo "\n\t<option value='$day_index' $selected>$weekday[$day_index]</option>"; 91 95 endfor; 92 96 ?> … … 96 100 </fieldset> 97 101 98 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" />102 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options') ?> »" /> 99 103 <input type="hidden" name="action" value="update" /> 100 104 <input type="hidden" name="page_options" value="blogname,blogdescription,siteurl,admin_email,users_can_register,gmt_offset,date_format,time_format,home,start_of_week,comment_registration,default_role" />
Note: See TracChangeset
for help on using the changeset viewer.