Ticket #8403: blogger.diff
File blogger.diff, 3.9 KB (added by , 16 years ago) |
---|
-
wp-admin/import/blogger.php
45 45 46 46 // Shows the welcome screen and the magic auth link. 47 47 function greet() { 48 $next_url = get_option('siteurl') . '/wp-admin/index.php?import=blogger& noheader=true';48 $next_url = get_option('siteurl') . '/wp-admin/index.php?import=blogger&noheader=true'; 49 49 $auth_url = "https://www.google.com/accounts/AuthSubRequest"; 50 50 $title = __('Import Blogger'); 51 51 $welcome = __('Howdy! This importer allows you to import posts and comments from your Blogger account into your WordPress blog.'); … … 223 223 $rows .= "<tr id='blog$i'><td class='blogtitle'>$blogtitle</td><td class='bloghost'>{$blog['host']}</td><td class='bar'>$pstat</td><td class='bar'>$cstat</td><td class='submit'><input type='submit' class='button' id='submit$i' value='$value' /><input type='hidden' name='blog' value='$i' /></td></tr>\n"; 224 224 } 225 225 226 echo "<div class='wrap'><h2>$title</h2><noscript>$noscript</noscript><table cellpadding='5px'><thead><t d>$name</td><td>$url</td><td>$posts</td><td>$comments</td><td>$action</td></thead>\n$rows</table></form></div>";226 echo "<div class='wrap'><h2>$title</h2><noscript>$noscript</noscript><table cellpadding='5px'><thead><tr><td>$name</td><td>$url</td><td>$posts</td><td>$comments</td><td>$action</td></tr></thead>\n$rows</table></div>"; 227 227 echo " 228 228 <script type='text/javascript'> 229 /* <![CDATA[ */ 229 230 var strings = {cont:'$continue',stop:'$stop',stopping:'$stopping',authors:'$authors',nothing:'$nothing'}; 230 231 var blogs = {}; 231 232 function blog(i, title, mode, status){ … … 338 339 }; 339 340 $init 340 341 jQuery.each(blogs, function(i, me){me.init();}); 342 /* ]]> */ 341 343 </script>\n"; 342 344 } 343 345 … … 660 662 foreach ( $blog['authors'] as $i => $author ) 661 663 $rows .= "<tr><td><label for='authors[$i]'>{$author[0]}</label></td><td><select name='authors[$i]' id='authors[$i]'>" . $this->get_user_options($author[1]) . "</select></td></tr>"; 662 664 663 return "<div class='wrap'><h2>$heading</h2><h3>$blogtitle</h3><p>$directions</p><form action='index.php?import=blogger& noheader=true&saveauthors=1' method='post'><input type='hidden' name='blog' value='$importing_blog' /><table cellpadding='5'><thead><td>$mapthis</td><td>$tothis</td></thead>$rows<tr><td></td><td class='submit'><input type='submit' class='button authorsubmit' value='$submit' /></td></tr></table></form></div>";665 return "<div class='wrap'><h2>$heading</h2><h3>$blogtitle</h3><p>$directions</p><form action='index.php?import=blogger&noheader=true&saveauthors=1' method='post'><input type='hidden' name='blog' value='$importing_blog' /><table cellpadding='5'><thead><td>$mapthis</td><td>$tothis</td></thead>$rows<tr><td></td><td class='submit'><input type='submit' class='button authorsubmit' value='$submit' /></td></tr></table></form></div>"; 664 666 } 665 667 666 668 function get_user_options($current) { … … 830 832 $restart = __('Restart'); 831 833 $message = __('We have saved some information about your Blogger account in your WordPress database. Clearing this information will allow you to start over. Restarting will not affect any posts you have already imported. If you attempt to re-import a blog, duplicate posts and comments will be skipped.'); 832 834 $submit = __('Clear account information'); 833 echo "<div class='wrap'><h2>$restart</h2><p>$message</p><form method='post' action='?import=blogger& noheader=true'><p class='submit' style='text-align:left;'><input type='submit' class='button' value='$submit' name='restart' /></p></form></div>";835 echo "<div class='wrap'><h2>$restart</h2><p>$message</p><form method='post' action='?import=blogger&noheader=true'><p class='submit' style='text-align:left;'><input type='submit' class='button' value='$submit' name='restart' /></p></form></div>"; 834 836 } 835 837 } 836 838