Changeset 6026 for trunk/wp-admin/options-general.php
- Timestamp:
- 09/03/2007 11:32:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-general.php
r5825 r6026 10 10 <div class="wrap"> 11 11 <h2><?php _e('General Options') ?></h2> 12 <form method="post" action="options.php"> 12 <form method="post" action="options.php"> 13 13 <?php wp_nonce_field('update-options') ?> 14 14 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /></p> 15 <table class="optiontable"> 16 <tr valign="top"> 17 <th scope="row"><?php _e('Blog title:') ?></th> 18 <td><input name="blogname" type="text" id="blogname" value="<?php form_option('blogname'); ?>" size="40" /></td> 19 </tr> 20 <tr valign="top"> 21 <th scope="row"><?php _e('Tagline:') ?></th> 15 <table class="optiontable"> 16 <tr valign="top"> 17 <th scope="row"><?php _e('Blog title:') ?></th> 18 <td><input name="blogname" type="text" id="blogname" value="<?php form_option('blogname'); ?>" size="40" /></td> 19 </tr> 20 <tr valign="top"> 21 <th scope="row"><?php _e('Tagline:') ?></th> 22 22 <td><input name="blogdescription" type="text" id="blogdescription" style="width: 95%" value="<?php form_option('blogdescription'); ?>" size="45" /> 23 23 <br /> 24 <?php _e('In a few words, explain what this blog is about.') ?></td> 25 </tr> 26 <tr valign="top"> 27 <th scope="row"><?php _e('WordPress address (URL):') ?></th> 28 <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> 29 </tr> 24 <?php _e('In a few words, explain what this blog is about.') ?></td> 25 </tr> 26 <tr valign="top"> 27 <th scope="row"><?php _e('WordPress address (URL):') ?></th> 28 <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> 29 </tr> 30 30 <tr valign="top"> 31 31 <th scope="row"><?php _e('Blog address (URL):') ?></th> 32 32 <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> 33 33 </tr> 34 <tr valign="top"> 35 <th scope="row"><?php _e('E-mail address:') ?> </th> 34 <tr valign="top"> 35 <th scope="row"><?php _e('E-mail address:') ?> </th> 36 36 <td><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" size="40" class="code" /> 37 37 <br /> 38 <?php _e('This address is used only for admin purposes.') ?></td> 38 <?php _e('This address is used only for admin purposes.') ?></td> 39 39 </tr> 40 <tr valign="top"> 41 <th scope="row"><?php _e('Membership:') ?></th> 42 <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')); ?> /> 40 <tr valign="top"> 41 <th scope="row"><?php _e('Membership:') ?></th> 42 <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')); ?> /> 44 44 <?php _e('Anyone can register') ?></label><br /> 45 45 <label for="comment_registration"> 46 <input name="comment_registration" type="checkbox" id="comment_registration" value="1" <?php checked('1', get_option('comment_registration')); ?> /> 46 <input name="comment_registration" type="checkbox" id="comment_registration" value="1" <?php checked('1', get_option('comment_registration')); ?> /> 47 47 <?php _e('Users must be registered and logged in to comment') ?> 48 48 </label> 49 </td> 50 </tr> 51 <tr valign="top"> 52 <th scope="row"><?php _e('New User Default Role:') ?></th> 53 <td><label for="default_role"> 49 </td> 50 </tr> 51 <tr valign="top"> 52 <th scope="row"><?php _e('New User Default Role:') ?></th> 53 <td><label for="default_role"> 54 54 <select name="default_role" id="default_role"><?php wp_dropdown_roles( get_option('default_role') ); ?></select></label> 55 </td> 56 </tr> 57 </table> 58 <fieldset class="options"> 59 <legend><?php _e('Date and Time') ?></legend> 60 <table class="optiontable"> 61 <tr> 62 <th scope="row"><?php _e('<abbr title="Coordinated Universal Time">UTC</abbr> time is:') ?> </th> 63 <td><code><?php echo gmdate(__('Y-m-d g:i:s a')); ?></code></td> 55 </td> 56 </tr> 57 </table> 58 <fieldset class="options"> 59 <legend><?php _e('Date and Time') ?></legend> 60 <table class="optiontable"> 61 <tr> 62 <th scope="row"><?php _e('<abbr title="Coordinated Universal Time">UTC</abbr> time is:') ?> </th> 63 <td><code><?php echo gmdate(__('Y-m-d g:i:s a')); ?></code></td> 64 64 </tr> 65 65 <tr> 66 66 <th scope="row"><?php _e('Times in the blog should differ by:') ?> </th> 67 <td><input name="gmt_offset" type="text" id="gmt_offset" size="2" value="<?php form_option('gmt_offset'); ?>" /> 67 <td><input name="gmt_offset" type="text" id="gmt_offset" size="2" value="<?php form_option('gmt_offset'); ?>" /> 68 68 <?php _e('hours') ?> (<?php _e('Your timezone offset, for example <code>-6</code> for Central Time.'); ?>)</td> 69 69 </tr> … … 77 77 <td><input name="time_format" type="text" id="time_format" size="30" value="<?php form_option('time_format'); ?>" /><br /> 78 78 <?php _e('Output:') ?> <strong><?php echo gmdate(get_option('time_format'), current_time('timestamp')); ?></strong></td> 79 </tr> 79 </tr> 80 80 <tr> 81 81 <th scope="row"> </th> … … 94 94 </tr> 95 95 </table> 96 </fieldset> 96 </fieldset> 97 97 98 98 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /> 99 <input type="hidden" name="action" value="update" /> 100 <input type="hidden" name="page_options" value="<?php if ( ! defined( 'WP_SITEURL' ) ) echo 'siteurl,'; if ( ! defined( 'WP_HOME' ) ) echo 'home,'; ?>blogname,blogdescription,admin_email,users_can_register,gmt_offset,date_format,time_format,start_of_week,comment_registration,default_role" /> 99 <input type="hidden" name="action" value="update" /> 100 <input type="hidden" name="page_options" value="<?php if ( ! defined( 'WP_SITEURL' ) ) echo 'siteurl,'; if ( ! defined( 'WP_HOME' ) ) echo 'home,'; ?>blogname,blogdescription,admin_email,users_can_register,gmt_offset,date_format,time_format,start_of_week,comment_registration,default_role" /> 101 101 </p> 102 102 </form> 103 103 104 </div> 104 </div> 105 105 106 106 <?php include('./admin-footer.php') ?>
Note: See TracChangeset
for help on using the changeset viewer.