]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-admin/options-writing.php
Wordpress 2.0.2-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 <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> 
19 <tr valign="top">
20 <th scope="row"><?php _e('Formatting:') ?></th>
21 <td>
22 <label for="rich_editing">
23 <input name="rich_editing" type="checkbox" id="rich_editing" value="true" <?php checked('true', get_settings('rich_editing')); ?> />
24 <?php _e('Users should use the visual rich editor by default') ?></label><br />
25 <label for="use_smilies">
26 <input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked('1', get_settings('use_smilies')); ?> />
27 <?php _e('Convert emoticons like <code>:-)</code> and <code>:-P</code> to graphics on display') ?></label><br />
28 <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>
29 </td>
30 </tr>
31 <tr valign="top">
32 <th scope="row"><?php _e('Default post category:') ?></th>
33 <td><select name="default_category" id="default_category">
34 <?php
35 $categories = $wpdb->get_results("SELECT * FROM $wpdb->categories ORDER BY cat_name");
36 foreach ($categories as $category) :
37 if ($category->cat_ID == get_settings('default_category')) $selected = " selected='selected'";
38 else $selected = '';
39 echo "\n\t<option value='$category->cat_ID' $selected>$category->cat_name</option>";
40 endforeach;
41 ?>
42 </select></td>
43 </tr>
44 </table>
45
46 <fieldset class="options">
47 <legend><?php _e('Writing by e-mail') ?></legend>
48 <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>
49
50 <table width="100%" cellspacing="2" cellpadding="5" class="editform">
51 <tr valign="top">
52 <th scope="row"><?php _e('Mail server:') ?></th>
53 <td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" size="40" />
54 <label for="mailserver_port"><?php _e('Port:') ?></label> 
55 <input name="mailserver_port" type="text" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" size="6" />
56 </td>
57 </tr>
58 <tr valign="top">
59 <th width="33%" scope="row"><?php _e('Login name:') ?></th>
60 <td><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" size="40" /></td>
61 </tr>
62 <tr valign="top">
63 <th scope="row"><?php _e('Password:') ?></th>
64 <td>
65 <input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" size="40" />
66 </td>
67 </tr>
68 <tr valign="top">
69 <th scope="row"><?php _e('Default post by mail category:') ?></th>
70 <td><select name="default_email_category" id="default_email_category">
71 <?php
72 //Alreay have $categories from default_category
73 foreach ($categories as $category) :
74 if ($category->cat_ID == get_settings('default_email_category')) $selected = " selected='selected'";
75 else $selected = '';
76 echo "\n\t<option value='$category->cat_ID' $selected>$category->cat_name</option>";
77 endforeach;
78 ?>
79 </select></td>
80 </tr>
81 </table>
82 </fieldset>
83
84 <fieldset class="options">
85 <legend><?php _e('Update Services') ?></legend>
86 <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>
87
88 <textarea name="ping_sites" id="ping_sites" style="width: 98%;" rows="3" cols="50"><?php form_option('ping_sites'); ?></textarea>
89 </fieldset>
90
91 <p class="submit">
92 <input type="hidden" name="action" value="update" /> 
93 <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" /> 
94 <input type="submit" name="Submit" value="<?php _e('Update Options') ?> &raquo;" /> 
95 </p>
96 </form> 
97 </div> 
98
99 <?php include('./admin-footer.php') ?>