Changeset 3769
- Timestamp:
- 05/10/2006 08:34:17 PM (19 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import.php
r3262 r3769 2 2 require_once ('admin.php'); 3 3 $title = __('Import'); 4 $parent_file = ' import.php';4 $parent_file = 'edit.php'; 5 5 require_once ('admin-header.php'); 6 6 ?> … … 31 31 } else { 32 32 ?> 33 <table width="100%" cellpadding="3" cellspacing="3">33 <table class="widefat"> 34 34 35 35 <?php … … 43 43 echo " 44 44 <tr $style> 45 <td class= \"togl\">$action</td>46 <td class= \"desc\">{$data[1]}</td>45 <td class='import-system'>$action</td> 46 <td class='desc'>{$data[1]}</td> 47 47 </tr>"; 48 48 } -
trunk/wp-admin/import/blogger.php
r3609 r3769 663 663 $blogger_import = new Blogger_Import(); 664 664 665 register_importer('blogger', 'Blogger ', __('Import posts and comments from aBlogger account'), array ($blogger_import, 'start'));665 register_importer('blogger', 'Blogger and Blogspot', __('Import <strong>posts and comments</strong> from your Blogger account'), array ($blogger_import, 'start')); 666 666 667 667 ?> -
trunk/wp-admin/import/mt.php
r3749 r3769 12 12 function header() { 13 13 echo '<div class="wrap">'; 14 echo '<h2>'.__('Import Movable Type ').'</h2>';14 echo '<h2>'.__('Import Movable Type and Typepad').'</h2>'; 15 15 } 16 16 … … 149 149 foreach ($authors as $author) { 150 150 ++ $j; 151 echo '<li> <i>'.$author.'</i><br />'.'<input type="text" value="'.$author.'" name="'.'user[]'.'" maxlength="30">';151 echo '<li>Current author: <strong>'.$author.'</strong><br />'.'Create user <input type="text" value="'.$author.'" name="'.'user[]'.'" maxlength="30"> <br /> or map to existing '; 152 152 $this->users_form($j); 153 153 echo '</li>'; … … 163 163 $file = wp_import_handle_upload(); 164 164 if ( isset($file['error']) ) { 165 echo $file['error']; 165 $this->header(); 166 echo '<p>Sorry, there has been an error.</p>'; 167 echo '<p><strong>' . $file['error'] . '</strong></p>'; 168 $this->footer(); 166 169 return; 167 170 } … … 332 335 } 333 336 if ( $num_comments ) 334 printf(__(' (%s comments)'), $num_comments);337 printf(__(' (%s comments)'), $num_comments); 335 338 336 339 // Finally the pings … … 380 383 } 381 384 if ( $num_pings ) 382 printf(__(' (%s pings)'), $num_pings);385 printf(__(' (%s pings)'), $num_pings); 383 386 384 387 echo "</li>"; … … 395 398 function import() { 396 399 $this->id = (int) $_GET['id']; 400 397 401 $this->file = get_attached_file($this->id); 398 402 $this->get_authors_from_post(); … … 427 431 $mt_import = new MT_Import(); 428 432 429 register_importer('mt', 'Movable Type ', __('Import posts and comments from your Movable Typeblog'), array ($mt_import, 'dispatch'));433 register_importer('mt', 'Movable Type and Typepad', __('Imports <strong>posts and comments</strong> from your Movable Type or Typepad blog'), array ($mt_import, 'dispatch')); 430 434 ?> -
trunk/wp-admin/menu.php
r3756 r3769 16 16 $menu[35] = array(__('Profile'), 'read', 'profile.php'); 17 17 $menu[40] = array(__('Options'), 'manage_options', 'options-general.php'); 18 $menu[45] = array(__('Import'), 'import', 'import.php'); 18 19 19 20 20 $submenu['post-new.php'][5] = array(__('Write Post'), 'edit_posts', 'post-new.php'); … … 28 28 $submenu['edit.php'][25] = array(sprintf(__("Awaiting Moderation (%s)"), "<span id='awaitmod'>$awaiting_mod</span>"), 'edit_posts', 'moderation.php'); 29 29 $submenu['edit.php'][30] = array(__('Files'), 'edit_files', 'templates.php'); 30 $submenu['edit.php'][35] = array(__('Import'), 'import', 'import.php'); 31 $submenu['edit.php'][40] = array(__('Export'), 'import', 'export.php'); 30 32 31 33 $submenu['link-manager.php'][5] = array(__('Manage Bookmarks'), 'manage_links', 'link-manager.php');
Note: See TracChangeset
for help on using the changeset viewer.