Skip to content
Newer
Older
100644 72 lines (61 sloc) 3.95 KB
e62e09a Landing page for turbo
ryan authored Sep 30, 2008
1 <?php
2 /**
9cb6e15 Switch from Panel/SubPanel to Screen in inline documentation and Code…
nacin authored Apr 28, 2011
3 * Tools Administration Screen.
e62e09a Landing page for turbo
ryan authored Sep 30, 2008
4 *
5 * @package WordPress
6 * @subpackage Administration
7 */
8
9 /** WordPress Administration Bootstrap */
6ec7cb4 Use relative paths when including files, avoiding include_path. fixes…
nacin authored Apr 18, 2010
10 require_once('./admin.php');
e62e09a Landing page for turbo
ryan authored Sep 30, 2008
11
7138d5a Create Tools screen. fixes #8361
ryan authored Nov 27, 2008
12 $title = __('Tools');
e62e09a Landing page for turbo
ryan authored Sep 30, 2008
13
68a166c Update help content for tools page. props Ipstenu, see #19020.
koopersmith authored Nov 28, 2011
14 get_current_screen()->add_help_tab( array(
15 'id' => 'press-this',
16 'title' => __('Press This'),
17 '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&#8217;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>',
18 ) );
19 get_current_screen()->add_help_tab( array(
20 'id' => 'converter',
3d51303 Help tweaks for users, tools. props jane, see #19020.
nacin authored Dec 1, 2011
21 'title' => __('Categories and Tags Converter'),
7492cef Update contextual help for Tools screen. Props SergeyBiryukov, ajacom…
ryan authored May 5, 2012
22 'content' => '<p>' . __('Categories have hierarchy, meaning that you can nest sub-categories. Tags do not have hierarchy and cannot be nested. Sometimes people start out using one on their posts, then later realize that the other would work better for their content.' ) . '</p>' .
23 '<p>' . __( 'The Categories and Tags Converter link on this screen will take you to the Import screen, where that Converter is one of the plugins you can install. Once that plugin is installed, the Activate Plugin &amp; Run Importer link will take you to a screen where you can choose to convert tags into categories or vice versa.' ) . '</p>',
68a166c Update help content for tools page. props Ipstenu, see #19020.
koopersmith authored Nov 28, 2011
24 ) );
3ad1f67 Use add_help_sidebar(). see #19020
ryan authored Nov 2, 2011
25
bfb98c1 s/add_help_sidebar/set_help_sidebar/g and introduce screen->remove_he…
nacin authored Nov 2, 2011
26 get_current_screen()->set_help_sidebar(
bb00d56 Menu translatable strings cleanup.
nbachiyski authored May 27, 2010
27 '<p><strong>' . __('For more information:') . '</strong></p>' .
9cb6e15 Switch from Panel/SubPanel to Screen in inline documentation and Code…
nacin authored Apr 28, 2011
28 '<p>' . __('<a href="http://codex.wordpress.org/Tools_Screen" target="_blank">Documentation on Tools</a>') . '</p>' .
34c1fa6 target=blank for help. props jorbin, see #13467
nacin authored Jun 3, 2010
29 '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
9ed7d13 Tools help. Props duck_. see #13467
ryan authored May 26, 2010
30 );
31
6ec7cb4 Use relative paths when including files, avoiding include_path. fixes…
nacin authored Apr 18, 2010
32 require_once('./admin-header.php');
e62e09a Landing page for turbo
ryan authored Sep 30, 2008
33
7138d5a Create Tools screen. fixes #8361
ryan authored Nov 27, 2008
34 ?>
e17c93c Styling for Tools screen
azaozz authored Nov 28, 2008
35 <div class="wrap">
de6b730 screen_icon() after <div class="wrap">, props johnbillion, fixes #10795
azaozz authored Sep 16, 2009
36 <?php screen_icon(); ?>
119b39c deprecate wp_specialchars() in favor of esc_html(). Encode quotes for…
markjaquith authored May 18, 2009
37 <h2><?php echo esc_html( $title ); ?></h2>
e17c93c Styling for Tools screen
azaozz authored Nov 28, 2008
38
ffaa029 Press This UI, Quoting fixes, plus ability for Contributors to use Pr…
markjaquith authored Apr 1, 2009
39 <?php if ( current_user_can('edit_posts') ) : ?>
e17c93c Styling for Tools screen
azaozz authored Nov 28, 2008
40 <div class="tool-box">
41 <h3 class="title"><?php _e('Press This') ?></h3>
ed48953 Improve Press this descriptions. See #8186 props noel.
westi authored Dec 7, 2008
42 <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>
e89192b Strip trailing whitespace
ryan authored Dec 9, 2008
43
e64a657 s/blog/site/ in even more places. props PeteMall, see #11644.
nacin authored Apr 30, 2010
44 <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>
b3bb537 Press This bookmarklet redesign, props chexee, fixes #17184
azaozz authored Apr 20, 2011
45 <p class="description"><?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>
96681a7 Extend the workaround for adding the Press This bookmarklet to IE, pr…
azaozz authored Nov 21, 2011
46 <p class="pressthis"><a onclick="return false;" oncontextmenu="if(window.navigator.userAgent.indexOf('WebKit')!=-1||window.navigator.userAgent.indexOf('MSIE')!=-1)jQuery('.pressthis-code').show().find('textarea').focus().select();return false;" href="<?php echo htmlspecialchars( get_shortcut_link() ); ?>"><span><?php _e('Press This') ?></span></a></p>
d697ce6 Make copying the PressThis bookmarklet code easier in WebKit browsers…
azaozz authored Jun 8, 2011
47 <div class="pressthis-code" style="display:none;">
48 <p class="description"><?php _e('If your bookmarks toolbar is hidden: copy the code below, open your Bookmarks manager, create new bookmark, type Press This into the name field and paste the code into the URL field.') ?></p>
49 <p><textarea rows="5" cols="120" readonly="readonly"><?php echo htmlspecialchars( get_shortcut_link() ); ?></textarea></p>
50 </div>
e17c93c Styling for Tools screen
azaozz authored Nov 28, 2008
51 </div>
77aea25 Add tool_box action to tools.php. Allows appending to tools.
ryan authored May 29, 2009
52 <?php
53 endif;
54
6f289a7 Check for the import cap before showing links to the tag/cat converte…
nacin authored Jun 11, 2010
55 if ( current_user_can( 'import' ) ) :
5398faf Revert [14853], [14778], returning tag/cat converter to tools.php and…
nacin authored May 27, 2010
56 $cats = get_taxonomy('category');
57 $tags = get_taxonomy('post_tag');
58 if ( current_user_can($cats->cap->manage_terms) || current_user_can($tags->cap->manage_terms) ) : ?>
59 <div class="tool-box">
60 <h3 class="title"><?php _e( 'Categories and Tags Converter' ) ?></h3>
3d51303 Help tweaks for users, tools. props jane, see #19020.
nacin authored Dec 1, 2011
61 <p><?php printf( __('If you want to convert your categories to tags (or vice versa), use the <a href="%s">Categories and Tags Converter</a> available from the Import screen.'), 'import.php' ); ?></p>
5398faf Revert [14853], [14778], returning tag/cat converter to tools.php and…
nacin authored May 27, 2010
62 </div>
63 <?php
64 endif;
6f289a7 Check for the import cap before showing links to the tag/cat converte…
nacin authored Jun 11, 2010
65 endif;
5398faf Revert [14853], [14778], returning tag/cat converter to tools.php and…
nacin authored May 27, 2010
66
77aea25 Add tool_box action to tools.php. Allows appending to tools.
ryan authored May 29, 2009
67 do_action( 'tool_box' );
68 ?>
e17c93c Styling for Tools screen
azaozz authored Nov 28, 2008
69 </div>
7138d5a Create Tools screen. fixes #8361
ryan authored Nov 27, 2008
70 <?php
6ec7cb4 Use relative paths when including files, avoiding include_path. fixes…
nacin authored Apr 18, 2010
71 include('./admin-footer.php');
Something went wrong with that request. Please try again.