]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-admin/tools.php
Wordpress 3.0
[autoinstalls/wordpress.git] / wp-admin / tools.php
1 <?php
2 /**
3  * Tools Administration Panel.
4  *
5  * @package WordPress
6  * @subpackage Administration
7  */
8
9 /** WordPress Administration Bootstrap */
10 require_once('./admin.php');
11
12 $title = __('Tools');
13
14 add_contextual_help($current_screen,
15         '<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&#8217;ll be on your way to easier content creation.') . '</p>' .
16         '<p>' . __('Note: Turbo/Gears is no longer promoted on this screen as it was in previous versions due to the fact that Google has discontinued support for it.') . '</p>' .
17         '<p><strong>' . __('For more information:') . '</strong></p>' .
18         '<p>' . __('<a href="http://codex.wordpress.org/Tools_Tools_SubPanel" target="_blank">Tools Documentation</a>') . '</p>' .
19         '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
20 );
21
22 require_once('./admin-header.php');
23
24 ?>
25 <div class="wrap">
26 <?php screen_icon(); ?>
27 <h2><?php echo esc_html( $title ); ?></h2>
28
29 <?php if ( current_user_can('edit_posts') ) : ?>
30 <div class="tool-box">
31         <h3 class="title"><?php _e('Press This') ?></h3>
32         <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>
33
34         <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>
35         <p><?php _e('Drag-and-drop the following link to your bookmarks bar or right click it and add it to your favorites for a posting shortcut.') ?></p>
36         <p class="pressthis"><a href="<?php echo htmlspecialchars( get_shortcut_link() ); ?>" title="<?php echo esc_attr(__('Press This')) ?>"><?php _e('Press This') ?></a></p>
37 </div>
38 <?php
39 endif;
40
41 if ( current_user_can( 'import' ) ) :
42 $cats = get_taxonomy('category');
43 $tags = get_taxonomy('post_tag');
44 if ( current_user_can($cats->cap->manage_terms) || current_user_can($tags->cap->manage_terms) ) : ?>
45 <div class="tool-box">
46     <h3 class="title"><?php _e( 'Categories and Tags Converter' ) ?></h3>
47     <p><?php printf( __('<a href="%s">Use this</a> to convert categories to tags or tags to categories.'), 'import.php' ); ?></p>
48 </div>
49 <?php
50 endif;
51 endif;
52
53 do_action( 'tool_box' );
54 ?>
55 </div>
56 <?php
57 include('./admin-footer.php');
58 ?>