Ticket #4788: ampersands.diff
| File ampersands.diff, 2.7 KB (added by , 19 years ago) |
|---|
-
blogger.php
8 8 9 9 // Shows the welcome screen and the magic auth link. 10 10 function greet() { 11 $next_url = get_option('siteurl') . '/wp-admin/index.php?import=blogger& noheader=true';11 $next_url = get_option('siteurl') . '/wp-admin/index.php?import=blogger&noheader=true'; 12 12 $auth_url = "https://www.google.com/accounts/AuthSubRequest"; 13 13 $title = __('Import Blogger'); 14 14 $welcome = __('Howdy! This importer allows you to import posts and comments from your Blogger account into your WordPress blog.'); … … 613 613 foreach ( $blog['authors'] as $i => $author ) 614 614 $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>"; 615 615 616 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='authorsubmit' value='$submit' /></td></tr></table></form></div>";616 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='authorsubmit' value='$submit' /></td></tr></table></form></div>"; 617 617 } 618 618 619 619 function get_user_options($current) { … … 781 781 $restart = __('Restart'); 782 782 $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.'); 783 783 $submit = __('Clear account information'); 784 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' value='$submit' name='restart' /></p></form></div>";784 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' value='$submit' name='restart' /></p></form></div>"; 785 785 } 786 786 } 787 787
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)