2008-09-30 17:39:13 -04:00
< ? php
/**
2010-03-01 02:15:15 -05:00
* Tools Administration Panel .
2008-09-30 17:39:13 -04:00
*
* @ package WordPress
* @ subpackage Administration
*/
/** WordPress Administration Bootstrap */
2010-04-18 02:14:45 -04:00
require_once ( './admin.php' );
2008-09-30 17:39:13 -04:00
2008-11-27 16:11:25 -05:00
$title = __ ( 'Tools' );
2008-09-30 17:39:13 -04:00
2010-04-18 02:14:45 -04:00
require_once ( './admin-header.php' );
2008-09-30 17:39:13 -04:00
2008-11-27 16:11:25 -05:00
?>
2008-11-28 05:14:43 -05:00
< div class = " wrap " >
2009-09-15 23:13:21 -04:00
< ? php screen_icon (); ?>
2009-05-18 11:11:07 -04:00
< h2 >< ? php echo esc_html ( $title ); ?> </h2>
2008-11-28 05:14:43 -05:00
2009-04-01 01:41:52 -04:00
< ? php if ( current_user_can ( 'edit_posts' ) ) : ?>
2008-11-28 05:14:43 -05:00
< div class = " tool-box " >
< h3 class = " title " >< ? php _e ( 'Press This' ) ?> </h3>
2008-12-07 05:23:43 -05:00
< 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>
2008-12-09 13:03:31 -05:00
2008-12-07 05:23:43 -05:00
< 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 blog.' ); ?> </p>
2008-11-28 05:14:43 -05:00
< 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>
2009-05-05 15:43:53 -04:00
< p class = " pressthis " >< a href = " <?php echo htmlspecialchars( get_shortcut_link() ); ?> " title = " <?php echo esc_attr(__('Press This')) ?> " >< ? php _e ( 'Press This' ) ?> </a></p>
2008-11-28 05:14:43 -05:00
</ div >
2009-05-29 15:15:32 -04:00
< ? php
endif ;
2010-02-26 23:04:36 -05:00
$cats = get_taxonomy ( 'category' );
$tags = get_taxonomy ( 'post_tag' );
2010-03-17 12:27:25 -04:00
if ( current_user_can ( $cats -> manage_cap ) || current_user_can ( $tags -> manage_cap ) ) : ?>
< div class = " tool-box " >
2010-02-26 23:04:36 -05:00
< h3 class = " title " >< ? php _e ( 'Category/Tag Conversion' ) ?> </h3>
2010-03-17 12:27:25 -04:00
< p >< ? php printf ( __ ( 'Use this to convert <a href="%s">categories to tags</a>, or <a href="%s">tags to categories</a>.' ), 'admin.php?import=wp-cat2tag' , 'admin.php?import=wp-cat2tag&step=3' ); ?> </p>
</ div >
2010-02-26 23:04:36 -05:00
< ? php
2010-03-17 12:27:25 -04:00
endif ;
2010-02-26 23:04:36 -05:00
2009-05-29 15:15:32 -04:00
do_action ( 'tool_box' );
?>
2008-11-28 05:14:43 -05:00
</ div >
2008-11-27 16:11:25 -05:00
< ? php
2010-04-18 02:14:45 -04:00
include ( './admin-footer.php' );
2008-12-07 05:23:43 -05:00
?>