Changeset 2760 for trunk/wp-admin/options-writing.php
- Timestamp:
- 08/07/2005 07:23:41 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/options-writing.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-writing.php
r2748 r2760 3 3 4 4 $title = __('Writing Options'); 5 $parent_file = 'options- general.php';5 $parent_file = 'options-personal.php'; 6 6 7 7 include('admin-header.php'); … … 9 9 10 10 <div class="wrap"> 11 <h2><?php _e('Writing Options') ?></h2> 12 <form name="form1" method="post" action="options.php"> 13 <input type="hidden" name="action" value="update" /> 14 <input type="hidden" name="page_options" value="'default_post_edit_rows','use_smilies','rich_editing','ping_sites','mailserver_url', 'mailserver_port','mailserver_login','mailserver_pass','default_category','default_email_category'" /> 15 <table width="100%" cellspacing="2" cellpadding="5" class="editform"> 16 <tr valign="top"> 17 <th width="33%" scope="row"> <?php _e('Size of the post box:') ?></th> 18 <td><input name="default_post_edit_rows" type="text" id="default_post_edit_rows" value="<?php form_option('default_post_edit_rows'); ?>" size="2" style="width: 1.5em; " /> 19 <?php _e('lines') ?></td> 20 </tr> 11 <h2><?php _e('Writing Options') ?></h2> 12 <form method="post" action="options.php"> 13 <table width="100%" cellspacing="2" cellpadding="5" class="editform"> 14 <tr valign="top"> 15 <th width="33%" scope="row"> <?php _e('Size of the post box:') ?></th> 16 <td><input name="default_post_edit_rows" type="text" id="default_post_edit_rows" value="<?php form_option('default_post_edit_rows'); ?>" size="2" style="width: 1.5em; " /> 17 <?php _e('lines') ?></td> 18 </tr> 21 19 <tr valign="top"> 22 20 <th scope="row"><?php _e('Formatting:') ?></th> … … 30 28 </td> 31 29 </tr> 32 <tr valign="top">33 <th scope="row"><?php _e('Default post category:') ?></th>34 <td><select name="default_category" id="default_category">30 <tr valign="top"> 31 <th scope="row"><?php _e('Default post category:') ?></th> 32 <td><select name="default_category" id="default_category"> 35 33 <?php 36 34 $categories = $wpdb->get_results("SELECT * FROM $wpdb->categories ORDER BY cat_name"); … … 38 36 if ($category->cat_ID == get_settings('default_category')) $selected = " selected='selected'"; 39 37 else $selected = ''; 40 echo "\n\t<option value='$category->cat_ID' $selected>$category->cat_name</option>";38 echo "\n\t<option value='$category->cat_ID' $selected>$category->cat_name</option>"; 41 39 endforeach; 42 40 ?> 43 </select></td>44 </tr>41 </select></td> 42 </tr> 45 43 </table> 46 44 47 45 <fieldset class="options"> 48 <legend><?php _e('Writing by e-mail') ?></legend>49 <p><?php printf(__('To post to WordPress by e-mail you must set up a secret e-mail account with POP3 access. Any mail received at this address will be posted, so it’s a good idea to keep this address very secret. Here are three random strings you could use: <code>%s</code>, <code>%s</code>, <code>%s</code>.'), substr(md5(uniqid(microtime())),0,5), substr(md5(uniqid(microtime())),0,5), substr(md5(uniqid(microtime())),0,5)) ?></p>50 51 <table width="100%" cellspacing="2" cellpadding="5" class="editform">52 <tr valign="top">53 <th scope="row"><?php _e('Mail server:') ?></th>54 <td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" size="40" />55 <label for="mailserver_port"><?php _e('Port:') ?></label>56 <input name="mailserver_port" type="text" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" size="6" />57 </td>58 </tr>59 <tr valign="top">60 <th width="33%" scope="row"><?php _e('Login name:') ?></th>61 <td><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" size="40" /></td>62 </tr>63 <tr valign="top">64 <th scope="row"><?php _e('Password:') ?></th>65 <td>66 <input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" size="40" />67 </td>68 </tr>69 <tr valign="top">70 <th scope="row"><?php _e('Default post by mail category:') ?></th>71 <td><select name="default_email_category" id="default_email_category">46 <legend><?php _e('Writing by e-mail') ?></legend> 47 <p><?php printf(__('To post to WordPress by e-mail you must set up a secret e-mail account with POP3 access. Any mail received at this address will be posted, so it’s a good idea to keep this address very secret. Here are three random strings you could use: <code>%s</code>, <code>%s</code>, <code>%s</code>.'), substr(md5(uniqid(microtime())),0,5), substr(md5(uniqid(microtime())),0,5), substr(md5(uniqid(microtime())),0,5)) ?></p> 48 49 <table width="100%" cellspacing="2" cellpadding="5" class="editform"> 50 <tr valign="top"> 51 <th scope="row"><?php _e('Mail server:') ?></th> 52 <td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" size="40" /> 53 <label for="mailserver_port"><?php _e('Port:') ?></label> 54 <input name="mailserver_port" type="text" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" size="6" /> 55 </td> 56 </tr> 57 <tr valign="top"> 58 <th width="33%" scope="row"><?php _e('Login name:') ?></th> 59 <td><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" size="40" /></td> 60 </tr> 61 <tr valign="top"> 62 <th scope="row"><?php _e('Password:') ?></th> 63 <td> 64 <input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" size="40" /> 65 </td> 66 </tr> 67 <tr valign="top"> 68 <th scope="row"><?php _e('Default post by mail category:') ?></th> 69 <td><select name="default_email_category" id="default_email_category"> 72 70 <?php 73 71 //Alreay have $categories from default_category … … 78 76 endforeach; 79 77 ?> 80 </select></td>81 </tr>82 </table>78 </select></td> 79 </tr> 80 </table> 83 81 </fieldset> 84 82 85 83 <fieldset class="options"> 86 <legend><?php _e('Update Services') ?></legend>87 <p><?php _e('When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="http://codex.wordpress.org/Update_Services">Update Services</a> on the Codex. Separate multiple service URIs with line breaks.') ?></p>88 89 <textarea name="ping_sites" id="ping_sites" style="width: 98%;" rows="3" cols="50"><?php form_option('ping_sites'); ?></textarea>84 <legend><?php _e('Update Services') ?></legend> 85 <p><?php _e('When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="http://codex.wordpress.org/Update_Services">Update Services</a> on the Codex. Separate multiple service URIs with line breaks.') ?></p> 86 87 <textarea name="ping_sites" id="ping_sites" style="width: 98%;" rows="3" cols="50"><?php form_option('ping_sites'); ?></textarea> 90 88 </fieldset> 91 89 92 <p class="submit"> 93 <input type="submit" name="Submit" value="<?php _e('Update Options') ?> »" /> 90 <p class="submit"> 91 <input type="hidden" name="action" value="update" /> 92 <input type="hidden" name="page_options" value="'default_post_edit_rows','use_smilies','rich_editing','ping_sites','mailserver_url', 'mailserver_port','mailserver_login','mailserver_pass','default_category','default_email_category'" /> 93 <input type="submit" name="Submit" value="<?php _e('Update Options') ?> »" /> 94 94 </p> 95 95 </form>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)