26 'id' => 'options-press', |
26 'id' => 'options-press', |
27 'title' => __('Press This'), |
27 'title' => __('Press This'), |
28 'content' => '<p>' . __('Press This is a bookmarklet that makes it easy to blog about something you come across on the web. You can use it to just grab a link, or to post an excerpt. Press This will even allow you to choose from images included on the page and use them in your post. Just drag the Press This link on this screen to your bookmarks bar in your browser, and you’ll be on your way to easier content creation. Clicking on it while on another website opens a popup window with all these options.') . '</p>', |
28 'content' => '<p>' . __('Press This is a bookmarklet that makes it easy to blog about something you come across on the web. You can use it to just grab a link, or to post an excerpt. Press This will even allow you to choose from images included on the page and use them in your post. Just drag the Press This link on this screen to your bookmarks bar in your browser, and you’ll be on your way to easier content creation. Clicking on it while on another website opens a popup window with all these options.') . '</p>', |
29 ) ); |
29 ) ); |
30 |
30 |
31 if ( is_multisite() ) { |
31 if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { |
32 $post_email_help = '<p>' . __('Due to security issues, you cannot use Post By Email on Multisite Installs.') . '</p>'; |
32 get_current_screen()->add_help_tab( array( |
33 } else { |
33 'id' => 'options-postemail', |
34 $post_email_help = '<p>' . __('Post via email settings allow you to send your WordPress install an email with the content of your post. You must set up a secret e-mail account with POP3 access to use this, and any mail received at this address will be posted, so it’s a good idea to keep this address very secret.') . '</p>'; |
34 'title' => __( 'Post Via Email' ), |
|
35 'content' => '<p>' . __( 'Post via email settings allow you to send your WordPress install an email with the content of your post. You must set up a secret e-mail account with POP3 access to use this, and any mail received at this address will be posted, so it’s a good idea to keep this address very secret.' ) . '</p>', |
|
36 ) ); |
35 } |
37 } |
36 |
38 |
37 get_current_screen()->add_help_tab( array( |
39 if ( apply_filters( 'enable_update_services_configuration', true ) ) { |
38 'id' => 'options-postemail', |
40 get_current_screen()->add_help_tab( array( |
39 'title' => __('Post Via Email'), |
41 'id' => 'options-services', |
40 'content' => $post_email_help, |
42 'title' => __( 'Update Services' ), |
41 ) ); |
43 'content' => '<p>' . __( 'If desired, WordPress will automatically alert various services of your new posts.' ) . '</p>', |
42 |
44 ) ); |
43 get_current_screen()->add_help_tab( array( |
45 } |
44 'id' => 'options-remote', |
|
45 'title' => __('Remote Publishing'), |
|
46 'content' => '<p>' . __('Remote Publishing allows you to use an external editor (like the iOS or Android app) to write your posts.') . '</p>', |
|
47 ) ); |
|
48 |
|
49 get_current_screen()->add_help_tab( array( |
|
50 'id' => 'options-services', |
|
51 'title' => __('Update Services'), |
|
52 'content' => '<p>' . __('If desired, WordPress will automatically alert various services of your new posts.') . '</p>', |
|
53 ) ); |
|
54 |
46 |
55 get_current_screen()->set_help_sidebar( |
47 get_current_screen()->set_help_sidebar( |
56 '<p><strong>' . __('For more information:') . '</strong></p>' . |
48 '<p><strong>' . __('For more information:') . '</strong></p>' . |
57 '<p>' . __('<a href="http://codex.wordpress.org/Settings_Writing_Screen" target="_blank">Documentation on Writing Settings</a>') . '</p>' . |
49 '<p>' . __('<a href="http://codex.wordpress.org/Settings_Writing_Screen" target="_blank">Documentation on Writing Settings</a>') . '</p>' . |
58 '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' |
50 '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>' |
67 |
59 |
68 <form method="post" action="options.php"> |
60 <form method="post" action="options.php"> |
69 <?php settings_fields('writing'); ?> |
61 <?php settings_fields('writing'); ?> |
70 |
62 |
71 <table class="form-table"> |
63 <table class="form-table"> |
72 <tr valign="top"> |
|
73 <th scope="row"><label for="default_post_edit_rows"> <?php _e('Size of the post box') ?></label></th> |
|
74 <td><input name="default_post_edit_rows" type="text" id="default_post_edit_rows" value="<?php form_option('default_post_edit_rows'); ?>" class="small-text" /> |
|
75 <?php _e('lines') ?></td> |
|
76 </tr> |
|
77 <tr valign="top"> |
64 <tr valign="top"> |
78 <th scope="row"><?php _e('Formatting') ?></th> |
65 <th scope="row"><?php _e('Formatting') ?></th> |
79 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Formatting') ?></span></legend> |
66 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Formatting') ?></span></legend> |
80 <label for="use_smilies"> |
67 <label for="use_smilies"> |
81 <input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked('1', get_option('use_smilies')); ?> /> |
68 <input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked('1', get_option('use_smilies')); ?> /> |
105 <option<?php selected( get_option('default_post_format'), $format ); ?> value="<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></option> |
92 <option<?php selected( get_option('default_post_format'), $format ); ?> value="<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></option> |
106 <?php endforeach; ?> |
93 <?php endforeach; ?> |
107 </select> |
94 </select> |
108 </td> |
95 </td> |
109 </tr> |
96 </tr> |
110 <?php endif; endif; ?> |
97 <?php endif; endif; |
|
98 |
|
99 if ( get_option( 'link_manager_enabled' ) ) : |
|
100 ?> |
111 <tr valign="top"> |
101 <tr valign="top"> |
112 <th scope="row"><label for="default_link_category"><?php _e('Default Link Category') ?></label></th> |
102 <th scope="row"><label for="default_link_category"><?php _e('Default Link Category') ?></label></th> |
113 <td> |
103 <td> |
114 <?php |
104 <?php |
115 wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_link_category', 'orderby' => 'name', 'selected' => get_option('default_link_category'), 'hierarchical' => true, 'taxonomy' => 'link_category')); |
105 wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_link_category', 'orderby' => 'name', 'selected' => get_option('default_link_category'), 'hierarchical' => true, 'taxonomy' => 'link_category')); |
116 ?> |
106 ?> |
117 </td> |
107 </td> |
118 </tr> |
108 </tr> |
119 <?php do_settings_fields('writing', 'default'); ?> |
109 <?php endif; ?> |
|
110 |
|
111 <?php |
|
112 do_settings_fields('writing', 'default'); |
|
113 do_settings_fields('writing', 'remote_publishing'); // A deprecated section. |
|
114 ?> |
120 </table> |
115 </table> |
121 |
116 |
122 <h3 class="title"><?php _e('Press This') ?></h3> |
117 <h3 class="title"><?php _e('Press This') ?></h3> |
123 <p><?php _e('Press This is a bookmarklet: a little app that runs in your browser and lets you grab bits of the web.');?></p> |
118 <p><?php _e('Press This is a bookmarklet: a little app that runs in your browser and lets you grab bits of the web.');?></p> |
124 <p><?php _e('Use Press This to clip text, images and videos from any web page. Then edit and add more straight from Press This before you save or publish it in a post on your site.'); ?></p> |
119 <p><?php _e('Use Press This to clip text, images and videos from any web page. Then edit and add more straight from Press This before you save or publish it in a post on your site.'); ?></p> |
161 </tr> |
156 </tr> |
162 <?php do_settings_fields('writing', 'post_via_email'); ?> |
157 <?php do_settings_fields('writing', 'post_via_email'); ?> |
163 </table> |
158 </table> |
164 <?php } ?> |
159 <?php } ?> |
165 |
160 |
166 <h3><?php _e('Remote Publishing') ?></h3> |
|
167 <p><?php printf(__('To post to WordPress from a desktop blogging client or remote website that uses the Atom Publishing Protocol or one of the XML-RPC publishing interfaces you must enable them below.')) ?></p> |
|
168 <table class="form-table"> |
|
169 <tr valign="top"> |
|
170 <th scope="row"><?php _e('Atom Publishing Protocol') ?></th> |
|
171 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Atom Publishing Protocol') ?></span></legend> |
|
172 <label for="enable_app"> |
|
173 <input name="enable_app" type="checkbox" id="enable_app" value="1" <?php checked('1', get_option('enable_app')); ?> /> |
|
174 <?php _e('Enable the Atom Publishing Protocol.') ?></label><br /> |
|
175 </fieldset></td> |
|
176 </tr> |
|
177 <tr valign="top"> |
|
178 <th scope="row"><?php _e('XML-RPC') ?></th> |
|
179 <td><fieldset><legend class="screen-reader-text"><span><?php _e('XML-RPC') ?></span></legend> |
|
180 <label for="enable_xmlrpc"> |
|
181 <input name="enable_xmlrpc" type="checkbox" id="enable_xmlrpc" value="1" <?php checked('1', get_option('enable_xmlrpc')); ?> /> |
|
182 <?php _e('Enable the WordPress, Movable Type, MetaWeblog and Blogger XML-RPC publishing protocols.') ?></label><br /> |
|
183 </fieldset></td> |
|
184 </tr> |
|
185 <?php do_settings_fields('writing', 'remote_publishing'); ?> |
|
186 </table> |
|
187 |
|
188 <?php if ( apply_filters( 'enable_update_services_configuration', true ) ) { ?> |
161 <?php if ( apply_filters( 'enable_update_services_configuration', true ) ) { ?> |
189 <h3><?php _e('Update Services') ?></h3> |
162 <h3><?php _e('Update Services') ?></h3> |
190 |
163 |
191 <?php if ( 1 == get_option('blog_public') ) : ?> |
164 <?php if ( 1 == get_option('blog_public') ) : ?> |
192 |
165 |