Importers XHTML fixes, props sivel, fixes #8403
git-svn-id: http://svn.automattic.com/wordpress/trunk@9933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7815f416e7
commit
63b7ab11a1
|
@ -45,7 +45,7 @@ class Blogger_Import {
|
|||
|
||||
// Shows the welcome screen and the magic auth link.
|
||||
function greet() {
|
||||
$next_url = get_option('siteurl') . '/wp-admin/index.php?import=blogger&noheader=true';
|
||||
$next_url = get_option('siteurl') . '/wp-admin/index.php?import=blogger&noheader=true';
|
||||
$auth_url = "https://www.google.com/accounts/AuthSubRequest";
|
||||
$title = __('Import Blogger');
|
||||
$welcome = __('Howdy! This importer allows you to import posts and comments from your Blogger account into your WordPress blog.');
|
||||
|
@ -223,9 +223,10 @@ class Blogger_Import {
|
|||
$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";
|
||||
}
|
||||
|
||||
echo "<div class='wrap'><h2>$title</h2><noscript>$noscript</noscript><table cellpadding='5px'><thead><td>$name</td><td>$url</td><td>$posts</td><td>$comments</td><td>$action</td></thead>\n$rows</table></form></div>";
|
||||
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>";
|
||||
echo "
|
||||
<script type='text/javascript'>
|
||||
/* <![CDATA[ */
|
||||
var strings = {cont:'$continue',stop:'$stop',stopping:'$stopping',authors:'$authors',nothing:'$nothing'};
|
||||
var blogs = {};
|
||||
function blog(i, title, mode, status){
|
||||
|
@ -338,6 +339,7 @@ class Blogger_Import {
|
|||
};
|
||||
$init
|
||||
jQuery.each(blogs, function(i, me){me.init();});
|
||||
/* ]]> */
|
||||
</script>\n";
|
||||
}
|
||||
|
||||
|
@ -660,7 +662,7 @@ class Blogger_Import {
|
|||
foreach ( $blog['authors'] as $i => $author )
|
||||
$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>";
|
||||
|
||||
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>";
|
||||
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>";
|
||||
}
|
||||
|
||||
function get_user_options($current) {
|
||||
|
@ -830,7 +832,7 @@ class Blogger_Import {
|
|||
$restart = __('Restart');
|
||||
$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.');
|
||||
$submit = __('Clear account information');
|
||||
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>";
|
||||
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>";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -731,7 +731,7 @@ class Dotclear_Import {
|
|||
printf('<tr><th><label for="dbuser">%s</label></th><td><input type="text" name="dbuser" id="dbuser" /></td></tr>', __('DotClear Database User:'));
|
||||
printf('<tr><th><label for="dbpass">%s</label></th><td><input type="password" name="dbpass" id="dbpass" /></td></tr>', __('DotClear Database Password:'));
|
||||
printf('<tr><th><label for="dbname">%s</label></th><td><input type="text" name="dbname" id="dbname" /></td></tr>', __('DotClear Database Name:'));
|
||||
printf('<tr><th><label for="dbhost">%s</label></th><td><input type="text" name="dbhost" nameid="dbhost" value="localhost" /></td></tr>', __('DotClear Database Host:'));
|
||||
printf('<tr><th><label for="dbhost">%s</label></th><td><input type="text" name="dbhost" id="dbhost" value="localhost" /></td></tr>', __('DotClear Database Host:'));
|
||||
printf('<tr><th><label for="dbprefix">%s</label></th><td><input type="text" name="dbprefix" id="dbprefix" value="dc_"/></td></tr>', __('DotClear Table prefix:'));
|
||||
printf('<tr><th><label for="dccharset">%s</label></th><td><input type="text" name="dccharset" id="dccharset" value="ISO-8859-15"/></td></tr>', __('Originating character set:'));
|
||||
echo '</table>';
|
||||
|
|
|
@ -46,7 +46,7 @@ class GM_Import {
|
|||
</ul>
|
||||
<p> </p>
|
||||
|
||||
<form name="stepOne" method="get">
|
||||
<form name="stepOne" method="get" action="">
|
||||
<input type="hidden" name="import" value="greymatter" />
|
||||
<input type="hidden" name="step" value="1" />
|
||||
<?php wp_nonce_field('import-greymatter'); ?>
|
||||
|
@ -66,7 +66,6 @@ class GM_Import {
|
|||
<?php _e("This importer will search for files 00000001.cgi to 000-whatever.cgi,<br />so you need to enter the number of the last GM post here.<br />(if you don't know that number, just log into your FTP and look it out<br />in the entries' folder)") ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</p>
|
||||
<p class="submit"><input type="submit" name="submit" class="button" value="<?php _e('Start Importing') ?>" /></p>
|
||||
</form>
|
||||
<?php
|
||||
|
|
Loading…
Reference in New Issue