]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-admin/options-writing.php
Wordpress 2.0.4-scripts
[autoinstalls/wordpress.git] / wp-admin / options-writing.php
1 <?php
2 require_once('admin.php');
3
4 $title = __('Writing Options');
5 $parent_file = 'options-general.php';
6
7 include('admin-header.php');
8 ?>
9
10 <div class="wrap"> 
11 <h2><?php _e('Writing Options') ?></h2> 
12 <form method="post" action="options.php"> 
13 <?php wp_nonce_field('update-options') ?>
14 <table width="100%" cellspacing="2" cellpadding="5" class="editform"> 
15 <tr valign="top"> 
16 <th width="33%" scope="row"> <?php _e('Size of the post box:') ?></th> 
17 <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; " /> 
18 <?php _e('lines') ?></td> 
19 </tr> 
20 <tr valign="top">
21 <th scope="row"><?php _e('Formatting:') ?></th>
22 <td>
23 <label for="rich_editing">
24 <input name="rich_editing" type="checkbox" id="rich_editing" value="true" <?php checked('true', get_settings('rich_editing')); ?> />
25 <?php _e('Users should use the visual rich editor by default') ?></label><br />
26 <label for="use_smilies">
27 <input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked('1', get_settings('use_smilies')); ?> />
28 <?php _e('Convert emoticons like <code>:-)</code> and <code>:-P</code> to graphics on display') ?></label><br />
29 <label for="use_balanceTags"><input name="use_balanceTags" type="checkbox" id="use_balanceTags" value="1" <?php checked('1', get_settings('use_balanceTags')); ?> /> <?php _e('WordPress should correct invalidly nested XHTML automatically') ?></label>
30 </td>
31 </tr>
32 <tr valign="top">
33 <th scope="row"><?php _e('Default post category:') ?></th>
34 <td><select name="default_category" id="default_category">
35 <?php
36 $categories = $wpdb->get_results("SELECT * FROM $wpdb->categories ORDER BY cat_name");
37 foreach ($categories as $category) :
38 if ($category->cat_ID == get_settings('default_category')) $selected = " selected='selected'";
39 else $selected = '';
40 echo "\n\t<option value='$category->cat_ID' $selected>$category->cat_name</option>";
41 endforeach;
42 ?>
43 </select></td>
44 </tr>
45 </table>
46
47 <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&#8217;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">
72 <?php
73 //Alreay have $categories from default_category
74 foreach ($categories as $category) :
75 if ($category->cat_ID == get_settings('default_email_category')) $selected = " selected='selected'";
76 else $selected = '';
77 echo "\n\t<option value='$category->cat_ID' $selected>$category->cat_name</option>";
78 endforeach;
79 ?>
80 </select></td>
81 </tr>
82 </table>
83 </fieldset>
84
85 <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>
90 </fieldset>
91
92 <p class="submit">
93 <input type="hidden" name="action" value="update" /> 
94 <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,use_balanceTags" /> 
95 <input type="submit" name="Submit" value="<?php _e('Update Options') ?> &raquo;" /> 
96 </p>
97 </form> 
98 </div> 
99
100 <?php include('./admin-footer.php') ?>