' . __('This screen lists links to plugins to import data from blogging/content management platforms. Choose the platform you want to import from, and click Install Now when you are prompted in the popup window. If your platform is not listed, click the link to search the plugin directory for other importer plugins to see if there is one for your platform.') . '
' .
'' . __('In previous versions of WordPress, all the importers were built-in, but they have been turned into plugins as of version 3.0 since most people only use them once or infrequently.') . '
' .
'' . __('For more information:') . '
' .
'
array( __('Blogger'), __('Install the Blogger importer to import posts, comments, and users from a Blogger blog.'), 'install' ),
'wpcat2tag' => array(__('Categories and Tags Converter'), __('Install the category/tag converter to convert existing categories to tags or tags to categories, selectively.'), 'install'),
'livejournal' => array( __( 'LiveJournal' ), __( 'Install the LiveJournal importer to import posts from LiveJournal using their API.' ), 'install' ),
'movabletype' => array( __('Movable Type and TypePad'), __('Install the Movable Type importer to import posts and comments from a Movable Type or TypePad blog.'), 'install' ),
'opml' => array( __('Blogroll'), __('Install the blogroll importer to import links in OPML format.'), 'install' ),
'rss' => array( __('RSS'), __('Install the RSS importer to import posts from an RSS feed.'), 'install' ),
'wordpress' => array( 'WordPress', __('Install the WordPress importer to import posts, pages, comments, custom fields, categories, and tags from a WordPress export file.'), 'install' )
);
$importers = get_importers();
// If a popular importer is not registered, create a dummy registration that links to the plugin installer.
foreach ( array_keys($popular_importers) as $pop_importer ) {
if ( isset($importers[$pop_importer] ) )
continue;
$importers[$pop_importer] = $popular_importers[$pop_importer];
}
uasort($importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);'));
if (empty ($importers)) {
echo '
'.__('No importers are available.').'
'; // TODO: make more helpful
} else {
?>
$data) {
$style = ('class="alternate"' == $style || 'class="alternate active"' == $style) ? '' : 'alternate';
if ( 'install' == $data[2] ) {
$plugin_slug = $id . '-importer';
$action = '' . $data[0] . '';
} else {
$action = "{$data[0]}";
}
if ($style != '')
$style = 'class="'.$style.'"';
echo "
$action |
{$data[1]} |
";
}
?>
' . sprintf('If the importer you need is not listed,
search the plugins directory to see if an importer is available.', admin_url('plugin-install.php?tab=search&type=tag&s=importer') ) . '';
?>