| [ Index ] |
WordPress Source Cross Reference |
[Summary view] [Print] [Text view]
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 <tr valign="top"> 46 <th scope="row"><?php _e('Default bookmark category:') ?></th> 47 <td><select name="default_link_category" id="default_link_category"> 48 <?php 49 foreach ($categories as $category) : 50 if ($category->cat_ID == get_settings('default_link_category')) $selected = " selected='selected'"; 51 else $selected = ''; 52 echo "\n\t<option value='$category->cat_ID' $selected>$category->cat_name</option>"; 53 endforeach; 54 ?> 55 </select></td> 56 </tr> 57 </table> 58 59 <fieldset class="options"> 60 <legend><?php _e('Writing by e-mail') ?></legend> 61 <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> 62 63 <table width="100%" cellspacing="2" cellpadding="5" class="editform"> 64 <tr valign="top"> 65 <th scope="row"><?php _e('Mail server:') ?></th> 66 <td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php form_option('mailserver_url'); ?>" size="40" /> 67 <label for="mailserver_port"><?php _e('Port:') ?></label> 68 <input name="mailserver_port" type="text" id="mailserver_port" value="<?php form_option('mailserver_port'); ?>" size="6" /> 69 </td> 70 </tr> 71 <tr valign="top"> 72 <th width="33%" scope="row"><?php _e('Login name:') ?></th> 73 <td><input name="mailserver_login" type="text" id="mailserver_login" value="<?php form_option('mailserver_login'); ?>" size="40" /></td> 74 </tr> 75 <tr valign="top"> 76 <th scope="row"><?php _e('Password:') ?></th> 77 <td> 78 <input name="mailserver_pass" type="text" id="mailserver_pass" value="<?php form_option('mailserver_pass'); ?>" size="40" /> 79 </td> 80 </tr> 81 <tr valign="top"> 82 <th scope="row"><?php _e('Default post by mail category:') ?></th> 83 <td><select name="default_email_category" id="default_email_category"> 84 <?php 85 //Alreay have $categories from default_category 86 foreach ($categories as $category) : 87 if ($category->cat_ID == get_settings('default_email_category')) $selected = " selected='selected'"; 88 else $selected = ''; 89 echo "\n\t<option value='$category->cat_ID' $selected>$category->cat_name</option>"; 90 endforeach; 91 ?> 92 </select></td> 93 </tr> 94 </table> 95 </fieldset> 96 97 <fieldset class="options"> 98 <legend><?php _e('Update Services') ?></legend> 99 <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> 100 101 <textarea name="ping_sites" id="ping_sites" style="width: 98%;" rows="3" cols="50"><?php form_option('ping_sites'); ?></textarea> 102 </fieldset> 103 104 <p class="submit"> 105 <input type="hidden" name="action" value="update" /> 106 <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,default_link_category" /> 107 <input type="submit" name="Submit" value="<?php _e('Update Options »') ?>" /> 108 </p> 109 </form> 110 </div> 111 112 <?php include ('./admin-footer.php') ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sat Jul 15 11:57:04 2006 | Courtesy of Taragana |