@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb011 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
v-mt
/
plugins
/
WXRImporter
/
Path :
Upload File :
New :
File
Dir
//homepage/v-mt/plugins/WXRImporter/WXRImporter.pl
# Movable Type (r) (C) 2006-2008 Six Apart, Ltd. All Rights Reserved. # This code cannot be redistributed without permission from www.sixapart.com. # For more information, consult your Movable Type license. # # $Id: WXRImporter.pl 1174 2008-01-08 21:02:50Z bchoate $ # WXRImporter plugin for Movable Type # Author: Six Apart (http://www.sixapart.com) # Released under the Artistic and GPLv2 License package MT::Plugin::WXRImporter; use strict; use base qw( MT::Plugin ); my $plugin = new MT::Plugin::WXRImporter({ name => "WXR Importer", version => '1.1', description => '<MT_TRANS phrase="Import WordPress exported RSS into MT.">', author_name => "Six Apart, Ltd.", author_link => "http://www.sixapart.com/", l10n_class => 'WXRImporter::L10N', }); MT->add_plugin($plugin); sub init_registry { my $plugin = shift; $plugin->registry({ 'import_formats' => { 'import_wxr' => { label => 'WordPress eXtended RSS (WXR)', type => 'WXRImporter::Import', handler => 'WXRImporter::Import::import_contents', options => [ 'wp_path', 'mt_site_path', 'mt_extra_path', 'wp_download' ], options_template => 'options.tmpl', options_param => 'WXRImporter::Import::get_param', }, }, task_workers => { 'wxr_importer' => { label => "Download WP attachments via HTTP.", class => 'WXRImporter::Worker::Downloader', }, }, }); } 1;